This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/20251] 32bit programs pass garbage in struct flock for OFD locks


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]