Wu Fengguang
7378396cd1
netfilter: nf_log: fix sleeping function called from invalid context in seq_show()
[ 171.925285] BUG: sleeping function called from invalid context at kernel/mutex.c:280
[ 171.925296] in_atomic(): 1, irqs_disabled(): 0, pid: 671, name: grep
[ 171.925306] 2 locks held by grep/671:
[ 171.925312] #0: (&p->lock){+.+.+.}, at: [<c10b8acd>] seq_read+0x25/0x36c
[ 171.925340] #1: (rcu_read_lock){.+.+..}, at: [<c1391dac>] seq_start+0x0/0x44
[ 171.925372] Pid: 671, comm: grep Not tainted 2.6.31.6-4-netbook #3
[ 171.925380] Call Trace:
[ 171.925398] [<c105104e>] ? __debug_show_held_locks+0x1e/0x20
[ 171.925414] [<c10264ac>] __might_sleep+0xfb/0x102
[ 171.925430] [<c1461521>] mutex_lock_nested+0x1c/0x2ad
[ 171.925444] [<c1391c9e>] seq_show+0x74/0x127
[ 171.925456] [<c10b8c5c>] seq_read+0x1b4/0x36c
[ 171.925469] [<c10b8aa8>] ? seq_read+0x0/0x36c
[ 171.925483] [<c10d5c8e>] proc_reg_read+0x60/0x74
[ 171.925496] [<c10d5c2e>] ? proc_reg_read+0x0/0x74
[ 171.925510] [<c10a4468>] vfs_read+0x87/0x110
[ 171.925523] [<c10a458a>] sys_read+0x3b/0x60
[ 171.925538] [<c1002a49>] syscall_call+0x7/0xb
Fix it by replacing RCU with nf_log_mutex.
Reported-by: "Yin, Kangkai" <kangkai.yin@intel.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-11-13 09:34:44 +01:00
..
2009-09-24 07:21:04 -07:00
2009-02-18 16:29:08 +01:00
2009-06-15 03:02:23 -07:00
2009-06-08 17:01:51 +02:00
2009-06-12 18:01:46 +02:00
2009-02-01 00:45:17 -08:00
2009-11-06 00:43:42 -08:00
2009-06-13 12:30:52 +02:00
2009-06-25 16:32:52 +02:00
2009-06-25 16:32:52 +02:00
2009-06-02 20:08:46 +02:00
2008-01-31 19:28:07 -08:00
2009-02-01 00:45:17 -08:00
2008-01-31 19:28:07 -08:00
2009-06-13 12:28:22 +02:00
2009-03-28 23:55:57 -07:00
2008-04-14 11:15:52 +02:00
2009-06-03 02:51:02 -07:00
2009-08-25 16:07:58 +02:00
2009-03-26 15:23:24 -07:00
2009-06-11 16:00:49 +02:00
2009-02-18 16:28:35 +01:00
2009-06-11 16:00:49 +02:00
2009-06-10 14:32:47 +02:00
2009-11-06 00:43:42 -08:00
2009-03-25 21:53:39 +01:00
2009-04-24 15:37:44 +02:00
2009-03-25 18:24:48 +01:00
2008-11-17 16:01:42 +01:00
2008-11-17 16:01:42 +01:00
2009-03-25 21:05:46 +01:00
2008-11-17 16:01:42 +01:00
2008-10-08 11:35:00 +02:00
2009-11-13 09:34:44 +01:00
2009-05-08 10:30:46 +02:00
2009-09-30 16:12:20 -07:00
2009-02-04 16:55:27 -08:00
2009-08-25 16:07:58 +02:00
2009-08-25 16:07:58 +02:00
2009-08-25 16:07:58 +02:00
2009-09-22 07:17:38 -07:00
2008-10-08 11:35:19 +02:00
2009-06-22 14:15:02 +02:00
2008-10-08 11:35:20 +02:00
2008-10-08 11:35:20 +02:00
2009-11-06 18:08:32 -08:00
2009-08-10 12:25:12 +02:00
2009-08-10 12:25:11 +02:00
2008-10-08 11:35:20 +02:00
2009-08-10 13:09:44 +02:00
2008-12-14 23:19:02 -08:00
2009-08-10 12:25:11 +02:00
2009-08-10 12:25:11 +02:00
2008-10-08 11:35:18 +02:00
2009-09-22 07:17:38 -07:00
2008-10-08 11:35:20 +02:00
2009-02-18 18:39:31 +01:00
2009-02-18 18:38:40 +01:00
2009-08-10 13:09:44 +02:00
2009-02-20 10:55:14 +01:00
2008-10-08 11:35:18 +02:00
2009-03-16 15:35:29 +01:00
2008-10-08 11:35:20 +02:00
2009-08-10 13:09:45 +02:00
2009-08-10 12:25:12 +02:00
2008-10-08 11:35:18 +02:00
2008-11-04 14:21:08 +01:00
2009-06-22 14:15:02 +02:00
2008-10-08 11:35:20 +02:00
2009-11-13 09:31:35 +01:00
2009-08-10 13:32:30 +02:00
2009-03-25 17:31:52 +01:00
2008-10-08 11:35:20 +02:00
2009-06-03 02:51:04 -07:00
2009-08-23 19:09:23 -07:00
2009-06-22 14:17:12 +02:00
2009-08-17 21:33:49 -07:00
2009-06-03 02:51:04 -07:00
2009-04-24 17:05:21 +02:00
2009-02-09 14:34:56 -08:00
2008-10-08 11:35:19 +02:00
2009-06-09 15:16:34 +02:00
2008-10-08 11:35:19 +02:00
2009-03-16 15:35:29 +01:00
2008-10-08 11:35:19 +02:00
2008-10-08 11:35:18 +02:00
2009-06-03 02:51:04 -07:00
2008-10-08 11:35:19 +02:00
2008-10-08 11:35:18 +02:00
2009-01-12 21:18:36 -08:00
2008-10-08 11:35:19 +02:00
2008-10-08 11:35:19 +02:00
2008-10-08 11:35:18 +02:00