NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/41620 CVS commit: [netbsd-5] src/sys/kern



The following reply was made to PR lib/41620; it has been noted by GNATS.

From: Manuel Bouyer <bouyer%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/41620 CVS commit: [netbsd-5] src/sys/kern
Date: Sat, 5 Sep 2009 11:36:29 +0000

 Module Name:   src
 Committed By:  bouyer
 Date:          Sat Sep  5 11:36:29 UTC 2009
 
 Modified Files:
        src/sys/kern [netbsd-5]: vfs_lockf.c
 
 Log Message:
 Pull up following revision(s) (requested by dsl in ticket #900):
        sys/kern/vfs_lockf.c: revision 1.72
 lockf() passes its arguments through to fcntl() but is supposed to
 support -ve lengths (lock area before current offset).
 Nothing in libc or the kernel allowed for this, so some random part
 of the file would get locked (no idea which bits).
 Although this could probably be fixed in libc, the stubs for posix file
 locks for emulations could easily get into the kernel with -ve lengths.
 So fixing in the kernel avoids those problems.
 This also fixes PR/41620 (attempting to lock negative offsets) - which
 is what I was looking into!
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.69.4.2 -r1.69.4.3 src/sys/kern/vfs_lockf.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index