================================================================== BUG: KASAN: slab-out-of-bounds in crc_itu_t+0x218/0x2a0 lib/crc-itu-t.c:60 Read of size 1 at addr ffff88804d614100 by task syz-executor.3/17869 CPU: 0 PID: 17869 Comm: syz-executor.3 Not tainted 6.1.60-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:395 kasan_report+0x136/0x160 mm/kasan/report.c:495 crc_itu_t+0x218/0x2a0 lib/crc-itu-t.c:60 udf_finalize_lvid fs/udf/super.c:2022 [inline] udf_close_lvid+0x57a/0x9a0 fs/udf/super.c:2090 udf_put_super+0xc9/0x160 fs/udf/super.c:2360 generic_shutdown_super+0x130/0x340 fs/super.c:501 kill_block_super+0x7a/0xe0 fs/super.c:1459 deactivate_locked_super+0xa0/0x110 fs/super.c:332 cleanup_mnt+0x490/0x520 fs/namespace.c:1186 task_work_run+0x246/0x300 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa73/0x26a0 kernel/exit.c:869 do_group_exit+0x202/0x2b0 kernel/exit.c:1019 get_signal+0x16f7/0x17d0 kernel/signal.c:2862 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f32dcaa7ef5 Code: Unable to access opcode bytes at 0x7f32dcaa7ecb. RSP: 002b:00007f32db5fe010 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: fffffffffffffdfc RBX: 00007f32dcb9bf80 RCX: 00007f32dcaa7ef5 RDX: 00007f32db5fe050 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f32dcac847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 000000000000000b R14: 00007f32dcb9bf80 R15: 00007fff97bd9a08 Allocated by task 30545: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x65/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x10c/0x2d0 mm/slub.c:3422 kmem_cache_zalloc include/linux/slab.h:679 [inline] __proc_create+0x419/0x9f0 fs/proc/generic.c:426 proc_create_reg fs/proc/generic.c:553 [inline] proc_create_single_data+0x123/0x240 fs/proc/generic.c:653 snmp6_register_dev+0xa1/0x110 net/ipv6/proc.c:256 ipv6_add_dev+0x611/0x1180 net/ipv6/addrconf.c:414 addrconf_notify+0x7a6/0xf60 net/ipv6/addrconf.c:3562 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:1970 [inline] call_netdevice_notifiers_extack net/core/dev.c:2008 [inline] call_netdevice_notifiers+0x145/0x1b0 net/core/dev.c:2022 register_netdevice+0x12f2/0x1720 net/core/dev.c:10126 macvlan_common_newlink+0x1151/0x18d0 drivers/net/macvlan.c:1512 macvtap_newlink+0x150/0x1d0 drivers/net/macvtap.c:109 rtnl_newlink_create net/core/rtnetlink.c:3390 [inline] __rtnl_newlink net/core/rtnetlink.c:3610 [inline] rtnl_newlink+0x14e3/0x2050 net/core/rtnetlink.c:3623 rtnetlink_rcv_msg+0x818/0xff0 net/core/rtnetlink.c:6122 netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2508 netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline] netlink_unicast+0x7d8/0x970 net/netlink/af_netlink.c:1352 netlink_sendmsg+0xa26/0xd60 net/netlink/af_netlink.c:1874 sock_sendmsg_nosec net/socket.c:716 [inline] __sock_sendmsg net/socket.c:728 [inline] ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2499 ___sys_sendmsg net/socket.c:2553 [inline] __sys_sendmsg+0x2a9/0x390 net/socket.c:2582 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88804d614000 which belongs to the cache proc_dir_entry of size 256 The buggy address is located 0 bytes to the right of 256-byte region [ffff88804d614000, ffff88804d614100) The buggy address belongs to the physical page: page:ffffea0001358500 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88804d614dc0 pfn:0x4d614 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0001e7ee88 ffffea0002830ac8 ffff888140130780 raw: ffff88804d614dc0 00000000000c0005 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 30179, tgid 30177 (syz-executor.1), ts 1133070485932, free_ts 1132787825654 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2513 prep_new_page mm/page_alloc.c:2520 [inline] get_page_from_freelist+0x31a1/0x3320 mm/page_alloc.c:4279 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5545 alloc_slab_page+0x6a/0x150 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x84/0x2d0 mm/slub.c:1992 ___slab_alloc+0xc20/0x1270 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x1a5/0x2d0 mm/slub.c:3422 kmem_cache_zalloc include/linux/slab.h:679 [inline] __proc_create+0x419/0x9f0 fs/proc/generic.c:426 _proc_mkdir+0xd3/0x210 fs/proc/generic.c:490 proc_net_mkdir include/linux/proc_fs.h:228 [inline] afs_proc_init+0x68/0x1c0 fs/afs/proc.c:664 afs_net_init+0x780/0x990 fs/afs/main.c:116 ops_init+0x356/0x600 net/core/net_namespace.c:135 setup_net+0x4b5/0xb90 net/core/net_namespace.c:332 copy_net_ns+0x395/0x5d0 net/core/net_namespace.c:478 create_new_namespaces+0x425/0x7a0 kernel/nsproxy.c:110 copy_namespaces+0x397/0x3f0 kernel/nsproxy.c:178 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1440 [inline] free_pcp_prepare mm/page_alloc.c:1490 [inline] free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3358 free_unref_page_list+0x663/0x900 mm/page_alloc.c:3499 release_pages+0x2836/0x2b40 mm/swap.c:1055 tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu+0xfc/0x210 mm/mmu_gather.c:261 tlb_finish_mmu+0xce/0x1f0 mm/mmu_gather.c:361 exit_mmap+0x3c3/0x9f0 mm/mmap.c:3226 __mmput+0x115/0x3c0 kernel/fork.c:1199 exit_mm+0x226/0x300 kernel/exit.c:563 do_exit+0x9f6/0x26a0 kernel/exit.c:856 do_group_exit+0x202/0x2b0 kernel/exit.c:1019 get_signal+0x16f7/0x17d0 kernel/signal.c:2862 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 Memory state around the buggy address: ffff88804d614000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804d614080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88804d614100: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff88804d614180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88804d614200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================