================================================================== BUG: KASAN: invalid-access in hlist_add_head include/linux/list.h:883 [inline] BUG: KASAN: invalid-access in enqueue_timer+0x18/0xc0 kernel/time/timer.c:581 Write at addr f6ff00002e015378 by task kworker/0:3/22192 Pointer tag: [f6], memory tag: [f4] CPU: 0 PID: 22192 Comm: kworker/0:3 Not tainted 5.11.0-syzkaller-11739-gcd278456d4ca #0 Hardware name: linux,dummy-virt (DT) Workqueue: events flush_stashed_error_work Call trace: dump_backtrace+0x0/0x1b0 arch/arm64/kernel/stacktrace.c:112 show_stack+0x18/0x70 arch/arm64/kernel/stacktrace.c:191 __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xd0/0x12c lib/dump_stack.c:120 print_address_description+0x70/0x29c mm/kasan/report.c:232 __kasan_report mm/kasan/report.c:399 [inline] kasan_report+0x134/0x380 mm/kasan/report.c:416 report_tag_fault arch/arm64/mm/fault.c:324 [inline] do_tag_recovery arch/arm64/mm/fault.c:336 [inline] __do_kernel_fault+0x18c/0x1c0 arch/arm64/mm/fault.c:378 do_bad_area arch/arm64/mm/fault.c:474 [inline] do_tag_check_fault+0x74/0x90 arch/arm64/mm/fault.c:729 do_mem_abort+0x44/0xbc arch/arm64/mm/fault.c:805 el1_abort+0x40/0x6c arch/arm64/kernel/entry-common.c:167 el1_sync_handler+0xac/0xd0 arch/arm64/kernel/entry-common.c:259 el1_sync+0x70/0x100 arch/arm64/kernel/entry.S:656 hlist_add_head include/linux/list.h:883 [inline] enqueue_timer+0x18/0xc0 kernel/time/timer.c:581 mod_timer+0x14/0x20 kernel/time/timer.c:1106 ext4_update_super+0x36c/0x3c0 fs/ext4/super.c:5544 ext4_commit_super+0x74/0x184 fs/ext4/super.c:5562 flush_stashed_error_work+0x30/0xa4 fs/ext4/super.c:727 process_one_work+0x1d8/0x364 kernel/workqueue.c:2275 worker_thread+0x70/0x434 kernel/workqueue.c:2421 kthread+0x174/0x180 kernel/kthread.c:292 ret_from_fork+0x10/0x34 arch/arm64/kernel/entry.S:958 Allocated by task 25262: stack_trace_save+0x50/0x80 kernel/stacktrace.c:121 kasan_save_stack+0x28/0x60 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:427 [inline] ____kasan_kmalloc mm/kasan/common.c:506 [inline] __kasan_kmalloc+0xa0/0xc0 mm/kasan/common.c:515 kasan_kmalloc include/linux/kasan.h:233 [inline] kmem_cache_alloc_trace include/linux/slab.h:452 [inline] kmalloc include/linux/slab.h:554 [inline] kzalloc include/linux/slab.h:684 [inline] ext4_fill_super+0x90/0x3580 fs/ext4/super.c:4011 mount_bdev+0x1c0/0x1f0 fs/super.c:1367 ext4_mount+0x18/0x24 fs/ext4/super.c:6600 legacy_get_tree+0x30/0x60 fs/fs_context.c:592 vfs_get_tree+0x28/0xf0 fs/super.c:1497 do_new_mount fs/namespace.c:2903 [inline] path_mount+0x3e8/0xa84 fs/namespace.c:3233 do_mount fs/namespace.c:3246 [inline] __do_sys_mount fs/namespace.c:3454 [inline] __se_sys_mount fs/namespace.c:3431 [inline] __arm64_sys_mount+0x1a8/0x2fc fs/namespace.c:3431 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall arch/arm64/kernel/syscall.c:49 [inline] el0_svc_common.constprop.0+0x60/0x120 arch/arm64/kernel/syscall.c:129 do_el0_svc+0x74/0x90 arch/arm64/kernel/syscall.c:168 el0_svc+0x2c/0x54 arch/arm64/kernel/entry-common.c:416 el0_sync_handler+0x1a4/0x1b0 arch/arm64/kernel/entry-common.c:432 el0_sync+0x18c/0x1c0 arch/arm64/kernel/entry.S:699 Freed by task 25259: stack_trace_save+0x50/0x80 kernel/stacktrace.c:121 kasan_save_stack+0x28/0x60 mm/kasan/common.c:38 kasan_set_track+0x28/0x40 mm/kasan/common.c:46 kasan_set_free_info+0x20/0x30 mm/kasan/hw_tags.c:174 ____kasan_slab_free.constprop.0+0x184/0x1c0 mm/kasan/common.c:360 __kasan_slab_free+0x10/0x1c mm/kasan/common.c:367 kasan_slab_free include/linux/kasan.h:199 [inline] slab_free_hook mm/slub.c:1562 [inline] slab_free_freelist_hook+0x98/0x18c mm/slub.c:1600 slab_free mm/slub.c:3161 [inline] kfree+0x328/0x4b0 mm/slub.c:4213 ext4_fill_super+0x370/0x3580 fs/ext4/super.c:5182 mount_bdev+0x1c0/0x1f0 fs/super.c:1367 ext4_mount+0x18/0x24 fs/ext4/super.c:6600 legacy_get_tree+0x30/0x60 fs/fs_context.c:592 vfs_get_tree+0x28/0xf0 fs/super.c:1497 do_new_mount fs/namespace.c:2903 [inline] path_mount+0x3e8/0xa84 fs/namespace.c:3233 do_mount fs/namespace.c:3246 [inline] __do_sys_mount fs/namespace.c:3454 [inline] __se_sys_mount fs/namespace.c:3431 [inline] __arm64_sys_mount+0x1a8/0x2fc fs/namespace.c:3431 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall arch/arm64/kernel/syscall.c:49 [inline] el0_svc_common.constprop.0+0x60/0x120 arch/arm64/kernel/syscall.c:129 do_el0_svc+0x74/0x90 arch/arm64/kernel/syscall.c:168 el0_svc+0x2c/0x54 arch/arm64/kernel/entry-common.c:416 el0_sync_handler+0x1a4/0x1b0 arch/arm64/kernel/entry-common.c:432 el0_sync+0x18c/0x1c0 arch/arm64/kernel/entry.S:699 The buggy address belongs to the object at ffff00002e015000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 888 bytes inside of 2048-byte region [ffff00002e015000, ffff00002e015800) The buggy address belongs to the page: page:00000000f159ffb1 refcount:1 mapcount:0 mapping:0000000000000000 index:0xf0ff00002e012000 pfn:0x6e010 head:00000000f159ffb1 order:3 compound_mapcount:0 compound_pincount:0 memcg:f5ff00002c85f201 flags: 0x1ffffc000010200(slab|head) raw: 01ffffc000010200 fffffc0000a37000 0000000300000003 fbff000004001600 raw: f0ff00002e012000 0000000080080007 00000001ffffffff f5ff00002c85f201 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff00002e015100: f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 ffff00002e015200: f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 >ffff00002e015300: f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 ^ ffff00002e015400: f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 ffff00002e015500: f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 ==================================================================