ERROR: (device loop3): dbUpdatePMap: blocks are outside the map UFO tlock:0x00000000059135e9 ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dtree.c:628:10 index 237 is out of range for type 'struct dtslot[128]' CPU: 0 PID: 10037 Comm: syz.3.1254 Not tainted 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 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 dtSearch+0x1718/0x1f34 fs/jfs/jfs_dtree.c:628 jfs_lookup+0x164/0x39c fs/jfs/namei.c:1459 __lookup_slow+0x250/0x388 fs/namei.c:1663 lookup_slow+0x60/0x84 fs/namei.c:1680 walk_component+0x394/0x4cc fs/namei.c:1976 lookup_last fs/namei.c:2431 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2455 filename_lookup+0x1c4/0x4c8 fs/namei.c:2484 user_path_at_empty+0x5c/0x1a4 fs/namei.c:2883 user_path_at include/linux/namei.h:57 [inline] do_mount fs/namespace.c:3352 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount fs/namespace.c:3540 [inline] __arm64_sys_mount+0x4dc/0x5e0 fs/namespace.c:3540 __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 dtSearch+0x15c0/0x1f34 fs/jfs/jfs_dtree.c:783 Read of size 1 at addr ffff0000dbf4ada0 by task syz.3.1254/10037 CPU: 1 PID: 10037 Comm: syz.3.1254 Not tainted 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 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 __asan_report_load1_noabort+0x44/0x50 mm/kasan/report_generic.c:306 dtSearch+0x15c0/0x1f34 fs/jfs/jfs_dtree.c:783 jfs_lookup+0x164/0x39c fs/jfs/namei.c:1459 __lookup_slow+0x250/0x388 fs/namei.c:1663 lookup_slow+0x60/0x84 fs/namei.c:1680 walk_component+0x394/0x4cc fs/namei.c:1976 lookup_last fs/namei.c:2431 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2455 filename_lookup+0x1c4/0x4c8 fs/namei.c:2484 user_path_at_empty+0x5c/0x1a4 fs/namei.c:2883 user_path_at include/linux/namei.h:57 [inline] do_mount fs/namespace.c:3352 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount fs/namespace.c:3540 [inline] __arm64_sys_mount+0x4dc/0x5e0 fs/namespace.c:3540 __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 20: 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] kmem_cache_alloc_node+0x208/0x49c mm/slub.c:3256 __alloc_skb+0x174/0x584 net/core/skbuff.c:415 alloc_skb include/linux/skbuff.h:1162 [inline] synproxy_send_client_synack+0x158/0xb24 net/netfilter/nf_synproxy_core.c:482 nft_synproxy_eval_v4+0x18c/0x2ec net/netfilter/nft_synproxy.c:59 nft_synproxy_do_eval+0x2cc/0x6a4 net/netfilter/nft_synproxy.c:141 nft_synproxy_eval+0x34/0x48 net/netfilter/nft_synproxy.c:247 expr_call_ops_eval net/netfilter/nf_tables_core.c:198 [inline] nft_do_chain+0x44c/0x1304 net/netfilter/nf_tables_core.c:238 nft_do_chain_inet+0x2fc/0x50c net/netfilter/nft_chain_filter.c:161 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline] nf_hook_slow+0xc8/0x1f4 net/netfilter/core.c:584 nf_hook include/linux/netfilter.h:257 [inline] NF_HOOK+0x228/0x3d0 include/linux/netfilter.h:300 ip_local_deliver+0x120/0x194 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:462 [inline] ip_rcv_finish+0x22c/0x264 net/ipv4/ip_input.c:447 NF_HOOK+0x324/0x3d0 include/linux/netfilter.h:302 ip_rcv+0x7c/0x9c net/ipv4/ip_input.c:566 __netif_receive_skb_one_core net/core/dev.c:5524 [inline] __netif_receive_skb+0x18c/0x400 net/core/dev.c:5638 process_backlog+0x3ec/0x7e0 net/core/dev.c:6515 __napi_poll+0xb4/0x624 net/core/dev.c:7074 napi_poll net/core/dev.c:7141 [inline] net_rx_action+0x500/0xc10 net/core/dev.c:7231 handle_softirqs+0x384/0xdbc kernel/softirq.c:558 run_ksoftirqd+0x6c/0x29c kernel/softirq.c:925 smpboot_thread_fn+0x4b0/0x920 kernel/smpboot.c:164 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Freed by task 20: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4c/0x84 mm/kasan/common.c:46 kasan_set_free_info+0x28/0x4c mm/kasan/generic.c:360 ____kasan_slab_free+0x118/0x164 mm/kasan/common.c:366 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0x128/0x1ec mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kmem_cache_free+0xdc/0x3c4 mm/slub.c:3515 kfree_skbmem+0x114/0x1b0 net/core/skbuff.c:-1 __kfree_skb net/core/skbuff.c:757 [inline] consume_skb+0x140/0x40c net/core/skbuff.c:914 nft_synproxy_eval_v4+0x1d4/0x2ec net/netfilter/nft_synproxy.c:-1 nft_synproxy_do_eval+0x2cc/0x6a4 net/netfilter/nft_synproxy.c:141 nft_synproxy_eval+0x34/0x48 net/netfilter/nft_synproxy.c:247 expr_call_ops_eval net/netfilter/nf_tables_core.c:198 [inline] nft_do_chain+0x44c/0x1304 net/netfilter/nf_tables_core.c:238 nft_do_chain_inet+0x2fc/0x50c net/netfilter/nft_chain_filter.c:161 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline] nf_hook_slow+0xc8/0x1f4 net/netfilter/core.c:584 nf_hook include/linux/netfilter.h:257 [inline] NF_HOOK+0x228/0x3d0 include/linux/netfilter.h:300 ip_local_deliver+0x120/0x194 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:462 [inline] ip_rcv_finish+0x22c/0x264 net/ipv4/ip_input.c:447 NF_HOOK+0x324/0x3d0 include/linux/netfilter.h:302 ip_rcv+0x7c/0x9c net/ipv4/ip_input.c:566 __netif_receive_skb_one_core net/core/dev.c:5524 [inline] __netif_receive_skb+0x18c/0x400 net/core/dev.c:5638 process_backlog+0x3ec/0x7e0 net/core/dev.c:6515 __napi_poll+0xb4/0x624 net/core/dev.c:7074 napi_poll net/core/dev.c:7141 [inline] net_rx_action+0x500/0xc10 net/core/dev.c:7231 handle_softirqs+0x384/0xdbc kernel/softirq.c:558 run_ksoftirqd+0x6c/0x29c kernel/softirq.c:925 smpboot_thread_fn+0x4b0/0x920 kernel/smpboot.c:164 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 ffff0000dbf4ac80 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 56 bytes to the right of 232-byte region [ffff0000dbf4ac80, ffff0000dbf4ad68) The buggy address belongs to the page: page:00000000618322b5 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11bf4a flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000200 0000000000000000 dead000000000122 ffff0000c0862000 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000dbf4ac80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000dbf4ad00: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc >ffff0000dbf4ad80: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ^ ffff0000dbf4ae00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000dbf4ae80: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ================================================================== MetaData crosses page boundary!! lblock = 6300000010, size = -820051968 CPU: 0 PID: 10037 Comm: syz.3.1254 Tainted: G B 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 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 __get_metapage+0xb54/0x1128 fs/jfs/jfs_metapage.c:597 dtSearch+0x4e8/0x1f34 fs/jfs/jfs_dtree.c:623 jfs_lookup+0x164/0x39c fs/jfs/namei.c:1459 __lookup_slow+0x250/0x388 fs/namei.c:1663 lookup_slow+0x60/0x84 fs/namei.c:1680 walk_component+0x394/0x4cc fs/namei.c:1976 lookup_last fs/namei.c:2431 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2455 filename_lookup+0x1c4/0x4c8 fs/namei.c:2484 user_path_at_empty+0x5c/0x1a4 fs/namei.c:2883 user_path_at include/linux/namei.h:57 [inline] do_mount fs/namespace.c:3352 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount fs/namespace.c:3540 [inline] __arm64_sys_mount+0x4dc/0x5e0 fs/namespace.c:3540 __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 bread failed! jfs_lookup: dtSearch returned -5 attempt to access beyond end of device loop3: rw=1, want=4680040, limit=32768 metapage_write_end_io: I/O error JFS: metapage_get_blocks failed JFS: metapage_get_blocks failed JFS: metapage_get_blocks failed JFS: metapage_get_blocks failed