./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1089952886 <...> Warning: Permanently added '10.128.1.183' (ED25519) to the list of known hosts. execve("./syz-executor1089952886", ["./syz-executor1089952886"], 0x7ffd8768a300 /* 10 vars */) = 0 brk(NULL) = 0x555590a37000 brk(0x555590a37d00) = 0x555590a37d00 arch_prctl(ARCH_SET_FS, 0x555590a37380) = 0 set_tid_address(0x555590a37650) = 5232 set_robust_list(0x555590a37660, 24) = 0 rseq(0x555590a37ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1089952886", 4096) = 28 getrandom("\x14\xc9\x4a\x96\x2c\x4a\xb8\x8f", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555590a37d00 brk(0x555590a58d00) = 0x555590a58d00 brk(0x555590a59000) = 0x555590a59000 mprotect(0x7f2d56337000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 executing program write(1, "executing program\n", 18) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2d4de00000 write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 munmap(0x7f2d4de00000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file0", 0777) = 0 [ 70.981972][ T5232] loop0: detected capacity change from 0 to 32768 [ 71.003867][ T5232] BTRFS: device fsid e417788f-7a09-42b2-9266-8ddc5d5d35d2 devid 1 transid 8 /dev/loop0 (7:0) scanned by syz-executor108 (5232) [ 71.026590][ T5232] BTRFS info (device loop0): first mount of filesystem e417788f-7a09-42b2-9266-8ddc5d5d35d2 [ 71.038065][ T5232] BTRFS info (device loop0): using xxhash64 (xxhash64-generic) checksum algorithm [ 71.045993][ T5233] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:330 [ 71.047897][ T5232] BTRFS error (device loop0): superblock checksum mismatch [ 71.057129][ T5233] in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 5233, name: udevd [ 71.072892][ T5233] preempt_count: 0, expected: 0 [ 71.077759][ T5233] RCU nest depth: 1, expected: 0 [ 71.082700][ T5233] INFO: lockdep is turned off. [ 71.087537][ T5233] CPU: 1 UID: 0 PID: 5233 Comm: udevd Not tainted 6.12.0-rc2-next-20241008-syzkaller #0 [ 71.097280][ T5233] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 71.107327][ T5233] Call Trace: [ 71.110597][ T5233] [ 71.113535][ T5233] dump_stack_lvl+0x241/0x360 [ 71.118220][ T5233] ? __pfx_dump_stack_lvl+0x10/0x10 [ 71.123415][ T5233] ? __pfx__printk+0x10/0x10 [ 71.128011][ T5233] ? rcu_is_watching+0x15/0xb0 [ 71.132861][ T5233] ? rcu_is_watching+0x15/0xb0 [ 71.137634][ T5233] __might_resched+0x5d4/0x780 [ 71.142413][ T5233] ? __mutex_lock+0x112/0xd70 [ 71.147115][ T5233] ? __pfx___might_resched+0x10/0x10 [ 71.152415][ T5233] ? lock_acquire+0xe3/0x550 [ 71.157024][ T5233] ? __pfx_lock_acquire+0x10/0x10 [ 71.162066][ T5233] ? fs_reclaim_acquire+0x93/0x140 [ 71.167185][ T5233] ? getname_kernel+0x59/0x2f0 [ 71.171970][ T5233] kmem_cache_alloc_noprof+0x61/0x380 [ 71.177437][ T5233] getname_kernel+0x59/0x2f0 [ 71.182031][ T5233] ? device_list_add+0x6ab/0x1ea0 [ 71.187071][ T5233] kern_path+0x1d/0x50 [ 71.191329][ T5233] device_list_add+0xc64/0x1ea0 [ 71.196199][ T5233] ? __pfx_device_list_add+0x10/0x10 [ 71.201494][ T5233] ? __mutex_unlock_slowpath+0x21d/0x750 [ 71.207135][ T5233] ? __pfx___mutex_unlock_slowpath+0x10/0x10 [ 71.213128][ T5233] btrfs_scan_one_device+0xab5/0xd90 [ 71.218420][ T5233] ? __pfx_btrfs_scan_one_device+0x10/0x10 [ 71.224228][ T5233] ? __pfx___mutex_lock+0x10/0x10 [ 71.229252][ T5233] ? __might_fault+0xc6/0x120 [ 71.233921][ T5233] ? _copy_from_user+0xa6/0xe0 [ 71.238686][ T5233] btrfs_control_ioctl+0x165/0x3e0 [ 71.243812][ T5233] ? __pfx_btrfs_control_ioctl+0x10/0x10 [ 71.249447][ T5233] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 71.255777][ T5233] ? __pfx_btrfs_control_ioctl+0x10/0x10 [ 71.261415][ T5233] __se_sys_ioctl+0xf9/0x170 [ 71.266012][ T5233] do_syscall_64+0xf3/0x230 [ 71.270521][ T5233] ? clear_bhb_loop+0x35/0x90 [ 71.275203][ T5233] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 71.281088][ T5233] RIP: 0033:0x7faa2bb1ad49 [ 71.285499][ T5233] Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8 [ 71.305270][ T5233] RSP: 002b:00007ffd55ec91e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 71.313676][ T5233] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007faa2bb1ad49 [ 71.321651][ T5233] RDX: 00007ffd55ec91f8 RSI: 0000000090009427 RDI: 0000000000000009 mount("/dev/loop0", "./file0", "btrfs", MS_NOEXEC|MS_NOATIME|MS_REC|MS_RELATIME|MS_STRICTATIME, "compress-force,clear_cache,nodatasum,nossd,degraded,space_cache=v1,") = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = 0 [ 71.329618][ T5233] RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 [ 71.337579][ T5233] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 71.345550][ T5233] R13: 00007ffd55eca238 R14: 000055773bb412a0 R15: 00007ffd55ecaf58 [ 71.353548][ T5233] [ 71.359725][ T5232] BTRFS error (device loop0): open_ctree failed close(3) = 0 exit_group(0) = ? +++ exited with 0 +++