This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/20251] 32bit programs pass garbage in struct flock for OFD locks
- From: "jlayton at poochiereds dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 03 Apr 2018 12:32:13 +0000
- Subject: [Bug libc/20251] 32bit programs pass garbage in struct flock for OFD locks
- Auto-submitted: auto-generated
- References: <bug-20251-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20251
jlayton at poochiereds dot net <jlayton at poochiereds dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jlayton at poochiereds dot net
--- Comment #2 from jlayton at poochiereds dot net <jlayton at poochiereds dot net> ---
If userland is passing a 32-bit struct flock to fcntl64, then that's pretty
broken. The whole point of that syscall was so that we could pass the kernel a
struct flock64.
IIRC, the idea at the time we merged this was to just make it so that 32-bit
programs built without large file offset support couldn't use F_OFD_*
constants.
That may still be the right thing to do, but Isacc's idea might be better.
There's no reason we couldn't support OFD locks with 32-bit offsets if such a
thing were desirable.
--
You are receiving this mail because:
You are on the CC list for the bug.