aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorTony Battersby <[email protected]>2009-02-04 15:12:04 -0800
committerLinus Torvalds <[email protected]>2009-02-05 12:56:47 -0800
commita68e61e8ff2d46327a37b69056998b47745db6fa (patch)
tree2445097933785b26d91577e6f4b41329e8bcd639 /lib/string_helpers.c
parent1f5e31d7e55ac7fbd4ec5e5b20c8868b0e4564c9 (diff)
shm: fix shmctl(SHM_INFO) lockup with !CONFIG_SHMEM
shm_get_stat() assumes that the inode is a "struct shmem_inode_info", which is incorrect for !CONFIG_SHMEM (see fs/ramfs/inode.c: ramfs_get_inode() vs. mm/shmem.c: shmem_get_inode()). This bad assumption can cause shmctl(SHM_INFO) to lockup when shm_get_stat() tries to spin_lock(&info->lock). Users of !CONFIG_SHMEM may encounter this lockup simply by invoking the 'ipcs' command. Reported by Jiri Olsa back in February 2008: http://lkml.org/lkml/2008/2/29/74 Signed-off-by: Tony Battersby <[email protected]> Cc: Jiri Kosina <[email protected]> Reported-by: Jiri Olsa <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: <[email protected]> [2.6.everything] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions