Eric Dumazet
4e43e64d0f
ipv6: fix lockdep splat in in6_dump_addrs()
...
As reported by syzbot, we should not use rcu_dereference()
when rcu_read_lock() is not held.
WARNING: suspicious RCU usage
5.19.0-rc2-syzkaller #0 Not tainted
net/ipv6/addrconf.c:5175 suspicious rcu_dereference_check() usage!
other info that might help us debug this:
rcu_scheduler_active = 2, debug_locks = 1
1 lock held by syz-executor326/3617:
#0 : ffffffff8d5848e8 (rtnl_mutex){+.+.}-{3:3}, at: netlink_dump+0xae/0xc20 net/netlink/af_netlink.c:2223
stack backtrace:
CPU: 0 PID: 3617 Comm: syz-executor326 Not tainted 5.19.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
in6_dump_addrs+0x12d1/0x1790 net/ipv6/addrconf.c:5175
inet6_dump_addr+0x9c1/0xb50 net/ipv6/addrconf.c:5300
netlink_dump+0x541/0xc20 net/netlink/af_netlink.c:2275
__netlink_dump_start+0x647/0x900 net/netlink/af_netlink.c:2380
netlink_dump_start include/linux/netlink.h:245 [inline]
rtnetlink_rcv_msg+0x73e/0xc90 net/core/rtnetlink.c:6046
netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2501
netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345
netlink_sendmsg+0x917/0xe10 net/netlink/af_netlink.c:1921
sock_sendmsg_nosec net/socket.c:714 [inline]
sock_sendmsg+0xcf/0x120 net/socket.c:734
____sys_sendmsg+0x6eb/0x810 net/socket.c:2492
___sys_sendmsg+0xf3/0x170 net/socket.c:2546
__sys_sendmsg net/socket.c:2575 [inline]
__do_sys_sendmsg net/socket.c:2584 [inline]
__se_sys_sendmsg net/socket.c:2582 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2582
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x46/0xb0
Fixes: 88e2ca308094 ("mld: convert ifmcaddr6 to RCU")
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Taehee Yoo <ap420073@gmail.com>
Link: https://lore.kernel.org/r/20220628121248.858695-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-06-29 20:41:09 -07:00
..
2021-09-28 12:59:24 +01:00
2022-05-13 18:56:28 +02:00
2021-12-06 16:05:11 -08:00
2022-06-29 20:41:09 -07:00
2020-11-25 11:20:16 -08:00
2022-04-22 12:47:50 +01:00
2021-11-18 12:00:15 +00:00
2020-07-30 16:30:55 -07:00
2021-03-04 15:26:57 -08:00
2022-05-16 10:31:05 +01:00
2022-03-07 13:14:04 +01:00
2022-05-06 08:24:20 +02:00
2022-04-13 13:09:57 +01:00
2022-02-08 20:41:34 -08:00
2020-06-20 21:33:57 -07:00
2022-04-13 13:09:57 +01:00
2020-11-23 18:36:21 -05:00
2022-05-16 10:31:06 +01:00
2022-02-04 20:24:45 -08:00
2022-03-03 14:38:48 +00:00
2022-01-20 20:18:37 -08:00
2022-02-16 20:37:47 -08:00
2022-06-20 10:00:55 +01:00
2021-02-23 11:29:52 -08:00
2022-04-15 14:05:18 -07:00
2022-05-16 10:18:56 +01:00
2022-06-08 10:56:43 -07:00
2022-04-06 15:31:15 +01:00
2020-06-01 14:57:14 -07:00
2021-12-30 12:12:12 -08:00
2022-04-06 15:14:30 +01:00
2021-06-11 14:48:50 +02:00
2022-02-18 11:53:28 +00:00
2021-10-04 12:53:35 +01:00
2021-09-28 13:13:40 +01:00
2021-04-27 14:02:06 -07:00
2022-04-30 15:19:08 +01:00
2021-06-11 14:48:50 +02:00
2022-05-31 11:36:57 +02:00
2022-05-16 13:03:29 +02:00
2021-05-31 22:12:08 -07:00
2022-06-01 12:44:42 +02:00
2020-11-09 15:34:44 -08:00
2022-04-28 13:08:15 -07:00
2022-03-03 14:38:48 +00:00
2022-06-27 22:24:30 -07:00
2020-12-08 16:22:54 -08:00
2020-10-30 12:12:52 -07:00
2022-06-28 21:23:30 -07:00
2021-12-09 07:55:42 -08:00
2022-06-09 22:04:47 -07:00
2022-01-04 12:17:35 +00:00
2022-06-28 21:00:34 -07:00
2022-04-25 12:10:11 +01:00
2022-05-03 10:15:06 +02:00
2022-05-20 09:35:42 -07:00
2021-11-16 13:16:54 +00:00
2020-07-09 12:52:37 +02:00
2022-04-12 15:00:25 +02:00
2021-11-24 17:21:42 -08:00
2022-05-16 10:31:06 +01:00
2020-07-19 18:16:41 -07:00
2020-05-06 09:40:08 +02:00
2022-03-01 12:08:40 +01:00
2022-03-15 20:20:02 -07:00
2020-04-28 11:28:36 +02:00
2020-05-06 09:40:08 +02:00
2021-06-09 09:38:52 +02:00