ext4 filesystem being mounted at /root/syzkaller-testdir893477642/syzkaller.8PfoXj/473/file0 supports timestamps until 2038-01-19 (0x7fffffff) ================================================================== BUG: KASAN: slab-use-after-free in crc16+0x1fb/0x280 lib/crc16.c:58 Read of size 1 at addr ffff8880761b0000 by task syz-executor.3/21523 CPU: 1 PID: 21523 Comm: syz-executor.3 Not tainted 6.4.0-rc1-syzkaller-00071-g105131df9c3b #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_new_inode+0x272c/0x42e0 fs/ext4/ialloc.c:1225 ext4_create+0x279/0x550 fs/ext4/namei.c:2808 lookup_open fs/namei.c:3492 [inline] open_last_lookups fs/namei.c:3560 [inline] path_openat+0x13df/0x3170 fs/namei.c:3788 do_filp_open+0x234/0x490 fs/namei.c:3818 do_sys_openat2+0x13f/0x500 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1383 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 RIP: 0033:0x7f1bba08c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1bbadfe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f1bba1abf80 RCX: 00007f1bba08c169 RDX: 000000000000275a RSI: 0000000020000180 RDI: ffffffffffffff9c RBP: 00007f1bba0e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff3cb7a1af R14: 00007f1bbadfe300 R15: 0000000000022000 Allocated by task 9: 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] kmem_cache_alloc_node+0x157/0x350 mm/slub.c:3496 __alloc_skb+0x181/0x420 net/core/skbuff.c:644 alloc_skb include/linux/skbuff.h:1288 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:751 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:808 [inline] nsim_dev_trap_report_work+0x250/0xa90 drivers/net/netdevsim/dev.c:853 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Freed by task 9: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:521 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:162 [inline] slab_free_hook mm/slub.c:1781 [inline] slab_free_freelist_hook mm/slub.c:1807 [inline] slab_free mm/slub.c:3786 [inline] kmem_cache_free+0x297/0x520 mm/slub.c:3808 nsim_dev_trap_report drivers/net/netdevsim/dev.c:824 [inline] nsim_dev_trap_report_work+0x761/0xa90 drivers/net/netdevsim/dev.c:853 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 The buggy address belongs to the object at ffff8880761b0000 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 0 bytes inside of freed 240-byte region [ffff8880761b0000, ffff8880761b00f0) The buggy address belongs to the physical page: page:ffffea0001d86c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880761b0780 pfn:0x761b0 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000200 ffff888019647500 ffffea0000a843d0 ffffea0001ccacd0 raw: ffff8880761b0780 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 0x132820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_MEMALLOC|__GFP_HARDWALL), pid 57, tgid 57 (kworker/u4:4), ts 609754496964, free_ts 609727971388 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+0x1f3/0x350 mm/slub.c:3496 __alloc_skb+0x181/0x420 net/core/skbuff.c:644 __netdev_alloc_skb+0x105/0x520 net/core/skbuff.c:718 netdev_alloc_skb include/linux/skbuff.h:3194 [inline] dev_alloc_skb include/linux/skbuff.h:3207 [inline] __ieee80211_beacon_get+0x909/0x14f0 net/mac80211/tx.c:5421 ieee80211_beacon_get_tim+0xbd/0x5b0 net/mac80211/tx.c:5543 ieee80211_beacon_get include/net/mac80211.h:5384 [inline] mac80211_hwsim_beacon_tx+0x382/0x750 drivers/net/wireless/virtual/mac80211_hwsim.c:2253 __iterate_interfaces+0x21e/0x4b0 net/mac80211/util.c:766 ieee80211_iterate_active_interfaces_atomic+0xb3/0x140 net/mac80211/util.c:802 mac80211_hwsim_beacon+0xd4/0x1e0 drivers/net/wireless/virtual/mac80211_hwsim.c:2283 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x59f/0xd10 kernel/time/hrtimer.c:1749 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_list+0x596/0x830 mm/page_alloc.c:2705 release_pages+0x2193/0x2470 mm/swap.c:1042 tlb_batch_pages_flush mm/mmu_gather.c:97 [inline] tlb_flush_mmu_free mm/mmu_gather.c:292 [inline] tlb_flush_mmu+0x100/0x210 mm/mmu_gather.c:299 tlb_finish_mmu+0xd4/0x1f0 mm/mmu_gather.c:391 exit_mmap+0x3da/0xaf0 mm/mmap.c:3123 __mmput+0x115/0x3c0 kernel/fork.c:1351 exit_mm+0x227/0x310 kernel/exit.c:564 do_exit+0x612/0x2290 kernel/exit.c:858 do_group_exit+0x206/0x2c0 kernel/exit.c:1021 get_signal+0x1701/0x17e0 kernel/signal.c:2874 arch_do_signal_or_restart+0x91/0x670 arch/x86/kernel/signal.c:306 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+0x64/0x280 kernel/entry/common.c:297 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 Memory state around the buggy address: ffff8880761aff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880761aff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880761b0000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880761b0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff8880761b0100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ==================================================================