BUG: sleeping function called from invalid context at kernel/locking/mutex.c:938 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 22072, name: syz-executor.3 2 locks held by syz-executor.3/22072: #0: ffffffff8df2b768 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff8df2b768 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0xaee/0xe70 net/core/rtnetlink.c:5559 #1: ffffffff8cf15c80 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:266 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 22072 Comm: syz-executor.3 Not tainted 5.13.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x202/0x31e lib/dump_stack.c:120 ___might_sleep+0x4e5/0x6b0 kernel/sched/core.c:8338 __mutex_lock_common+0xce/0x3100 kernel/locking/mutex.c:938 __mutex_lock kernel/locking/mutex.c:1104 [inline] mutex_lock_nested+0x1a/0x20 kernel/locking/mutex.c:1119 __ipv6_dev_mc_dec+0x62/0x420 net/ipv6/mcast.c:965 addrconf_leave_solict net/ipv6/addrconf.c:2182 [inline] __ipv6_ifa_notify+0x8ca/0x1310 net/ipv6/addrconf.c:6099 ipv6_ifa_notify net/ipv6/addrconf.c:6122 [inline] ipv6_del_addr+0x6ce/0xbc0 net/ipv6/addrconf.c:1294 addrconf_verify_rtnl+0xa49/0x10c0 net/ipv6/addrconf.c:4489 inet6_set_iftoken net/ipv6/addrconf.c:5757 [inline] inet6_set_link_af+0x884/0xce0 net/ipv6/addrconf.c:5833 do_setlink+0x2e38/0x4000 net/core/rtnetlink.c:2875 __rtnl_newlink net/core/rtnetlink.c:3385 [inline] rtnl_newlink+0x15fa/0x1c90 net/core/rtnetlink.c:3500 rtnetlink_rcv_msg+0xb34/0xe70 net/core/rtnetlink.c:5562 netlink_rcv_skb+0x1f0/0x460 net/netlink/af_netlink.c:2504 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x7de/0x9b0 net/netlink/af_netlink.c:1340 netlink_sendmsg+0xaa6/0xe90 net/netlink/af_netlink.c:1929 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg net/socket.c:674 [inline] ____sys_sendmsg+0x5a2/0x900 net/socket.c:2350 ___sys_sendmsg net/socket.c:2404 [inline] __sys_sendmsg+0x319/0x400 net/socket.c:2433 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f13bd48f188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffe3b42b77f R14: 00007f13bd48f300 R15: 0000000000022000 ============================= [ BUG: Invalid wait context ] 5.13.0-rc4-syzkaller #0 Tainted: G W ----------------------------- syz-executor.3/22072 is trying to lock: ffff888071dc5530 (&idev->mc_lock){+.+.}-{3:3}, at: __ipv6_dev_mc_dec+0x62/0x420 net/ipv6/mcast.c:965 other info that might help us debug this: context-{4:4} 2 locks held by syz-executor.3/22072: #0: ffffffff8df2b768 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff8df2b768 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0xaee/0xe70 net/core/rtnetlink.c:5559 #1: ffffffff8cf15c80 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:266 stack backtrace: CPU: 0 PID: 22072 Comm: syz-executor.3 Tainted: G W 5.13.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x202/0x31e lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4553 [inline] check_wait_context kernel/locking/lockdep.c:4614 [inline] __lock_acquire+0x25db/0x6040 kernel/locking/lockdep.c:4852 lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __mutex_lock_common+0x1bf/0x3100 kernel/locking/mutex.c:959 __mutex_lock kernel/locking/mutex.c:1104 [inline] mutex_lock_nested+0x1a/0x20 kernel/locking/mutex.c:1119 __ipv6_dev_mc_dec+0x62/0x420 net/ipv6/mcast.c:965 addrconf_leave_solict net/ipv6/addrconf.c:2182 [inline] __ipv6_ifa_notify+0x8ca/0x1310 net/ipv6/addrconf.c:6099 ipv6_ifa_notify net/ipv6/addrconf.c:6122 [inline] ipv6_del_addr+0x6ce/0xbc0 net/ipv6/addrconf.c:1294 addrconf_verify_rtnl+0xa49/0x10c0 net/ipv6/addrconf.c:4489 inet6_set_iftoken net/ipv6/addrconf.c:5757 [inline] inet6_set_link_af+0x884/0xce0 net/ipv6/addrconf.c:5833 do_setlink+0x2e38/0x4000 net/core/rtnetlink.c:2875 __rtnl_newlink net/core/rtnetlink.c:3385 [inline] rtnl_newlink+0x15fa/0x1c90 net/core/rtnetlink.c:3500 rtnetlink_rcv_msg+0xb34/0xe70 net/core/rtnetlink.c:5562 netlink_rcv_skb+0x1f0/0x460 net/netlink/af_netlink.c:2504 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x7de/0x9b0 net/netlink/af_netlink.c:1340 netlink_sendmsg+0xaa6/0xe90 net/netlink/af_netlink.c:1929 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg net/socket.c:674 [inline] ____sys_sendmsg+0x5a2/0x900 net/socket.c:2350 ___sys_sendmsg net/socket.c:2404 [inline] __sys_sendmsg+0x319/0x400 net/socket.c:2433 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f13bd48f188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffe3b42b77f R14: 00007f13bd48f300 R15: 0000000000022000 BUG: sleeping function called from invalid context at include/linux/sched/mm.h:201 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 22072, name: syz-executor.3 INFO: lockdep is turned off. Preemption disabled at: [] netif_addr_lock_bh include/linux/netdevice.h:4549 [inline] [] __dev_mc_del+0x4d/0x420 net/core/dev_addr_lists.c:814 CPU: 0 PID: 22072 Comm: syz-executor.3 Tainted: G W 5.13.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x202/0x31e lib/dump_stack.c:120 ___might_sleep+0x4e5/0x6b0 kernel/sched/core.c:8338 might_alloc include/linux/sched/mm.h:201 [inline] slab_pre_alloc_hook mm/slab.h:497 [inline] slab_alloc_node mm/slub.c:2834 [inline] slab_alloc mm/slub.c:2921 [inline] kmem_cache_alloc_trace+0x5b/0x340 mm/slub.c:2938 kmalloc include/linux/slab.h:556 [inline] kzalloc include/linux/slab.h:686 [inline] mld_add_delrec net/ipv6/mcast.c:737 [inline] igmp6_leave_group net/ipv6/mcast.c:2626 [inline] igmp6_group_dropped+0x4b0/0xef0 net/ipv6/mcast.c:717 __ipv6_dev_mc_dec+0x2af/0x420 net/ipv6/mcast.c:973 addrconf_leave_solict net/ipv6/addrconf.c:2182 [inline] __ipv6_ifa_notify+0x8ca/0x1310 net/ipv6/addrconf.c:6099 ipv6_ifa_notify net/ipv6/addrconf.c:6122 [inline] ipv6_del_addr+0x6ce/0xbc0 net/ipv6/addrconf.c:1294 addrconf_verify_rtnl+0xa49/0x10c0 net/ipv6/addrconf.c:4489 inet6_set_iftoken net/ipv6/addrconf.c:5757 [inline] inet6_set_link_af+0x884/0xce0 net/ipv6/addrconf.c:5833 do_setlink+0x2e38/0x4000 net/core/rtnetlink.c:2875 __rtnl_newlink net/core/rtnetlink.c:3385 [inline] rtnl_newlink+0x15fa/0x1c90 net/core/rtnetlink.c:3500 rtnetlink_rcv_msg+0xb34/0xe70 net/core/rtnetlink.c:5562 netlink_rcv_skb+0x1f0/0x460 net/netlink/af_netlink.c:2504 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x7de/0x9b0 net/netlink/af_netlink.c:1340 netlink_sendmsg+0xaa6/0xe90 net/netlink/af_netlink.c:1929 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg net/socket.c:674 [inline] ____sys_sendmsg+0x5a2/0x900 net/socket.c:2350 ___sys_sendmsg net/socket.c:2404 [inline] __sys_sendmsg+0x319/0x400 net/socket.c:2433 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f13bd48f188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffe3b42b77f R14: 00007f13bd48f300 R15: 0000000000022000 __nla_validate_parse: 10 callbacks suppressed netlink: 68 bytes leftover after parsing attributes in process `syz-executor.3'.