./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2318108811 <...> Warning: Permanently added '10.128.0.188' (ED25519) to the list of known hosts. execve("./syz-executor2318108811", ["./syz-executor2318108811"], 0x7ffe83531480 /* 10 vars */) = 0 brk(NULL) = 0x555592258000 brk(0x555592258d00) = 0x555592258d00 arch_prctl(ARCH_SET_FS, 0x555592258380) = 0 set_tid_address(0x555592258650) = 5098 set_robust_list(0x555592258660, 24) = 0 rseq(0x555592258ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2318108811", 4096) = 28 getrandom("\x10\x8b\x99\xdc\xa8\xf2\x91\xe1", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555592258d00 brk(0x555592279d00) = 0x555592279d00 brk(0x55559227a000) = 0x55559227a000 mprotect(0x7f3909cf3000, 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) = 0x7f3901800000 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"..., 524288) = 524288 munmap(0x7f3901800000, 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 mount("/dev/loop0", "./file0", "hfsplus", MS_SYNCHRONOUS|MS_NOATIME|MS_POSIXACL, "") = 0 [ 74.396295][ T5098] loop0: detected capacity change from 0 to 1024 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) [ 74.474460][ T5098] ------------[ cut here ]------------ [ 74.480131][ T5098] kernel BUG at fs/hfsplus/xattr.c:175! [ 74.486409][ T5098] Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI [ 74.493417][ T5098] CPU: 1 PID: 5098 Comm: syz-executor231 Not tainted 6.9.0-rc6-next-20240502-syzkaller #0 [ 74.503329][ T5098] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 74.513406][ T5098] RIP: 0010:__hfsplus_setxattr+0x22c4/0x22d0 [ 74.519435][ T5098] Code: e8 b1 b8 07 09 e8 9c 17 14 ff 4c 89 ff 48 c7 c6 e0 76 e1 8b e8 7d cd 5d ff 90 0f 0b e8 85 17 14 ff 90 0f 0b e8 7d 17 14 ff 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 [ 74.539056][ T5098] RSP: 0018:ffffc900037874c0 EFLAGS: 00010293 [ 74.545128][ T5098] RAX: ffffffff8281fd53 RBX: 0000000000010000 RCX: ffff888029650000 [ 74.553118][ T5098] RDX: 0000000000000000 RSI: 0000000000010000 RDI: 0000000000000000 [ 74.561088][ T5098] RBP: ffffc90003787958 R08: ffffffff8281e473 R09: 1ffff110045ec557 [ 74.569061][ T5098] R10: dffffc0000000000 R11: ffffed10045ec558 R12: ffff888022f62370 [ 74.577029][ T5098] R13: dffffc0000000000 R14: ffff888022f62a30 R15: 0000000000000000 [ 74.585088][ T5098] FS: 0000555592258380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 [ 74.594024][ T5098] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 74.600628][ T5098] CR2: 0000563b228fe328 CR3: 0000000076c08000 CR4: 00000000003506f0 [ 74.608615][ T5098] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 74.616607][ T5098] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 74.624585][ T5098] Call Trace: [ 74.627888][ T5098] [ 74.630868][ T5098] ? __die_body+0x88/0xe0 [ 74.635271][ T5098] ? die+0xcf/0x110 [ 74.639104][ T5098] ? do_trap+0x15a/0x3a0 [ 74.643363][ T5098] ? __hfsplus_setxattr+0x22c4/0x22d0 [ 74.649535][ T5098] ? do_error_trap+0x1dc/0x2c0 [ 74.654310][ T5098] ? __hfsplus_setxattr+0x22c4/0x22d0 [ 74.659819][ T5098] ? __pfx_do_error_trap+0x10/0x10 [ 74.664961][ T5098] ? report_bug+0x3e8/0x500 [ 74.669514][ T5098] ? handle_invalid_op+0x34/0x40 [ 74.674832][ T5098] ? __hfsplus_setxattr+0x22c4/0x22d0 [ 74.680270][ T5098] ? exc_invalid_op+0x38/0x50 [ 74.684958][ T5098] ? asm_exc_invalid_op+0x1a/0x20 [ 74.689992][ T5098] ? __hfsplus_setxattr+0x9e3/0x22d0 [ 74.695277][ T5098] ? __hfsplus_setxattr+0x22c3/0x22d0 [ 74.700654][ T5098] ? __hfsplus_setxattr+0x22c4/0x22d0 [ 74.706209][ T5098] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 74.712561][ T5098] ? __pfx___hfsplus_setxattr+0x10/0x10 [ 74.718287][ T5098] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 74.724225][ T5098] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 74.730632][ T5098] ? stack_trace_save+0x118/0x1d0 [ 74.735693][ T5098] ? stack_depot_save_flags+0x6e4/0x830 [ 74.741320][ T5098] ? __kasan_kmalloc+0x98/0xb0 [ 74.746103][ T5098] ? hfsplus_setxattr+0x68/0xe0 [ 74.750968][ T5098] ? kmalloc_trace_noprof+0x19c/0x2c0 [ 74.756377][ T5098] hfsplus_setxattr+0xb0/0xe0 [ 74.761092][ T5098] hfsplus_user_setxattr+0x40/0x60 [ 74.766335][ T5098] ? __pfx_hfsplus_user_setxattr+0x10/0x10 [ 74.772262][ T5098] __vfs_setxattr+0x468/0x4a0 [ 74.776969][ T5098] __vfs_setxattr_noperm+0x12e/0x660 [ 74.782275][ T5098] vfs_setxattr+0x221/0x430 [ 74.786855][ T5098] ? __pfx_vfs_setxattr+0x10/0x10 [ 74.791912][ T5098] ? __might_fault+0xc6/0x120 [ 74.796611][ T5098] ? strncpy_from_user+0x1a4/0x2f0 [ 74.801866][ T5098] setxattr+0x25d/0x2f0 [ 74.806046][ T5098] ? __pfx_setxattr+0x10/0x10 [ 74.810843][ T5098] ? mnt_get_write_access+0x226/0x2b0 [ 74.816244][ T5098] path_setxattr+0x1c0/0x2a0 [ 74.820848][ T5098] ? __pfx_path_setxattr+0x10/0x10 [ 74.825961][ T5098] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 74.832300][ T5098] ? do_syscall_64+0x102/0x240 [ 74.837206][ T5098] __x64_sys_setxattr+0xbb/0xd0 [ 74.842075][ T5098] do_syscall_64+0xf5/0x240 [ 74.846793][ T5098] ? clear_bhb_loop+0x35/0x90 [ 74.851494][ T5098] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 74.857406][ T5098] RIP: 0033:0x7f3909c805f9 [ 74.861823][ T5098] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48 [ 74.881539][ T5098] RSP: 002b:00007ffc65acf778 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc [ 74.889966][ T5098] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f3909c805f9 [ 74.897954][ T5098] RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000020000100 [ 74.906063][ T5098] RBP: 00007f3909cf3610 R08: 0000000000000003 R09: 0000000000000000 [ 74.914038][ T5098] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 74.922026][ T5098] R13: 00007ffc65acf948 R14: 0000000000000001 R15: 0000000000000001 [ 74.930045][ T5098] [ 74.933067][ T5098] Modules linked in: [ 74.938870][ T5098] ---[ end trace 0000000000000000 ]--- [ 74.944411][ T5098] RIP: 0010:__hfsplus_setxattr+0x22c4/0x22d0 [ 74.950441][ T5098] Code: e8 b1 b8 07 09 e8 9c 17 14 ff 4c 89 ff 48 c7 c6 e0 76 e1 8b e8 7d cd 5d ff 90 0f 0b e8 85 17 14 ff 90 0f 0b e8 7d 17 14 ff 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 [ 74.970173][ T5098] RSP: 0018:ffffc900037874c0 EFLAGS: 00010293 [ 74.976453][ T5098] RAX: ffffffff8281fd53 RBX: 0000000000010000 RCX: ffff888029650000 [ 74.984635][ T5098] RDX: 0000000000000000 RSI: 0000000000010000 RDI: 0000000000000000 [ 74.993358][ T5098] RBP: ffffc90003787958 R08: ffffffff8281e473 R09: 1ffff110045ec557 [ 75.001606][ T5098] R10: dffffc0000000000 R11: ffffed10045ec558 R12: ffff888022f62370 [ 75.010991][ T5098] R13: dffffc0000000000 R14: ffff888022f62a30 R15: 0000000000000000 [ 75.019192][ T5098] FS: 0000555592258380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 [ 75.028531][ T5098] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 75.035378][ T5098] CR2: 0000563b228fe328 CR3: 0000000076c08000 CR4: 00000000003506f0 [ 75.044015][ T5098] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 75.053019][ T5098] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 75.061364][ T5098] Kernel panic - not syncing: Fatal exception [ 75.067951][ T5098] Kernel Offset: disabled [ 75.072365][ T5098] Rebooting in 86400 seconds..