================================================================== BUG: KASAN: slab-out-of-bounds in crc16+0x1fb/0x280 lib/crc16.c:58 Read of size 1 at addr ffff88807d16c0f0 by task ext4lazyinit/10558 CPU: 0 PID: 10558 Comm: ext4lazyinit Not tainted 6.3.0-syzkaller-13466-gfc4354c6e5c2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:351 [inline] print_report+0x163/0x540 mm/kasan/report.c:462 kasan_report+0x176/0x1b0 mm/kasan/report.c:572 crc16+0x1fb/0x280 lib/crc16.c:58 ext4_group_desc_csum+0x90f/0xc50 fs/ext4/super.c:3243 ext4_group_desc_csum_set+0x19b/0x240 fs/ext4/super.c:3266 ext4_init_inode_table+0x655/0x800 fs/ext4/ialloc.c:1612 ext4_run_li_request fs/ext4/super.c:3733 [inline] ext4_lazyinit_thread+0x789/0x19a0 fs/ext4/super.c:3824 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Allocated by task 5029: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:383 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:680 [inline] ____ip_mc_inc_group+0x31d/0xbf0 net/ipv4/igmp.c:1449 __ip_mc_inc_group net/ipv4/igmp.c:1484 [inline] ip_mc_inc_group net/ipv4/igmp.c:1490 [inline] ip_mc_up+0x11f/0x2f0 net/ipv4/igmp.c:1789 inetdev_event+0xfda/0x1580 net/ipv4/devinet.c:1581 notifier_call_chain+0x18c/0x3a0 kernel/notifier.c:93 __dev_notify_flags+0x359/0x650 dev_change_flags+0xf0/0x1a0 net/core/dev.c:8643 do_setlink+0xe93/0x2ae0 net/core/rtnetlink.c:2836 __rtnl_newlink net/core/rtnetlink.c:3626 [inline] rtnl_newlink+0x172d/0x2010 net/core/rtnetlink.c:3673 rtnetlink_rcv_msg+0x825/0xf40 net/core/rtnetlink.c:6395 netlink_rcv_skb+0x1df/0x430 net/netlink/af_netlink.c:2546 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x7c3/0x990 net/netlink/af_netlink.c:1365 netlink_sendmsg+0xa2a/0xd60 net/netlink/af_netlink.c:1913 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] __sys_sendto+0x475/0x630 net/socket.c:2144 __do_sys_sendto net/socket.c:2156 [inline] __se_sys_sendto net/socket.c:2152 [inline] __x64_sys_sendto+0xde/0xf0 net/socket.c:2152 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88807d16c000 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 0 bytes to the right of allocated 240-byte region [ffff88807d16c000, ffff88807d16c0f0) The buggy address belongs to the physical page: page:ffffea0001f45b00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7d16c head:ffffea0001f45b00 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0 ksm flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010200 ffff888012441b40 ffffea0001d57900 dead000000000007 raw: 0000000000000000 0000000000100010 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 5029, tgid 5029 (syz-executor.3), ts 219307262274, free_ts 218980205015 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1731 prep_new_page mm/page_alloc.c:1738 [inline] get_page_from_freelist+0x321c/0x33a0 mm/page_alloc.c:3502 __alloc_pages+0x255/0x670 mm/page_alloc.c:4768 alloc_slab_page+0x6a/0x160 mm/slub.c:1851 allocate_slab mm/slub.c:1998 [inline] new_slab+0x84/0x2f0 mm/slub.c:2051 ___slab_alloc+0xa85/0x10a0 mm/slub.c:3192 __slab_alloc mm/slub.c:3291 [inline] __slab_alloc_node mm/slub.c:3344 [inline] slab_alloc_node mm/slub.c:3441 [inline] __kmem_cache_alloc_node+0x1b8/0x290 mm/slub.c:3490 kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1057 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:680 [inline] ____ip_mc_inc_group+0x31d/0xbf0 net/ipv4/igmp.c:1449 __ip_mc_inc_group net/ipv4/igmp.c:1484 [inline] ip_mc_inc_group net/ipv4/igmp.c:1490 [inline] ip_mc_up+0x11f/0x2f0 net/ipv4/igmp.c:1789 inetdev_event+0xfda/0x1580 net/ipv4/devinet.c:1581 notifier_call_chain+0x18c/0x3a0 kernel/notifier.c:93 __dev_notify_flags+0x359/0x650 dev_change_flags+0xf0/0x1a0 net/core/dev.c:8643 do_setlink+0xe93/0x2ae0 net/core/rtnetlink.c:2836 __rtnl_newlink net/core/rtnetlink.c:3626 [inline] rtnl_newlink+0x172d/0x2010 net/core/rtnetlink.c:3673 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1302 [inline] free_unref_page_prepare+0x903/0xa30 mm/page_alloc.c:2564 free_unref_page+0x37/0x3f0 mm/page_alloc.c:2659 discard_slab mm/slub.c:2097 [inline] __unfreeze_partials+0x1b1/0x1f0 mm/slub.c:2636 put_cpu_partial+0x116/0x180 mm/slub.c:2712 qlist_free_all+0x22/0x60 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x14b/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x23/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x68/0x3a0 mm/slab.h:711 slab_alloc_node mm/slub.c:3451 [inline] slab_alloc mm/slub.c:3459 [inline] __kmem_cache_alloc_lru mm/slub.c:3466 [inline] kmem_cache_alloc+0x11f/0x2e0 mm/slub.c:3475 getname_flags+0xbc/0x4e0 fs/namei.c:140 vfs_fstatat fs/stat.c:275 [inline] __do_sys_newfstatat fs/stat.c:446 [inline] __se_sys_newfstatat fs/stat.c:440 [inline] __x64_sys_newfstatat+0x12e/0x1d0 fs/stat.c:440 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff88807d16bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807d16c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88807d16c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc ^ ffff88807d16c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807d16c180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================