Revision 1e5de2837c166535f9bb4232bfe97ea1f9fc7a1c authored by Linus Torvalds on 08 July 2007, 19:02:55 UTC, committed by Linus Torvalds on 08 July 2007, 19:02:55 UTC
Commit 1c710c896eb461895d3c399e15bb5f20b39c9073 added the utimensat()
system call, but didn't handle the case of checking for the writability
of the target right, when the target was a file descriptor, not a
filename.

We cannot use vfs_permission(MAY_WRITE) for that case, and need to
simply check whether the file descriptor is writable.  The oops from
using the wrong function was noticed and narrowed down by Markus
Trippelsdorf.

Cc: Ulrich Drepper <drepper@redhat.com>
Cc: Markus Trippelsdorf <markus@trippelsdorf.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Al Viro <viro@ftp.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 4e99325
History
File Mode Size
Kconfig -rw-r--r-- 5.1 KB
Makefile -rw-r--r-- 1.1 KB
allocpercpu.c -rw-r--r-- 3.7 KB
backing-dev.c -rw-r--r-- 2.0 KB
bootmem.c -rw-r--r-- 12.0 KB
bounce.c -rw-r--r-- 6.5 KB
fadvise.c -rw-r--r-- 2.6 KB
filemap.c -rw-r--r-- 64.2 KB
filemap.h -rw-r--r-- 2.8 KB
filemap_xip.c -rw-r--r-- 10.8 KB
fremap.c -rw-r--r-- 6.1 KB
highmem.c -rw-r--r-- 8.0 KB
hugetlb.c -rw-r--r-- 20.6 KB
internal.h -rw-r--r-- 1.0 KB
madvise.c -rw-r--r-- 9.5 KB
memory.c -rw-r--r-- 74.7 KB
memory_hotplug.c -rw-r--r-- 7.3 KB
mempolicy.c -rw-r--r-- 47.1 KB
mempool.c -rw-r--r-- 9.0 KB
migrate.c -rw-r--r-- 21.9 KB
mincore.c -rw-r--r-- 5.7 KB
mlock.c -rw-r--r-- 5.5 KB
mmap.c -rw-r--r-- 56.2 KB
mmzone.c -rw-r--r-- 750 bytes
mprotect.c -rw-r--r-- 7.5 KB
mremap.c -rw-r--r-- 10.7 KB
msync.c -rw-r--r-- 2.4 KB
nommu.c -rw-r--r-- 32.3 KB
oom_kill.c -rw-r--r-- 12.1 KB
page-writeback.c -rw-r--r-- 28.9 KB
page_alloc.c -rw-r--r-- 91.2 KB
page_io.c -rw-r--r-- 3.6 KB
pdflush.c -rw-r--r-- 6.3 KB
prio_tree.c -rw-r--r-- 6.3 KB
quicklist.c -rw-r--r-- 2.0 KB
readahead.c -rw-r--r-- 17.0 KB
rmap.c -rw-r--r-- 26.3 KB
shmem.c -rw-r--r-- 65.5 KB
shmem_acl.c -rw-r--r-- 4.6 KB
slab.c -rw-r--r-- 116.5 KB
slob.c -rw-r--r-- 9.7 KB
slub.c -rw-r--r-- 86.9 KB
sparse.c -rw-r--r-- 8.1 KB
swap.c -rw-r--r-- 12.4 KB
swap_state.c -rw-r--r-- 9.3 KB
swapfile.c -rw-r--r-- 44.0 KB
thrash.c -rw-r--r-- 2.0 KB
tiny-shmem.c -rw-r--r-- 3.2 KB
truncate.c -rw-r--r-- 12.3 KB
util.c -rw-r--r-- 1.7 KB
vmalloc.c -rw-r--r-- 17.6 KB
vmscan.c -rw-r--r-- 47.3 KB
vmstat.c -rw-r--r-- 16.9 KB

back to top