netlink: 100 bytes leftover after parsing attributes in process `syz-executor.2'. ================================ WARNING: inconsistent lock state 4.19.163-syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.5/13574 [HC0[0]:SC1[1]:HE1:SE0] takes: 0000000004a83383 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}, at: spin_lock include/linux/spinlock.h:329 [inline] 0000000004a83383 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}, at: sco_sock_timeout+0x31/0x210 net/bluetooth/sco.c:82 {SOFTIRQ-ON-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_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:1261 [inline] hci_conn_hash_flush+0x127/0x260 net/bluetooth/hci_conn.c:1512 hci_dev_do_close+0x659/0xf10 net/bluetooth/hci_core.c:1666 hci_unregister_dev+0x18b/0x910 net/bluetooth/hci_core.c:3271 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+0xbed/0x2be0 kernel/exit.c:890 do_group_exit+0x125/0x310 kernel/exit.c:993 get_signal+0x3f2/0x1f70 kernel/signal.c:2589 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:821 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: 12536 hardirqs last enabled at (12536): [] trace_hardirqs_on_thunk+0x1a/0x1c hardirqs last disabled at (12535): [] trace_hardirqs_off_thunk+0x1a/0x1c softirqs last enabled at (8422): [] __do_softirq+0x69a/0x9a0 kernel/softirq.c:318 softirqs last disabled at (10035): [] invoke_softirq kernel/softirq.c:372 [inline] softirqs last disabled at (10035): [] 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 *** 5 locks held by syz-executor.5/13574: #0: 000000006cf906ea (&type->s_umount_key#72/1){+.+.}, at: alloc_super fs/super.c:226 [inline] #0: 000000006cf906ea (&type->s_umount_key#72/1){+.+.}, at: sget_userns+0x20b/0xcd0 fs/super.c:519 #1: 00000000ec7c643b (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #1: 00000000ec7c643b (sb_writers#3){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #2: 0000000021d3ae53 (&type->i_mutex_dir_key#3/1){+.+.}, at: inode_lock_nested include/linux/fs.h:783 [inline] #2: 0000000021d3ae53 (&type->i_mutex_dir_key#3/1){+.+.}, at: ovl_workdir_create+0x10c/0x4c0 fs/overlayfs/super.c:628 #3: 00000000fb0af095 (rcu_read_lock){....}, at: ext4_get_group_desc+0xe5/0x4e0 fs/ext4/balloc.c:283 #4: 00000000e2626a14 ((&sk->sk_timer)#2){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:168 [inline] #4: 00000000e2626a14 ((&sk->sk_timer)#2){+.-.}, at: call_timer_fn+0xc9/0x700 kernel/time/timer.c:1328 stack backtrace: CPU: 1 PID: 13574 Comm: syz-executor.5 Not tainted 4.19.163-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/0x2fe lib/dump_stack.c:118 print_usage_bug.cold+0x42e/0x570 kernel/locking/lockdep.c:2544 valid_state kernel/locking/lockdep.c:2557 [inline] mark_lock_irq kernel/locking/lockdep.c:2751 [inline] mark_lock+0xc70/0x1160 kernel/locking/lockdep.c:3131 mark_irqflags kernel/locking/lockdep.c:3009 [inline] __lock_acquire+0xdc4/0x3ff0 kernel/locking/lockdep.c:3372 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3907 __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+0x26c/0x9a0 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:544 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:rcu_is_watching+0x2/0xc0 kernel/rcu/tree.c:1021 Code: e9 24 f4 ff ff 48 8b bc 24 a8 00 00 00 e8 d6 76 47 00 e9 f4 f3 ff ff 48 8b 7c 24 18 e8 e7 77 47 00 e9 c8 f3 ff ff 66 90 55 53 <48> 83 ec 08 65 ff 05 43 5b ae 7e e8 1e 9d 2c 02 48 c7 c3 80 2a 02 RSP: 0018:ffff888044f67528 EFLAGS: 00000212 ORIG_RAX: ffffffffffffff13 RAX: 0000000000040000 RBX: 0000000000000001 RCX: ffffc90013146000 RDX: 000000000001be44 RSI: ffffffff81dc302e RDI: 0000000000000001 RBP: ffff888235082780 R08: 00000000028af36a R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8882350847c0 R13: 0000000000000000 R14: ffff888235082e00 R15: 0000000000000000 rcu_read_lock include/linux/rcupdate.h:628 [inline] ext4_get_group_desc+0x3c3/0x4e0 fs/ext4/balloc.c:284 recently_deleted fs/ext4/ialloc.c:681 [inline] find_inode_bit+0x1a0/0x520 fs/ext4/ialloc.c:725 __ext4_new_inode+0x160c/0x5a20 fs/ext4/ialloc.c:917 ext4_mkdir+0x396/0xe10 fs/ext4/namei.c:2694 vfs_mkdir+0x508/0x7a0 fs/namei.c:3819 ovl_do_mkdir fs/overlayfs/overlayfs.h:128 [inline] ovl_mkdir_real fs/overlayfs/dir.c:125 [inline] ovl_create_real+0x2b0/0x4f0 fs/overlayfs/dir.c:172 ovl_workdir_create+0x2fb/0x4c0 fs/overlayfs/super.c:654 ovl_make_workdir fs/overlayfs/super.c:1092 [inline] ovl_get_workdir fs/overlayfs/super.c:1195 [inline] ovl_fill_super+0x11ae/0x3f02 fs/overlayfs/super.c:1596 mount_nodev+0x60/0x110 fs/super.c:1204 mount_fs+0xa3/0x30c fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2469 [inline] do_mount+0x113c/0x2f10 fs/namespace.c:2799 ksys_mount+0xcf/0x130 fs/namespace.c:3015 __do_sys_mount fs/namespace.c:3029 [inline] __se_sys_mount fs/namespace.c:3026 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3026 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45e159 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fbafb77ac68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 000000000045e159 RDX: 0000000020000440 RSI: 0000000020000000 RDI: 0000000000400000 RBP: 000000000119bfd0 R08: 0000000020000400 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007ffcbeae86cf R14: 00007fbafb77b9c0 R15: 000000000119bf8c IPv6: ADDRCONF(NETDEV_CHANGE): lo: link becomes ready overlayfs: unrecognized mount option "‡¨Ö•V_fÄŽZ¤ˆ¯" or missing value netlink: 100 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 100 bytes leftover after parsing attributes in process `syz-executor.2'. overlayfs: unrecognized mount option "‡¨Ö•V_fÄŽZ¤ˆ¯" or missing value netlink: 100 bytes leftover after parsing attributes in process `syz-executor.2'. xt_CT: You must specify a L4 protocol and not use inversions on it xt_CT: You must specify a L4 protocol and not use inversions on it netlink: 100 bytes leftover after parsing attributes in process `syz-executor.2'. audit: type=1800 audit(1608029427.598:36): pid=13667 uid=0 auid=0 ses=4 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=16147 res=0 IPv6: NLM_F_CREATE should be specified when creating new route validate_nla: 14 callbacks suppressed netlink: 'syz-executor.2': attribute type 1 has an invalid length. audit: type=1800 audit(1608029427.808:37): pid=13667 uid=0 auid=0 ses=4 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=16147 res=0 netlink: 'syz-executor.0': attribute type 4 has an invalid length. netlink: 'syz-executor.5': attribute type 1 has an invalid length. netlink: 'syz-executor.2': attribute type 1 has an invalid length. xt_CT: You must specify a L4 protocol and not use inversions on it netlink: 'syz-executor.5': attribute type 1 has an invalid length. netlink: 'syz-executor.2': attribute type 1 has an invalid length. netlink: 'syz-executor.2': attribute type 1 has an invalid length. xt_CT: You must specify a L4 protocol and not use inversions on it xt_CT: You must specify a L4 protocol and not use inversions on it netlink: 'syz-executor.2': attribute type 1 has an invalid length. netlink: 'syz-executor.2': attribute type 1 has an invalid length. xt_CT: You must specify a L4 protocol and not use inversions on it netlink: 'syz-executor.2': attribute type 1 has an invalid length. nla_parse: 12 callbacks suppressed netlink: 100 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 100 bytes leftover after parsing attributes in process `syz-executor.2'. xt_CT: You must specify a L4 protocol and not use inversions on it netlink: 100 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 100 bytes leftover after parsing attributes in process `syz-executor.2'. xt_CT: You must specify a L4 protocol and not use inversions on it xt_CT: You must specify a L4 protocol and not use inversions on it xt_CT: You must specify a L4 protocol and not use inversions on it xt_CT: You must specify a L4 protocol and not use inversions on it xt_CT: You must specify a L4 protocol and not use inversions on it xt_CT: You must specify a L4 protocol and not use inversions on it