loop8: detected capacity change from 0 to 32768 ... Log Wrap ... Log Wrap ... Log Wrap ... ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dtree.c:3190:30 index -128 is out of range for type 'struct dtslot[128]' CPU: 1 PID: 7043 Comm: syz.8.595 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:151 [inline] __ubsan_handle_out_of_bounds+0x108/0x15c lib/ubsan.c:282 jfs_readdir+0x16a4/0x385c fs/jfs/jfs_dtree.c:3190 iterate_dir+0x1f4/0x4ec __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __arm64_sys_getdents64+0x1c4/0x4c4 fs/readdir.c:354 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dtree.c:2945:28 index -128 is out of range for type 'struct dtslot[128]' CPU: 1 PID: 7043 Comm: syz.8.595 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:151 [inline] __ubsan_handle_out_of_bounds+0x108/0x15c lib/ubsan.c:282 add_missing_indices fs/jfs/jfs_dtree.c:2945 [inline] jfs_readdir+0x1f54/0x385c fs/jfs/jfs_dtree.c:3307 iterate_dir+0x1f4/0x4ec __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __arm64_sys_getdents64+0x1c4/0x4c4 fs/readdir.c:354 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ================================================================================ ================================================================== BUG: KASAN: slab-out-of-bounds in diWrite+0xb48/0x1604 fs/jfs/jfs_imap.c:753 Write of size 32 at addr ffff0000e888e4e0 by task syz.8.595/7043 CPU: 0 PID: 7043 Comm: syz.8.595 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x174/0x1e4 mm/kasan/report.c:451 kasan_check_range+0x274/0x2b4 mm/kasan/generic.c:189 memcpy+0xb4/0xe8 mm/kasan/shadow.c:66 diWrite+0xb48/0x1604 fs/jfs/jfs_imap.c:753 txCommit+0x754/0x55b0 fs/jfs/jfs_txnmgr.c:1255 add_missing_indices fs/jfs/jfs_dtree.c:2959 [inline] jfs_readdir+0x1fd0/0x385c fs/jfs/jfs_dtree.c:3307 iterate_dir+0x1f4/0x4ec __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __arm64_sys_getdents64+0x1c4/0x4c4 fs/readdir.c:354 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Allocated by task 7: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x8c/0xcc mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x74/0x3f4 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x1dc/0x45c mm/slub.c:3233 fib6_add_1+0x894/0x126c fib6_add+0x194/0x33fc net/ipv6/ip6_fib.c:1399 __ip6_ins_rt net/ipv6/route.c:1302 [inline] ip6_ins_rt+0xfc/0x168 net/ipv6/route.c:1312 __ipv6_ifa_notify+0x5c8/0xf64 net/ipv6/addrconf.c:6175 ipv6_ifa_notify net/ipv6/addrconf.c:6214 [inline] addrconf_dad_completed+0x180/0xb40 net/ipv6/addrconf.c:4239 addrconf_dad_work+0x9ec/0x126c process_one_work+0x790/0x11b8 kernel/workqueue.c:2310 worker_thread+0x910/0x1034 kernel/workqueue.c:2457 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Last potentially related work creation: kasan_save_stack+0x38/0x68 mm/kasan/common.c:38 kasan_record_aux_stack+0xd4/0x11c mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3007 [inline] call_rcu+0x118/0xb40 kernel/rcu/tree.c:3087 node_free net/ipv6/ip6_fib.c:208 [inline] fib6_repair_tree+0x844/0xd70 net/ipv6/ip6_fib.c:1895 fib6_del_route net/ipv6/ip6_fib.c:1983 [inline] fib6_del+0xbd8/0x1234 net/ipv6/ip6_fib.c:2031 fib6_clean_node+0x24c/0x4d0 net/ipv6/ip6_fib.c:2193 fib6_walk_continue+0x5b8/0x7e0 net/ipv6/ip6_fib.c:2115 fib6_walk+0x144/0x258 net/ipv6/ip6_fib.c:2163 fib6_clean_tree net/ipv6/ip6_fib.c:2243 [inline] __fib6_clean_all+0x2a4/0x428 net/ipv6/ip6_fib.c:2259 fib6_clean_all+0x3c/0x50 net/ipv6/ip6_fib.c:2270 rt6_sync_down_dev net/ipv6/route.c:4907 [inline] rt6_disable_ip+0x5e8/0x6ac net/ipv6/route.c:4912 addrconf_ifdown+0x150/0x1814 net/ipv6/addrconf.c:3778 addrconf_notify+0x350/0xc58 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd4/0x164 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2018 [inline] call_netdevice_notifiers_extack net/core/dev.c:2030 [inline] call_netdevice_notifiers net/core/dev.c:2044 [inline] dev_close_many+0x2fc/0x468 net/core/dev.c:1619 unregister_netdevice_many+0x408/0x189c net/core/dev.c:11078 default_device_exit_batch+0x4c0/0x520 net/core/dev.c:11635 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x5e0/0x9bc net/core/net_namespace.c:599 process_one_work+0x790/0x11b8 kernel/workqueue.c:2310 worker_thread+0x910/0x1034 kernel/workqueue.c:2457 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 The buggy address belongs to the object at ffff0000e888e480 which belongs to the cache fib6_nodes of size 72 The buggy address is located 24 bytes to the right of 72-byte region [ffff0000e888e480, ffff0000e888e4c8) The buggy address belongs to the page: page:00000000097e290b refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff0000e888e880 pfn:0x12888e memcg:ffff0000ced9e601 flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000200 0000000000000000 0000000100000001 ffff0000d25b6480 raw: ffff0000e888e880 000000008020001a 00000001ffffffff ffff0000ced9e601 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000e888e380: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ffff0000e888e400: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc >ffff0000e888e480: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ^ ffff0000e888e500: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ffff0000e888e580: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ================================================================== ... Log Wrap ... Log Wrap ... Log Wrap ... ... Log Wrap ... Log Wrap ... Log Wrap ... ... Log Wrap ... Log Wrap ... Log Wrap ... ERROR: (device loop8): jfs_readdir: JFS:Dtree error: ino = 2, bn=0, index = 1