loop0: detected capacity change from 0 to 32768 ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:2238:2 index 2000 is out of range for type 's64[128]' (aka 'long long[128]') CPU: 0 PID: 6324 Comm: syz-executor.0 Not tainted 6.4.0-rc2-syzkaller-00330-g0dd2a6fb1e34 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0xfc/0x148 lib/ubsan.c:348 dbAllocBits+0x8a4/0x8d0 fs/jfs/jfs_dmap.c:2238 dbAllocDmap fs/jfs/jfs_dmap.c:2015 [inline] dbAllocNear+0x224/0x334 fs/jfs/jfs_dmap.c:1244 dbAlloc+0x8b4/0xb68 fs/jfs/jfs_dmap.c:829 ea_get+0x6f8/0xef0 fs/jfs/xattr.c:514 __jfs_setxattr+0x41c/0x1338 fs/jfs/xattr.c:718 __jfs_set_acl+0x108/0x1a4 fs/jfs/acl.c:87 jfs_set_acl+0x20c/0x478 fs/jfs/acl.c:115 set_posix_acl fs/posix_acl.c:956 [inline] vfs_set_acl+0x728/0x94c fs/posix_acl.c:1135 do_set_acl+0xe4/0x1ac fs/posix_acl.c:1280 do_setxattr fs/xattr.c:627 [inline] setxattr+0x230/0x29c fs/xattr.c:653 path_setxattr+0x17c/0x258 fs/xattr.c:672 __do_sys_lsetxattr fs/xattr.c:695 [inline] __se_sys_lsetxattr fs/xattr.c:691 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:691 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 ================================================================================ ================================================================== BUG: KASAN: slab-out-of-bounds in dbAllocBits+0x7a8/0x8d0 fs/jfs/jfs_dmap.c:2238 Read of size 8 at addr ffff0000cf04ceb8 by task syz-executor.0/6324 CPU: 0 PID: 6324 Comm: syz-executor.0 Not tainted 6.4.0-rc2-syzkaller-00330-g0dd2a6fb1e34 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:351 [inline] print_report+0x174/0x514 mm/kasan/report.c:462 kasan_report+0xd4/0x130 mm/kasan/report.c:572 __asan_report_load8_noabort+0x20/0x2c mm/kasan/report_generic.c:381 dbAllocBits+0x7a8/0x8d0 fs/jfs/jfs_dmap.c:2238 dbAllocDmap fs/jfs/jfs_dmap.c:2015 [inline] dbAllocNear+0x224/0x334 fs/jfs/jfs_dmap.c:1244 dbAlloc+0x8b4/0xb68 fs/jfs/jfs_dmap.c:829 ea_get+0x6f8/0xef0 fs/jfs/xattr.c:514 __jfs_setxattr+0x41c/0x1338 fs/jfs/xattr.c:718 __jfs_set_acl+0x108/0x1a4 fs/jfs/acl.c:87 jfs_set_acl+0x20c/0x478 fs/jfs/acl.c:115 set_posix_acl fs/posix_acl.c:956 [inline] vfs_set_acl+0x728/0x94c fs/posix_acl.c:1135 do_set_acl+0xe4/0x1ac fs/posix_acl.c:1280 do_setxattr fs/xattr.c:627 [inline] setxattr+0x230/0x29c fs/xattr.c:653 path_setxattr+0x17c/0x258 fs/xattr.c:672 __do_sys_lsetxattr fs/xattr.c:695 [inline] __se_sys_lsetxattr fs/xattr.c:691 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:691 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x4c/0x15c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Allocated by task 1553: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x7c mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:510 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:966 [inline] __kmalloc_node_track_caller+0xd0/0x1c0 mm/slab_common.c:986 kmalloc_reserve+0x120/0x240 net/core/skbuff.c:585 __alloc_skb+0x1c8/0x3d8 net/core/skbuff.c:654 alloc_skb include/linux/skbuff.h:1288 [inline] alloc_skb_with_frags+0xb4/0x590 net/core/skbuff.c:6378 sock_alloc_send_pskb+0x76c/0x884 net/core/sock.c:2729 sock_alloc_send_skb include/net/sock.h:1860 [inline] mld_newpack+0x17c/0x880 net/ipv6/mcast.c:1748 add_grhead net/ipv6/mcast.c:1851 [inline] add_grec+0x1184/0x1564 net/ipv6/mcast.c:1989 mld_send_cr net/ipv6/mcast.c:2115 [inline] mld_ifc_work+0x6fc/0xc20 net/ipv6/mcast.c:2653 process_one_work+0x788/0x12d4 kernel/workqueue.c:2405 worker_thread+0x8e0/0xfe8 kernel/workqueue.c:2552 kthread+0x288/0x310 kernel/kthread.c:379 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Freed by task 1553: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x7c mm/kasan/common.c:52 kasan_save_free_info+0x38/0x5c mm/kasan/generic.c:521 ____kasan_slab_free+0x144/0x1c0 mm/kasan/common.c:236 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:244 kasan_slab_free include/linux/kasan.h:162 [inline] slab_free_hook mm/slub.c:1781 [inline] slab_free_freelist_hook mm/slub.c:1807 [inline] slab_free mm/slub.c:3786 [inline] __kmem_cache_free+0x2a8/0x49c mm/slub.c:3799 kfree+0xb8/0x19c mm/slab_common.c:1015 skb_kfree_head net/core/skbuff.c:906 [inline] skb_free_head+0xd0/0x198 net/core/skbuff.c:918 skb_release_data+0x444/0x5c8 net/core/skbuff.c:948 skb_release_all net/core/skbuff.c:1014 [inline] __kfree_skb net/core/skbuff.c:1028 [inline] kfree_skb_reason+0x248/0x704 net/core/skbuff.c:1064 kfree_skb include/linux/skbuff.h:1236 [inline] ip6_mc_input+0x928/0xaf8 net/ipv6/ip6_input.c:588 dst_input include/net/dst.h:468 [inline] ip6_rcv_finish+0x1f4/0x220 net/ipv6/ip6_input.c:79 NF_HOOK+0x328/0x3d4 include/linux/netfilter.h:303 ipv6_rcv+0x98/0xb8 net/ipv6/ip6_input.c:309 __netif_receive_skb_one_core net/core/dev.c:5491 [inline] __netif_receive_skb+0x18c/0x400 net/core/dev.c:5605 process_backlog+0x3c0/0x70c net/core/dev.c:5933 __napi_poll+0xb4/0x648 net/core/dev.c:6496 napi_poll net/core/dev.c:6563 [inline] net_rx_action+0x5e4/0xdc4 net/core/dev.c:6696 __do_softirq+0x2d0/0xd54 kernel/softirq.c:571 The buggy address belongs to the object at ffff0000cf04c000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1720 bytes to the right of allocated 2048-byte region [ffff0000cf04c000, ffff0000cf04c800) The buggy address belongs to the physical page: page:00000000cf5d5c4b refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10f048 head:00000000cf5d5c4b order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc00000010200 ffff0000c0002900 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000cf04cd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000cf04ce00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000cf04ce80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000cf04cf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000cf04cf80: 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: metapage_write_one() failed ERROR: (device loop0): remounting filesystem as read-only