Alexey Dobriyan
ca509f69de
Protect tty drivers list with tty_mutex
Additions and removal from tty_drivers list were just done as well as
iterating on it for /proc/tty/drivers generation.
testing: modprobe/rmmod loop of simple module which does nothing but
tty_register_driver() vs cat /proc/tty/drivers loop
BUG: unable to handle kernel paging request at virtual address 6b6b6b6b
printing eip:
c01cefa7
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
last sysfs file: devices/pci0000:00/0000:00:1d.7/usb5/5-0:1.0/bInterfaceProtocol
Modules linked in: ohci_hcd af_packet e1000 ehci_hcd uhci_hcd usbcore xfs
CPU: 0
EIP: 0060:[<c01cefa7>] Not tainted VLI
EFLAGS: 00010297 (2.6.21-rc4-mm1 #4)
EIP is at vsnprintf+0x3a4/0x5fc
eax: 6b6b6b6b ebx: f6cb50f2 ecx: 6b6b6b6b edx: fffffffe
esi: c0354700 edi: f6cb6000 ebp: 6b6b6b6b esp: f31f5e68
ds: 007b es: 007b fs: 00d8 gs: 0033 ss: 0068
Process cat (pid: 31864, ti=f31f4000 task=c1998030 task.ti=f31f4000)
Stack: 00000000 c0103f20 c013003a c0103f20 00000000 f6cb50da 0000000a 00000f0e
f6cb50f2 00000010 00000014 ffffffff ffffffff 00000007 c0354753 f6cb50f2
f73e39dc f73e39dc 00000001 c0175416 f31f5ed8 f31f5ed4 0ee00000 f32090bc
Call Trace:
[<c0103f20>] restore_nocheck+0x12/0x15
[<c013003a>] mark_held_locks+0x6d/0x86
[<c0103f20>] restore_nocheck+0x12/0x15
[<c0175416>] seq_printf+0x2e/0x52
[<c0192895>] show_tty_range+0x35/0x1f3
[<c0175416>] seq_printf+0x2e/0x52
[<c0192add>] show_tty_driver+0x8a/0x1d9
[<c01758f6>] seq_read+0x70/0x2ba
[<c0175886>] seq_read+0x0/0x2ba
[<c018d8e6>] proc_reg_read+0x63/0x9f
[<c015e764>] vfs_read+0x7d/0xb5
[<c018d883>] proc_reg_read+0x0/0x9f
[<c015eab1>] sys_read+0x41/0x6a
[<c0103e4e>] sysenter_past_esp+0x5f/0x99
=======================
Code: 00 8b 4d 04 e9 44 ff ff ff 8d 4d 04 89 4c 24 50 8b 6d 00 81 fd ff 0f 00 00 b8 a4 c1 35 c0 0f 46 e8 8b 54 24 2c 89 e9 89 c8 eb 06 <80> 38 00 74 07 40 4a 83 fa ff 75 f4 29 c8 89 c6 8b 44 24 28 89
EIP: [<c01cefa7>] vsnprintf+0x3a4/0x5fc SS:ESP 0068:f31f5e68
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
2007-05-08 11:15:05 -07:00 |
| .. |
|
9p
|
v9fs: don't use primary fid when removing file
|
2007-04-24 08:23:08 -07:00 |
|
adfs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
affs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
afs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
autofs
|
[PATCH] Mark struct super_operations const
|
2007-02-12 09:48:47 -08:00 |
|
autofs4
|
[PATCH] autofs4: fix race in unhashed dentry code
|
2007-04-12 15:31:42 -07:00 |
|
befs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
bfs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
cifs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
coda
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
configfs
|
remove "struct subsystem" as it is no longer needed
|
2007-05-02 18:57:59 -07:00 |
|
cramfs
|
mm: make read_cache_page synchronous
|
2007-05-07 12:12:51 -07:00 |
|
debugfs
|
remove "struct subsystem" as it is no longer needed
|
2007-05-02 18:57:59 -07:00 |
|
devpts
|
devpts: add fsnotify create event
|
2007-05-08 11:14:59 -07:00 |
|
dlm
|
Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-nmw
|
2007-05-07 12:26:27 -07:00 |
|
ecryptfs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
efs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
exportfs
|
|
|
|
ext2
|
ext2/3/4: fix file date underflow on ext2 3 filesystems on 64 bit systems
|
2007-05-08 11:14:58 -07:00 |
|
ext3
|
ext3: dirindex error pointer issues
|
2007-05-08 11:15:01 -07:00 |
|
ext4
|
ext3: dirindex error pointer issues
|
2007-05-08 11:15:01 -07:00 |
|
fat
|
is_power_of_2 in fat
|
2007-05-08 11:14:59 -07:00 |
|
freevxfs
|
freevxfs: possible null pointer dereference fix
|
2007-05-08 11:14:59 -07:00 |
|
fuse
|
add filesystem subtype support
|
2007-05-08 11:15:01 -07:00 |
|
gfs2
|
Factor outstanding I/O error handling
|
2007-05-08 11:14:57 -07:00 |
|
hfs
|
is_power_of_2 in fs/hfs
|
2007-05-08 11:14:59 -07:00 |
|
hfsplus
|
is_power_of_2 in fs/hfs
|
2007-05-08 11:14:59 -07:00 |
|
hostfs
|
uml: hostfs style fixes
|
2007-05-08 11:14:57 -07:00 |
|
hpfs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
hppfs
|
[PATCH] Mark struct super_operations const
|
2007-02-12 09:48:47 -08:00 |
|
hugetlbfs
|
hugetlbfs: add NULL check in hugetlb_zero_setup()
|
2007-05-07 12:12:57 -07:00 |
|
isofs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
jbd
|
|
|
|
jbd2
|
|
|
|
jffs2
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
jfs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
lockd
|
Merge branch 'server-cluster-locking-api' of git://linux-nfs.org/~bfields/linux
|
2007-05-07 12:34:24 -07:00 |
|
minix
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
msdos
|
[PATCH] mark struct inode_operations const 2
|
2007-02-12 09:48:46 -08:00 |
|
ncpfs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
nfs
|
Merge branch 'server-cluster-locking-api' of git://linux-nfs.org/~bfields/linux
|
2007-05-07 12:34:24 -07:00 |
|
nfs_common
|
|
|
|
nfsd
|
Merge branch 'server-cluster-locking-api' of git://linux-nfs.org/~bfields/linux
|
2007-05-07 12:34:24 -07:00 |
|
nls
|
|
|
|
ntfs
|
mm: move common segment checks to separate helper function
|
2007-05-08 11:14:57 -07:00 |
|
ocfs2
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
openpromfs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
partitions
|
mm: optimize acorn partition truncate
|
2007-05-07 12:12:55 -07:00 |
|
proc
|
Protect tty drivers list with tty_mutex
|
2007-05-08 11:15:05 -07:00 |
|
qnx4
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
ramfs
|
[PATCH] Mark struct super_operations const
|
2007-02-12 09:48:47 -08:00 |
|
reiserfs
|
reiserfs: correct misspelled "REISERFS_PROC_INFO" to "CONFIG_REISERFS_PROC_INFO"
|
2007-05-08 11:15:00 -07:00 |
|
romfs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
smbfs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
sysfs
|
remove "struct subsystem" as it is no longer needed
|
2007-05-02 18:57:59 -07:00 |
|
sysv
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
udf
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
ufs
|
slab allocators: Remove SLAB_DEBUG_INITIAL flag
|
2007-05-07 12:12:57 -07:00 |
|
vfat
|
[PATCH] mark struct inode_operations const 3
|
2007-02-12 09:48:46 -08:00 |
|
xfs
|
mm: move common segment checks to separate helper function
|
2007-05-08 11:14:57 -07:00 |
|
aio.c
|
KMEM_CACHE(): simplify slab cache creation
|
2007-05-07 12:12:55 -07:00 |
|
attr.c
|
|
|
|
bad_inode.c
|
[PATCH] mark struct inode_operations const 1
|
2007-02-12 09:48:46 -08:00 |
|
binfmt_aout.c
|
|
|
|
binfmt_elf.c
|
[PATCH] fix page leak during core dump
|
2007-04-02 10:06:08 -07:00 |
|
binfmt_elf_fdpic.c
|
[PATCH] fix page leak during core dump
|
2007-04-02 10:06:08 -07:00 |
|
binfmt_em86.c
|
|
|
|
binfmt_flat.c
|
[PATCH] uclinux: correctly remap bin_fmtflat exe allocated mem regions
|
2007-02-09 10:45:33 -08:00 |
|
binfmt_misc.c
|
[PATCH] Mark struct super_operations const
|
2007-02-12 09:48:47 -08:00 |
|
binfmt_script.c
|
|
|
|
binfmt_som.c
|
|
|
|
bio.c
|
KMEM_CACHE(): simplify slab cache creation
|
2007-05-07 12:12:55 -07:00 |
|
block_dev.c
|
is_power_of_2 in fs/block_dev.c
|
2007-05-08 11:14:59 -07:00 |
|
buffer.c
|
block_write_full_page(): report ENOSPC
|
2007-05-08 11:14:57 -07:00 |
|
char_dev.c
|
[PATCH] remove protection of LANANA-reserved majors
|
2007-04-04 21:12:47 -07:00 |
|
compat.c
|
[PATCH] x86-64: Print type and size correctly for unknown compat ioctls
|
2007-05-02 19:27:21 +02:00 |
|
compat_ioctl.c
|
[PATCH] x86-64: Shut up warnings for vfat compat ioctls on other file systems
|
2007-05-02 19:27:21 +02:00 |
|
dcache.c
|
VFS: delay the dentry name generation on sockets and pipes
|
2007-05-08 11:15:03 -07:00 |
|
dcookies.c
|
|
|
|
direct-io.c
|
|
|
|
dnotify.c
|
|
|
|
dquot.c
|
mm: remove destroy_dirty_buffers from invalidate_bdev()
|
2007-05-07 12:12:55 -07:00 |
|
drop_caches.c
|
[PATCH] remove invalidate_inode_pages()
|
2007-02-11 10:51:31 -08:00 |
|
eventpoll.c
|
epoll: optimizations and cleanups
|
2007-05-08 11:15:01 -07:00 |
|
exec.c
|
exec: fix remove_arg_zero
|
2007-05-08 11:15:00 -07:00 |
|
fcntl.c
|
|
|
|
fifo.c
|
|
|
|
file.c
|
|
|
|
file_table.c
|
|
|
|
filesystems.c
|
add filesystem subtype support
|
2007-05-08 11:15:01 -07:00 |
|
fs-writeback.c
|
|
|
|
generic_acl.c
|
|
|
|
inode.c
|
vfs: remove superflous sb == NULL checks
|
2007-05-08 11:15:02 -07:00 |
|
inotify.c
|
|
|
|
inotify_user.c
|
[PATCH] inotify: read return val fix
|
2007-02-12 09:48:28 -08:00 |
|
internal.h
|
|
|
|
ioctl.c
|
vfs: remove superflous sb == NULL checks
|
2007-05-08 11:15:02 -07:00 |
|
ioprio.c
|
[PATCH] pid: replace do/while_each_task_pid with do/while_each_pid_task
|
2007-02-12 09:48:32 -08:00 |
|
Kconfig
|
reiserfs: proc support requires PROC_FS
|
2007-05-08 11:15:04 -07:00 |
|
Kconfig.binfmt
|
blackfin architecture
|
2007-05-07 12:12:58 -07:00 |
|
libfs.c
|
[PATCH] shmem and simple const super_operations
|
2007-03-05 07:57:51 -08:00 |
|
locks.c
|
Merge branch 'server-cluster-locking-api' of git://linux-nfs.org/~bfields/linux
|
2007-05-07 12:34:24 -07:00 |
|
Makefile
|
Remove JFFS (version 1), as scheduled.
|
2007-02-17 16:10:59 -05:00 |
|
mbcache.c
|
|
|
|
mpage.c
|
Factor outstanding I/O error handling
|
2007-05-08 11:14:57 -07:00 |
|
namei.c
|
namei.c: remove utterly outdated comment
|
2007-05-08 11:15:02 -07:00 |
|
namespace.c
|
add filesystem subtype support
|
2007-05-08 11:15:01 -07:00 |
|
nfsctl.c
|
|
|
|
no-block.c
|
|
|
|
open.c
|
|
|
|
pipe.c
|
VFS: delay the dentry name generation on sockets and pipes
|
2007-05-08 11:15:03 -07:00 |
|
pnode.c
|
|
|
|
pnode.h
|
|
|
|
posix_acl.c
|
|
|
|
quota.c
|
|
|
|
quota_v1.c
|
|
|
|
quota_v2.c
|
|
|
|
read_write.c
|
use use SEEK_MAX to validate user lseek arguments
|
2007-05-08 11:14:59 -07:00 |
|
read_write.h
|
|
|
|
readdir.c
|
|
|
|
select.c
|
|
|
|
seq_file.c
|
|
|
|
splice.c
|
[PATCH] splice: partial write fix
|
2007-03-29 14:26:42 +02:00 |
|
stack.c
|
[PATCH] fs/stack.c: Copy i_nlink after all other attributes are copied
|
2007-02-19 14:21:50 -08:00 |
|
stat.c
|
|
|
|
super.c
|
add filesystem subtype support
|
2007-05-08 11:15:01 -07:00 |
|
sync.c
|
Remove do_sync_file_range()
|
2007-05-08 11:15:04 -07:00 |
|
utimes.c
|
|
|
|
xattr.c
|
|
|
|
xattr_acl.c
|
[PATCH] remove many unneeded #includes of sched.h
|
2007-02-14 08:09:54 -08:00 |