Zefan Li
7e6932300a
dlci: validate the net device in dlci_del()
commit 578a1310f2 upstream.
We triggered an oops while running trinity with 3.4 kernel:
BUG: unable to handle kernel paging request at 0000000100000d07
IP: [<ffffffffa0109738>] dlci_ioctl+0xd8/0x2d4 [dlci]
PGD 640c0d067 PUD 0
Oops: 0000 [#1] PREEMPT SMP
CPU 3
...
Pid: 7302, comm: trinity-child3 Not tainted 3.4.24.09+ 40 Huawei Technologies Co., Ltd. Tecal RH2285 /BC11BTSA
RIP: 0010:[<ffffffffa0109738>] [<ffffffffa0109738>] dlci_ioctl+0xd8/0x2d4 [dlci]
...
Call Trace:
[<ffffffff8137c5c3>] sock_ioctl+0x153/0x280
[<ffffffff81195494>] do_vfs_ioctl+0xa4/0x5e0
[<ffffffff8118354a>] ? fget_light+0x3ea/0x490
[<ffffffff81195a1f>] sys_ioctl+0x4f/0x80
[<ffffffff81478b69>] system_call_fastpath+0x16/0x1b
...
It's because the net device is not a dlci device.
Reported-by: Li Jinyue <lijinyue@huawei.com>
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-07-03 10:59:04 -07:00
..
2013-06-13 09:45:00 -07:00
2013-06-07 12:49:33 -07:00
2013-02-14 10:49:05 -08:00
2013-04-12 09:38:43 -07:00
2013-06-20 11:58:45 -07:00
2013-04-05 10:04:15 -07:00
2013-05-19 10:54:49 -07:00
2013-06-27 11:27:30 -07:00
2013-05-11 13:48:10 -07:00
2013-02-28 06:59:06 -08:00
2013-05-19 10:54:48 -07:00
2013-02-03 18:24:41 -06:00
2013-04-12 09:38:44 -07:00
2013-03-04 06:06:41 +08:00
2013-04-05 10:04:36 -07:00
2013-06-20 11:58:45 -07:00
2013-04-05 10:04:16 -07:00
2013-06-13 09:45:01 -07:00
2013-04-12 09:38:46 -07:00
2013-05-24 11:14:22 -07:00
2013-03-28 12:12:25 -07:00
2013-06-27 11:27:33 -07:00
2013-06-07 12:49:48 -07:00
2013-02-14 10:49:04 -08:00
2013-06-07 12:49:13 -07:00
2013-06-20 11:58:46 -07:00
2013-05-24 11:14:23 -07:00
2013-05-07 19:51:57 -07:00
2013-05-07 19:51:57 -07:00
2013-04-25 21:19:56 -07:00
2013-07-03 10:59:04 -07:00
2013-05-07 19:51:55 -07:00
2013-02-28 06:59:05 -08:00
2013-06-07 12:49:49 -07:00
2013-03-04 06:06:44 +08:00
2013-06-20 11:58:43 -07:00
2013-05-07 19:51:53 -07:00
2013-05-19 10:54:39 -07:00
2013-04-12 09:38:43 -07:00
2013-04-25 21:19:55 -07:00
2013-06-07 12:49:10 -07:00
2013-06-27 11:27:33 -07:00
2013-04-12 09:38:47 -07:00
2013-06-07 12:49:11 -07:00
2013-06-27 11:27:33 -07:00
2013-03-28 12:11:54 -07:00
2013-05-07 19:51:53 -07:00
2013-03-20 13:04:59 -07:00
2013-06-13 09:45:02 -07:00