loop0: detected capacity change from 0 to 32768 ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:2317:2 index 2000 is out of range for type 's64[128]' (aka 'long long[128]') CPU: 0 PID: 4450 Comm: syz-executor.0 Not tainted 5.15.188-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 ubsan_epilogue+0x14/0x48 lib/ubsan.c:151 __ubsan_handle_out_of_bounds+0xd4/0x108 lib/ubsan.c:282 dbAllocBits+0x874/0x8bc fs/jfs/jfs_dmap.c:2317 dbAllocDmap fs/jfs/jfs_dmap.c:2094 [inline] dbAllocNear+0x25c/0x350 fs/jfs/jfs_dmap.c:1315 dbAlloc+0x760/0x978 fs/jfs/jfs_dmap.c:832 ea_get+0x704/0xf0c fs/jfs/xattr.c:516 __jfs_setxattr+0x3dc/0xfe8 fs/jfs/xattr.c:727 __jfs_set_acl+0x108/0x1a4 fs/jfs/acl.c:87 jfs_set_acl+0x194/0x300 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+0x120/0x564 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x158/0x2ac fs/xattr.c:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x248/0x2ac fs/xattr.c:611 path_setxattr+0x12c/0x25c 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+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/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+0x794/0x8bc fs/jfs/jfs_dmap.c:2317 Read of size 8 at addr ffff0000c1f57eb8 by task syz-executor.0/4450 CPU: 0 PID: 4450 Comm: syz-executor.0 Not tainted 5.15.188-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x78/0x30c mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xec/0x15c mm/kasan/report.c:451 __asan_report_load8_noabort+0x44/0x50 mm/kasan/report_generic.c:309 dbAllocBits+0x794/0x8bc fs/jfs/jfs_dmap.c:2317 dbAllocDmap fs/jfs/jfs_dmap.c:2094 [inline] dbAllocNear+0x25c/0x350 fs/jfs/jfs_dmap.c:1315 dbAlloc+0x760/0x978 fs/jfs/jfs_dmap.c:832 ea_get+0x704/0xf0c fs/jfs/xattr.c:516 __jfs_setxattr+0x3dc/0xfe8 fs/jfs/xattr.c:727 __jfs_set_acl+0x108/0x1a4 fs/jfs/acl.c:87 jfs_set_acl+0x194/0x300 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+0x120/0x564 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x158/0x2ac fs/xattr.c:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x248/0x2ac fs/xattr.c:611 path_setxattr+0x12c/0x25c 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+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Allocated by task 4043: 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 mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xb0/0xf0 mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc+0x298/0x44c mm/slub.c:4407 kmalloc include/linux/slab.h:609 [inline] sk_prot_alloc+0xc4/0x1f0 net/core/sock.c:1864 sk_alloc+0x40/0x388 net/core/sock.c:1917 __netlink_create+0x80/0x29c net/netlink/af_netlink.c:630 __netlink_kernel_create+0x12c/0x67c net/netlink/af_netlink.c:2031 netlink_kernel_create include/linux/netlink.h:62 [inline] rtnetlink_net_init+0xa0/0x120 net/core/rtnetlink.c:5726 ops_init+0x2b0/0x544 net/core/net_namespace.c:138 setup_net+0x374/0xa0c net/core/net_namespace.c:333 copy_net_ns+0x2bc/0x5cc net/core/net_namespace.c:503 create_new_namespaces+0x304/0x5f8 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x108/0x158 kernel/nsproxy.c:226 ksys_unshare+0x3d4/0x6d0 kernel/fork.c:3175 __do_sys_unshare kernel/fork.c:3249 [inline] __se_sys_unshare kernel/fork.c:3247 [inline] __arm64_sys_unshare+0x3c/0x50 kernel/fork.c:3247 __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+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Freed by task 4069: 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/0x1e8 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0x170/0x40c mm/slub.c:4559 sk_prot_free net/core/sock.c:1900 [inline] __sk_destruct+0x41c/0x604 net/core/sock.c:1986 sk_destruct net/core/sock.c:2001 [inline] __sk_free+0x320/0x430 net/core/sock.c:2012 sk_free+0x68/0xdc net/core/sock.c:2023 deferred_put_nlk_sk+0xa4/0x118 net/netlink/af_netlink.c:722 rcu_do_batch kernel/rcu/tree.c:2523 [inline] rcu_core+0x7c8/0x1764 kernel/rcu/tree.c:2763 rcu_core_si+0x10/0x1c kernel/rcu/tree.c:2776 handle_softirqs+0x344/0xbf0 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] invoke_softirq kernel/softirq.c:457 [inline] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 irq_exit+0x14/0x88 kernel/softirq.c:683 handle_domain_irq+0x14c/0x1fc kernel/irq/irqdesc.c:711 gic_handle_irq+0x78/0x1c8 drivers/irqchip/irq-gic-v3.c:765 Last potentially related work creation: kasan_save_stack+0x38/0x68 mm/kasan/common.c:38 kasan_record_aux_stack+0xcc/0x114 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3011 [inline] call_rcu+0x114/0x8fc kernel/rcu/tree.c:3091 netlink_release+0x1278/0x17ac net/netlink/af_netlink.c:800 __sock_release net/socket.c:649 [inline] sock_release+0x84/0x140 net/socket.c:677 netlink_kernel_release+0x50/0x70 net/netlink/af_netlink.c:2093 rtnetlink_net_exit+0x44/0x6c net/core/rtnetlink.c:5735 ops_exit_list net/core/net_namespace.c:172 [inline] cleanup_net+0x5c4/0xa98 net/core/net_namespace.c:635 process_one_work+0x79c/0x1140 kernel/workqueue.c:2310 worker_thread+0x8f4/0x101c kernel/workqueue.c:2457 kthread+0x374/0x454 kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:855 The buggy address belongs to the object at ffff0000c1f57000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1720 bytes to the right of 2048-byte region [ffff0000c1f57000, ffff0000c1f57800) The buggy address belongs to the page: page:00000000b2ad8626 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101f50 head:00000000b2ad8626 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 0000000000000000 0000000100000001 ffff0000c0002900 raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000c1f57d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000c1f57e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000c1f57e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000c1f57f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000c1f57f80: 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