./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2256447564 <...> Warning: Permanently added '10.128.0.24' (ED25519) to the list of known hosts. execve("./syz-executor2256447564", ["./syz-executor2256447564"], 0x7ffd9f73c630 /* 10 vars */) = 0 brk(NULL) = 0x555588fe2000 brk(0x555588fe2d00) = 0x555588fe2d00 arch_prctl(ARCH_SET_FS, 0x555588fe2380) = 0 set_tid_address(0x555588fe2650) = 5089 set_robust_list(0x555588fe2660, 24) = 0 rseq(0x555588fe2ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2256447564", 4096) = 28 getrandom("\x64\x62\xbe\x7a\x60\xef\xbd\x6b", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555588fe2d00 brk(0x555589003d00) = 0x555589003d00 brk(0x555589004000) = 0x555589004000 mprotect(0x7f5f07632000, 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 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x555588fe2650) = 5090 ./strace-static-x86_64: Process 5090 attached [pid 5090] set_robust_list(0x555588fe2660, 24) = 0 [pid 5090] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5090] setpgid(0, 0) = 0 [pid 5090] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5090] write(3, "1000", 4) = 4 [pid 5090] close(3) = 0 [pid 5090] write(1, "executing program\n", 18executing program ) = 18 [pid 5090] memfd_create("syzkaller", 0) = 3 [pid 5090] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5eff000000 [pid 5090] 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 [pid 5090] munmap(0x7f5eff000000, 138412032) = 0 [pid 5090] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5090] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5090] close(3) = 0 [pid 5090] close(4) = 0 [pid 5090] mkdir("./file0", 0777) = 0 [ 76.581816][ T5090] loop0: detected capacity change from 0 to 32768 [ 76.611798][ T5090] BTRFS: device fsid c9fe44da-de57-406a-8241-57ec7d4412cf devid 1 transid 8 /dev/loop0 (7:0) scanned by syz-executor225 (5090) [ 76.645585][ T5090] BTRFS info (device loop0): first mount of filesystem c9fe44da-de57-406a-8241-57ec7d4412cf [ 76.664775][ T5090] BTRFS info (device loop0): using crc32c (crc32c-intel) checksum algorithm [ 76.673687][ T5090] BTRFS info (device loop0): using free-space-tree [pid 5090] mount("/dev/loop0", "./file0", "btrfs", MS_NOSUID|MS_NODEV|MS_SYNCHRONOUS|MS_NODIRATIME, "") = 0 [pid 5090] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5090] chdir("./file0") = 0 [pid 5090] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5090] ioctl(4, LOOP_CLR_FD) = 0 [pid 5090] close(4) = 0 [pid 5090] open("./bus", O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_LARGEFILE|O_NOATIME|0x3c, 000) = 4 [pid 5090] open("./bus", O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_LARGEFILE|O_NOATIME|0x3c, 000) = 5 [pid 5090] mount("/dev/loop0", "./bus", NULL, MS_BIND, NULL) = 0 [pid 5090] open("./bus", O_RDONLY) = 6 [pid 5090] memfd_create("syzkaller", 0) = 7 [pid 5090] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5eff000000 [pid 5090] write(7, "\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"..., 524288) = 524288 [pid 5090] munmap(0x7f5eff000000, 138412032) = 0 [pid 5090] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 8 [pid 5090] ioctl(8, LOOP_SET_FD, 7) = -1 EBUSY (Device or resource busy) [pid 5090] ioctl(8, LOOP_CLR_FD) = 0 [pid 5090] ioctl(8, LOOP_SET_FD, 7) = -1 EBUSY (Device or resource busy) [pid 5090] close(8) = 0 [pid 5090] close(7) = 0 [pid 5090] ioctl(6, LOOP_SET_STATUS, {lo_number=0, lo_offset=0x691f3f6d, lo_encrypt_type=0x9bedef3c /* LO_CRYPT_??? */, lo_encrypt_key_size=2121260791, lo_flags=LO_FLAGS_READ_ONLY|LO_FLAGS_AUTOCLEAR|LO_FLAGS_PARTSCAN|LO_FLAGS_DIRECT_IO|0xb3bb3f80, lo_name="\x8d\x36\xc0\x67\xd6\xf9\xd7\x73\xb0\x97\x22\xe7\x4f\x5c\xb8\x55\xd6\x57\xee\x76\xba\x2b\x77\x3b\xd7\x07\xe5\x24\x53\x49\x1a\x49\xb3\xbf\x4a\xd1\x4e\x8a\x8f\x93\x73\xe9\x2f\xf9\x7c\xf9\x62\x3d\x5c\xf1\xa0\x79\x5e\xbd\xf7\x51\xd1\x7c\xff\xc3\x4e\xbf\xd6"..., lo_encrypt_key="\x97\x6a\xfb\xc6\x56\xfd\x36\x19\xbb\x65\x2f\x39\x34\xac\x1c\x48\x32\xd3\x2f\xfe\x67\xdb\xc3\x6e\x1a\xaf\x5a\xaa\x71\x2e\xad\x8d", ...}) = 0 [ 76.996622][ T5090] loop0: detected capacity change from 32768 to 0 [ 77.021694][ T5090] syz-executor225: attempt to access beyond end of device [ 77.021694][ T5090] loop0: rw=6145, sector=10464, nr_sectors = 8 limit=0 [ 77.036225][ T5090] BTRFS error (device loop0): bdev /dev/loop0 errs: wr 1, rd 0, flush 0, corrupt 0, gen 0 [ 77.047065][ T5090] syz-executor225: attempt to access beyond end of device [ 77.047065][ T5090] loop0: rw=6145, sector=10456, nr_sectors = 8 limit=0 [ 77.060980][ T5090] BTRFS error (device loop0): bdev /dev/loop0 errs: wr 2, rd 0, flush 0, corrupt 0, gen 0 [ 77.077481][ T5090] BTRFS error (device loop0 state AL): Transaction aborted (error -5) [ 77.085880][ T5090] BTRFS: error (device loop0 state AL) in free_log_tree:3267: errno=-5 IO failure [pid 5090] write(5, "\x20\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", 32) = -1 EIO (Input/output error) [pid 5090] mmap(0x20000000, 6291456, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_SEM|PROT_GROWSUP|0x7ffff0, MAP_SHARED|MAP_FIXED|MAP_LOCKED|1< 0b e8 6e 45 b0 07 4c 89 ff be 08 00 00 00 e8 21 12 25 fe 4c 89 [ 77.225271][ T5090] RSP: 0018:ffffc900033d72e0 EFLAGS: 00010246 [ 77.231337][ T5090] RAX: 0000000000000045 RBX: 00fff0000000402c RCX: 663b7a08c50a0a00 [ 77.239312][ T5090] RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 [ 77.247279][ T5090] RBP: ffffc900033d73b0 R08: ffffffff8176b98c R09: 1ffff9200067adfc [ 77.255243][ T5090] R10: dffffc0000000000 R11: fffff5200067adfd R12: 0000000000000001 [ 77.263211][ T5090] R13: dffffc0000000000 R14: 0000000000000000 R15: ffffea0001cbee80 [ 77.271180][ T5090] FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 [ 77.280104][ T5090] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 77.286683][ T5090] CR2: 00007f5f076012f8 CR3: 000000000e134000 CR4: 00000000003506f0 [ 77.294652][ T5090] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 77.302615][ T5090] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 77.310587][ T5090] Call Trace: [ 77.313858][ T5090] [ 77.316783][ T5090] ? __die_body+0x88/0xe0 [ 77.321121][ T5090] ? die+0xcf/0x110 [ 77.324931][ T5090] ? do_trap+0x15a/0x3a0 [ 77.329175][ T5090] ? btrfs_folio_end_all_writers+0x55b/0x610 [ 77.335173][ T5090] ? do_error_trap+0x1dc/0x2c0 [ 77.339935][ T5090] ? btrfs_folio_end_all_writers+0x55b/0x610 [ 77.345916][ T5090] ? __pfx_do_error_trap+0x10/0x10 [ 77.351032][ T5090] ? handle_invalid_op+0x34/0x40 [ 77.355976][ T5090] ? btrfs_folio_end_all_writers+0x55b/0x610 [ 77.361955][ T5090] ? exc_invalid_op+0x38/0x50 [ 77.366649][ T5090] ? asm_exc_invalid_op+0x1a/0x20 [ 77.371701][ T5090] ? __wake_up_klogd+0xcc/0x110 [ 77.376556][ T5090] ? btrfs_folio_end_all_writers+0x55b/0x610 [ 77.382543][ T5090] ? _raw_spin_unlock_irqrestore+0x8f/0x140 [ 77.388435][ T5090] ? lockdep_hardirqs_on+0x99/0x150 [ 77.393631][ T5090] ? __pfx_btrfs_folio_end_all_writers+0x10/0x10 [ 77.399957][ T5090] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 77.405871][ T5090] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 77.412205][ T5090] btrfs_writepages+0x14d7/0x2760 [ 77.417253][ T5090] ? deref_stack_reg+0x1c7/0x260 [ 77.422199][ T5090] ? __pfx_btrfs_writepages+0x10/0x10 [ 77.427583][ T5090] ? mark_lock+0x9a/0x350 [ 77.431912][ T5090] ? __lock_acquire+0x1346/0x1fd0 [ 77.436937][ T5090] ? __pfx_btrfs_writepages+0x10/0x10 [ 77.442307][ T5090] do_writepages+0x359/0x870 [ 77.446901][ T5090] ? __pfx_do_writepages+0x10/0x10 [ 77.452028][ T5090] ? __pfx_lock_release+0x10/0x10 [ 77.457076][ T5090] ? do_raw_spin_unlock+0x13c/0x8b0 [ 77.462288][ T5090] ? wbc_attach_and_unlock_inode+0x369/0x580 [ 77.468287][ T5090] filemap_fdatawrite_wbc+0x125/0x180 [ 77.473730][ T5090] filemap_flush+0xdf/0x130 [ 77.478245][ T5090] ? __pfx_filemap_flush+0x10/0x10 [ 77.483357][ T5090] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 77.489366][ T5090] ? __pfx___might_resched+0x10/0x10 [ 77.494673][ T5090] btrfs_release_file+0x117/0x130 [ 77.499718][ T5090] ? __pfx_btrfs_release_file+0x10/0x10 [ 77.505295][ T5090] __fput+0x24a/0x8a0 [ 77.509291][ T5090] task_work_run+0x24f/0x310 [ 77.513899][ T5090] ? __pfx_task_work_run+0x10/0x10 [ 77.519023][ T5090] ? switch_task_namespaces+0xe1/0x110 [ 77.524489][ T5090] do_exit+0xa2f/0x27f0 [ 77.528667][ T5090] ? __pfx_do_exit+0x10/0x10 [ 77.533282][ T5090] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 77.539274][ T5090] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 77.545626][ T5090] ? _raw_spin_unlock_irq+0x23/0x50 [ 77.550837][ T5090] ? lockdep_hardirqs_on+0x99/0x150 [ 77.556044][ T5090] do_group_exit+0x207/0x2c0 [ 77.560648][ T5090] __x64_sys_exit_group+0x3f/0x40 [ 77.565691][ T5090] x64_sys_call+0x2634/0x2640 [ 77.570379][ T5090] do_syscall_64+0xf3/0x230 [ 77.574927][ T5090] ? clear_bhb_loop+0x35/0x90 [ 77.579623][ T5090] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 77.585538][ T5090] RIP: 0033:0x7f5f075b70c9 [ 77.589959][ T5090] Code: Unable to access opcode bytes at 0x7f5f075b709f. [ 77.596968][ T5090] RSP: 002b:00007ffd1c3f9a58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 77.605377][ T5090] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5f075b70c9 [ 77.613342][ T5090] RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000 [ 77.621306][ T5090] RBP: 00007f5f07638390 R08: ffffffffffffffb8 R09: 0000000000000000 [ 77.629277][ T5090] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5f07638390 [ 77.637246][ T5090] R13: 0000000000000000 R14: 00007f5f07639100 R15: 00007f5f07585050 [ 77.645310][ T5090] [ 77.648323][ T5090] Modules linked in: [ 77.652410][ T5090] ---[ end trace 0000000000000000 ]--- [ 77.657901][ T5090] RIP: 0010:btrfs_folio_end_all_writers+0x55b/0x610 [ 77.664521][ T5090] Code: e9 d3 fb ff ff e8 25 22 c2 fd 48 c7 c7 c0 3c 0e 8c 48 c7 c6 80 3d 0e 8c 48 c7 c2 60 3c 0e 8c b9 67 03 00 00 e8 66 47 ad 07 90 <0f> 0b e8 6e 45 b0 07 4c 89 ff be 08 00 00 00 e8 21 12 25 fe 4c 89 [ 77.684268][ T5090] RSP: 0018:ffffc900033d72e0 EFLAGS: 00010246 [ 77.690391][ T5090] RAX: 0000000000000045 RBX: 00fff0000000402c RCX: 663b7a08c50a0a00 [ 77.698403][ T5090] RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 [ 77.706410][ T5090] RBP: ffffc900033d73b0 R08: ffffffff8176b98c R09: 1ffff9200067adfc [ 77.714418][ T5090] R10: dffffc0000000000 R11: fffff5200067adfd R12: 0000000000000001 [ 77.722421][ T5090] R13: dffffc0000000000 R14: 0000000000000000 R15: ffffea0001cbee80 [ 77.730418][ T5090] FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 [ 77.739389][ T5090] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 77.745971][ T5090] CR2: 00007f5f076012f8 CR3: 000000000e134000 CR4: 00000000003506f0 [ 77.753974][ T5090] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 77.761986][ T5090] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 77.769993][ T5090] Kernel panic - not syncing: Fatal exception [ 77.776397][ T5090] Kernel Offset: disabled [ 77.780718][ T5090] Rebooting in 86400 seconds..