BUG: scheduling while atomic: syz-executor.3/13845/0x00000002 Modules linked in: Preemption disabled at: [] rcu_preempt_deferred_qs_irqrestore+0x257/0x9f0 kernel/rcu/tree_plugin.h:513 CPU: 0 PID: 13845 Comm: syz-executor.3 Not tainted 5.15.148-syzkaller-00013-gad06eaf051cd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x17 lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5707 schedule_debug kernel/sched/core.c:5734 [inline] __schedule+0xd19/0x1590 kernel/sched/core.c:6402 schedule+0x11f/0x1e0 kernel/sched/core.c:6595 synchronize_rcu_expedited+0x49d/0x600 kernel/rcu/tree_exp.h:946 synchronize_net+0x2d/0x40 net/core/dev.c:11009 ipv6_mc_down+0x9b/0x360 net/ipv6/mcast.c:2725 ipv6_mc_destroy_dev+0x2b/0x620 net/ipv6/mcast.c:2792 addrconf_ifdown+0x1652/0x1ae0 net/ipv6/addrconf.c:3924 addrconf_notify+0x37d/0xdd0 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x8c/0xf0 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2025 [inline] call_netdevice_notifiers_extack net/core/dev.c:2037 [inline] call_netdevice_notifiers net/core/dev.c:2051 [inline] unregister_netdevice_many+0xe0a/0x17c0 net/core/dev.c:11105 unregister_netdevice_queue+0x2e6/0x350 net/core/dev.c:11038 unregister_netdevice include/linux/netdevice.h:3052 [inline] __tun_detach+0xcf9/0x14c0 drivers/net/tun.c:685 tun_detach drivers/net/tun.c:701 [inline] tun_chr_close+0x92/0x140 drivers/net/tun.c:3434 __fput+0x3fe/0x910 fs/file_table.c:280 ____fput+0x15/0x20 fs/file_table.c:308 task_work_run+0x129/0x190 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0xc4/0xe0 kernel/entry/common.c:175 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:301 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f94ef65dd9a Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24 RSP: 002b:00007ffff74452d0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 000000000000000e RCX: 00007f94ef65dd9a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000000d RBP: 00007f94ef78e980 R08: 00007f94ef5e1000 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000293 R12: 0000000000034477 R13: 0000000000034445 R14: 00007ffff7445490 R15: 00007f94ef615cb0