./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2211008891 <...> Warning: Permanently added '10.128.10.36' (ED25519) to the list of known hosts. execve("./syz-executor2211008891", ["./syz-executor2211008891"], 0x7ffde8df1500 /* 10 vars */) = 0 brk(NULL) = 0x55555ce37000 brk(0x55555ce37d00) = 0x55555ce37d00 arch_prctl(ARCH_SET_FS, 0x55555ce37380) = 0 set_tid_address(0x55555ce37650) = 5244 set_robust_list(0x55555ce37660, 24) = 0 rseq(0x55555ce37ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2211008891", 4096) = 28 getrandom("\xd5\x07\x01\x6e\xe1\x12\x8b\x29", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555ce37d00 brk(0x55555ce58d00) = 0x55555ce58d00 brk(0x55555ce59000) = 0x55555ce59000 mprotect(0x7fa5fa3d7000, 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 socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE) = 3 socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC) = 4 sendto(4, [{nlmsg_len=36, nlmsg_type=0x10 /* NLMSG_??? */, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}, "\x03\x00\x00\x00\x0d\x00\x02\x00\x6e\x6c\x38\x30\x32\x31\x35\x34\x00\x00\x00\x00"], 36, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 36 recvfrom(4, [{nlmsg_len=864, nlmsg_type=nlctrl, nlmsg_flags=0, nlmsg_seq=0, nlmsg_pid=5244}, "\x01\x02\x00\x00\x0d\x00\x02\x00\x6e\x6c\x38\x30\x32\x31\x35\x34\x00\x00\x00\x00\x06\x00\x01\x00\x1d\x00\x00\x00\x08\x00\x03\x00\x01\x00\x00\x00\x08\x00\x04\x00\x00\x00\x00\x00\x08\x00\x05\x00\x30\x00\x00\x00\xe8\x02\x06\x00\x14\x00\x01\x00\x08\x00\x01\x00\x01\x00\x00\x00\x08\x00\x02\x00\x0e\x00\x00\x00\x14\x00\x02\x00\x08\x00\x01\x00\x05\x00\x00\x00\x08\x00\x02\x00\x0e\x00\x00\x00\x14\x00\x03\x00"...], 4096, 0, NULL, NULL) = 864 recvfrom(4, [{nlmsg_len=36, nlmsg_type=NLMSG_ERROR, nlmsg_flags=NLM_F_CAPPED, nlmsg_seq=0, nlmsg_pid=5244}, {error=0, msg={nlmsg_len=36, nlmsg_type=nlctrl, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}}], 4096, 0, NULL, NULL) = 36 socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 5 ioctl(5, SIOCGIFINDEX, {ifr_name="wpan0", ifr_ifindex=11}) = 0 close(5) = 0 sendto(4, [{nlmsg_len=36, nlmsg_type=nl802154, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}, "\x0b\x00\x00\x00\x08\x00\x03\x00\x0b\x00\x00\x00\x06\x00\x0a\x00\xa0\xaa\x00\x00"], 36, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 36 recvfrom(4, [{nlmsg_len=36, nlmsg_type=NLMSG_ERROR, nlmsg_flags=NLM_F_CAPPED, nlmsg_seq=0, nlmsg_pid=5244}, {error=0, msg={nlmsg_len=36, nlmsg_type=nl802154, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}}], 4096, 0, NULL, NULL) = 36 socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 5 ioctl(5, SIOCGIFINDEX, {ifr_name="wpan0", ifr_ifindex=11}) = 0 close(5) = 0 sendto(3, [{nlmsg_len=44, nlmsg_type=0x10 /* NLMSG_??? */, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}, "\x00\x00\x00\x00\x0b\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x0c\x00\x01\x00\x02\x00\xaa\xaa\xaa\xaa\xaa\xaa"], 44, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 44 recvfrom(3, [{nlmsg_len=36, nlmsg_type=NLMSG_ERROR, nlmsg_flags=NLM_F_CAPPED, nlmsg_seq=0, nlmsg_pid=5244}, {error=0, msg={nlmsg_len=44, nlmsg_type=RTM_NEWLINK, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}}], 4096, 0, NULL, NULL) = 36 sendto(3, [{nlmsg_len=68, nlmsg_type=RTM_NEWLINK, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK|NLM_F_EXCL|NLM_F_CREATE, nlmsg_seq=0, nlmsg_pid=0}, {ifi_family=AF_UNSPEC, ifi_type=ARPHRD_NETROM, ifi_index=0, ifi_flags=0, ifi_change=0}, [[{nla_len=11, nla_type=IFLA_IFNAME}, "lowpan0"...], [{nla_len=16, nla_type=IFLA_LINKINFO}, [{nla_len=10, nla_type=IFLA_INFO_KIND}, "lowpan"...]], [{nla_len=8, nla_type=IFLA_LINK}, 11]]], 68, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 68 recvfrom(3, [{nlmsg_len=36, nlmsg_type=NLMSG_ERROR, nlmsg_flags=NLM_F_CAPPED, nlmsg_seq=0, nlmsg_pid=5244}, {error=0, msg={nlmsg_len=68, nlmsg_type=RTM_NEWLINK, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK|NLM_F_EXCL|NLM_F_CREATE, nlmsg_seq=0, nlmsg_pid=0}}], 4096, 0, NULL, NULL) = 36 socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 5 ioctl(5, SIOCGIFINDEX, {ifr_name="wpan1", ifr_ifindex=12}) = 0 close(5) = 0 sendto(4, [{nlmsg_len=36, nlmsg_type=nl802154, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}, "\x0b\x00\x00\x00\x08\x00\x03\x00\x0c\x00\x00\x00\x06\x00\x0a\x00\xa1\xaa\x00\x00"], 36, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 36 recvfrom(4, [{nlmsg_len=36, nlmsg_type=NLMSG_ERROR, nlmsg_flags=NLM_F_CAPPED, nlmsg_seq=0, nlmsg_pid=5244}, {error=0, msg={nlmsg_len=36, nlmsg_type=nl802154, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}}], 4096, 0, NULL, NULL) = 36 socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 5 ioctl(5, SIOCGIFINDEX, {ifr_name="wpan1", ifr_ifindex=12}) = 0 close(5) = 0 sendto(3, [{nlmsg_len=44, nlmsg_type=RTM_NEWLINK, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}, {ifi_family=AF_UNSPEC, ifi_type=ARPHRD_NETROM, ifi_index=if_nametoindex("wpan1"), ifi_flags=IFF_UP, ifi_change=0x1}, [{nla_len=12, nla_type=IFLA_ADDRESS}, 02:01:aa:aa:aa:aa:aa]], 44, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 44 recvfrom(3, [{nlmsg_len=36, nlmsg_type=NLMSG_ERROR, nlmsg_flags=NLM_F_CAPPED, nlmsg_seq=0, nlmsg_pid=5244}, {error=0, msg={nlmsg_len=44, nlmsg_type=RTM_NEWLINK, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}}], 4096, 0, NULL, NULL) = 36 close(3) = 0 close(4executing program ) = 0 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) = 0x7fa5f1e00000 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(0x7fa5f1e00000, 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 [ 66.798644][ T5244] loop0: detected capacity change from 0 to 32768 [ 66.881402][ T5244] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,str_hash=crc32c,fsck,norecovery,nojournal_transaction_names [ 66.899997][ T5244] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 66.919291][ T5244] bcachefs (loop0): check_topology... done mount("/dev/loop0", "./file0", "bcachefs", MS_NOATIME, "btree_node_mem_ptr_optimization,inodes_32bit,directWio,fsck,acl,norecovery,acl,str_hash=crc32c,obj_u"...) = 0 [ 66.925620][ T5244] bcachefs (loop0): accounting_read... done [ 66.932598][ T5244] bcachefs (loop0): alloc_read... done [ 66.938230][ T5244] bcachefs (loop0): stripes_read... done [ 66.943924][ T5244] bcachefs (loop0): snapshots_read... done [ 66.952204][ T5244] bcachefs (loop0): going read-write [ 66.961356][ T1169] ------------[ cut here ]------------ [ 66.967097][ T1169] kernel BUG at fs/bcachefs/btree_journal_iter.c:190! [ 66.970849][ T5244] bcachefs (loop0): done starting filesystem openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_CLR_FD) = 0 [ 66.973924][ T1169] Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI [ 66.986789][ T1169] CPU: 1 UID: 0 PID: 1169 Comm: kworker/1:2 Not tainted 6.12.0-rc3-next-20241016-syzkaller #0 [ 66.997023][ T1169] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 67.007107][ T1169] Workqueue: bcachefs_write_ref bch2_delete_dead_snapshots_work (bcachefs-delete-dead-snapshots/) [ 67.017757][ T1169] RIP: 0010:bch2_journal_key_insert_take+0x180f/0x1830 [ 67.024670][ T1169] Code: f1 fc ff ff e8 d2 51 78 fd 90 0f 0b e8 ca 51 78 fd 90 0f 0b e8 c2 51 78 fd 90 0f 0b e8 ba 51 78 fd 90 0f 0b e8 b2 51 78 fd 90 <0f> 0b e8 4a a1 af 07 e8 a5 51 78 fd 90 0f 0b e8 9d 51 78 fd 90 0f [ 67.044300][ T1169] RSP: 0018:ffffc9000430edc0 EFLAGS: 00010293 [ 67.050388][ T1169] RAX: ffffffff841c909e RBX: 0000000000000040 RCX: ffff8880272b8000 [ 67.058375][ T1169] RDX: 0000000000000000 RSI: 0000000000000040 RDI: 0000000000000000 [ 67.066355][ T1169] RBP: ffffc9000430ef30 R08: ffffffff841c7a8e R09: 1ffff1100de80035 [ 67.074333][ T1169] R10: dffffc0000000000 R11: ffffed100de80036 R12: 0000000000000000 [ 67.082341][ T1169] R13: ffff88806f400000 R14: dffffc0000000000 R15: ffff88806f44b310 [ 67.090329][ T1169] FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 [ 67.099259][ T1169] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 67.105841][ T1169] CR2: 0000559ab32ac530 CR3: 00000000744be000 CR4: 00000000003526f0 [ 67.113835][ T1169] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 67.121805][ T1169] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 67.129777][ T1169] Call Trace: [ 67.133058][ T1169] [ 67.135997][ T1169] ? __die_body+0x5f/0xb0 [ 67.140333][ T1169] ? die+0x9e/0xc0 [ 67.144051][ T1169] ? do_trap+0x15a/0x3a0 [ 67.148305][ T1169] ? bch2_journal_key_insert_take+0x180f/0x1830 [ 67.154550][ T1169] ? do_error_trap+0x1dc/0x2c0 [ 67.159324][ T1169] ? bch2_journal_key_insert_take+0x180f/0x1830 [ 67.165574][ T1169] ? __pfx_do_error_trap+0x10/0x10 [ 67.170692][ T1169] ? report_bug+0x3e8/0x500 [ 67.175230][ T1169] ? handle_invalid_op+0x34/0x40 [ 67.180199][ T1169] ? bch2_journal_key_insert_take+0x180f/0x1830 [ 67.186452][ T1169] ? exc_invalid_op+0x38/0x50 [ 67.191151][ T1169] ? asm_exc_invalid_op+0x1a/0x20 [ 67.196187][ T1169] ? bch2_journal_key_insert_take+0x1fe/0x1830 [ 67.202381][ T1169] ? bch2_journal_key_insert_take+0x180e/0x1830 [ 67.208635][ T1169] ? bch2_journal_key_insert_take+0x180f/0x1830 [ 67.214885][ T1169] ? __pfx_bch2_journal_key_insert_take+0x10/0x10 [ 67.221297][ T1169] ? rcu_is_watching+0x15/0xb0 [ 67.226065][ T1169] ? trace_kmalloc+0x1f/0xd0 [ 67.230696][ T1169] ? bch2_journal_key_insert+0x8e/0x130 [ 67.236244][ T1169] bch2_journal_key_insert+0xb3/0x130 [ 67.241622][ T1169] do_bch2_trans_commit_to_journal_replay+0x111/0x420 [ 67.248407][ T1169] __bch2_trans_commit+0x15d9/0x9420 [ 67.253706][ T1169] ? __pfx_lock_acquire+0x10/0x10 [ 67.258730][ T1169] ? bch2_snapshot_equiv+0x1f/0x2c0 [ 67.263929][ T1169] ? __pfx_lock_release+0x10/0x10 [ 67.268958][ T1169] ? __pfx___bch2_trans_commit+0x10/0x10 [ 67.274607][ T1169] ? bch2_btree_delete_at+0x17c/0x230 [ 67.279998][ T1169] ? __asan_memcpy+0x40/0x70 [ 67.284596][ T1169] ? bch2_btree_delete_at+0x17c/0x230 [ 67.289977][ T1169] bch2_delete_dead_snapshots+0x19b6/0x5ae0 [ 67.295900][ T1169] ? bch2_delete_dead_snapshots+0x2a5/0x5ae0 [ 67.301887][ T1169] ? __pfx_bch2_delete_dead_snapshots+0x10/0x10 [ 67.308220][ T1169] ? preempt_count_add+0x93/0x190 [ 67.313250][ T1169] ? unwind_next_frame+0x193b/0x22d0 [ 67.318573][ T1169] ? ret_from_fork_asm+0x1a/0x30 [ 67.323526][ T1169] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 67.329690][ T1169] ? arch_stack_walk+0x11c/0x150 [ 67.334636][ T1169] ? ret_from_fork_asm+0x1a/0x30 [ 67.339588][ T1169] ? stack_trace_save+0x118/0x1d0 [ 67.344639][ T1169] ? __pfx_stack_trace_save+0x10/0x10 [ 67.350016][ T1169] ? check_noncircular+0x259/0x4a0 [ 67.355137][ T1169] ? __pfx_lockdep_unlock+0x10/0x10 [ 67.360348][ T1169] ? validate_chain+0x15c0/0x5920 [ 67.365385][ T1169] ? bch2_delete_dead_snapshots+0x2a5/0x5ae0 [ 67.371364][ T1169] ? __pfx_validate_chain+0x10/0x10 [ 67.376565][ T1169] ? bch2_delete_dead_snapshots+0x2a5/0x5ae0 [ 67.382553][ T1169] ? __pfx_stack_trace_save+0x10/0x10 [ 67.387935][ T1169] ? bch2_delete_dead_snapshots+0x2a5/0x5ae0 [ 67.393931][ T1169] ? format_decode+0xc5f/0x1bb0 [ 67.398789][ T1169] ? bch2_delete_dead_snapshots+0x16dc/0x5ae0 [ 67.404858][ T1169] ? vsnprintf+0x1ccd/0x1da0 [ 67.409451][ T1169] ? __pfx_vsnprintf+0x10/0x10 [ 67.414215][ T1169] ? set_worker_desc+0x15d/0x1d0 [ 67.419150][ T1169] ? __pfx_lock_acquire+0x10/0x10 [ 67.424192][ T1169] ? process_scheduled_works+0xa05/0x1850 [ 67.429920][ T1169] ? __pfx_set_worker_desc+0x10/0x10 [ 67.435233][ T1169] ? process_scheduled_works+0x976/0x1850 [ 67.440961][ T1169] bch2_delete_dead_snapshots_work+0x34/0x40 [ 67.446971][ T1169] process_scheduled_works+0xa63/0x1850 [ 67.452544][ T1169] ? __pfx_process_scheduled_works+0x10/0x10 [ 67.458547][ T1169] ? assign_work+0x364/0x3d0 [ 67.463145][ T1169] worker_thread+0x870/0xd30 [ 67.467745][ T1169] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 67.473656][ T1169] ? __kthread_parkme+0x169/0x1d0 [ 67.478694][ T1169] ? __pfx_worker_thread+0x10/0x10 close(4) = 0 exit_group(0) = ? [ 67.483816][ T1169] kthread+0x2f0/0x390 [ 67.487898][ T1169] ? __pfx_worker_thread+0x10/0x10 [ 67.493016][ T1169] ? __pfx_kthread+0x10/0x10 [ 67.497612][ T1169] ret_from_fork+0x4b/0x80 [ 67.502030][ T1169] ? __pfx_kthread+0x10/0x10 [ 67.506622][ T1169] ret_from_fork_asm+0x1a/0x30 [ 67.511400][ T1169] [ 67.514417][ T1169] Modules linked in: [ 67.518528][ T1169] ---[ end trace 0000000000000000 ]--- [ 67.525259][ T1169] RIP: 0010:bch2_journal_key_insert_take+0x180f/0x1830 +++ exited with 0 +++ [ 67.532189][ T1169] Cod