================================================================== BUG: KASAN: slab-out-of-bounds in crc16+0x1fb/0x280 lib/crc16.c:58 Read of size 1 at addr ffff88802c63f0a8 by task ext4lazyinit/14620 CPU: 1 PID: 14620 Comm: ext4lazyinit Not tainted 6.4.0-rc1-syzkaller-00133-g9a48d6046722 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/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 5039: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x66/0x70 mm/kasan/common.c:328 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 kmem_cache_zalloc include/linux/slab.h:670 [inline] __kernfs_new_node+0xdf/0x740 fs/kernfs/dir.c:611 kernfs_new_node+0x99/0x170 fs/kernfs/dir.c:673 __kernfs_create_file+0x49/0x2e0 fs/kernfs/file.c:1047 sysfs_add_file_mode_ns+0x24a/0x300 fs/sysfs/file.c:294 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x549/0xed0 fs/sysfs/group.c:148 internal_create_groups fs/sysfs/group.c:188 [inline] sysfs_create_groups+0x56/0x110 fs/sysfs/group.c:214 device_add_groups drivers/base/core.c:2726 [inline] device_add_attrs+0xe5/0x600 drivers/base/core.c:2835 device_add+0x674/0xf60 drivers/base/core.c:3579 netdev_register_kobject+0x17a/0x310 net/core/net-sysfs.c:2043 register_netdevice+0x1066/0x1790 net/core/dev.c:10085 veth_newlink+0x61e/0xce0 drivers/net/veth.c:1897 rtnl_newlink_create net/core/rtnetlink.c:3443 [inline] __rtnl_newlink net/core/rtnetlink.c:3660 [inline] rtnl_newlink+0x1468/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 ffff88802c63f000 which belongs to the cache kernfs_node_cache of size 168 The buggy address is located 0 bytes to the right of allocated 168-byte region [ffff88802c63f000, ffff88802c63f0a8) The buggy address belongs to the physical page: page:ffffea0000b18fc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2c63f flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000200 ffff88801565e000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000110011 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 5039, tgid 5039 (syz-executor.4), ts 182467796154, free_ts 182464380249 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] slab_alloc mm/slub.c:3459 [inline] __kmem_cache_alloc_lru mm/slub.c:3466 [inline] kmem_cache_alloc+0x1b9/0x2e0 mm/slub.c:3475 kmem_cache_zalloc include/linux/slab.h:670 [inline] __kernfs_new_node+0xdf/0x740 fs/kernfs/dir.c:611 kernfs_new_node+0x99/0x170 fs/kernfs/dir.c:673 __kernfs_create_file+0x49/0x2e0 fs/kernfs/file.c:1047 sysfs_add_file_mode_ns+0x24a/0x300 fs/sysfs/file.c:294 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x549/0xed0 fs/sysfs/group.c:148 internal_create_groups fs/sysfs/group.c:188 [inline] sysfs_create_groups+0x56/0x110 fs/sysfs/group.c:214 device_add_groups drivers/base/core.c:2726 [inline] device_add_attrs+0xe5/0x600 drivers/base/core.c:2835 device_add+0x674/0xf60 drivers/base/core.c:3579 netdev_register_kobject+0x17a/0x310 net/core/net-sysfs.c:2043 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 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] __kmem_cache_alloc_node+0x14c/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] ref_tracker_alloc+0x140/0x470 lib/ref_tracker.c:85 __netdev_tracker_alloc include/linux/netdevice.h:4070 [inline] netdev_hold include/linux/netdevice.h:4099 [inline] netdev_queue_add_kobject net/core/net-sysfs.c:1691 [inline] netdev_queue_update_kobjects+0x188/0x480 net/core/net-sysfs.c:1746 register_queue_kobjects net/core/net-sysfs.c:1807 [inline] netdev_register_kobject+0x267/0x310 net/core/net-sysfs.c:2047 register_netdevice+0x1066/0x1790 net/core/dev.c:10085 veth_newlink+0x841/0xce0 drivers/net/veth.c:1928 rtnl_newlink_create net/core/rtnetlink.c:3443 [inline] __rtnl_newlink net/core/rtnetlink.c:3660 [inline] rtnl_newlink+0x1468/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 Memory state around the buggy address: ffff88802c63ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802c63f000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88802c63f080: 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 ^ ffff88802c63f100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802c63f180: 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 ==================================================================