rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P2502/1:b..l rcu: (detected by 0, t=10502 jiffies, g=107505, q=103 ncpus=2) task:kworker/u8:6 state:R running task stack:19280 pid:2502 tgid:2502 ppid:2 flags:0x00004000 Workqueue: bat_events batadv_nc_worker Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6925 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:707 RIP: 0010:lock_acquire+0x264/0x550 kernel/locking/lockdep.c:5826 Code: 2b 00 74 08 4c 89 f7 e8 4a 9f 8b 00 f6 44 24 61 02 0f 85 85 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25 RSP: 0018:ffffc900092179e0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff92001242f48 RCX: 1ad99545873eca00 RDX: dffffc0000000000 RSI: ffffffff8c0ae6e0 RDI: ffffffff8c607c40 RBP: ffffc90009217b40 R08: ffffffff93737807 R09: 1ffffffff26e6f00 R10: dffffc0000000000 R11: fffffbfff26e6f01 R12: 1ffff92001242f44 R13: dffffc0000000000 R14: ffffc90009217a40 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:326 [inline] rcu_read_lock include/linux/rcupdate.h:838 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] batadv_nc_worker+0xec/0x610 net/batman-adv/network-coding.c:719 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd40 kernel/workqueue.c:3390 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:144 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 rcu: rcu_preempt kthread starved for 10527 jiffies! g107505 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1 rcu: Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior. rcu: RCU grace-period kthread stack dump: task:rcu_preempt state:R running task stack:25584 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 __schedule_loop kernel/sched/core.c:6680 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6695 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2581 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2034 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2236 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:144 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline] NMI backtrace for cpu 1 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:106 [inline] NMI backtrace for cpu 1 skipped: idling at acpi_safe_halt+0x21/0x30 drivers/acpi/processor_idle.c:111 DEBUG: waiting rtnl_mutex for 10722 jiffies. task:syz.0.2253 state:D stack:25696 pid:16253 tgid:16251 ppid:12672 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 __schedule_loop kernel/sched/core.c:6680 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6695 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6752 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752 rtnl_lock net/core/rtnetlink.c:149 [inline] rtnetlink_rcv_msg+0x6eb/0xd00 net/core/rtnetlink.c:6731 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2597 ___sys_sendmsg net/socket.c:2651 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff322b773b9 RSP: 002b:00007ff32386d048 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007ff322d06058 RCX: 00007ff322b773b9 RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000007 RBP: 00007ff322be48e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007ff322d06058 R15: 00007fffa35d88c8 DEBUG: holding rtnl_mutex for 10958 jiffies. task:syz.2.2239 state:R running task stack:25288 pid:16200 tgid:16199 ppid:12528 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6925 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:synchronize_rcu+0x0/0x360 kernel/rcu/tree.c:4010 Code: e1 07 80 c1 03 38 c1 0f 8c 97 fe ff ff 4c 89 f7 e8 65 38 81 00 e9 8a fe ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 RSP: 0018:ffffc900131a7418 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff92002634e8c RCX: ffffffff94f2f903 RDX: 0000000000000001 RSI: ffffffff8c0ae240 RDI: ffffffff8c607c40 RBP: ffffc900131a74f8 R08: ffffffff94f1d567 R09: 1ffffffff29e3aac R10: dffffc0000000000 R11: fffffbfff29e3aad R12: ffffffff94f1aeb8 R13: 1ffff92002634e88 R14: 0000000000000202 R15: ffffc900131a7460 lockdep_unregister_key+0x4b7/0x540 kernel/locking/lockdep.c:6548 __qdisc_destroy+0x165/0x410 net/sched/sch_generic.c:1079 netdev_for_each_tx_queue include/linux/netdevice.h:2513 [inline] dev_shutdown+0x9b/0x450 net/sched/sch_generic.c:1490 unregister_netdevice_many_notify+0x97b/0x1c40 net/core/dev.c:11333 unregister_netdevice_many net/core/dev.c:11405 [inline] unregister_netdevice_queue+0x303/0x370 net/core/dev.c:11280 unregister_netdevice include/linux/netdevice.h:3129 [inline] __tun_detach+0x6b9/0x1600 drivers/net/tun.c:685 tun_detach drivers/net/tun.c:701 [inline] tun_chr_close+0x108/0x1b0 drivers/net/tun.c:3510 __fput+0x24a/0x8a0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:222 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa2f/0x27f0 kernel/exit.c:882 do_group_exit+0x207/0x2c0 kernel/exit.c:1031 get_signal+0x16a1/0x1740 kernel/signal.c:2917 arch_do_signal_or_restart+0x96/0x830 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f011e7773b9 RSP: 002b:00007f011f4bc048 EFLAGS: 00000246 ORIG_RAX: 0000000000000110 RAX: fffffffffffffffc RBX: 00007f011e905f80 RCX: 00007f011e7773b9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000068060200 RBP: 00007f011e7e48e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f011e905f80 R15: 00007ffc990ade28 DEBUG: waiting rtnl_mutex for 10952 jiffies. task:syz.1.2249 state:D stack:26328 pid:16240 tgid:16239 ppid:12527 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 __schedule_loop kernel/sched/core.c:6680 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6695 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6752 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752 do_ipv6_setsockopt+0x9e4/0x3630 net/ipv6/ipv6_sockglue.c:566 ipv6_setsockopt+0x5c/0x1a0 net/ipv6/ipv6_sockglue.c:993 do_sock_setsockopt+0x3af/0x720 net/socket.c:2324 __sys_setsockopt+0x1ae/0x250 net/socket.c:2347 __do_sys_setsockopt net/socket.c:2356 [inline] __se_sys_setsockopt net/socket.c:2353 [inline] __x64_sys_setsockopt+0xb5/0xd0 net/socket.c:2353 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff0f93773b9 RSP: 002b:00007ff0fa208048 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007ff0f9505f80 RCX: 00007ff0f93773b9 RDX: 000000000000002a RSI: 0000000000000029 RDI: 0000000000000003 RBP: 00007ff0f93e48e6 R08: 0000000000000088 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007ff0f9505f80 R15: 00007ffc926c7ff8 Showing all locks held in the system: 6 locks held by kworker/0:0/8: 6 locks held by kworker/0:1/9: 2 locks held by kworker/u8:0/11: 3 locks held by kworker/u8:6/2502: 3 locks held by kworker/u8:10/3015: 2 locks held by getty/4979: #0: ffff88802b2630a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2211 2 locks held by kworker/0:6/5275: 1 lock held by syz.2.2239/16200: 1 lock held by syz.1.2249/16240: #0: ffffffff8fc81d48 (rtnl_mutex){+.+.}-{3:3}, at: do_ipv6_setsockopt+0x9e4/0x3630 net/ipv6/ipv6_sockglue.c:566 2 locks held by syz.3.2252/16250: 1 lock held by syz.0.2253/16252: 1 lock held by syz.0.2253/16253: #0: ffffffff8fc81d48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:149 [inline] #0: ffffffff8fc81d48 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x6eb/0xd00 net/core/rtnetlink.c:6731 ============================================= DEBUG: waiting rtnl_mutex for 10938 jiffies. task:syz.0.2253 state:D stack:25696 pid:16253 tgid:16251 ppid:12672 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 __schedule_loop kernel/sched/core.c:6680 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6695 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6752 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752 rtnl_lock net/core/rtnetlink.c:149 [inline] rtnetlink_rcv_msg+0x6eb/0xd00 net/core/rtnetlink.c:6731 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2597 ___sys_sendmsg net/socket.c:2651 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff322b773b9 RSP: 002b:00007ff32386d048 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007ff322d06058 RCX: 00007ff322b773b9 RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000007 RBP: 00007ff322be48e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007ff322d06058 R15: 00007fffa35d88c8 DEBUG: holding rtnl_mutex for 11174 jiffies. task:syz.2.2239 state:R running task stack:25288 pid:16200 tgid:16199 ppid:12528 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6925 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:synchronize_rcu+0x0/0x360 kernel/rcu/tree.c:4010 Code: e1 07 80 c1 03 38 c1 0f 8c 97 fe ff ff 4c 89 f7 e8 65 38 81 00 e9 8a fe ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 RSP: 0018:ffffc900131a7418 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff92002634e8c RCX: ffffffff94f2f903 RDX: 0000000000000001 RSI: ffffffff8c0ae240 RDI: ffffffff8c607c40 RBP: ffffc900131a74f8 R08: ffffffff94f1d567 R09: 1ffffffff29e3aac R10: dffffc0000000000 R11: fffffbfff29e3aad R12: ffffffff94f1aeb8 R13: 1ffff92002634e88 R14: 0000000000000202 R15: ffffc900131a7460 lockdep_unregister_key+0x4b7/0x540 kernel/locking/lockdep.c:6548 __qdisc_destroy+0x165/0x410 net/sched/sch_generic.c:1079 netdev_for_each_tx_queue include/linux/netdevice.h:2513 [inline] dev_shutdown+0x9b/0x450 net/sched/sch_generic.c:1490 unregister_netdevice_many_notify+0x97b/0x1c40 net/core/dev.c:11333 unregister_netdevice_many net/core/dev.c:11405 [inline] unregister_netdevice_queue+0x303/0x370 net/core/dev.c:11280 unregister_netdevice include/linux/netdevice.h:3129 [inline] __tun_detach+0x6b9/0x1600 drivers/net/tun.c:685 tun_detach drivers/net/tun.c:701 [inline] tun_chr_close+0x108/0x1b0 drivers/net/tun.c:3510 __fput+0x24a/0x8a0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:222 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa2f/0x27f0 kernel/exit.c:882 do_group_exit+0x207/0x2c0 kernel/exit.c:1031 get_signal+0x16a1/0x1740 kernel/signal.c:2917 arch_do_signal_or_restart+0x96/0x830 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f011e7773b9 RSP: 002b:00007f011f4bc048 EFLAGS: 00000246 ORIG_RAX: 0000000000000110 RAX: fffffffffffffffc RBX: 00007f011e905f80 RCX: 00007f011e7773b9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000068060200 RBP: 00007f011e7e48e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f011e905f80 R15: 00007ffc990ade28 DEBUG: waiting rtnl_mutex for 11168 jiffies. task:syz.1.2249 state:D stack:26328 pid:16240 tgid:16239 ppid:12527 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 __schedule_loop kernel/sched/core.c:6680 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6695 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6752 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752 do_ipv6_setsockopt+0x9e4/0x3630 net/ipv6/ipv6_sockglue.c:566 ipv6_setsockopt+0x5c/0x1a0 net/ipv6/ipv6_sockglue.c:993 do_sock_setsockopt+0x3af/0x720 net/socket.c:2324 __sys_setsockopt+0x1ae/0x250 net/socket.c:2347 __do_sys_setsockopt net/socket.c:2356 [inline] __se_sys_setsockopt net/socket.c:2353 [inline] __x64_sys_setsockopt+0xb5/0xd0 net/socket.c:2353 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff0f93773b9 RSP: 002b:00007ff0fa208048 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007ff0f9505f80 RCX: 00007ff0f93773b9 RDX: 000000000000002a RSI: 0000000000000029 RDI: 0000000000000003 RBP: 00007ff0f93e48e6 R08: 0000000000000088 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007ff0f9505f80 R15: 00007ffc926c7ff8 Showing all locks held in the system: 6 locks held by kworker/0:0/8: 6 locks held by kworker/0:1/9: 2 locks held by kworker/u8:0/11: 3 locks held by kworker/u8:6/2502: 3 locks held by kworker/u8:10/3015: 2 locks held by getty/4979: #0: ffff88802b2630a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2211 2 locks held by kworker/0:6/5275: 1 lock held by syz.2.2239/16200: 1 lock held by syz.1.2249/16240: #0: ffffffff8fc81d48 (rtnl_mutex){+.+.}-{3:3}, at: do_ipv6_setsockopt+0x9e4/0x3630 net/ipv6/ipv6_sockglue.c:566 2 locks held by syz.3.2252/16250: 1 lock held by syz.0.2253/16252: 1 lock held by syz.0.2253/16253: #0: ffffffff8fc81d48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:149 [inline] #0: ffffffff8fc81d48 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x6eb/0xd00 net/core/rtnetlink.c:6731 ============================================= DEBUG: waiting rtnl_mutex for 11154 jiffies. task:syz.0.2253 state:D stack:25696 pid:16253 tgid:16251 ppid:12672 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 __schedule_loop kernel/sched/core.c:6680 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6695 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6752 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752 rtnl_lock net/core/rtnetlink.c:149 [inline] rtnetlink_rcv_msg+0x6eb/0xd00 net/core/rtnetlink.c:6731 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2597 ___sys_sendmsg net/socket.c:2651 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff322b773b9 RSP: 002b:00007ff32386d048 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007ff322d06058 RCX: 00007ff322b773b9 RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000007 RBP: 00007ff322be48e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007ff322d06058 R15: 00007fffa35d88c8 DEBUG: holding rtnl_mutex for 11390 jiffies. task:syz.2.2239 state:R running task stack:25288 pid:16200 tgid:16199 ppid:12528 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6925 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:synchronize_rcu+0x0/0x360 kernel/rcu/tree.c:4010 Code: e1 07 80 c1 03 38 c1 0f 8c 97 fe ff ff 4c 89 f7 e8 65 38 81 00 e9 8a fe ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 RSP: 0018:ffffc900131a7418 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff92002634e8c RCX: ffffffff94f2f903 RDX: 0000000000000001 RSI: ffffffff8c0ae240 RDI: ffffffff8c607c40 RBP: ffffc900131a74f8 R08: ffffffff94f1d567 R09: 1ffffffff29e3aac R10: dffffc0000000000 R11: fffffbfff29e3aad R12: ffffffff94f1aeb8 R13: 1ffff92002634e88 R14: 0000000000000202 R15: ffffc900131a7460 lockdep_unregister_key+0x4b7/0x540 kernel/locking/lockdep.c:6548 __qdisc_destroy+0x165/0x410 net/sched/sch_generic.c:1079 netdev_for_each_tx_queue include/linux/netdevice.h:2513 [inline] dev_shutdown+0x9b/0x450 net/sched/sch_generic.c:1490 unregister_netdevice_many_notify+0x97b/0x1c40 net/core/dev.c:11333 unregister_netdevice_many net/core/dev.c:11405 [inline] unregister_netdevice_queue+0x303/0x370 net/core/dev.c:11280 unregister_netdevice include/linux/netdevice.h:3129 [inline] __tun_detach+0x6b9/0x1600 drivers/net/tun.c:685 tun_detach drivers/net/tun.c:701 [inline] tun_chr_close+0x108/0x1b0 drivers/net/tun.c:3510 __fput+0x24a/0x8a0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:222 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa2f/0x27f0 kernel/exit.c:882 do_group_exit+0x207/0x2c0 kernel/exit.c:1031 get_signal+0x16a1/0x1740 kernel/signal.c:2917 arch_do_signal_or_restart+0x96/0x830 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f011e7773b9 RSP: 002b:00007f011f4bc048 EFLAGS: 00000246 ORIG_RAX: 0000000000000110 RAX: fffffffffffffffc RBX: 00007f011e905f80 RCX: 00007f011e7773b9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000068060200 RBP: 00007f011e7e48e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f011e905f80 R15: 00007ffc990ade28 DEBUG: waiting rtnl_mutex for 11384 jiffies. task:syz.1.2249 state:D stack:26328 pid:16240 tgid:16239 ppid:12527 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 __schedule_loop kernel/sched/core.c:6680 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6695 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6752 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752 do_ipv6_setsockopt+0x9e4/0x3630 net/ipv6/ipv6_sockglue.c:566 ipv6_setsockopt+0x5c/0x1a0 net/ipv6/ipv6_sockglue.c:993 do_sock_setsockopt+0x3af/0x720 net/socket.c:2324 __sys_setsockopt+0x1ae/0x250 net/socket.c:2347 __do_sys_setsockopt net/socket.c:2356 [inline] __se_sys_setsockopt net/socket.c:2353 [inline] __x64_sys_setsockopt+0xb5/0xd0 net/socket.c:2353 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff0f93773b9 RSP: 002b:00007ff0fa208048 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007ff0f9505f80 RCX: 00007ff0f93773b9 RDX: 000000000000002a RSI: 0000000000000029 RDI: 0000000000000003 RBP: 00007ff0f93e48e6 R08: 0000000000000088 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007ff0f9505f80 R15: 00007ffc926c7ff8 Showing all locks held in the system: 6 locks held by kworker/0:0/8: 6 locks held by kworker/0:1/9: 2 locks held by kworker/u8:0/11: 3 locks held by kworker/u8:6/2502: 3 locks held by kworker/u8:10/3015: 2 locks held by getty/4979: #0: ffff88802b2630a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2211 2 locks held by kworker/0:6/5275: 1 lock held by syz.2.2239/16200: 1 lock held by syz.1.2249/16240: #0: ffffffff8fc81d48 (rtnl_mutex){+.+.}-{3:3}, at: do_ipv6_setsockopt+0x9e4/0x3630 net/ipv6/ipv6_sockglue.c:566 2 locks held by syz.3.2252/16250: 1 lock held by syz.0.2253/16252: 1 lock held by syz.0.2253/16253: #0: ffffffff8fc81d48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:149 [inline] #0: ffffffff8fc81d48 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x6eb/0xd00 net/core/rtnetlink.c:6731 ============================================= DEBUG: waiting rtnl_mutex for 11370 jiffies. task:syz.0.2253 state:D stack:25696 pid:16253 tgid:16251 ppid:12672 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 __schedule_loop kernel/sched/core.c:6680 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6695 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6752 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752 rtnl_lock net/core/rtnetlink.c:149 [inline] rtnetlink_rcv_msg+0x6eb/0xd00 net/core/rtnetlink.c:6731 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2597 ___sys_sendmsg net/socket.c:2651 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff322b773b9 RSP: 002b:00007ff32386d048 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007ff322d06058 RCX: 00007ff322b773b9 RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000007 RBP: 00007ff322be48e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007ff322d06058 R15: 00007fffa35d88c8 DEBUG: holding rtnl_mutex for 11606 jiffies. task:syz.2.2239 state:R running task stack:25288 pid:16200 tgid:16199 ppid:12528 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6925 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:synchronize_rcu+0x0/0x360 kernel/rcu/tree.c:4010 Code: e1 07 80 c1 03 38 c1 0f 8c 97 fe ff ff 4c 89 f7 e8 65 38 81 00 e9 8a fe ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 RSP: 0018:ffffc900131a7418 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff92002634e8c RCX: ffffffff94f2f903 RDX: 0000000000000001 RSI: ffffffff8c0ae240 RDI: ffffffff8c607c40 RBP: ffffc900131a74f8 R08: ffffffff94f1d567 R09: 1ffffffff29e3aac R10: dffffc0000000000 R11: fffffbfff29e3aad R12: ffffffff94f1aeb8 R13: 1ffff92002634e88 R14: 0000000000000202 R15: ffffc900131a7460 lockdep_unregister_key+0x4b7/0x540 kernel/locking/lockdep.c:6548 __qdisc_destroy+0x165/0x410 net/sched/sch_generic.c:1079 netdev_for_each_tx_queue include/linux/netdevice.h:2513 [inline] dev_shutdown+0x9b/0x450 net/sched/sch_generic.c:1490 unregister_netdevice_many_notify+0x97b/0x1c40 net/core/dev.c:11333 unregister_netdevice_many net/core/dev.c:11405 [inline] unregister_netdevice_queue+0x303/0x370 net/core/dev.c:11280 unregister_netdevice include/linux/netdevice.h:3129 [inline] __tun_detach+0x6b9/0x1600 drivers/net/tun.c:685 tun_detach drivers/net/tun.c:701 [inline] tun_chr_close+0x108/0x1b0 drivers/net/tun.c:3510 __fput+0x24a/0x8a0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:222 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa2f/0x27f0 kernel/exit.c:882 do_group_exit+0x207/0x2c0 kernel/exit.c:1031 get_signal+0x16a1/0x1740 kernel/signal.c:2917 arch_do_signal_or_restart+0x96/0x830 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f011e7773b9 RSP: 002b:00007f011f4bc048 EFLAGS: 00000246 ORIG_RAX: 0000000000000110 RAX: fffffffffffffffc RBX: 00007f011e905f80 RCX: 00007f011e7773b9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000068060200 RBP: 00007f011e7e48e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f011e905f80 R15: 00007ffc990ade28 DEBUG: waiting rtnl_mutex for 11599 jiffies. task:syz.1.2249 state:D stack:26328 pid:16240 tgid:16239 ppid:12527 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 __schedule_loop kernel/sched/core.c:6680 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6695 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6752 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752 do_ipv6_setsockopt+0x9e4/0x3630 net/ipv6/ipv6_sockglue.c:566 ipv6_setsockopt+0x5c/0x1a0 net/ipv6/ipv6_sockglue.c:993 do_sock_setsockopt+0x3af/0x720 net/socket.c:2324 __sys_setsockopt+0x1ae/0x250 net/socket.c:2347 __do_sys_setsockopt net/socket.c:2356 [inline] __se_sys_setsockopt net/socket.c:2353 [inline] __x64_sys_setsockopt+0xb5/0xd0 net/socket.c:2353 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff0f93773b9 RSP: 002b:00007ff0fa208048 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007ff0f9505f80 RCX: 00007ff0f93773b9 RDX: 000000000000002a RSI: 0000000000000029 RDI: 0000000000000003 RBP: 00007ff0f93e48e6 R08: 0000000000000088 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007ff0f9505f80 R15: 00007ffc926c7ff8 Showing all locks held in the system: 6 locks held by kworker/0:0/8: 6 locks held by kworker/0:1/9: 2 locks held by kworker/u8:0/11: 3 locks held by kworker/u8:6/2502: 3 locks held by kworker/u8:10/3015: 2 locks held by getty/4979: #0: ffff88802b2630a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2211 2 locks held by kworker/0:6/5275: 1 lock held by syz.2.2239/16200: 1 lock held by syz.1.2249/16240: #0: ffffffff8fc81d48 (rtnl_mutex){+.+.}-{3:3}, at: do_ipv6_setsockopt+0x9e4/0x3630 net/ipv6/ipv6_sockglue.c:566 2 locks held by syz.3.2252/16250: 1 lock held by syz.0.2253/16252: 1 lock held by syz.0.2253/16253: #0: ffffffff8fc81d48 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:149 [inline] #0: ffffffff8fc81d48 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x6eb/0xd00 net/core/rtnetlink.c:6731 ============================================= DEBUG: waiting rtnl_mutex for 11586 jiffies. task:syz.0.2253 state:D stack:25696 pid:16253 tgid:16251 ppid:12672 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 __schedule_loop kernel/sched/core.c:6680 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6695 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6752 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752 rtnl_lock net/core/rtnetlink.c:149 [inline] rtnetlink_rcv_msg+0x6eb/0xd00 net/core/rtnetlink.c:6731 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2597 ___sys_sendmsg net/socket.c:2651 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff322b773b9 RSP: 002b:00007ff32386d048 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007ff322d06058 RCX: 00007ff322b773b9 RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000007 RBP: 00007ff322be48e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007ff322d06058 R15: 00007fffa35d88c8 DEBUG: holding rtnl_mutex for 11822 jiffies. task:syz.2.2239 state:R running task stack:25288 pid:16200 tgid:16199 ppid:12528 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5239 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6603 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6925 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:synchronize_rcu+0x0/0x360 kernel/rcu/tree.c:4010 Code: e1 07 80 c1 03 38 c1 0f 8c 97 fe ff ff 4c 89 f7 e8 65 38 81 00 e9 8a fe ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 RSP: 0018:ffffc900131a7418 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff92002634e8c RCX: ffffffff94f2f903 RDX: 0000000000000001 RSI: ffffffff8c0ae240 RDI: ffffffff8c607c40 RBP: ffffc900131a74f8 R08: ffffffff94f1d567 R09: 1ffffffff29e3aac R10: dffffc0000000000 R11: fffffbfff29e3aad R12: ffffffff94f1aeb8 R13: 1ffff92002634e88 R14: 0000000000000202 R15: ffffc900131a7460 lockdep_unregister_key+0x4b7/0x540 kernel/locking/lockdep.c:6548 __qdisc_destroy+0x165/0x410 net/sched/sch_generic.c:1079 netdev_for_each_tx_queue include/linux/netdevice.h:2513 [inline] dev_shutdown+0x9b/0x450 net/sched/sch_generic.c:1490 unregister_netdevice_many_notify+0x97b/0x1c40 net/core/dev.c:11333 unregister_netdevice_many net/core/dev.c:11405 [inline] unregister_netdevice_queue+0x303/0x370 net/core/dev.c:11280 unregister_netdevice include/linux/netdevice.h:3129 [inline] __tun_detach+0x6b9/0x1600 drivers/net/tun.c:685