BTRFS warning (device loop0): loop0 checksum verify failed on 5324800 wanted F9E187A1 found 988DD3A3 level 0 BTRFS warning (device loop0): failed to read tree root device bond1 entered promiscuous mode ====================================================== BTRFS info (device loop0): clearing free space tree WARNING: possible circular locking dependency detected 4.19.211-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.4/12935 is trying to acquire lock: 0000000080ba7ad9 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_extend+0x1bb/0xf40 fs/hfsplus/extents.c:457 but task is already holding lock: BTRFS info (device loop0): clearing 1 ro feature flag 00000000c04f7b39 (&tree->tree_lock){+.+.}, at: hfsplus_find_init+0x1b7/0x220 fs/hfsplus/bfind.c:30 IPv6: ADDRCONF(NETDEV_UP): bond1: link is not ready which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&tree->tree_lock){+.+.}: hfsplus_file_truncate+0xde7/0x1040 fs/hfsplus/extents.c:595 hfsplus_setattr+0x1e7/0x310 fs/hfsplus/inode.c:263 notify_change+0x70b/0xfc0 fs/attr.c:334 do_truncate+0x134/0x1f0 fs/open.c:63 handle_truncate fs/namei.c:3009 [inline] do_last fs/namei.c:3427 [inline] path_openat+0x2308/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe BTRFS info (device loop0): clearing 2 ro feature flag -> #0 (&HFSPLUS_I(inode)->extents_lock){+.+.}: __mutex_lock_common kernel/locking/mutex.c:937 [inline] __mutex_lock+0xd7/0x1190 kernel/locking/mutex.c:1078 hfsplus_file_extend+0x1bb/0xf40 fs/hfsplus/extents.c:457 8021q: adding VLAN 0 to HW filter on device bond1 hfsplus_bmap_reserve+0x298/0x440 fs/hfsplus/btree.c:357 hfsplus_rename_cat+0x272/0x1490 fs/hfsplus/catalog.c:456 hfsplus_unlink+0x49c/0x820 fs/hfsplus/dir.c:376 vfs_unlink+0x27d/0x4e0 fs/namei.c:4002 do_unlinkat+0x3b8/0x660 fs/namei.c:4065 BTRFS info (device loop0): creating free space tree do_coredump+0x1f9c/0x2d60 fs/coredump.c:687 get_signal+0xed9/0x1f70 kernel/signal.c:2583 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799 BTRFS info (device loop0): setting 1 ro feature flag exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163 prepare_exit_to_usermode+0x277/0x2d0 arch/x86/entry/common.c:198 retint_user+0x8/0x18 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&tree->tree_lock); lock(&HFSPLUS_I(inode)->extents_lock); BTRFS info (device loop0): setting 2 ro feature flag lock(&tree->tree_lock); lock(&HFSPLUS_I(inode)->extents_lock); *** DEADLOCK *** 5 locks held by syz-executor.4/12935: #0: 00000000a130b898 (sb_writers#18){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 00000000a130b898 (sb_writers#18){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 000000008bb45dd1 (&type->i_mutex_dir_key#11/1){+.+.}, at: inode_lock_nested include/linux/fs.h:783 [inline] #1: 000000008bb45dd1 (&type->i_mutex_dir_key#11/1){+.+.}, at: do_unlinkat+0x27d/0x660 fs/namei.c:4051 #2: 00000000fc778fb1 (&sb->s_type->i_mutex_key#24){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #2: 00000000fc778fb1 (&sb->s_type->i_mutex_key#24){+.+.}, at: vfs_unlink+0xca/0x4e0 fs/namei.c:3993 #3: 00000000bd3b8948 (&sbi->vh_mutex){+.+.}, at: hfsplus_unlink+0x140/0x820 fs/hfsplus/dir.c:370 #4: 00000000c04f7b39 (&tree->tree_lock){+.+.}, at: hfsplus_find_init+0x1b7/0x220 fs/hfsplus/bfind.c:30 stack backtrace: CPU: 0 PID: 12935 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1222 check_prev_add kernel/locking/lockdep.c:1866 [inline] check_prevs_add kernel/locking/lockdep.c:1979 [inline] validate_chain kernel/locking/lockdep.c:2420 [inline] __lock_acquire+0x30c9/0x3ff0 kernel/locking/lockdep.c:3416 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 __mutex_lock_common kernel/locking/mutex.c:937 [inline] __mutex_lock+0xd7/0x1190 kernel/locking/mutex.c:1078 hfsplus_file_extend+0x1bb/0xf40 fs/hfsplus/extents.c:457 hfsplus_bmap_reserve+0x298/0x440 fs/hfsplus/btree.c:357 hfsplus_rename_cat+0x272/0x1490 fs/hfsplus/catalog.c:456 hfsplus_unlink+0x49c/0x820 fs/hfsplus/dir.c:376 vfs_unlink+0x27d/0x4e0 fs/namei.c:4002 do_unlinkat+0x3b8/0x660 fs/namei.c:4065 do_coredump+0x1f9c/0x2d60 fs/coredump.c:687 get_signal+0xed9/0x1f70 kernel/signal.c:2583 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+0x277/0x2d0 arch/x86/entry/common.c:198 retint_user+0x8/0x18 RIP: 0033: (null) Code: Bad RIP value. RSP: 002b:0000000020000188 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f61e47d7120 RCX: 00007f61e46b70f9 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000000 RBP: 00007f61e4712ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd40f1561f R14: 00007f61e2be7300 R15: 0000000000022000 netlink: 8 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'. sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! netlink: 'syz-executor.2': attribute type 1 has an invalid length. device bond2 entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): bond2: link is not ready 8021q: adding VLAN 0 to HW filter on device bond2 netlink: 8 bytes leftover after parsing attributes in process `syz-executor.2'. kauditd_printk_skb: 15 callbacks suppressed audit: type=1804 audit(1676070293.084:34): pid=12974 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir405670555/syzkaller.qBkNTi/136/file0/bus" dev="loop4" ino=7 res=1 netlink: 4 bytes leftover after parsing attributes in process `syz-executor.2'. audit: type=1804 audit(1676070293.144:35): pid=13079 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir405670555/syzkaller.qBkNTi/136/file0/bus" dev="loop4" ino=7 res=1 sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! netlink: 'syz-executor.2': attribute type 1 has an invalid length. device bond3 entered promiscuous mode BTRFS info (device loop0): enabling inode map caching BTRFS info (device loop0): trying to use backup root at mount time BTRFS info (device loop0): setting nodatacow, compression disabled BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): using spread ssd allocation scheme BTRFS info (device loop0): using free space tree BTRFS info (device loop0): has skinny extents IPv6: ADDRCONF(NETDEV_UP): bond3: link is not ready 8021q: adding VLAN 0 to HW filter on device bond3 netlink: 8 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor.2'. BTRFS warning (device loop0): loop0 checksum verify failed on 5332992 wanted A976C57C found 528225CC level 0 sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): loop0 checksum verify failed on 5332992 wanted A976C57C found 528225CC level 0 audit: type=1804 audit(1676070293.664:36): pid=13171 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir405670555/syzkaller.qBkNTi/137/bus" dev="sda1" ino=14225 res=1 BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): loop0 checksum verify failed on 5324800 wanted F9E187A1 found 988DD3A3 level 0 BTRFS warning (device loop0): failed to read tree root BTRFS info (device loop0): clearing free space tree audit: type=1804 audit(1676070293.734:37): pid=13169 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir405670555/syzkaller.qBkNTi/137/bus" dev="sda1" ino=14225 res=1 BTRFS info (device loop0): clearing 1 ro feature flag BTRFS info (device loop0): clearing 2 ro feature flag BTRFS info (device loop0): creating free space tree BTRFS info (device loop0): setting 1 ro feature flag BTRFS info (device loop0): setting 2 ro feature flag sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! audit: type=1804 audit(1676070294.074:38): pid=13206 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir405670555/syzkaller.qBkNTi/138/bus" dev="sda1" ino=14277 res=1 sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! audit: type=1804 audit(1676070294.114:39): pid=13206 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir405670555/syzkaller.qBkNTi/138/bus" dev="sda1" ino=14277 res=1 sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! audit: type=1804 audit(1676070294.614:40): pid=13201 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir36830284/syzkaller.k5YcVU/152/file0/bus" dev="loop2" ino=7 res=1 sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! audit: type=1804 audit(1676070294.714:41): pid=13249 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir36830284/syzkaller.k5YcVU/152/file0/bus" dev="loop2" ino=7 res=1 sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! audit: type=1804 audit(1676070294.744:42): pid=13210 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir2430184048/syzkaller.kbKWx5/139/file0/bus" dev="loop3" ino=7 res=1 sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! BTRFS info (device loop0): enabling inode map caching audit: type=1804 audit(1676070294.794:43): pid=13254 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir2430184048/syzkaller.kbKWx5/139/file0/bus" dev="loop3" ino=7 res=1 BTRFS info (device loop0): trying to use backup root at mount time BTRFS info (device loop0): setting nodatacow, compression disabled BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): using spread ssd allocation scheme BTRFS info (device loop0): using free space tree BTRFS info (device loop0): has skinny extents BTRFS warning (device loop0): loop0 checksum verify failed on 5332992 wanted A976C57C found 528225CC level 0 BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): loop0 checksum verify failed on 5332992 wanted A976C57C found 528225CC level 0 BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): loop0 checksum verify failed on 5324800 wanted F9E187A1 found 988DD3A3 level 0 BTRFS warning (device loop0): failed to read tree root BTRFS info (device loop0): clearing free space tree BTRFS info (device loop0): clearing 1 ro feature flag BTRFS info (device loop0): clearing 2 ro feature flag BTRFS info (device loop0): creating free space tree BTRFS info (device loop0): setting 1 ro feature flag BTRFS info (device loop0): setting 2 ro feature flag BTRFS info (device loop0): enabling inode map caching BTRFS info (device loop0): trying to use backup root at mount time BTRFS info (device loop0): setting nodatacow, compression disabled BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): using spread ssd allocation scheme BTRFS info (device loop0): using free space tree BTRFS info (device loop0): has skinny extents BTRFS warning (device loop0): loop0 checksum verify failed on 5332992 wanted A976C57C found 528225CC level 0 BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): loop0 checksum verify failed on 5332992 wanted A976C57C found 528225CC level 0 BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): loop0 checksum verify failed on 5324800 wanted F9E187A1 found 988DD3A3 level 0 BTRFS warning (device loop0): failed to read tree root BTRFS info (device loop0): clearing free space tree BTRFS info (device loop0): clearing 1 ro feature flag BTRFS info (device loop0): clearing 2 ro feature flag BTRFS info (device loop0): creating free space tree BTRFS info (device loop0): setting 1 ro feature flag BTRFS info (device loop0): setting 2 ro feature flag BTRFS info (device loop0): enabling inode map caching BTRFS info (device loop0): trying to use backup root at mount time BTRFS info (device loop0): setting nodatacow, compression disabled BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): using spread ssd allocation scheme BTRFS info (device loop0): using free space tree BTRFS info (device loop0): has skinny extents BTRFS warning (device loop0): loop0 checksum verify failed on 5332992 wanted A976C57C found 528225CC level 0 BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): loop0 checksum verify failed on 5332992 wanted A976C57C found 528225CC level 0 BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): loop0 checksum verify failed on 5324800 wanted F9E187A1 found 988DD3A3 level 0 BTRFS warning (device loop0): failed to read tree root BTRFS info (device loop0): clearing free space tree BTRFS info (device loop0): clearing 1 ro feature flag BTRFS info (device loop0): clearing 2 ro feature flag BTRFS info (device loop0): creating free space tree BTRFS info (device loop0): setting 1 ro feature flag BTRFS info (device loop0): setting 2 ro feature flag tbf_change: 26 callbacks suppressed sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! BTRFS info (device loop0): enabling inode map caching BTRFS info (device loop0): trying to use backup root at mount time BTRFS info (device loop0): setting nodatacow, compression disabled BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): using spread ssd allocation scheme BTRFS info (device loop0): using free space tree BTRFS info (device loop0): has skinny extents BTRFS warning (device loop0): loop0 checksum verify failed on 5332992 wanted A976C57C found 528225CC level 0 BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): loop0 checksum verify failed on 5332992 wanted A976C57C found 528225CC level 0 kauditd_printk_skb: 8 callbacks suppressed audit: type=1804 audit(1676070298.655:52): pid=13547 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir36830284/syzkaller.k5YcVU/156/file0/bus" dev="loop2" ino=7 res=1 BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): loop0 checksum verify failed on 5324800 wanted F9E187A1 found 988DD3A3 level 0 BTRFS warning (device loop0): failed to read tree root audit: type=1804 audit(1676070298.735:53): pid=13598 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir36830284/syzkaller.k5YcVU/156/file0/bus" dev="loop2" ino=7 res=1 BTRFS info (device loop0): clearing free space tree BTRFS info (device loop0): clearing 1 ro feature flag BTRFS info (device loop0): clearing 2 ro feature flag BTRFS info (device loop0): creating free space tree BTRFS info (device loop0): setting 1 ro feature flag BTRFS info (device loop0): setting 2 ro feature flag sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! sch_tbf: burst 1024 is lower than device syz_tun mtu (1514) ! BTRFS info (device loop0): enabling inode map caching BTRFS info (device loop0): trying to use backup root at mount time BTRFS info (device loop0): setting nodatacow, compression disabled BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): using spread ssd allocation scheme BTRFS info (device loop0): using free space tree BTRFS info (device loop0): has skinny extents BTRFS warning (device loop0): loop0 checksum verify failed on 5332992 wanted A976C57C found 528225CC level 0 BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): failed to read tree root BTRFS info (device loop0): clearing free space tree BTRFS info (device loop0): clearing 1 ro feature flag BTRFS info (device loop0): clearing 2 ro feature flag audit: type=1804 audit(1676070299.595:54): pid=13650 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir36830284/syzkaller.k5YcVU/157/file0/bus" dev="loop2" ino=7 res=1 BTRFS info (device loop0): creating free space tree BTRFS info (device loop0): setting 1 ro feature flag BTRFS info (device loop0): setting 2 ro feature flag audit: type=1804 audit(1676070299.685:55): pid=13689 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir36830284/syzkaller.k5YcVU/157/file0/bus" dev="loop2" ino=7 res=1 BTRFS info (device loop0): enabling inode map caching BTRFS info (device loop0): trying to use backup root at mount time BTRFS info (device loop0): setting nodatacow, compression disabled BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): using spread ssd allocation scheme BTRFS info (device loop0): using free space tree BTRFS info (device loop0): has skinny extents BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): failed to read tree root BTRFS info (device loop0): clearing free space tree BTRFS info (device loop0): clearing 1 ro feature flag BTRFS info (device loop0): clearing 2 ro feature flag BTRFS info (device loop0): creating free space tree audit: type=1804 audit(1676070300.655:56): pid=13743 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir36830284/syzkaller.k5YcVU/158/file0/bus" dev="loop2" ino=7 res=1 BTRFS info (device loop0): setting 1 ro feature flag BTRFS info (device loop0): setting 2 ro feature flag audit: type=1804 audit(1676070300.745:57): pid=13781 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir36830284/syzkaller.k5YcVU/158/file0/bus" dev="loop2" ino=7 res=1 BTRFS info (device loop0): enabling inode map caching BTRFS info (device loop0): trying to use backup root at mount time audit: type=1804 audit(1676070301.355:58): pid=13814 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir36830284/syzkaller.k5YcVU/159/file0/bus" dev="loop2" ino=7 res=1 BTRFS info (device loop0): setting nodatacow, compression disabled BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): using spread ssd allocation scheme audit: type=1804 audit(1676070301.445:59): pid=13846 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir36830284/syzkaller.k5YcVU/159/file0/bus" dev="loop2" ino=7 res=1 BTRFS info (device loop0): using free space tree BTRFS info (device loop0): has skinny extents BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): failed to read tree root BTRFS warning (device loop0): failed to read tree root BTRFS info (device loop0): clearing free space tree BTRFS info (device loop0): clearing 1 ro feature flag BTRFS info (device loop0): clearing 2 ro feature flag BTRFS info (device loop0): creating free space tree BTRFS info (device loop0): setting 1 ro feature flag BTRFS info (device loop0): setting 2 ro feature flag