ERROR: (device loop0): txAbort: ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dtree.c:784:21 index -1 is out of range for type 'struct dtslot[128]' CPU: 0 UID: 0 PID: 6704 Comm: syz.0.6 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 ubsan_epilogue+0x14/0x48 lib/ubsan.c:233 __ubsan_handle_out_of_bounds+0xd0/0xfc lib/ubsan.c:455 dtSearch+0x1664/0x1d00 fs/jfs/jfs_dtree.c:784 jfs_lookup+0x13c/0x32c fs/jfs/namei.c:1461 lookup_one_qstr_excl+0x10c/0x2fc fs/namei.c:1747 __start_dirop fs/namei.c:2866 [inline] start_dirop fs/namei.c:2875 [inline] filename_create+0x1b4/0x2d8 fs/namei.c:4879 do_mkdirat+0xc8/0x448 fs/namei.c:5156 __do_sys_mkdirat fs/namei.c:5186 [inline] __se_sys_mkdirat fs/namei.c:5184 [inline] __arm64_sys_mkdirat+0x8c/0xa4 fs/namei.c:5184 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xe8/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x26c arch/arm64/kernel/entry-common.c:724 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:743 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 ---[ end trace ]--- ================================================================== BUG: KASAN: slab-out-of-bounds in addressPXD fs/jfs/jfs_types.h:80 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x1680/0x1d00 fs/jfs/jfs_dtree.c:785 Read of size 4 at addr ffff0000d93ebfe0 by task syz.0.6/6704 CPU: 1 UID: 0 PID: 6704 Comm: syz.0.6 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xa8/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0xb0/0x110 mm/kasan/report.c:595 __asan_report_load4_noabort+0x20/0x2c mm/kasan/report_generic.c:380 addressPXD fs/jfs/jfs_types.h:80 [inline] dtSearch+0x1680/0x1d00 fs/jfs/jfs_dtree.c:785 jfs_lookup+0x13c/0x32c fs/jfs/namei.c:1461 lookup_one_qstr_excl+0x10c/0x2fc fs/namei.c:1747 __start_dirop fs/namei.c:2866 [inline] start_dirop fs/namei.c:2875 [inline] filename_create+0x1b4/0x2d8 fs/namei.c:4879 do_mkdirat+0xc8/0x448 fs/namei.c:5156 __do_sys_mkdirat fs/namei.c:5186 [inline] __se_sys_mkdirat fs/namei.c:5184 [inline] __arm64_sys_mkdirat+0x8c/0xa4 fs/namei.c:5184 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xe8/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x26c arch/arm64/kernel/entry-common.c:724 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:743 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Allocated by task 6568: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:77 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:570 unpoison_slab_object mm/kasan/common.c:339 [inline] __kasan_slab_alloc+0x70/0x88 mm/kasan/common.c:365 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_noprof+0x344/0x680 mm/slub.c:5270 __kernfs_new_node+0xe4/0x63c fs/kernfs/dir.c:637 kernfs_new_node+0xe8/0x1f4 fs/kernfs/dir.c:716 __kernfs_create_file+0x60/0x2d4 fs/kernfs/file.c:1057 sysfs_add_file_mode_ns+0x1d8/0x294 fs/sysfs/file.c:313 create_files fs/sysfs/group.c:82 [inline] internal_create_group+0x5c0/0xe70 fs/sysfs/group.c:189 internal_create_groups fs/sysfs/group.c:229 [inline] sysfs_create_groups+0x60/0x134 fs/sysfs/group.c:255 netdev_queue_add_kobject net/core/net-sysfs.c:2003 [inline] netdev_queue_update_kobjects+0x248/0x5e0 net/core/net-sysfs.c:2056 register_queue_kobjects net/core/net-sysfs.c:2119 [inline] netdev_register_kobject+0x224/0x2e0 net/core/net-sysfs.c:2362 register_netdevice+0xb40/0x1244 net/core/dev.c:11391 __ip_tunnel_create+0x340/0x4a0 net/ipv4/ip_tunnel.c:268 ip_tunnel_init_net+0x22c/0x630 net/ipv4/ip_tunnel.c:1147 ipip_init_net+0x38/0x48 net/ipv4/ipip.c:629 ops_init+0x310/0x544 net/core/net_namespace.c:137 setup_net+0x110/0x2ec net/core/net_namespace.c:446 copy_net_ns+0x458/0x674 net/core/net_namespace.c:581 create_new_namespaces+0x318/0x518 kernel/nsproxy.c:130 unshare_nsproxy_namespaces+0x108/0x158 kernel/nsproxy.c:226 ksys_unshare+0x420/0x738 kernel/fork.c:3171 __do_sys_unshare kernel/fork.c:3242 [inline] __se_sys_unshare kernel/fork.c:3240 [inline] __arm64_sys_unshare+0x3c/0x50 kernel/fork.c:3240 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xe8/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x26c arch/arm64/kernel/entry-common.c:724 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:743 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 The buggy address belongs to the object at ffff0000d93ebf00 which belongs to the cache kernfs_node_cache of size 176 The buggy address is located 48 bytes to the right of allocated 176-byte region [ffff0000d93ebf00, ffff0000d93ebfb0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1193eb anon flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000000 ffff0000c18bc000 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000110011 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d93ebe80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff0000d93ebf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000d93ebf80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ^ ffff0000d93ec000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000d93ec080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ERROR: (device loop0): dtSearch: stack overrun! ERROR: (device loop0): remounting filesystem as read-only btstack dump: bn = 0, index = 0 bn = 20, index = 0 bn = 0, index = 0 bn = 20, index = 0 bn = 0, index = 0 bn = 20, index = 0 bn = 0, index = 0 bn = 0, index = 0 jfs_lookup: dtSearch returned -5 ERROR: (device loop0): dtSearch: stack overrun! btstack dump: bn = 0, index = 0 bn = 20, index = 0 bn = 0, index = 0 bn = 20, index = 0 bn = 0, index = 0 bn = 20, index = 0 bn = 0, index = 0 bn = 0, index = 0 jfs_lookup: dtSearch returned -5 ERROR: (device loop0): dtSearch: stack overrun! btstack dump: bn = 0, index = 0 bn = 20, index = 0 bn = 0, index = 0 bn = 20, index = 0 bn = 0, index = 0 bn = 20, index = 0 bn = 0, index = 0 bn = 0, index = 0 jfs_lookup: dtSearch returned -5