Bug 57996 - Symlinks erroneously not followed when target inode number >32 bits
Summary: Symlinks erroneously not followed when target inode number >32 bits
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.10
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2015-06-03 16:36 UTC by Sergio Gelato
Modified: 2015-06-03 16:38 UTC (History)
0 users



Attachments
Fix resolve_symlink() target inode number overflow failure (1.29 KB, patch)
2015-06-03 16:36 UTC, Sergio Gelato
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio Gelato 2015-06-03 16:36:40 UTC
Created attachment 32790 [details]
Fix resolve_symlink() target inode number overflow failure

When running httpd on 32-bit x86, some (but not all) symbolic links are neither followed nor shown in the directory index. Attempts to follow them result in error AH00037 being logged. The configuration permits following symlinks if the owner matches.

On investigation, it appeared that the problematic symlinks are those where the link has an inode number that fits within 32 bits but the target does not.

I have developed a patch and successfully tested it on top of httpd 2.4.10 as packaged in Debian 8. Inspection of the head of the 2.4 branch in svn suggests that the bug is still present there.