[PATCH] protect ext2 ioctl modifying append_only immutable etc with i_mutex
commit93f210dd9e614ddab7ecef0b4c9ba6ad3720d860
authorAndrew Morton <akpm@osdl.org>
Thu, 7 Dec 2006 04:37:33 +0000 (6 20:37 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:37 +0000 (7 08:39 -0800)
treef16d960d7a9e85b2405ae323246e9b6c8aec68bc
parentf5738ceed46782aea7663d62cb6398eb05fc4ce0
[PATCH] protect ext2 ioctl modifying append_only immutable etc with i_mutex

Port commit a090d9132c1e53e3517111123680c15afb25c0a4 into ext2:

All modifications of ->i_flags in inodes that might be visible to somebody
else must be under ->i_mutex.  That patch fixes ext2 ioctl() setting S_APPEND.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext2/ioctl.c