pravin shelar
0e82c76359
genetlink: Fix generic netlink family unregister
This patch fixes a typo in unregister operation.
Following crash is fixed by this patch. It can be easily reproduced
by repeating modprobe and rmmod module that uses genetlink.
[ 261.446686] BUG: unable to handle kernel paging request at ffffffffa0264088
[ 261.448921] IP: [<ffffffff813cb70e>] strcmp+0xe/0x30
[ 261.450494] PGD 1c09067
[ 261.451266] PUD 1c0a063
[ 261.452091] PMD 8068d5067
[ 261.452525] PTE 0
[ 261.453164]
[ 261.453618] Oops: 0000 [#1] SMP
[ 261.454577] Modules linked in: openvswitch(+) ...
[ 261.480753] RIP: 0010:[<ffffffff813cb70e>] [<ffffffff813cb70e>] strcmp+0xe/0x30
[ 261.483069] RSP: 0018:ffffc90003c0bc28 EFLAGS: 00010282
[ 261.510145] Call Trace:
[ 261.510896] [<ffffffff816f10ca>] genl_family_find_byname+0x5a/0x70
[ 261.512819] [<ffffffff816f2319>] genl_register_family+0xb9/0x630
[ 261.514805] [<ffffffffa02840bc>] dp_init+0xbc/0x120 [openvswitch]
[ 261.518268] [<ffffffff8100217d>] do_one_initcall+0x3d/0x160
[ 261.525041] [<ffffffff811808a9>] do_init_module+0x60/0x1f1
[ 261.526754] [<ffffffff8110687f>] load_module+0x22af/0x2860
[ 261.530144] [<ffffffff81107026>] SYSC_finit_module+0x96/0xd0
[ 261.531901] [<ffffffff8110707e>] SyS_finit_module+0xe/0x10
[ 261.533605] [<ffffffff8100391e>] do_syscall_64+0x6e/0x180
[ 261.535284] [<ffffffff817c2faf>] entry_SYSCALL64_slow_path+0x25/0x25
[ 261.546512] RIP [<ffffffff813cb70e>] strcmp+0xe/0x30
[ 261.550198] ---[ end trace 76505a814dd68770 ]---
Fixes: 2ae0f17df1c ("genetlink: use idr to track families").
Reported-by: Jarno Rajahalme <jarno@ovn.org>
CC: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-29 20:58:15 -04:00
..
2016-09-19 20:19:34 +02:00
2016-09-23 13:47:44 -04:00
2016-10-20 14:51:10 -04:00
2016-10-20 14:51:09 -04:00
2016-09-10 21:19:10 -07:00
2016-10-21 13:57:50 -04:00
2016-06-18 20:55:34 -07:00
2016-10-29 16:26:50 -04:00
2016-10-21 13:57:50 -04:00
2016-10-20 14:51:09 -04:00
2016-10-28 13:47:33 -04:00
2016-06-23 11:23:49 +02:00
2016-10-05 23:02:10 +02:00
2016-10-29 15:50:30 -04:00
2016-10-29 15:09:21 -04:00
2016-07-05 14:08:47 -07:00
2016-10-21 13:57:50 -04:00
2016-10-13 09:36:57 -04:00
2016-10-27 16:16:09 -04:00
2016-10-27 16:16:09 -04:00
2016-10-29 17:12:43 -04:00
2016-10-27 16:16:09 -04:00
2016-10-27 16:16:09 -04:00
2016-10-12 01:56:04 -04:00
2016-10-07 15:36:58 -07:00
2016-10-27 16:16:09 -04:00
2016-09-10 23:12:53 -07:00
2016-05-29 22:33:25 -07:00
2016-09-17 10:05:05 -04:00
2016-10-29 17:28:45 -04:00
2016-09-19 20:19:34 +02:00
2016-10-23 17:45:01 -04:00
2016-10-04 02:11:51 -04:00
2016-10-27 16:16:09 -04:00
2016-10-27 16:16:09 -04:00
2016-10-29 20:58:15 -04:00
2016-10-27 16:16:09 -04:00
2016-10-27 16:16:09 -04:00
2016-10-06 20:50:18 -04:00
2016-10-20 14:51:10 -04:00
2016-05-17 14:11:19 -04:00
2016-10-17 11:07:22 -04:00
2016-07-13 11:53:40 -07:00
2016-10-06 08:11:51 +01:00
2016-10-29 14:57:42 -04:00
2016-10-13 09:44:14 -04:00
2016-10-12 01:51:49 -04:00
2016-10-22 17:05:05 -04:00
2016-10-29 14:58:33 -04:00
2016-10-27 16:16:09 -04:00
2016-10-03 20:40:56 -04:00
2016-09-27 07:59:25 -04:00
2016-10-27 16:16:09 -04:00
2016-10-29 17:28:45 -04:00
2016-09-09 18:13:30 -07:00
2016-10-28 13:26:27 -04:00
2016-06-09 23:41:03 -07:00
2016-08-17 19:36:23 -04:00
2016-08-17 19:36:23 -04:00
2016-10-07 21:48:36 -04:00
2016-10-06 09:52:23 -07:00