==================================================================
BUG: KASAN: slab-out-of-bounds in udf_readdir+0xcaa/0x2170 fs/udf/dir.c:182
Write of size 45 at addr ffff88807a266cd2 by task syz-executor/3923

CPU: 1 PID: 3923 Comm: syz-executor Not tainted 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
 print_address_description+0x63/0x3b0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:434 [inline]
 kasan_report+0x16b/0x1c0 mm/kasan/report.c:451
 kasan_check_range+0x27e/0x290 mm/kasan/generic.c:189
 memcpy+0x3c/0x60 mm/kasan/shadow.c:66
 udf_readdir+0xcaa/0x2170 fs/udf/dir.c:182
 iterate_dir+0x224/0x570
 __do_sys_getdents64 fs/readdir.c:369 [inline]
 __se_sys_getdents64+0x209/0x4f0 fs/readdir.c:354
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fb24ca84c73
Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 d2 44 f8 ff 66 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 a8 ff ff ff f7 d8
RSP: 002b:00007fff7bfbc1c8 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 0000555556208600 RCX: 00007fb24ca84c73
RDX: 0000000000008000 RSI: 0000555556208600 RDI: 0000000000000005
RBP: 00005555562085d4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000001000 R11: 0000000000000293 R12: ffffffffffffffa8
R13: 0000000000000010 R14: 00005555562085d0 R15: 0000000000000008
 </TASK>

Allocated by task 3923:
 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+0xba/0xf0 mm/kasan/common.c:513
 kasan_kmalloc include/linux/kasan.h:264 [inline]
 kmem_cache_alloc_trace+0x143/0x290 mm/slub.c:3247
 kmalloc include/linux/slab.h:591 [inline]
 udf_readdir+0xbc6/0x2170 fs/udf/dir.c:172
 iterate_dir+0x224/0x570
 __do_sys_getdents64 fs/readdir.c:369 [inline]
 __se_sys_getdents64+0x209/0x4f0 fs/readdir.c:354
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0

Last potentially related work creation:
 kasan_save_stack+0x36/0x60 mm/kasan/common.c:38
 kasan_record_aux_stack+0xba/0x100 mm/kasan/generic.c:348
 __call_rcu kernel/rcu/tree.c:3007 [inline]
 call_rcu+0x1c4/0xa70 kernel/rcu/tree.c:3087
 free_fib_info net/ipv4/fib_semantics.c:255 [inline]
 fib_info_put include/net/ip_fib.h:579 [inline]
 fib_release_info+0x61c/0x6e0 net/ipv4/fib_semantics.c:281
 fib_table_flush+0xd14/0x13d0 net/ipv4/fib_trie.c:2091
 fib_flush net/ipv4/fib_frontend.c:194 [inline]
 fib_disable_ip net/ipv4/fib_frontend.c:1415 [inline]
 fib_netdev_event+0x3c5/0x760 net/ipv4/fib_frontend.c:1484
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391
 call_netdevice_notifiers_info net/core/dev.c:2018 [inline]
 call_netdevice_notifiers_extack net/core/dev.c:2030 [inline]
 call_netdevice_notifiers net/core/dev.c:2044 [inline]
 dev_close_many+0x37c/0x530 net/core/dev.c:1619
 unregister_netdevice_many+0x4b0/0x18f0 net/core/dev.c:11070
 ip_tunnel_delete_nets+0x2ed/0x330 net/ipv4/ip_tunnel.c:1150
 ops_exit_list net/core/net_namespace.c:177 [inline]
 cleanup_net+0x763/0xb60 net/core/net_namespace.c:599
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300

The buggy address belongs to the object at ffff88807a266c00
 which belongs to the cache kmalloc-256 of size 256
The buggy address is located 210 bytes inside of
 256-byte region [ffff88807a266c00, ffff88807a266d00)
The buggy address belongs to the page:
page:ffffea0001e89980 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7a266
head:ffffea0001e89980 order:1 compound_mapcount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 dead000000000100 dead000000000122 ffff888011c41b40
raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3503, ts 54946224357, free_ts 54913577774
 prep_new_page mm/page_alloc.c:2426 [inline]
 get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159
 __alloc_pages+0x272/0x700 mm/page_alloc.c:5423
 alloc_slab_page mm/slub.c:1775 [inline]
 allocate_slab mm/slub.c:1912 [inline]
 new_slab+0xbb/0x4b0 mm/slub.c:1975
 ___slab_alloc+0x6f6/0xe10 mm/slub.c:3008
 __slab_alloc mm/slub.c:3095 [inline]
 slab_alloc_node mm/slub.c:3186 [inline]
 slab_alloc mm/slub.c:3228 [inline]
 __kmalloc+0x1c9/0x300 mm/slub.c:4403
 kmalloc include/linux/slab.h:596 [inline]
 kzalloc include/linux/slab.h:721 [inline]
 fib_create_info+0xaab/0x2570 net/ipv4/fib_semantics.c:1478
 fib_table_insert+0x213/0x1f90 net/ipv4/fib_trie.c:1231
 fib_magic net/ipv4/fib_frontend.c:1093 [inline]
 fib_add_ifaddr+0x47f/0x1730 net/ipv4/fib_frontend.c:1115
 fib_inetaddr_event+0x12b/0x2b0 net/ipv4/fib_frontend.c:1429
 notifier_call_chain kernel/notifier.c:83 [inline]
 blocking_notifier_call_chain+0x104/0x1b0 kernel/notifier.c:318
 __inet_insert_ifa+0x9f8/0xc10 net/ipv4/devinet.c:553
 inet_rtm_newaddr+0x8ca/0x1840 net/ipv4/devinet.c:956
 rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5629
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2504
 netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline]
 netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1352
 netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1920
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1340 [inline]
 free_pcp_prepare mm/page_alloc.c:1391 [inline]
 free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317
 free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396
 do_slab_free mm/slub.c:3487 [inline]
 ___cache_free+0xe3/0x100 mm/slub.c:3506
 qlist_free_all+0x36/0x90 mm/kasan/quarantine.c:176
 kasan_quarantine_reduce+0x162/0x180 mm/kasan/quarantine.c:283
 __kasan_slab_alloc+0x2f/0xc0 mm/kasan/common.c:444
 kasan_slab_alloc include/linux/kasan.h:254 [inline]
 slab_post_alloc_hook+0x53/0x380 mm/slab.h:519
 slab_alloc_node mm/slub.c:3220 [inline]
 kmem_cache_alloc_node+0x121/0x2c0 mm/slub.c:3256
 __alloc_skb+0xdd/0x590 net/core/skbuff.c:415
 alloc_skb include/linux/skbuff.h:1167 [inline]
 nlmsg_new include/net/netlink.h:953 [inline]
 devlink_param_notify+0x6f/0x1a0 net/core/devlink.c:4603
 devlink_params_publish+0x98/0x100 net/core/devlink.c:10098
 nsim_dev_probe+0x87c/0x9f0 drivers/net/netdevsim/dev.c:1517
 really_probe+0x24e/0xb60 drivers/base/dd.c:595
 __driver_probe_device+0x1a2/0x3d0 drivers/base/dd.c:755
 driver_probe_device+0x50/0x420 drivers/base/dd.c:785
 __device_attach_driver+0x2b9/0x500 drivers/base/dd.c:907

Memory state around the buggy address:
 ffff88807a266b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88807a266c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88807a266c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 06
                                                                ^
 ffff88807a266d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88807a266d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================