./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor789435645 <...> DUID 00:04:03:2c:e5:fc:a2:19:b8:8b:c5:bf:62:63:19:3a:75:c6 forked to background, child pid 4869 [ 37.876303][ T4870] 8021q: adding VLAN 0 to HW filter on device bond0 [ 37.886009][ T4870] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.0.221' (ECDSA) to the list of known hosts. execve("./syz-executor789435645", ["./syz-executor789435645"], 0x7ffc223c1690 /* 10 vars */) = 0 brk(NULL) = 0x555556ae3000 brk(0x555556ae3c40) = 0x555556ae3c40 arch_prctl(ARCH_SET_FS, 0x555556ae3300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor789435645", 4096) = 27 brk(0x555556b04c40) = 0x555556b04c40 brk(0x555556b05000) = 0x555556b05000 mprotect(0x7f527f975000, 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 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5277400000 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(0x7f5277400000, 16777216) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 syzkaller login: [ 58.943291][ T5295] loop0: detected capacity change from 0 to 32768 [ 58.955812][ T5295] BTRFS: device fsid 5ac8a51e-da3a-4998-8e66-e1df06b87bc8 devid 1 transid 8 /dev/loop0 scanned by syz-executor789 (5295) [ 58.975084][ T5295] BTRFS info (device loop0): using xxhash64 (xxhash64-generic) checksum algorithm [ 58.984838][ T5295] BTRFS info (device loop0): using free space tree mount("/dev/loop0", "./file0", "btrfs", 0, "noflushoncommit,rescan_uuid_tree,noacl,noautodefrag,datacow,") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 ioctl(3, BTRFS_IOC_SUBVOL_SETFLAGS, BTRFS_SUBVOL_RDONLY) = 0 [ 59.005312][ T5295] BTRFS info (device loop0): enabling ssd optimizations [ 59.012754][ T5295] BTRFS info (device loop0): auto enabling async discard [ 59.022430][ T5295] BTRFS info (device loop0): checking UUID tree [ 59.059537][ T5295] ------------[ cut here ]------------ [ 59.065298][ T5295] WARNING: CPU: 0 PID: 5295 at fs/read_write.c:504 __kernel_write_iter+0x5a8/0x730 [ 59.075904][ T5295] Modules linked in: [ 59.080217][ T5295] CPU: 0 PID: 5295 Comm: syz-executor789 Not tainted 6.1.0-rc6-next-20221125-syzkaller #0 [ 59.090581][ T5295] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 59.101124][ T5295] RIP: 0010:__kernel_write_iter+0x5a8/0x730 [ 59.107189][ T5295] Code: 8c e8 5c a0 dd 07 31 ff 89 c3 89 c6 e8 a1 b4 a3 ff 85 db 0f 85 b6 61 e5 07 49 c7 c6 ea ff ff ff e9 11 ff ff ff e8 d8 b7 a3 ff <0f> 0b 49 c7 c6 f7 ff ff ff e9 fe fe ff ff e8 c5 b7 a3 ff 4c 89 ea [ 59.127529][ T5295] RSP: 0018:ffffc90003b9f6d0 EFLAGS: 00010293 [ 59.133920][ T5295] RAX: 0000000000000000 RBX: 00000000000a801d RCX: 0000000000000000 [ 59.142599][ T5295] RDX: ffff8880180057c0 RSI: ffffffff81dd11e8 RDI: 0000000000000005 [ 59.150901][ T5295] RBP: 1ffff92000773edc R08: 0000000000000005 R09: 0000000000000000 [ 59.159196][ T5295] R10: 0000000000000000 R11: 1ffffffff214b39f R12: ffff8880222e3400 [ 59.167210][ T5295] R13: ffff8880222e347c R14: 0000000000000000 R15: ffff8880291c3808 [ 59.175548][ T5295] FS: 0000555556ae3300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 [ 59.184800][ T5295] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 59.191713][ T5295] CR2: 00007ffc223bfc58 CR3: 000000001e071000 CR4: 00000000003506f0 [ 59.200056][ T5295] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 59.208327][ T5295] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 59.216360][ T5295] Call Trace: [ 59.220039][ T5295] [ 59.223015][ T5295] ? vfs_read+0x9e0/0x9e0 [ 59.227869][ T5295] ? apparmor_file_permission+0x268/0x4e0 [ 59.233658][ T5295] ? bpf_lsm_file_permission+0x9/0x10 [ 59.239554][ T5295] ? security_file_permission+0xaf/0xd0 [ 59.245311][ T5295] kernel_write+0x1c1/0x630 [ 59.250106][ T5295] ? btrfs_drop_inode+0x170/0x170 [ 59.255163][ T5295] ? __kernel_write+0x110/0x110 [ 59.260273][ T5295] btrfs_ioctl_send+0x23e6/0x65a0 [ 59.265363][ T5295] ? changed_cb+0x3610/0x3610 [ 59.270401][ T5295] ? __might_fault+0xd9/0x180 [ 59.275114][ T5295] ? lock_downgrade+0x6e0/0x6e0 [ 59.280248][ T5295] ? _copy_from_user+0x170/0x1f0 [ 59.285238][ T5295] _btrfs_ioctl_send+0x231/0x2e0 [ 59.290464][ T5295] ? exclop_start_or_cancel_reloc+0x230/0x230 [ 59.296593][ T5295] ? tomoyo_path_number_perm+0x242/0x570 [ 59.302373][ T5295] ? lock_downgrade+0x6e0/0x6e0 [ 59.307291][ T5295] ? __kmem_cache_free+0xaf/0x3b0 [ 59.312479][ T5295] btrfs_ioctl+0x4058/0x5870 [ 59.317094][ T5295] ? tomoyo_path_number_perm+0x166/0x570 [ 59.322914][ T5295] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 59.328925][ T5295] ? btrfs_ioctl_get_supported_features+0x50/0x50 [ 59.335367][ T5295] ? __sanitizer_cov_trace_switch+0x54/0x90 [ 59.341353][ T5295] ? do_vfs_ioctl+0x137/0x1ae0 [ 59.346153][ T5295] ? vfs_fileattr_set+0xbe0/0xbe0 [ 59.351326][ T5295] ? find_held_lock+0x2d/0x110 [ 59.356165][ T5295] ? name_to_dev_t+0x12/0x990 [ 59.360971][ T5295] ? lock_downgrade+0x6e0/0x6e0 [ 59.365898][ T5295] ? bpf_lsm_file_ioctl+0x9/0x10 [ 59.370932][ T5295] ? btrfs_ioctl_get_supported_features+0x50/0x50 [ 59.377376][ T5295] __x64_sys_ioctl+0x197/0x210 [ 59.382464][ T5295] do_syscall_64+0x39/0xb0 [ 59.386925][ T5295] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.392904][ T5295] RIP: 0033:0x7f527f903b49 [ 59.397344][ T5295] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 59.417158][ T5295] RSP: 002b:00007ffe9a0e7ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 59.425897][ T5295] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f527f903b49 [ 59.434036][ T5295] RDX: 00000000200003c0 RSI: 0000000040489426 RDI: 0000000000000003 [ 59.442193][ T5295] RBP: 00007f527f8c3410 R08: 0000000000000000 R09: 0000000000000000 [ 59.450356][ T5295] R10: 00000000000051af R11: 0000000000000246 R12: 00007f527f8c34a0 [ 59.458505][ T5295] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 59.466489][ T5295] [ 59.469589][ T5295] Kernel panic - not syncing: panic_on_warn set ... [ 59.476186][ T5295] CPU: 1 PID: 5295 Comm: syz-executor789 Not tainted 6.1.0-rc6-next-20221125-syzkaller #0 [ 59.486345][ T5295] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 59.496430][ T5295] Call Trace: [ 59.499725][ T5295] [ 59.502845][ T5295] dump_stack_lvl+0xd1/0x138 [ 59.507464][ T5295] panic+0x2cc/0x626 [ 59.511387][ T5295] ? panic_print_sys_info.part.0+0x110/0x110 [ 59.517410][ T5295] ? __warn.cold+0x24b/0x350 [ 59.522030][ T5295] ? __kernel_write_iter+0x5a8/0x730 [ 59.527466][ T5295] __warn.cold+0x25c/0x350 [ 59.531961][ T5295] ? __kernel_write_iter+0x5a8/0x730 [ 59.537291][ T5295] report_bug+0x1c0/0x210 [ 59.541661][ T5295] handle_bug+0x3c/0x70 [ 59.545839][ T5295] exc_invalid_op+0x18/0x50 [ 59.550371][ T5295] asm_exc_invalid_op+0x1a/0x20 [ 59.555254][ T5295] RIP: 0010:__kernel_write_iter+0x5a8/0x730 [ 59.561188][ T5295] Code: 8c e8 5c a0 dd 07 31 ff 89 c3 89 c6 e8 a1 b4 a3 ff 85 db 0f 85 b6 61 e5 07 49 c7 c6 ea ff ff ff e9 11 ff ff ff e8 d8 b7 a3 ff <0f> 0b 49 c7 c6 f7 ff ff ff e9 fe fe ff ff e8 c5 b7 a3 ff 4c 89 ea [ 59.580819][ T5295] RSP: 0018:ffffc90003b9f6d0 EFLAGS: 00010293 [ 59.586905][ T5295] RAX: 0000000000000000 RBX: 00000000000a801d RCX: 0000000000000000 [ 59.594893][ T5295] RDX: ffff8880180057c0 RSI: ffffffff81dd11e8 RDI: 0000000000000005 [ 59.602914][ T5295] RBP: 1ffff92000773edc R08: 0000000000000005 R09: 0000000000000000 [ 59.610990][ T5295] R10: 0000000000000000 R11: 1ffffffff214b39f R12: ffff8880222e3400 [ 59.618990][ T5295] R13: ffff8880222e347c R14: 0000000000000000 R15: ffff8880291c3808 [ 59.627033][ T5295] ? __kernel_write_iter+0x5a8/0x730 [ 59.632379][ T5295] ? vfs_read+0x9e0/0x9e0 [ 59.636747][ T5295] ? apparmor_file_permission+0x268/0x4e0 [ 59.642484][ T5295] ? bpf_lsm_file_permission+0x9/0x10 [ 59.647876][ T5295] ? security_file_permission+0xaf/0xd0 [ 59.653488][ T5295] kernel_write+0x1c1/0x630 [ 59.658034][ T5295] ? btrfs_drop_inode+0x170/0x170 [ 59.663074][ T5295] ? __kernel_write+0x110/0x110 [ 59.667969][ T5295] btrfs_ioctl_send+0x23e6/0x65a0 [ 59.673054][ T5295] ? changed_cb+0x3610/0x3610 [ 59.677778][ T5295] ? __might_fault+0xd9/0x180 [ 59.682503][ T5295] ? lock_downgrade+0x6e0/0x6e0 [ 59.687406][ T5295] ? _copy_from_user+0x170/0x1f0 [ 59.692362][ T5295] _btrfs_ioctl_send+0x231/0x2e0 [ 59.697329][ T5295] ? exclop_start_or_cancel_reloc+0x230/0x230 [ 59.703431][ T5295] ? tomoyo_path_number_perm+0x242/0x570 [ 59.709108][ T5295] ? lock_downgrade+0x6e0/0x6e0 [ 59.714309][ T5295] ? __kmem_cache_free+0xaf/0x3b0 [ 59.719403][ T5295] btrfs_ioctl+0x4058/0x5870 [ 59.724021][ T5295] ? tomoyo_path_number_perm+0x166/0x570 [ 59.729694][ T5295] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 59.735536][ T5295] ? btrfs_ioctl_get_supported_features+0x50/0x50 [ 59.742051][ T5295] ? __sanitizer_cov_trace_switch+0x54/0x90 [ 59.747975][ T5295] ? do_vfs_ioctl+0x137/0x1ae0 [ 59.752774][ T5295] ? vfs_fileattr_set+0xbe0/0xbe0 [ 59.757853][ T5295] ? find_held_lock+0x2d/0x110 [ 59.762645][ T5295] ? name_to_dev_t+0x12/0x990 [ 59.767537][ T5295] ? lock_downgrade+0x6e0/0x6e0 [ 59.772514][ T5295] ? bpf_lsm_file_ioctl+0x9/0x10 [ 59.777473][ T5295] ? btrfs_ioctl_get_supported_features+0x50/0x50 [ 59.783907][ T5295] __x64_sys_ioctl+0x197/0x210 [ 59.788702][ T5295] do_syscall_64+0x39/0xb0 [ 59.793170][ T5295] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.799095][ T5295] RIP: 0033:0x7f527f903b49 [ 59.803522][ T5295] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 59.823173][ T5295] RSP: 002b:00007ffe9a0e7ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 59.831618][ T5295] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f527f903b49 [ 59.839609][ T5295] RDX: 00000000200003c0 RSI: 0000000040489426 RDI: 0000000000000003 [ 59.847677][ T5295] RBP: 00007f527f8c3410 R08: 0000000000000000 R09: 0000000000000000 [ 59.855658][ T5295] R10: 00000000000051af R11: 0000000000000246 R12: 00007f527f8c34a0 [ 59.863846][ T5295] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 59.871854][ T5295] [ 59.874936][ T5295] Kernel Offset: disabled [ 59.879344][ T5295] Rebooting in 86400 seconds..