ext4 filesystem being mounted at /root/syzkaller-testdir4033771497/syzkaller.sb43ai/334/bus supports timestamps until 2038 (0x7fffffff) ================================================================== BUG: KASAN: slab-out-of-bounds in crc16+0x1fc/0x280 lib/crc16.c:58 Read of size 1 at addr ffff8881e4b76088 by task syz-executor.0/11325 CPU: 1 PID: 11325 Comm: syz-executor.0 Not tainted 5.4.233-syzkaller-00032-g21086923c1e6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 print_address_description+0x8c/0x600 mm/kasan/report.c:384 __kasan_report+0xf3/0x120 mm/kasan/report.c:516 kasan_report+0x30/0x60 mm/kasan/common.c:653 crc16+0x1fc/0x280 lib/crc16.c:58 ext4_group_desc_csum+0x90b/0xc40 fs/ext4/super.c:2545 ext4_group_desc_csum_set+0x197/0x230 fs/ext4/super.c:2568 __ext4_new_inode+0x20f6/0x3f10 fs/ext4/ialloc.c:1072 ext4_create+0x255/0x5b0 fs/ext4/namei.c:2747 lookup_open fs/namei.c:3309 [inline] do_last fs/namei.c:3401 [inline] path_openat+0x181b/0x3480 fs/namei.c:3614 do_filp_open+0x20b/0x450 fs/namei.c:3644 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Allocated by task 799: save_stack mm/kasan/common.c:70 [inline] set_track mm/kasan/common.c:78 [inline] __kasan_kmalloc+0x130/0x1d0 mm/kasan/common.c:529 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2829 [inline] slab_alloc mm/slub.c:2837 [inline] kmem_cache_alloc+0xd0/0x220 mm/slub.c:2842 kmem_cache_zalloc include/linux/slab.h:680 [inline] __kernfs_new_node+0xdb/0x6e0 fs/kernfs/dir.c:639 kernfs_new_node fs/kernfs/dir.c:705 [inline] kernfs_create_dir_ns+0x90/0x220 fs/kernfs/dir.c:1029 internal_create_group+0x2c2/0xf00 fs/sysfs/group.c:136 internal_create_groups fs/sysfs/group.c:188 [inline] sysfs_create_groups+0x52/0x110 fs/sysfs/group.c:214 device_add_groups drivers/base/core.c:2004 [inline] device_add_attrs+0x138/0x370 drivers/base/core.c:2163 device_add+0x4f4/0xbb0 drivers/base/core.c:2859 netdev_register_kobject+0x176/0x310 net/core/net-sysfs.c:1854 register_netdevice+0xbc5/0x12a0 net/core/dev.c:9176 wg_newlink+0x3de/0x690 drivers/net/wireguard/device.c:355 __rtnl_newlink net/core/rtnetlink.c:3230 [inline] rtnl_newlink+0x1511/0x2010 net/core/rtnetlink.c:3289 rtnetlink_rcv_msg+0x983/0xc70 net/core/rtnetlink.c:5262 netlink_rcv_skb+0x1d5/0x420 net/netlink/af_netlink.c:2509 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline] netlink_unicast+0x936/0xb20 net/netlink/af_netlink.c:1347 netlink_sendmsg+0xa18/0xcf0 net/netlink/af_netlink.c:1943 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] __sys_sendto+0x4f3/0x6c0 net/socket.c:1942 __do_sys_sendto net/socket.c:1954 [inline] __se_sys_sendto net/socket.c:1950 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:1950 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8881e4b76000 which belongs to the cache kernfs_node_cache of size 136 The buggy address is located 0 bytes to the right of 136-byte region [ffff8881e4b76000, ffff8881e4b76088) The buggy address belongs to the page: page:ffffea000792dd80 refcount:1 mapcount:0 mapping:ffff8881f5cf8280 index:0x0 flags: 0x8000000000000200(slab) raw: 8000000000000200 dead000000000100 dead000000000122 ffff8881f5cf8280 raw: 0000000000000000 0000000000140014 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) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:2165 [inline] prep_new_page+0x18f/0x370 mm/page_alloc.c:2171 get_page_from_freelist+0x2ce8/0x2d70 mm/page_alloc.c:3794 __alloc_pages_nodemask+0x393/0x840 mm/page_alloc.c:4891 alloc_slab_page+0x39/0x3c0 mm/slub.c:343 allocate_slab mm/slub.c:1683 [inline] new_slab+0x97/0x440 mm/slub.c:1749 new_slab_objects mm/slub.c:2505 [inline] ___slab_alloc+0x2fe/0x490 mm/slub.c:2667 __slab_alloc+0x5a/0x90 mm/slub.c:2707 slab_alloc_node mm/slub.c:2792 [inline] slab_alloc mm/slub.c:2837 [inline] kmem_cache_alloc+0x100/0x220 mm/slub.c:2842 kmem_cache_zalloc include/linux/slab.h:680 [inline] __kernfs_new_node+0xdb/0x6e0 fs/kernfs/dir.c:639 kernfs_new_node+0x95/0x160 fs/kernfs/dir.c:705 __kernfs_create_file+0x45/0x260 fs/kernfs/file.c:1001 sysfs_add_file_mode_ns+0x292/0x340 fs/sysfs/file.c:306 create_files fs/sysfs/group.c:63 [inline] internal_create_group+0x573/0xf00 fs/sysfs/group.c:148 internal_create_groups fs/sysfs/group.c:188 [inline] sysfs_create_groups+0x52/0x110 fs/sysfs/group.c:214 device_add_groups drivers/base/core.c:2004 [inline] device_add_attrs+0x87/0x370 drivers/base/core.c:2152 device_add+0x4f4/0xbb0 drivers/base/core.c:2859 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1176 [inline] free_pcp_prepare mm/page_alloc.c:1233 [inline] free_unref_page_prepare+0x297/0x380 mm/page_alloc.c:3085 free_unref_page mm/page_alloc.c:3134 [inline] free_the_page mm/page_alloc.c:4951 [inline] __free_pages mm/page_alloc.c:4959 [inline] free_pages+0x114/0x1b0 mm/page_alloc.c:4967 mm_free_pgd kernel/fork.c:643 [inline] __mmdrop+0xab/0x3c0 kernel/fork.c:694 mmdrop include/linux/sched/mm.h:49 [inline] finish_task_switch+0x1dd/0x560 kernel/sched/core.c:3463 context_switch kernel/sched/core.c:3608 [inline] __schedule+0xb03/0x12a0 kernel/sched/core.c:4304 schedule+0x12c/0x1d0 kernel/sched/core.c:4372 pipe_wait fs/pipe.c:132 [inline] pipe_write+0x9b8/0x11b0 fs/pipe.c:512 call_write_iter include/linux/fs.h:1981 [inline] new_sync_write fs/read_write.c:483 [inline] __vfs_write+0x5d3/0x750 fs/read_write.c:496 vfs_write+0x206/0x4e0 fs/read_write.c:558 ksys_write+0x199/0x2c0 fs/read_write.c:611 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Memory state around the buggy address: ffff8881e4b75f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881e4b76000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881e4b76080: 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 ^ ffff8881e4b76100: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ffff8881e4b76180: fc fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================