loop0: detected capacity change from 0 to 32768 ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:2326:2 index 2000 is out of range for type 's64[128]' (aka 'long long[128]') CPU: 1 PID: 4367 Comm: syz-executor.0 Not tainted 5.15.174-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/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 dbAllocBits+0x8ac/0x8d8 fs/jfs/jfs_dmap.c:2326 dbAllocDmap fs/jfs/jfs_dmap.c:2103 [inline] dbAllocNear+0x224/0x334 fs/jfs/jfs_dmap.c:1326 dbAlloc+0x804/0xa18 fs/jfs/jfs_dmap.c:843 ea_get+0x710/0xf30 fs/jfs/xattr.c:516 __jfs_setxattr+0x41c/0x13ac fs/jfs/xattr.c:722 __jfs_set_acl+0x108/0x1a4 fs/jfs/acl.c:87 jfs_set_acl+0x1f0/0x45c fs/jfs/acl.c:114 set_posix_acl fs/posix_acl.c:947 [inline] posix_acl_xattr_set+0x2cc/0x378 fs/posix_acl.c:966 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x110/0x528 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x1a8/0x344 fs/xattr.c:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x250/0x2b4 fs/xattr.c:611 path_setxattr+0x17c/0x258 fs/xattr.c:630 __do_sys_lsetxattr fs/xattr.c:653 [inline] __se_sys_lsetxattr fs/xattr.c:649 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:649 __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 dbAllocBits+0x7b0/0x8d8 fs/jfs/jfs_dmap.c:2326 Read of size 8 at addr ffff0000cd0f5eb8 by task syz-executor.0/4367 CPU: 1 PID: 4367 Comm: syz-executor.0 Not tainted 5.15.174-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/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 __asan_report_load8_noabort+0x44/0x50 mm/kasan/report_generic.c:309 dbAllocBits+0x7b0/0x8d8 fs/jfs/jfs_dmap.c:2326 dbAllocDmap fs/jfs/jfs_dmap.c:2103 [inline] dbAllocNear+0x224/0x334 fs/jfs/jfs_dmap.c:1326 dbAlloc+0x804/0xa18 fs/jfs/jfs_dmap.c:843 ea_get+0x710/0xf30 fs/jfs/xattr.c:516 __jfs_setxattr+0x41c/0x13ac fs/jfs/xattr.c:722 __jfs_set_acl+0x108/0x1a4 fs/jfs/acl.c:87 jfs_set_acl+0x1f0/0x45c fs/jfs/acl.c:114 set_posix_acl fs/posix_acl.c:947 [inline] posix_acl_xattr_set+0x2cc/0x378 fs/posix_acl.c:966 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x110/0x528 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x1a8/0x344 fs/xattr.c:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x250/0x2b4 fs/xattr.c:611 path_setxattr+0x17c/0x258 fs/xattr.c:630 __do_sys_lsetxattr fs/xattr.c:653 [inline] __se_sys_lsetxattr fs/xattr.c:649 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:649 __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 3321: 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_kmalloc+0xbc/0xfc mm/kasan/common.c:513 __kasan_kmalloc+0x10/0x1c mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc_node_track_caller+0x234/0x448 mm/slub.c:4963 kmalloc_reserve+0xe8/0x270 net/core/skbuff.c:356 __alloc_skb+0x1a4/0x584 net/core/skbuff.c:427 skb_copy+0x104/0x58c net/core/skbuff.c:1595 mac80211_hwsim_tx_frame_no_nl+0xb98/0x14a8 drivers/net/wireless/mac80211_hwsim.c:1569 mac80211_hwsim_tx+0x708/0xcf8 drivers/net/wireless/mac80211_hwsim.c:1673 drv_tx net/mac80211/driver-ops.h:35 [inline] ieee80211_tx_frags+0x340/0x700 net/mac80211/tx.c:1714 __ieee80211_tx+0x1b0/0x40c net/mac80211/tx.c:1768 ieee80211_tx+0x2c4/0x400 net/mac80211/tx.c:1948 ieee80211_xmit+0x29c/0x3c0 net/mac80211/tx.c:2040 __ieee80211_subif_start_xmit+0xd68/0x2a4c net/mac80211/tx.c:4249 ieee80211_subif_start_xmit+0xe0/0x554 net/mac80211/tx.c:4388 __netdev_start_xmit include/linux/netdevice.h:5019 [inline] netdev_start_xmit include/linux/netdevice.h:5033 [inline] xmit_one net/core/dev.c:3617 [inline] dev_hard_start_xmit+0x2bc/0x92c net/core/dev.c:3633 sch_direct_xmit+0x2e0/0x484 net/sched/sch_generic.c:342 __dev_xmit_skb net/core/dev.c:3852 [inline] __dev_queue_xmit+0x1488/0x2ac8 net/core/dev.c:4221 dev_queue_xmit+0x24/0x34 net/core/dev.c:4289 neigh_hh_output include/net/neighbour.h:493 [inline] neigh_output include/net/neighbour.h:507 [inline] ip6_finish_output2+0x132c/0x1cec net/ipv6/ip6_output.c:130 __ip6_finish_output+0x580/0x6ec net/ipv6/ip6_output.c:201 ip6_finish_output+0x40/0x218 net/ipv6/ip6_output.c:211 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip6_output+0x274/0x594 net/ipv6/ip6_output.c:234 dst_output include/net/dst.h:443 [inline] NF_HOOK+0x160/0x4ec include/linux/netfilter.h:302 mld_sendpack+0x828/0x1264 net/ipv6/mcast.c:1820 mld_send_cr net/ipv6/mcast.c:2121 [inline] mld_ifc_work+0x85c/0xb9c net/ipv6/mcast.c:2653 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 Freed by task 3321: 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] kfree+0x178/0x410 mm/slub.c:4559 skb_free_head net/core/skbuff.c:655 [inline] skb_release_data+0x404/0x5fc net/core/skbuff.c:677 skb_release_all net/core/skbuff.c:742 [inline] __kfree_skb net/core/skbuff.c:756 [inline] kfree_skb_reason+0x1d8/0x46c net/core/skbuff.c:776 kfree_skb include/linux/skbuff.h:1118 [inline] ip6_mc_input+0x928/0xaf8 net/ipv6/ip6_input.c:572 dst_input include/net/dst.h:453 [inline] ip6_sublist_rcv_finish net/ipv6/ip6_input.c:88 [inline] ip6_list_rcv_finish net/ipv6/ip6_input.c:145 [inline] ip6_sublist_rcv+0xcf0/0x1014 net/ipv6/ip6_input.c:310 ipv6_list_rcv+0x3dc/0x430 net/ipv6/ip6_input.c:345 __netif_receive_skb_list_ptype net/core/dev.c:5536 [inline] __netif_receive_skb_list_core+0x5cc/0x754 net/core/dev.c:5584 __netif_receive_skb_list net/core/dev.c:5636 [inline] netif_receive_skb_list_internal+0x810/0xb2c net/core/dev.c:5727 netif_receive_skb_list+0x60/0x5ec net/core/dev.c:5779 ieee80211_rx_napi+0x2f8/0x34c net/mac80211/rx.c:5009 ieee80211_rx include/net/mac80211.h:4571 [inline] ieee80211_handle_queued_frames+0xec/0x18c net/mac80211/main.c:237 ieee80211_tasklet_handler+0x20/0x30 net/mac80211/main.c:256 tasklet_action_common+0x364/0x404 tasklet_action+0x60/0x84 kernel/softirq.c:809 handle_softirqs+0x384/0xdbc kernel/softirq.c:558 __do_softirq kernel/softirq.c:592 [inline] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] do_softirq+0xfc/0x1b0 kernel/softirq.c:459 __local_bh_enable_ip+0x298/0x470 kernel/softirq.c:383 local_bh_enable+0x28/0x34 include/linux/bottom_half.h:32 rcu_read_unlock_bh include/linux/rcupdate.h:809 [inline] ip6_finish_output2+0x1400/0x1cec net/ipv6/ip6_output.c:131 __ip6_finish_output+0x580/0x6ec net/ipv6/ip6_output.c:201 ip6_finish_output+0x40/0x218 net/ipv6/ip6_output.c:211 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip6_output+0x274/0x594 net/ipv6/ip6_output.c:234 dst_output include/net/dst.h:443 [inline] NF_HOOK+0x160/0x4ec include/linux/netfilter.h:302 mld_sendpack+0x828/0x1264 net/ipv6/mcast.c:1820 mld_send_cr net/ipv6/mcast.c:2121 [inline] mld_ifc_work+0x85c/0xb9c net/ipv6/mcast.c:2653 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 ffff0000cd0f5000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1720 bytes to the right of 2048-byte region [ffff0000cd0f5000, ffff0000cd0f5800) The buggy address belongs to the page: page:00000000d24d5493 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10d0f0 head:00000000d24d5493 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc0003333600 0000000200000002 ffff0000c0002900 raw: 0000000000000000 0000000080080008 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000cd0f5d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000cd0f5e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000cd0f5e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000cd0f5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000cd0f5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== JFS: metapage_get_blocks failed ERROR: (device loop0): release_metapage: write_one_page() failed ERROR: (device loop0): remounting filesystem as read-only