UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) ================================================================== BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x4c0/0x668 fs/udf/inode.c:2105 Write of size 4 at addr ffff0000d667cbf0 by task syz.4.65/4630 CPU: 0 PID: 4630 Comm: syz.4.65 Not tainted 6.1.110-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/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:284 [inline] print_report+0x174/0x4c0 mm/kasan/report.c:395 kasan_report+0xd4/0x130 mm/kasan/report.c:495 __asan_report_store_n_noabort+0x28/0x34 mm/kasan/report_generic.c:367 udf_write_aext+0x4c0/0x668 fs/udf/inode.c:2105 udf_add_entry+0x11e0/0x28b0 fs/udf/namei.c:482 udf_mkdir+0x158/0x7e0 fs/udf/namei.c:681 vfs_mkdir+0x334/0x4e4 fs/namei.c:4108 do_mkdirat+0x220/0x510 fs/namei.c:4133 __do_sys_mkdirat fs/namei.c:4148 [inline] __se_sys_mkdirat fs/namei.c:4146 [inline] __arm64_sys_mkdirat+0x90/0xa8 fs/namei.c:4146 __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:140 do_el0_svc+0x64/0x218 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 24: 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 kmalloc_reserve net/core/skbuff.c:446 [inline] __alloc_skb+0x180/0x580 net/core/skbuff.c:515 alloc_skb include/linux/skbuff.h:1271 [inline] nlmsg_new include/net/netlink.h:991 [inline] __neigh_notify+0x80/0x13c net/core/neighbour.c:3504 neigh_cleanup_and_release+0x10c/0x414 net/core/neighbour.c:101 neigh_del net/core/neighbour.c:225 [inline] neigh_remove_one+0x320/0x428 net/core/neighbour.c:246 neigh_forced_gc net/core/neighbour.c:279 [inline] neigh_alloc net/core/neighbour.c:485 [inline] ___neigh_create+0x4c0/0x25fc net/core/neighbour.c:648 __neigh_create+0x44/0x58 net/core/neighbour.c:737 ip6_finish_output2+0x1990/0x1b54 net/ipv6/ip6_output.c:129 __ip6_finish_output net/ipv6/ip6_output.c:205 [inline] ip6_finish_output+0x5a4/0x940 net/ipv6/ip6_output.c:216 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip6_output+0x274/0x594 net/ipv6/ip6_output.c:237 dst_output include/net/dst.h:444 [inline] NF_HOOK include/linux/netfilter.h:302 [inline] ndisc_send_skb+0xc38/0x179c net/ipv6/ndisc.c:511 ndisc_send_ns+0xd4/0x164 net/ipv6/ndisc.c:669 addrconf_dad_work+0x99c/0x1390 net/ipv6/addrconf.c:4203 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292 worker_thread+0x8e4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 The buggy address belongs to the object at ffff0000d667c800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 496 bytes to the right of 512-byte region [ffff0000d667c800, ffff0000d667ca00) The buggy address belongs to the physical page: page:00000000368f335c refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11667c head:00000000368f335c order:2 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 0000000000000000 dead000000000001 ffff0000c0002600 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d667ca80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d667cb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000d667cb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000d667cc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000d667cc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================