netlink: 13 bytes leftover after parsing attributes in process `syz-executor.1'. ================================ WARNING: inconsistent lock state 4.19.172-syzkaller #0 Not tainted -------------------------------- inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-W} usage. syz-executor.5/6944 [HC0[0]:SC0[0]:HE1:SE1] takes: 000000005f84e9cc (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}, at: spin_lock syzkaller/managers/linux-4-19/kernel/./include/linux/spinlock.h:329 [inline] 000000005f84e9cc (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}, at: sco_conn_del+0xe2/0x240 syzkaller/managers/linux-4-19/kernel/net/bluetooth/sco.c:175 {IN-SOFTIRQ-W} state was registered at: __raw_spin_lock syzkaller/managers/linux-4-19/kernel/./include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 syzkaller/managers/linux-4-19/kernel/kernel/locking/spinlock.c:144 spin_lock syzkaller/managers/linux-4-19/kernel/./include/linux/spinlock.h:329 [inline] sco_sock_timeout+0x31/0x210 syzkaller/managers/linux-4-19/kernel/net/bluetooth/sco.c:82 call_timer_fn+0x177/0x700 syzkaller/managers/linux-4-19/kernel/kernel/time/timer.c:1338 expire_timers+0x243/0x4e0 syzkaller/managers/linux-4-19/kernel/kernel/time/timer.c:1375 __run_timers syzkaller/managers/linux-4-19/kernel/kernel/time/timer.c:1696 [inline] run_timer_softirq+0x21c/0x670 syzkaller/managers/linux-4-19/kernel/kernel/time/timer.c:1709 __do_softirq+0x265/0x980 syzkaller/managers/linux-4-19/kernel/kernel/softirq.c:292 invoke_softirq syzkaller/managers/linux-4-19/kernel/kernel/softirq.c:372 [inline] irq_exit+0x215/0x260 syzkaller/managers/linux-4-19/kernel/kernel/softirq.c:412 exiting_irq syzkaller/managers/linux-4-19/kernel/./arch/x86/include/asm/apic.h:545 [inline] smp_apic_timer_interrupt+0x136/0x550 syzkaller/managers/linux-4-19/kernel/arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 syzkaller/managers/linux-4-19/kernel/arch/x86/entry/entry_64.S:894 native_safe_halt+0xe/0x10 syzkaller/managers/linux-4-19/kernel/./arch/x86/include/asm/irqflags.h:60 arch_safe_halt syzkaller/managers/linux-4-19/kernel/./arch/x86/include/asm/paravirt.h:94 [inline] default_idle+0x49/0x310 syzkaller/managers/linux-4-19/kernel/arch/x86/kernel/process.c:557 cpuidle_idle_call syzkaller/managers/linux-4-19/kernel/kernel/sched/idle.c:153 [inline] do_idle+0x2ec/0x4b0 syzkaller/managers/linux-4-19/kernel/kernel/sched/idle.c:263 cpu_startup_entry+0xc5/0xe0 syzkaller/managers/linux-4-19/kernel/kernel/sched/idle.c:369 start_kernel+0x8d6/0x911 syzkaller/managers/linux-4-19/kernel/init/main.c:736 secondary_startup_64+0xa4/0xb0 syzkaller/managers/linux-4-19/kernel/arch/x86/kernel/head_64.S:243 irq event stamp: 1088877 hardirqs last enabled at (1088877): [] __raw_spin_unlock_irq syzkaller/managers/linux-4-19/kernel/./include/linux/spinlock_api_smp.h:168 [inline] hardirqs last enabled at (1088877): [] _raw_spin_unlock_irq+0x24/0x80 syzkaller/managers/linux-4-19/kernel/kernel/locking/spinlock.c:192 hardirqs last disabled at (1088876): [] __raw_spin_lock_irq syzkaller/managers/linux-4-19/kernel/./include/linux/spinlock_api_smp.h:126 [inline] hardirqs last disabled at (1088876): [] _raw_spin_lock_irq+0x35/0x80 syzkaller/managers/linux-4-19/kernel/kernel/locking/spinlock.c:160 softirqs last enabled at (1088744): [] spin_unlock_bh syzkaller/managers/linux-4-19/kernel/./include/linux/spinlock.h:374 [inline] softirqs last enabled at (1088744): [] peernet2id+0x8f/0xc0 syzkaller/managers/linux-4-19/kernel/net/core/net_namespace.c:266 softirqs last disabled at (1088742): [] spin_lock_bh syzkaller/managers/linux-4-19/kernel/./include/linux/spinlock.h:334 [inline] softirqs last disabled at (1088742): [] peernet2id+0x6f/0xc0 syzkaller/managers/linux-4-19/kernel/net/core/net_namespace.c:264 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 *** 4 locks held by syz-executor.5/6944: #0: 0000000002efed9b (rfkill_global_mutex){+.+.}, at: rfkill_fop_write+0xfe/0x4a0 syzkaller/managers/linux-4-19/kernel/net/rfkill/core.c:1241 #1: 000000001f8741ec (&hdev->req_lock){+.+.}, at: hci_dev_do_close+0x196/0xf10 syzkaller/managers/linux-4-19/kernel/net/bluetooth/hci_core.c:1616 #2: 00000000ff5f1fe5 (&hdev->lock){+.+.}, at: hci_dev_do_close+0x2e0/0xf10 syzkaller/managers/linux-4-19/kernel/net/bluetooth/hci_core.c:1653 #3: 00000000d53c4611 (hci_cb_list_lock){+.+.}, at: hci_disconn_cfm syzkaller/managers/linux-4-19/kernel/./include/net/bluetooth/hci_core.h:1258 [inline] #3: 00000000d53c4611 (hci_cb_list_lock){+.+.}, at: hci_conn_hash_flush+0xda/0x260 syzkaller/managers/linux-4-19/kernel/net/bluetooth/hci_conn.c:1512 stack backtrace: CPU: 0 PID: 6944 Comm: syz-executor.5 Not tainted 4.19.172-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack syzkaller/managers/linux-4-19/kernel/lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef syzkaller/managers/linux-4-19/kernel/lib/dump_stack.c:118 print_usage_bug.cold+0x42e/0x570 syzkaller/managers/linux-4-19/kernel/kernel/locking/lockdep.c:2544 valid_state syzkaller/managers/linux-4-19/kernel/kernel/locking/lockdep.c:2557 [inline] mark_lock_irq syzkaller/managers/linux-4-19/kernel/kernel/locking/lockdep.c:2751 [inline] mark_lock+0xc70/0x1160 syzkaller/managers/linux-4-19/kernel/kernel/locking/lockdep.c:3131 mark_irqflags syzkaller/managers/linux-4-19/kernel/kernel/locking/lockdep.c:3027 [inline] __lock_acquire+0x6a8/0x3ff0 syzkaller/managers/linux-4-19/kernel/kernel/locking/lockdep.c:3372 lock_acquire+0x170/0x3c0 syzkaller/managers/linux-4-19/kernel/kernel/locking/lockdep.c:3907 __raw_spin_lock syzkaller/managers/linux-4-19/kernel/./include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 syzkaller/managers/linux-4-19/kernel/kernel/locking/spinlock.c:144 spin_lock syzkaller/managers/linux-4-19/kernel/./include/linux/spinlock.h:329 [inline] sco_conn_del+0xe2/0x240 syzkaller/managers/linux-4-19/kernel/net/bluetooth/sco.c:175 sco_disconn_cfm+0x74/0xb0 syzkaller/managers/linux-4-19/kernel/net/bluetooth/sco.c:1133 hci_disconn_cfm syzkaller/managers/linux-4-19/kernel/./include/net/bluetooth/hci_core.h:1261 [inline] hci_conn_hash_flush+0x127/0x260 syzkaller/managers/linux-4-19/kernel/net/bluetooth/hci_conn.c:1512 hci_dev_do_close+0x659/0xf10 syzkaller/managers/linux-4-19/kernel/net/bluetooth/hci_core.c:1666 hci_rfkill_set_block+0xe7/0x160 syzkaller/managers/linux-4-19/kernel/net/bluetooth/hci_core.c:2100 rfkill_set_block+0x1f9/0x540 syzkaller/managers/linux-4-19/kernel/net/rfkill/core.c:353 rfkill_fop_write+0x250/0x4a0 syzkaller/managers/linux-4-19/kernel/net/rfkill/core.c:1249 __vfs_write+0xf7/0x770 syzkaller/managers/linux-4-19/kernel/fs/read_write.c:485 vfs_write+0x1f3/0x540 syzkaller/managers/linux-4-19/kernel/fs/read_write.c:549 ksys_write+0x12b/0x2a0 syzkaller/managers/linux-4-19/kernel/fs/read_write.c:599 do_syscall_64+0xf9/0x620 syzkaller/managers/linux-4-19/kernel/arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x465b09 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:00007ff35d122188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465b09 RDX: 0000000000000008 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00000000004b069f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffc9f3077af R14: 00007ff35d122300 R15: 0000000000022000 netlink: 13 bytes leftover after parsing attributes in process `syz-executor.1'. audit: type=1326 audit(1612951834.014:571): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=7093 comm="syz-executor.3" exe="/root/syz-executor.3" sig=31 arch=c000003e syscall=202 compat=0 ip=0x465b09 code=0x0 audit: type=1326 audit(1612951834.064:572): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=7093 comm="syz-executor.3" exe="/root/syz-executor.3" sig=31 arch=c000003e syscall=3 compat=0 ip=0x418e1b code=0x0 audit: type=1326 audit(1612951834.164:573): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=7102 comm="syz-executor.3" exe="/root/syz-executor.3" sig=31 arch=c000003e syscall=202 compat=0 ip=0x465b09 code=0x0 audit: type=1326 audit(1612951834.204:574): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=7102 comm="syz-executor.3" exe="/root/syz-executor.3" sig=31 arch=c000003e syscall=3 compat=0 ip=0x418e1b code=0x0 audit: type=1326 audit(1612951834.214:575): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=7104 comm="syz-executor.0" exe="/root/syz-executor.0" sig=31 arch=c000003e syscall=202 compat=0 ip=0x465b09 code=0x0 audit: type=1326 audit(1612951834.264:576): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=7104 comm="syz-executor.0" exe="/root/syz-executor.0" sig=31 arch=c000003e syscall=3 compat=0 ip=0x418e1b code=0x0 audit: type=1326 audit(1612951834.324:577): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=7110 comm="syz-executor.3" exe="/root/syz-executor.3" sig=31 arch=c000003e syscall=202 compat=0 ip=0x465b09 code=0x0 audit: type=1326 audit(1612951834.374:578): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=7110 comm="syz-executor.3" exe="/root/syz-executor.3" sig=31 arch=c000003e syscall=3 compat=0 ip=0x418e1b code=0x0 netlink: 13 bytes leftover after parsing attributes in process `syz-executor.1'. kauditd_printk_skb: 13 callbacks suppressed audit: type=1804 audit(1612951837.814:592): pid=7282 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="file0" dev="sda1" ino=17207 res=1 device vxlan0 entered promiscuous mode audit: type=1804 audit(1612951838.604:593): pid=7338 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="file0" dev="sda1" ino=17207 res=1 audit: type=1804 audit(1612951838.754:594): pid=7352 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="file0" dev="sda1" ino=17207 res=1 audit: type=1804 audit(1612951838.824:595): pid=7353 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir386595952/syzkaller.kHCIvr/251/file1/file0" dev="loop3" ino=247 res=1 device vxlan0 entered promiscuous mode device vxlan0 entered promiscuous mode audit: type=1804 audit(1612951839.564:596): pid=7382 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir386595952/syzkaller.kHCIvr/252/file1/file0" dev="loop3" ino=248 res=1 audit: type=1804 audit(1612951839.914:597): pid=7394 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="file0" dev="sda1" ino=17208 res=1 audit: type=1804 audit(1612951839.964:598): pid=7395 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir616114197/syzkaller.pxxgCT/963/file0" dev="sda1" ino=17204 res=1 ebtables: ebtables: counters copy to user failed while replacing table ebtables: ebtables: counters copy to user failed while replacing table audit: type=1804 audit(1612951840.804:599): pid=7423 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir386595952/syzkaller.kHCIvr/253/file1/file0" dev="loop3" ino=249 res=1 audit: type=1804 audit(1612951841.254:600): pid=7450 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="file0" dev="sda1" ino=17205 res=1 audit: type=1804 audit(1612951841.354:601): pid=7452 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir616114197/syzkaller.pxxgCT/964/file0" dev="sda1" ino=17173 res=1 netlink: 'syz-executor.4': attribute type 5 has an invalid length.