RDX: 0000000000000080 RSI: 000000c000039840 RDI: 0000000000000003 RBP: 000000c000039e40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000292 R11: 0000000000000246 R12: 0000000000000003 R13: 000000c000000f00 R14: 0000012ac6b2e34f R15: 000000000000862a ================================ WARNING: inconsistent lock state 4.19.206-syzkaller #0 Not tainted -------------------------------- inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-W} usage. syz-executor.1/28813 [HC0[0]:SC0[0]:HE1:SE1] takes: 000000003d4ba747 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}, at: spin_lock include/linux/spinlock.h:329 [inline] 000000003d4ba747 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}, at: sco_conn_del+0xe2/0x240 net/bluetooth/sco.c:175 {IN-SOFTIRQ-W} state was registered at: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] sco_sock_timeout+0x31/0x210 net/bluetooth/sco.c:82 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1696 [inline] run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709 __do_softirq+0x265/0x980 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x215/0x260 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 get_current arch/x86/include/asm/current.h:15 [inline] write_comp_data+0xf/0x70 kernel/kcov.c:121 PageCompound include/linux/page-flags.h:156 [inline] PageHuge+0x3a/0x160 mm/hugetlb.c:1374 page_remove_file_rmap+0x3e/0xa30 mm/rmap.c:1215 page_remove_rmap+0xe5/0x120 mm/rmap.c:1297 zap_pte_range mm/memory.c:1350 [inline] zap_pmd_range mm/memory.c:1463 [inline] zap_pud_range mm/memory.c:1492 [inline] zap_p4d_range mm/memory.c:1513 [inline] unmap_page_range+0x147d/0x2c50 mm/memory.c:1534 unmap_single_vma+0x198/0x300 mm/memory.c:1579 unmap_vmas+0xa9/0x180 mm/memory.c:1609 exit_mmap+0x2b9/0x530 mm/mmap.c:3093 __mmput kernel/fork.c:1015 [inline] mmput+0x14e/0x4a0 kernel/fork.c:1036 exit_mm kernel/exit.c:549 [inline] do_exit+0xaec/0x2be0 kernel/exit.c:857 do_group_exit+0x125/0x310 kernel/exit.c:967 get_signal+0x3f2/0x1f70 kernel/signal.c:2589 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe irq event stamp: 25359 hardirqs last enabled at (25359): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] hardirqs last enabled at (25359): [] _raw_spin_unlock_irq+0x24/0x80 kernel/locking/spinlock.c:192 hardirqs last disabled at (25358): [] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:126 [inline] hardirqs last disabled at (25358): [] _raw_spin_lock_irq+0x35/0x80 kernel/locking/spinlock.c:160 softirqs last enabled at (10652): [] __do_softirq+0x678/0x980 kernel/softirq.c:318 softirqs last disabled at (10631): [] invoke_softirq kernel/softirq.c:372 [inline] softirqs last disabled at (10631): [] irq_exit+0x215/0x260 kernel/softirq.c:412 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(slock-AF_BLUETOOTH-BTPROTO_SCO); lock(slock-AF_BLUETOOTH-BTPROTO_SCO); *** DEADLOCK *** 3 locks held by syz-executor.1/28813: #0: 00000000c07defe4 (&hdev->req_lock){+.+.}, at: hci_dev_do_close+0x196/0xf10 net/bluetooth/hci_core.c:1623 #1: 00000000cf2ed08a (&hdev->lock){+.+.}, at: hci_dev_do_close+0x2e0/0xf10 net/bluetooth/hci_core.c:1660 #2: 000000005f385810 (hci_cb_list_lock){+.+.}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1260 [inline] #2: 000000005f385810 (hci_cb_list_lock){+.+.}, at: hci_conn_hash_flush+0xda/0x260 net/bluetooth/hci_conn.c:1512 stack backtrace: CPU: 0 PID: 28813 Comm: syz-executor.1 Not tainted 4.19.206-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_usage_bug.cold+0x42e/0x570 kernel/locking/lockdep.c:2545 valid_state kernel/locking/lockdep.c:2558 [inline] mark_lock_irq kernel/locking/lockdep.c:2752 [inline] mark_lock+0xc70/0x1160 kernel/locking/lockdep.c:3132 mark_irqflags kernel/locking/lockdep.c:3028 [inline] __lock_acquire+0x6a8/0x3ff0 kernel/locking/lockdep.c:3373 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] sco_conn_del+0xe2/0x240 net/bluetooth/sco.c:175 sco_disconn_cfm+0x74/0xb0 net/bluetooth/sco.c:1133 hci_disconn_cfm include/net/bluetooth/hci_core.h:1263 [inline] hci_conn_hash_flush+0x127/0x260 net/bluetooth/hci_conn.c:1512 hci_dev_do_close+0x659/0xf10 net/bluetooth/hci_core.c:1673 hci_unregister_dev+0x14f/0x460 net/bluetooth/hci_core.c:3274 vhci_release+0x70/0xe0 drivers/bluetooth/hci_vhci.c:354 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xbf3/0x2be0 kernel/exit.c:870 do_group_exit+0x125/0x310 kernel/exit.c:967 get_signal+0x3f2/0x1f70 kernel/signal.c:2589 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f663930b739 Code: Bad RIP value. RSP: 002b:00007f6636882218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f663940ff88 RCX: 00007f663930b739 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f663940ff88 Mem-Info: RBP: 00007f663940ff80 R08: 0000000000000000 R09: 0000000000000000 active_anon:324665 inactive_anon:4941 isolated_anon:0 active_file:15 inactive_file:1614 isolated_file:0 unevictable:0 dirty:0 writeback:0 unstable:0 slab_reclaimable:13686 slab_unreclaimable:1070118 mapped:37746 shmem:5214 pagetables:23915 bounce:0 free:179565 free_pcp:1329 free_cma:0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f663940ff8c R13: 00007fffd0f2403f R14: 00007f6636882300 R15: 0000000000022000 Node 0 active_anon:1244040kB inactive_anon:19752kB active_file:140kB inactive_file:7964kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:152592kB dirty:68kB writeback:0kB shmem:19816kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 864256kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes Node 1 active_anon:54540kB inactive_anon:0kB active_file:0kB inactive_file:4kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:0kB dirty:0kB writeback:0kB shmem:1040kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes Node 0 DMA free:10852kB min:204kB low:252kB high:300kB active_anon:4156kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB kernel_stack:0kB pagetables:40kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 2693 2695 2695 2695 Node 0 DMA32 free:567204kB min:35996kB low:44992kB high:53988kB active_anon:1239784kB inactive_anon:19752kB active_file:240kB inactive_file:7964kB unevictable:0kB writepending:68kB present:3129332kB managed:2763456kB mlocked:0kB kernel_stack:29376kB pagetables:51632kB bounce:0kB free_pcp:2820kB local_pcp:1324kB free_cma:0kB lowmem_reserve[]: 0 0 1 1 1 Node 0 Normal free:8kB min:24kB low:28kB high:32kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:1048576kB managed:2000kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 0 Node 1 Normal free:1973384kB min:53876kB low:67344kB high:80812kB active_anon:54540kB inactive_anon:0kB active_file:0kB inactive_file:4kB unevictable:0kB writepending:0kB present:4194304kB managed:4128248kB mlocked:0kB kernel_stack:17088kB pagetables:44080kB bounce:0kB free_pcp:2740kB local_pcp:1280kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 0 Node 0 DMA: 12*4kB (UME) 26*8kB (UME) 21*16kB (UME) 9*32kB (UME) 3*64kB (ME) 2*128kB (UE) 1*256kB (E) 3*512kB (UME) 2*1024kB (ME) 1*2048kB (E) 1*4096kB (M) = 11312kB Node 0 DMA32: 4570*4kB (UMEH) 14173*8kB (UMEH) 7382*16kB (UMEH) 3713*32kB (UMEH) 815*64kB (UMEH) 301*128kB (UME) 162*256kB (UME) 89*512kB (U) 51*1024kB (U) 27*2048kB (UM) 2*4096kB (UM) = 662032kB Node 0 Normal: 0*4kB 1*8kB (U) 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 8kB Node 1 Normal: 1730*4kB (UM) 720*8kB (UM) 406*16kB (UM) 311*32kB (UM) 248*64kB (UM) 196*128kB (UM) 165*256kB (UM) 103*512kB (UM) 50*1024kB (UM) 24*2048kB (UM) 582*4096kB (U) = 2649288kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB Node 1 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB Node 1 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 7349 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 2097051 pages RAM 0 pages HighMem/MovableOnly 369648 pages reserved 0 pages cma reserved Out of memory (oom_kill_allocating_task): Kill process 8094 (syz-fuzzer) score 0 or sacrifice child Killed process 8118 (syz-executor.0) total-vm:85072kB, anon-rss:384kB, file-rss:0kB, shmem-rss:0kB base_sock_release(00000000ceb64ad8) sk=0000000080d28c8c batman_adv: batadv0: Interface deactivated: batadv_slave_0 batman_adv: batadv0: Removing interface: batadv_slave_0 batman_adv: batadv0: Interface deactivated: batadv_slave_1 batman_adv: batadv0: Removing interface: batadv_slave_1 device bridge_slave_1 left promiscuous mode bridge0: port 2(bridge_slave_1) entered disabled state device bridge_slave_0 left promiscuous mode bridge0: port 1(bridge_slave_0) entered disabled state device veth1_macvtap left promiscuous mode device veth0_macvtap left promiscuous mode device veth1_vlan left promiscuous mode device veth0_vlan left promiscuous mode device hsr_slave_1 left promiscuous mode device hsr_slave_0 left promiscuous mode team0 (unregistering): Port device team_slave_1 removed team0 (unregistering): Port device team_slave_0 removed bond0 (unregistering): Releasing backup interface bond_slave_1 bond0 (unregistering): Releasing backup interface bond_slave_0 bond0 (unregistering): Released all slaves IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 Bluetooth: hci0: command 0x0409 tx timeout IPVS: ftp: loaded support on port[0] = 21 chnl_net:caif_netlink_parms(): no params data found chnl_net:caif_netlink_parms(): no params data found chnl_net:caif_netlink_parms(): no params data found