netlink: 'syz-executor.3': attribute type 1 has an invalid length. netlink: 128 bytes leftover after parsing attributes in process `syz-executor.3'. delete_channel: no stack Process accounting resumed ====================================================== WARNING: possible circular locking dependency detected 4.19.36 #4 Not tainted ------------------------------------------------------ syz-executor.4/8042 is trying to acquire lock: 0000000046de1df9 (&ovl_i_mutex_key[depth]#2){+.+.}, at: inode_lock include/linux/fs.h:738 [inline] 0000000046de1df9 (&ovl_i_mutex_key[depth]#2){+.+.}, at: ovl_write_iter+0x148/0xc20 fs/overlayfs/file.c:231 but task is already holding lock: 00000000ec88f2d3 (&acct->lock#2){+.+.}, at: acct_get kernel/acct.c:161 [inline] 00000000ec88f2d3 (&acct->lock#2){+.+.}, at: slow_acct_process kernel/acct.c:577 [inline] 00000000ec88f2d3 (&acct->lock#2){+.+.}, at: acct_process+0x2e5/0x61e kernel/acct.c:605 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&acct->lock#2){+.+.}: __mutex_lock_common kernel/locking/mutex.c:925 [inline] __mutex_lock+0xf7/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 acct_pin_kill+0x27/0x100 kernel/acct.c:173 pin_kill+0x18f/0x860 fs/fs_pin.c:50 acct_on+0x574/0x790 kernel/acct.c:254 __do_sys_acct kernel/acct.c:286 [inline] __se_sys_acct kernel/acct.c:273 [inline] __x64_sys_acct+0xae/0x200 kernel/acct.c:273 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #1 (sb_writers#4){.+.+}: percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:36 [inline] percpu_down_read include/linux/percpu-rwsem.h:59 [inline] __sb_start_write+0x20b/0x360 fs/super.c:1387 sb_start_write include/linux/fs.h:1569 [inline] mnt_want_write+0x3f/0xc0 fs/namespace.c:360 ovl_want_write+0x76/0xa0 fs/overlayfs/util.c:24 ovl_link+0x7c/0x2d5 fs/overlayfs/dir.c:674 vfs_link+0x7a4/0xb60 fs/namei.c:4240 do_linkat+0x550/0x770 fs/namei.c:4308 __do_sys_link fs/namei.c:4337 [inline] __se_sys_link fs/namei.c:4335 [inline] __x64_sys_link+0x61/0x80 fs/namei.c:4335 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 (&ovl_i_mutex_key[depth]#2){+.+.}: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3903 down_write+0x38/0x90 kernel/locking/rwsem.c:70 inode_lock include/linux/fs.h:738 [inline] ovl_write_iter+0x148/0xc20 fs/overlayfs/file.c:231 call_write_iter include/linux/fs.h:1811 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x58e/0x820 fs/read_write.c:487 __kernel_write+0x110/0x390 fs/read_write.c:506 do_acct_process+0xd37/0x1150 kernel/acct.c:520 slow_acct_process kernel/acct.c:579 [inline] acct_process+0x568/0x61e kernel/acct.c:605 do_exit+0x17c0/0x2fa0 kernel/exit.c:866 do_group_exit+0x135/0x370 kernel/exit.c:979 __do_sys_exit_group kernel/exit.c:990 [inline] __se_sys_exit_group kernel/exit.c:988 [inline] __x64_sys_exit_group+0x44/0x50 kernel/exit.c:988 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Chain exists of: &ovl_i_mutex_key[depth]#2 --> sb_writers#4 --> &acct->lock#2 Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&acct->lock#2); lock(sb_writers#4); lock(&acct->lock#2); lock(&ovl_i_mutex_key[depth]#2); *** DEADLOCK *** 2 locks held by syz-executor.4/8042: #0: 00000000ec88f2d3 (&acct->lock#2){+.+.}, at: acct_get kernel/acct.c:161 [inline] #0: 00000000ec88f2d3 (&acct->lock#2){+.+.}, at: slow_acct_process kernel/acct.c:577 [inline] #0: 00000000ec88f2d3 (&acct->lock#2){+.+.}, at: acct_process+0x2e5/0x61e kernel/acct.c:605 #1: 00000000f4fdfbc2 (sb_writers#16){.+.+}, at: file_start_write_trylock include/linux/fs.h:2771 [inline] #1: 00000000f4fdfbc2 (sb_writers#16){.+.+}, at: do_acct_process+0xf37/0x1150 kernel/acct.c:517 stack backtrace: CPU: 0 PID: 8042 Comm: syz-executor.4 Not tainted 4.19.36 #4 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+0x172/0x1f0 lib/dump_stack.c:113 print_circular_bug.isra.0.cold+0x1cc/0x28f kernel/locking/lockdep.c:1221 check_prev_add kernel/locking/lockdep.c:1861 [inline] check_prevs_add kernel/locking/lockdep.c:1974 [inline] validate_chain kernel/locking/lockdep.c:2415 [inline] __lock_acquire+0x2e6d/0x48f0 kernel/locking/lockdep.c:3411 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3903 down_write+0x38/0x90 kernel/locking/rwsem.c:70 inode_lock include/linux/fs.h:738 [inline] ovl_write_iter+0x148/0xc20 fs/overlayfs/file.c:231 call_write_iter include/linux/fs.h:1811 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x58e/0x820 fs/read_write.c:487 __kernel_write+0x110/0x390 fs/read_write.c:506 do_acct_process+0xd37/0x1150 kernel/acct.c:520 slow_acct_process kernel/acct.c:579 [inline] acct_process+0x568/0x61e kernel/acct.c:605 do_exit+0x17c0/0x2fa0 kernel/exit.c:866 do_group_exit+0x135/0x370 kernel/exit.c:979 __do_sys_exit_group kernel/exit.c:990 [inline] __se_sys_exit_group kernel/exit.c:988 [inline] __x64_sys_exit_group+0x44/0x50 kernel/exit.c:988 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458c29 Code: ad b8 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 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe0d8cb558 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 000000000000000b RCX: 0000000000458c29 RDX: 0000000000412921 RSI: 0000000000a54ef0 RDI: 0000000000000000 RBP: 00000000004be2dc R08: 000000000000000c R09: 00007ffe0d8cb660 R10: 0000000001776940 R11: 0000000000000246 R12: 000000000073bfac R13: 0000000000000001 R14: 0000000000000001 R15: 000000000073bfac audit: type=1804 audit(1556029872.091:561): pid=8336 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir214597790/syzkaller.shM3DN/3166/file0" dev="sda1" ino=16745 res=1 netlink: 'syz-executor.3': attribute type 1 has an invalid length. netlink: 128 bytes leftover after parsing attributes in process `syz-executor.3'. delete_channel: no stack netlink: 'syz-executor.3': attribute type 1 has an invalid length. netlink: 128 bytes leftover after parsing attributes in process `syz-executor.3'. Process accounting resumed Process accounting resumed Process accounting resumed audit: type=1804 audit(1556029874.141:562): pid=9270 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir214597790/syzkaller.shM3DN/3180/bus" dev="sda1" ino=16669 res=1 netlink: 4 bytes leftover after parsing attributes in process `syz-executor.0'. audit: type=1804 audit(1556029874.521:563): pid=9611 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir214597790/syzkaller.shM3DN/3181/bus" dev="sda1" ino=16650 res=1 netlink: 4 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor.2'. audit: type=1804 audit(1556029874.941:564): pid=9874 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir214597790/syzkaller.shM3DN/3182/bus" dev="sda1" ino=16679 res=1 netlink: 4 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor.2'. audit: type=1804 audit(1556029875.331:565): pid=10310 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir214597790/syzkaller.shM3DN/3183/bus" dev="sda1" ino=16679 res=1 audit: type=1804 audit(1556029875.401:566): pid=10315 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir536494509/syzkaller.Y9EcqY/3232/bus" dev="sda1" ino=16659 res=1 audit: type=1804 audit(1556029875.531:567): pid=10363 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir769677023/syzkaller.g0xc2d/3298/bus" dev="sda1" ino=16735 res=1 audit: type=1804 audit(1556029875.591:568): pid=10424 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=open_writers comm="syz-executor.0" name="bus" dev="sda1" ino=16646 res=1 audit: type=1804 audit(1556029875.591:569): pid=10425 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir219700916/syzkaller.OdrJJE/3248/bus" dev="sda1" ino=16656 res=1 audit: type=1804 audit(1556029875.621:570): pid=10427 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir006088295/syzkaller.E76CQo/3310/bus" dev="sda1" ino=16740 res=1 audit: type=1804 audit(1556029875.701:571): pid=10429 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir536494509/syzkaller.Y9EcqY/3233/bus" dev="sda1" ino=16679 res=1 audit: type=1804 audit(1556029875.721:572): pid=10533 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir214597790/syzkaller.shM3DN/3184/bus" dev="sda1" ino=16746 res=1 audit: type=1804 audit(1556029875.931:573): pid=10858 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir536494509/syzkaller.Y9EcqY/3234/bus" dev="sda1" ino=16644 res=1 audit: type=1804 audit(1556029875.951:574): pid=10880 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=open_writers comm="syz-executor.0" name="bus" dev="sda1" ino=16679 res=1 netlink: 'syz-executor.4': attribute type 21 has an invalid length. netlink: 'syz-executor.4': attribute type 4 has an invalid length. netlink: 'syz-executor.4': attribute type 21 has an invalid length. netlink: 'syz-executor.4': attribute type 4 has an invalid length. netlink: 'syz-executor.4': attribute type 21 has an invalid length. netlink: 'syz-executor.4': attribute type 4 has an invalid length. netlink: 'syz-executor.4': attribute type 21 has an invalid length. netlink: 'syz-executor.4': attribute type 4 has an invalid length. Option ' ' to dns_resolver key: bad/missing value Option ' ' to dns_resolver key: bad/missing value Option ' ' to dns_resolver key: bad/missing value Option ' ' to dns_resolver key: bad/missing value