BUG: sleeping function called from invalid context at kernel/workqueue.c:3039 in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 21738, name: systemd-rfkill preempt_count: 100, expected: 0 RCU nest depth: 0, expected: 0 1 lock held by systemd-rfkill/21738: #0: ffffc9000645fcb8 ((&dum_hcd->timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:35 [inline] #0: ffffc9000645fcb8 ((&dum_hcd->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 kernel/time/timer.c:1411 irq event stamp: 16759 hardirqs last enabled at (16758): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (16758): [] _raw_spin_unlock_irq+0x1f/0x40 kernel/locking/spinlock.c:202 hardirqs last disabled at (16759): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (16759): [] _raw_spin_lock_irqsave+0x4e/0x50 kernel/locking/spinlock.c:162 softirqs last enabled at (14310): [] invoke_softirq kernel/softirq.c:432 [inline] softirqs last enabled at (14310): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637 softirqs last disabled at (16751): [] invoke_softirq kernel/softirq.c:432 [inline] softirqs last disabled at (16751): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637 Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:396 [inline] [] __do_softirq+0xe1/0x9c2 kernel/softirq.c:534 CPU: 1 PID: 21738 Comm: systemd-rfkill Not tainted 5.16.0-rc4-next-20211208-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9583 start_flush_work kernel/workqueue.c:3039 [inline] __flush_work+0x109/0xb10 kernel/workqueue.c:3103 __cancel_work_timer+0x3f9/0x570 kernel/workqueue.c:3191 hci_cmd_sync_cancel net/bluetooth/hci_sync.c:346 [inline] hci_cmd_sync_cancel+0xe1/0x170 net/bluetooth/hci_sync.c:338 btusb_intr_complete+0x3d3/0x4a0 drivers/bluetooth/btusb.c:969 __usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1656 usb_hcd_giveback_urb+0x367/0x410 drivers/usb/core/hcd.c:1726 dummy_timer+0x11f9/0x32b0 drivers/usb/gadget/udc/dummy_hcd.c:1987 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1421 expire_timers kernel/time/timer.c:1466 [inline] __run_timers.part.0+0x675/0xa20 kernel/time/timer.c:1734 __run_timers kernel/time/timer.c:1715 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1747 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x45/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0033:0x7ff31d9b3f17 Code: ff ff ff 48 8b 4d a0 0f b7 51 fe 48 8b 4d a8 66 89 54 08 fe e9 1a ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 b8 27 00 00 00 0f 05 0f 1f 84 00 00 00 00 00 b8 6e 00 00 00 0f 05 c3 0f 1f 84 00 00 RSP: 002b:00007ffe501ec6f8 EFLAGS: 00000297 RAX: 00000000000054ea RBX: 0000000000000007 RCX: 00007ff31d9b3f17 RDX: 0000200004100000 RSI: 00007ff31dc94b58 RDI: 00007ff31dff372c RBP: 0000000000000007 R08: 0000000000000041 R09: 0000000000000000 R10: 0000000000020d50 R11: 0000000000000297 R12: 000055cadc784f90 R13: 00007ffe501ec880 R14: 0000000000000000 R15: 0000000000000000 BUG: sleeping function called from invalid context at kernel/workqueue.c:3039 in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 13870, name: syz-executor.4 preempt_count: 100, expected: 0 RCU nest depth: 0, expected: 0 1 lock held by syz-executor.4/13870: #0: ffffc90000dc0d70 ((&dum_hcd->timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:35 [inline] #0: ffffc90000dc0d70 ((&dum_hcd->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 kernel/time/timer.c:1411 irq event stamp: 3742383 hardirqs last enabled at (3742382): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (3742382): [] _raw_spin_unlock_irq+0x1f/0x40 kernel/locking/spinlock.c:202 hardirqs last disabled at (3742383): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (3742383): [] _raw_spin_lock_irqsave+0x4e/0x50 kernel/locking/spinlock.c:162 softirqs last enabled at (3742372): [] do_ip_getsockopt+0x2e6/0x18f0 net/ipv4/ip_sockglue.c:1737 softirqs last disabled at (3742375): [] invoke_softirq kernel/softirq.c:432 [inline] softirqs last disabled at (3742375): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637 Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:396 [inline] [] __do_softirq+0xe1/0x9c2 kernel/softirq.c:534 CPU: 1 PID: 13870 Comm: syz-executor.4 Tainted: G W 5.16.0-rc4-next-20211208-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9583 start_flush_work kernel/workqueue.c:3039 [inline] __flush_work+0x109/0xb10 kernel/workqueue.c:3103 __cancel_work_timer+0x3f9/0x570 kernel/workqueue.c:3191 hci_cmd_sync_cancel net/bluetooth/hci_sync.c:346 [inline] hci_cmd_sync_cancel+0xe1/0x170 net/bluetooth/hci_sync.c:338 btusb_intr_complete+0x3d3/0x4a0 drivers/bluetooth/btusb.c:969 __usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1656 usb_hcd_giveback_urb+0x367/0x410 drivers/usb/core/hcd.c:1726 dummy_timer+0x11f9/0x32b0 drivers/usb/gadget/udc/dummy_hcd.c:1987 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1421 expire_timers kernel/time/timer.c:1466 [inline] __run_timers.part.0+0x675/0xa20 kernel/time/timer.c:1734 __run_timers kernel/time/timer.c:1715 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1747 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:get_info+0x0/0x750 net/ipv4/netfilter/arp_tables.c:792 Code: ff ff e8 73 8d e4 f9 e9 f0 f4 ff ff 48 8b bc 24 80 00 00 00 e8 61 8d e4 f9 e9 bf f4 ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 <41> 57 41 56 41 55 49 89 f5 41 54 49 89 fc 55 48 89 d5 53 48 bb 00 RSP: 0018:ffffc90002f07be0 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: 1ffff920005e0f82 RCX: 0000000000000000 RDX: ffffc90002f07d80 RSI: 00007fff149ed090 RDI: ffff888064cacec0 RBP: 0000000000000060 R08: ffffffff8abcb3e0 R09: ffffffff87de9498 R10: 0000000000000003 R11: 0000000000000060 R12: ffff88807cacc800 R13: ffffc90002f07d80 R14: ffff88807cacc830 R15: 0000000000000001 do_arpt_get_ctl+0x474/0x8f0 net/ipv4/netfilter/arp_tables.c:1444 nf_getsockopt+0x72/0xd0 net/netfilter/nf_sockopt.c:116 ip_getsockopt net/ipv4/ip_sockglue.c:1786 [inline] ip_getsockopt+0x164/0x1c0 net/ipv4/ip_sockglue.c:1765 tcp_getsockopt+0x86/0xd0 net/ipv4/tcp.c:4285 __sys_getsockopt+0x21f/0x5f0 net/socket.c:2220 __do_sys_getsockopt net/socket.c:2235 [inline] __se_sys_getsockopt net/socket.c:2232 [inline] __x64_sys_getsockopt+0xba/0x150 net/socket.c:2232 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+0x44/0xae RIP: 0033:0x7f566148711a Code: 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 37 00 00 00 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:00007fff149ed078 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 00007fff149ed08c RCX: 00007f566148711a RDX: 0000000000000060 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000003 R08: 00007fff149ed08c R09: ffffffffffffff00 R10: 00007fff149ed090 R11: 0000000000000246 R12: 00007fff149ed090 R13: 0000000000000000 R14: 0000000000000004 R15: 00007fff149ed7f0 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: e8 73 8d e4 f9 callq 0xf9e48d78 5: e9 f0 f4 ff ff jmpq 0xfffff4fa a: 48 8b bc 24 80 00 00 mov 0x80(%rsp),%rdi 11: 00 12: e8 61 8d e4 f9 callq 0xf9e48d78 17: e9 bf f4 ff ff jmpq 0xfffff4db 1c: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 23: 00 00 00 00 27: 90 nop * 28: 41 57 push %r15 <-- trapping instruction 2a: 41 56 push %r14 2c: 41 55 push %r13 2e: 49 89 f5 mov %rsi,%r13 31: 41 54 push %r12 33: 49 89 fc mov %rdi,%r12 36: 55 push %rbp 37: 48 89 d5 mov %rdx,%rbp 3a: 53 push %rbx 3b: 48 rex.W 3c: bb .byte 0xbb