ERROR: (device loop1): dbUpdatePMap: blocks are outside the map UFO tlock:0x0000000001b91785 ================================================================================ 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: 5937 Comm: syz.1.400 Not tainted 6.1.128-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __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+0xfc/0x148 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/0x374 fs/namei.c:1690 lookup_slow+0x60/0x84 fs/namei.c:1707 walk_component+0x280/0x36c fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2479 filename_lookup+0x1d4/0x4e0 fs/namei.c:2508 user_path_at_empty+0x5c/0x84 fs/namei.c:2905 user_path_at include/linux/namei.h:57 [inline] __do_sys_pivot_root fs/namespace.c:3895 [inline] __se_sys_pivot_root fs/namespace.c:3884 [inline] __arm64_sys_pivot_root+0x180/0x15dc fs/namespace.c:3884 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x1fc/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 ================================================================================ ================================================================== BUG: KASAN: slab-out-of-bounds in dtSearch+0x15c0/0x1f34 fs/jfs/jfs_dtree.c:783 Read of size 1 at addr ffff0000d056dda0 by task syz.1.400/5937 CPU: 1 PID: 5937 Comm: syz.1.400 Not tainted 6.1.128-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0x174/0x4c0 mm/kasan/report.c:427 kasan_report+0xd4/0x130 mm/kasan/report.c:531 __asan_report_load1_noabort+0x2c/0x38 mm/kasan/report_generic.c:348 dtSearch+0x15c0/0x1f34 fs/jfs/jfs_dtree.c:783 jfs_lookup+0x164/0x39c fs/jfs/namei.c:1459 __lookup_slow+0x250/0x374 fs/namei.c:1690 lookup_slow+0x60/0x84 fs/namei.c:1707 walk_component+0x280/0x36c fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2479 filename_lookup+0x1d4/0x4e0 fs/namei.c:2508 user_path_at_empty+0x5c/0x84 fs/namei.c:2905 user_path_at include/linux/namei.h:57 [inline] __do_sys_pivot_root fs/namespace.c:3895 [inline] __se_sys_pivot_root fs/namespace.c:3884 [inline] __arm64_sys_pivot_root+0x180/0x15dc fs/namespace.c:3884 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x1fc/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Allocated by task 5682: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc_node_track_caller+0xd0/0x1c0 mm/slab_common.c:956 kstrdup+0x68/0xb0 mm/util.c:61 kstrdup_const+0x54/0x6c mm/util.c:84 __kernfs_new_node+0xa8/0x684 fs/kernfs/dir.c:610 kernfs_new_node+0x11c/0x230 fs/kernfs/dir.c:690 kernfs_create_dir_ns+0x58/0x12c fs/kernfs/dir.c:1046 sysfs_create_dir_ns+0x150/0x318 fs/sysfs/dir.c:59 create_dir lib/kobject.c:63 [inline] kobject_add_internal+0x598/0xb14 lib/kobject.c:231 kobject_add_varg lib/kobject.c:366 [inline] kobject_init_and_add+0x130/0x1a0 lib/kobject.c:449 netdev_queue_add_kobject net/core/net-sysfs.c:1664 [inline] netdev_queue_update_kobjects+0x1d8/0x470 net/core/net-sysfs.c:1716 register_queue_kobjects net/core/net-sysfs.c:1777 [inline] netdev_register_kobject+0x22c/0x2d8 net/core/net-sysfs.c:2017 register_netdevice+0xf58/0x15e0 net/core/dev.c:10161 ipip6_tunnel_create+0x128/0x314 net/ipv6/sit.c:215 ipip6_newlink+0x214/0x708 net/ipv6/sit.c:1578 rtnl_newlink_create net/core/rtnetlink.c:3419 [inline] __rtnl_newlink net/core/rtnetlink.c:3639 [inline] rtnl_newlink+0x116c/0x1b74 net/core/rtnetlink.c:3652 rtnetlink_rcv_msg+0x72c/0xd94 net/core/rtnetlink.c:6150 netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2493 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:6168 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x65c/0x898 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x844/0xb28 net/netlink/af_netlink.c:1859 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] ____sys_sendmsg+0x55c/0x8c4 net/socket.c:2519 ___sys_sendmsg net/socket.c:2573 [inline] __sys_sendmsg+0x26c/0x33c net/socket.c:2602 __do_sys_sendmsg net/socket.c:2611 [inline] __se_sys_sendmsg net/socket.c:2609 [inline] __arm64_sys_sendmsg+0x80/0x94 net/socket.c:2609 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 The buggy address belongs to the object at ffff0000d056dd00 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 32 bytes to the right of 128-byte region [ffff0000d056dd00, ffff0000d056dd80) The buggy address belongs to the physical page: page:00000000da4dc99f refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11056d flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000200 0000000000000000 dead000000000001 ffff0000c0002300 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d056dc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d056dd00: 05 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000d056dd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000d056de00: 05 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d056de80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== MetaData crosses page boundary!! lblock = 6300000010, size = -820051968 CPU: 1 PID: 5937 Comm: syz.1.400 Tainted: G B 6.1.128-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __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+0xb48/0x1050 fs/jfs/jfs_metapage.c:596 dtSearch+0x4e8/0x1f34 fs/jfs/jfs_dtree.c:623 jfs_lookup+0x164/0x39c fs/jfs/namei.c:1459 __lookup_slow+0x250/0x374 fs/namei.c:1690 lookup_slow+0x60/0x84 fs/namei.c:1707 walk_component+0x280/0x36c fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x13c/0x3d0 fs/namei.c:2479 filename_lookup+0x1d4/0x4e0 fs/namei.c:2508 user_path_at_empty+0x5c/0x84 fs/namei.c:2905 user_path_at include/linux/namei.h:57 [inline] __do_sys_pivot_root fs/namespace.c:3895 [inline] __se_sys_pivot_root fs/namespace.c:3884 [inline] __arm64_sys_pivot_root+0x180/0x15dc fs/namespace.c:3884 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x1fc/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 bread failed! jfs_lookup: dtSearch returned -5