==================================================================
BUG: KASAN: slab-out-of-bounds in hlist_move_list include/linux/list.h:870 [inline]
BUG: KASAN: slab-out-of-bounds in __collect_expired_timers kernel/time/timer.c:1514 [inline]
BUG: KASAN: slab-out-of-bounds in collect_expired_timers kernel/time/timer.c:1749 [inline]
BUG: KASAN: slab-out-of-bounds in __run_timers+0x521/0xbe0 kernel/time/timer.c:1813
Write of size 8 at addr ffff8881e5d931c8 by task syz-executor.4/2939

CPU: 0 PID: 2939 Comm: syz-executor.4 Tainted: G        W         5.4.274-syzkaller-00016-gdd432c37afcd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Call Trace:
 <IRQ>
 __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
 hlist_move_list include/linux/list.h:870 [inline]
 __collect_expired_timers kernel/time/timer.c:1514 [inline]
 collect_expired_timers kernel/time/timer.c:1749 [inline]
 __run_timers+0x521/0xbe0 kernel/time/timer.c:1813
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1830
 __do_softirq+0x23b/0x6b7 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:373 [inline]
 irq_exit+0x195/0x1c0 kernel/softirq.c:413
 exiting_irq arch/x86/include/asm/apic.h:538 [inline]
 smp_apic_timer_interrupt+0x11a/0x460 arch/x86/kernel/apic/apic.c:1149
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834
 </IRQ>
RIP: 0010:__write_once_size include/linux/compiler.h:295 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x45/0x50 kernel/kcov.c:195
Code: c3 8b 91 00 0a 00 00 83 fa 02 75 f4 48 8b 91 08 0a 00 00 48 8b 32 48 8d 7e 01 8b 89 04 0a 00 00 48 39 cf 73 db 48 89 44 f2 08 <48> 89 3a c3 0f 1f 80 00 00 00 00 4c 8b 04 24 65 48 8b 05 04 51 9e
RSP: 0018:ffff8881e307eb10 EFLAGS: 00000283 ORIG_RAX: ffffffffffffff13
RAX: ffffffff82318882 RBX: 00000000d66f3c14 RCX: 0000000000040000
RDX: ffffc90000741000 RSI: 0000000000038153 RDI: 0000000000038154
RBP: 0000000000000004 R08: ffffffff82318877 R09: ffffffff84fa9024
R10: ffffffff84fa8a3c R11: ffffffff84fa84f4 R12: ffffffff84fa70c0
R13: ffffffff84fa78c0 R14: ffffffff84fa82a8 R15: ffff8881d4a58ff4
 crc32_body lib/crc32.c:120 [inline]
 crc32_le_generic lib/crc32.c:179 [inline]
 __crc32c_le_base+0x6c2/0xd20 lib/crc32.c:202
 chksum_update+0x42/0x90 crypto/crc32c_generic.c:90
 crypto_shash_update+0x1db/0x2a0 crypto/shash.c:132
 ext4_chksum fs/ext4/ext4.h:2145 [inline]
 ext4_extent_block_csum fs/ext4/extents.c:55 [inline]
 ext4_extent_block_csum_set+0x368/0x520 fs/ext4/extents.c:83
 __ext4_ext_dirty+0xbb/0x1b0 fs/ext4/extents.c:170
 ext4_ext_insert_extent+0x1f91/0x42c0 fs/ext4/extents.c:2209
 ext4_split_extent_at+0x812/0x1100 fs/ext4/extents.c:3421
 ext4_force_split_extent_at fs/ext4/extents.c:308 [inline]
 ext4_swap_extents+0x12dc/0x2240 fs/ext4/extents.c:5938
 move_extent_per_page+0x11aa/0x20e0 fs/ext4/move_extent.c:360
 ext4_move_extents+0xe99/0x1480 fs/ext4/move_extent.c:674
 ext4_ioctl+0x30fa/0x3ff0 fs/ext4/ioctl.c:997
 do_vfs_ioctl+0x742/0x1720 fs/ioctl.c:47
 ksys_ioctl fs/ioctl.c:742 [inline]
 __do_sys_ioctl fs/ioctl.c:749 [inline]
 __se_sys_ioctl fs/ioctl.c:747 [inline]
 __x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
RIP: 0033:0x7fd7721ccf69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd7715260c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fd772304050 RCX: 00007fd7721ccf69
RDX: 00000000200005c0 RSI: 00000000c028660f RDI: 000000000000000e
RBP: 00007fd77222a6fe R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fd772304050 R15: 00007fff768dc448

Allocated by task 2836:
 save_stack mm/kasan/common.c:70 [inline]
 set_track mm/kasan/common.c:78 [inline]
 __kasan_kmalloc+0x171/0x210 mm/kasan/common.c:529
 kmem_cache_alloc_node_trace include/linux/slab.h:444 [inline]
 kmalloc_node include/linux/slab.h:594 [inline]
 kzalloc_node include/linux/slab.h:701 [inline]
 __get_vm_area_node+0x183/0x310 mm/vmalloc.c:2059
 __vmalloc_node_range+0xee/0x710 mm/vmalloc.c:2494
 module_alloc+0x80/0xb0 arch/x86/kernel/module.c:75
 bpf_jit_binary_alloc+0x9f/0x1a0 kernel/bpf/core.c:826
 bpf_int_jit_compile+0x8169/0x8c40 arch/x86/net/bpf_jit_comp.c:1179
 bpf_prog_select_runtime+0x654/0x900 kernel/bpf/core.c:1782
 bpf_prog_load kernel/bpf/syscall.c:1728 [inline]
 __do_sys_bpf kernel/bpf/syscall.c:2891 [inline]
 __se_sys_bpf+0x8193/0xbcb0 kernel/bpf/syscall.c:2849
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1

Freed by task 124:
 save_stack mm/kasan/common.c:70 [inline]
 set_track mm/kasan/common.c:78 [inline]
 kasan_set_free_info mm/kasan/common.c:345 [inline]
 __kasan_slab_free+0x1b5/0x270 mm/kasan/common.c:487
 slab_free_hook mm/slub.c:1455 [inline]
 slab_free_freelist_hook mm/slub.c:1494 [inline]
 slab_free mm/slub.c:3080 [inline]
 kfree+0x123/0x370 mm/slub.c:4071
 bpf_jit_binary_free kernel/bpf/core.c:851 [inline]
 bpf_jit_free+0x94/0x1f0 kernel/bpf/core.c:864
 process_one_work+0x765/0xd20 kernel/workqueue.c:2290
 worker_thread+0xaef/0x1470 kernel/workqueue.c:2436
 kthread+0x2da/0x360 kernel/kthread.c:288
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354

The buggy address belongs to the object at ffff8881e5d93180
 which belongs to the cache kmalloc-64 of size 64
The buggy address is located 8 bytes to the right of
 64-byte region [ffff8881e5d93180, ffff8881e5d931c0)
The buggy address belongs to the page:
page:ffffea00079764c0 refcount:1 mapcount:0 mapping:ffff8881f5c03180 index:0x0
flags: 0x8000000000000200(slab)
raw: 8000000000000200 dead000000000100 dead000000000122 ffff8881f5c03180
raw: 0000000000000000 0000000000200020 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+0x2d13/0x2d90 mm/page_alloc.c:3794
 __alloc_pages_nodemask+0x393/0x840 mm/page_alloc.c:4893
 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+0x62/0xa0 mm/slub.c:2707
 slab_alloc_node mm/slub.c:2792 [inline]
 slab_alloc mm/slub.c:2837 [inline]
 kmem_cache_alloc_trace+0x12d/0x260 mm/slub.c:2854
 kmem_cache_alloc_node_trace include/linux/slab.h:444 [inline]
 kmalloc_node include/linux/slab.h:594 [inline]
 kzalloc_node include/linux/slab.h:701 [inline]
 __get_vm_area_node+0x183/0x310 mm/vmalloc.c:2059
 __vmalloc_node_range+0xee/0x710 mm/vmalloc.c:2494
 __vmalloc_node mm/vmalloc.c:2554 [inline]
 __vmalloc+0x40/0x50 mm/vmalloc.c:2560
 bpf_prog_alloc_no_stats+0x6b/0x240 kernel/bpf/core.c:88
 bpf_prog_alloc+0x1a/0x1e0 kernel/bpf/core.c:114
 bpf_prog_load kernel/bpf/syscall.c:1678 [inline]
 __do_sys_bpf kernel/bpf/syscall.c:2891 [inline]
 __se_sys_bpf+0x5e76/0xbcb0 kernel/bpf/syscall.c:2849
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
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:4953 [inline]
 __free_pages+0xaf/0x140 mm/page_alloc.c:4961
 pcpu_free_pages mm/percpu-vm.c:64 [inline]
 pcpu_depopulate_chunk mm/percpu-vm.c:328 [inline]
 pcpu_balance_workfn+0x940/0x1450 mm/percpu.c:1865
 process_one_work+0x765/0xd20 kernel/workqueue.c:2290
 worker_thread+0xaef/0x1470 kernel/workqueue.c:2436
 kthread+0x2da/0x360 kernel/kthread.c:288
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354

Memory state around the buggy address:
 ffff8881e5d93080: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff8881e5d93100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff8881e5d93180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
                                              ^
 ffff8881e5d93200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff8881e5d93280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 2939 Comm: syz-executor.4 Tainted: G    B   W         5.4.274-syzkaller-00016-gdd432c37afcd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:__hlist_del include/linux/list.h:791 [inline]
RIP: 0010:detach_timer kernel/time/timer.c:824 [inline]
RIP: 0010:expire_timers kernel/time/timer.c:1482 [inline]
RIP: 0010:__run_timers+0x7b0/0xbe0 kernel/time/timer.c:1817
Code: 89 e7 e8 63 4e 3f 00 4d 89 2c 24 4d 85 ed 74 2e e8 e5 68 0f 00 49 83 c5 08 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 ef e8 32 4e 3f 00 4d 89 65 00 eb 05 e8 b7
RSP: 0018:ffff8881f6e09d60 EFLAGS: 00010807
RAX: 1da00027a0000163 RBX: 1ffff1103cbb2639 RCX: dffffc0000000000
RDX: 0000000080000101 RSI: 0000000000000008 RDI: ffff8881e5d931c8
RBP: ffff8881f6e09ec8 R08: ffffffff8154d26c R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff8881f6e09e20
R13: ed00013d00000b1c R14: 1ffff1103cbb2638 R15: ffff8881e5d931c8
FS:  00007fd7715266c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32e21000 CR3: 00000001e3f96000 CR4: 00000000003406b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1830
 __do_softirq+0x23b/0x6b7 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:373 [inline]
 irq_exit+0x195/0x1c0 kernel/softirq.c:413
 exiting_irq arch/x86/include/asm/apic.h:538 [inline]
 smp_apic_timer_interrupt+0x11a/0x460 arch/x86/kernel/apic/apic.c:1149
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834
 </IRQ>
RIP: 0010:__write_once_size include/linux/compiler.h:295 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x45/0x50 kernel/kcov.c:195
Code: c3 8b 91 00 0a 00 00 83 fa 02 75 f4 48 8b 91 08 0a 00 00 48 8b 32 48 8d 7e 01 8b 89 04 0a 00 00 48 39 cf 73 db 48 89 44 f2 08 <48> 89 3a c3 0f 1f 80 00 00 00 00 4c 8b 04 24 65 48 8b 05 04 51 9e
RSP: 0018:ffff8881e307eb10 EFLAGS: 00000283 ORIG_RAX: ffffffffffffff13
RAX: ffffffff82318882 RBX: 00000000d66f3c14 RCX: 0000000000040000
RDX: ffffc90000741000 RSI: 0000000000038153 RDI: 0000000000038154
RBP: 0000000000000004 R08: ffffffff82318877 R09: ffffffff84fa9024
R10: ffffffff84fa8a3c R11: ffffffff84fa84f4 R12: ffffffff84fa70c0
R13: ffffffff84fa78c0 R14: ffffffff84fa82a8 R15: ffff8881d4a58ff4
 crc32_body lib/crc32.c:120 [inline]
 crc32_le_generic lib/crc32.c:179 [inline]
 __crc32c_le_base+0x6c2/0xd20 lib/crc32.c:202
 chksum_update+0x42/0x90 crypto/crc32c_generic.c:90
 crypto_shash_update+0x1db/0x2a0 crypto/shash.c:132
 ext4_chksum fs/ext4/ext4.h:2145 [inline]
 ext4_extent_block_csum fs/ext4/extents.c:55 [inline]
 ext4_extent_block_csum_set+0x368/0x520 fs/ext4/extents.c:83
 __ext4_ext_dirty+0xbb/0x1b0 fs/ext4/extents.c:170
 ext4_ext_insert_extent+0x1f91/0x42c0 fs/ext4/extents.c:2209
 ext4_split_extent_at+0x812/0x1100 fs/ext4/extents.c:3421
 ext4_force_split_extent_at fs/ext4/extents.c:308 [inline]
 ext4_swap_extents+0x12dc/0x2240 fs/ext4/extents.c:5938
 move_extent_per_page+0x11aa/0x20e0 fs/ext4/move_extent.c:360
 ext4_move_extents+0xe99/0x1480 fs/ext4/move_extent.c:674
 ext4_ioctl+0x30fa/0x3ff0 fs/ext4/ioctl.c:997
 do_vfs_ioctl+0x742/0x1720 fs/ioctl.c:47
 ksys_ioctl fs/ioctl.c:742 [inline]
 __do_sys_ioctl fs/ioctl.c:749 [inline]
 __se_sys_ioctl fs/ioctl.c:747 [inline]
 __x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
RIP: 0033:0x7fd7721ccf69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd7715260c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fd772304050 RCX: 00007fd7721ccf69
RDX: 00000000200005c0 RSI: 00000000c028660f RDI: 000000000000000e
RBP: 00007fd77222a6fe R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fd772304050 R15: 00007fff768dc448
Modules linked in:
---[ end trace 97e3a3c44143a2f9 ]---
RIP: 0010:__hlist_del include/linux/list.h:791 [inline]
RIP: 0010:detach_timer kernel/time/timer.c:824 [inline]
RIP: 0010:expire_timers kernel/time/timer.c:1482 [inline]
RIP: 0010:__run_timers+0x7b0/0xbe0 kernel/time/timer.c:1817
Code: 89 e7 e8 63 4e 3f 00 4d 89 2c 24 4d 85 ed 74 2e e8 e5 68 0f 00 49 83 c5 08 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 ef e8 32 4e 3f 00 4d 89 65 00 eb 05 e8 b7
RSP: 0018:ffff8881f6e09d60 EFLAGS: 00010807
RAX: 1da00027a0000163 RBX: 1ffff1103cbb2639 RCX: dffffc0000000000
RDX: 0000000080000101 RSI: 0000000000000008 RDI: ffff8881e5d931c8
RBP: ffff8881f6e09ec8 R08: ffffffff8154d26c R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff8881f6e09e20
R13: ed00013d00000b1c R14: 1ffff1103cbb2638 R15: ffff8881e5d931c8
FS:  00007fd7715266c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32e21000 CR3: 00000001e3f96000 CR4: 00000000003406b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	c3                   	ret
   1:	8b 91 00 0a 00 00    	mov    0xa00(%rcx),%edx
   7:	83 fa 02             	cmp    $0x2,%edx
   a:	75 f4                	jne    0x0
   c:	48 8b 91 08 0a 00 00 	mov    0xa08(%rcx),%rdx
  13:	48 8b 32             	mov    (%rdx),%rsi
  16:	48 8d 7e 01          	lea    0x1(%rsi),%rdi
  1a:	8b 89 04 0a 00 00    	mov    0xa04(%rcx),%ecx
  20:	48 39 cf             	cmp    %rcx,%rdi
  23:	73 db                	jae    0x0
  25:	48 89 44 f2 08       	mov    %rax,0x8(%rdx,%rsi,8)
* 2a:	48 89 3a             	mov    %rdi,(%rdx) <-- trapping instruction
  2d:	c3                   	ret
  2e:	0f 1f 80 00 00 00 00 	nopl   0x0(%rax)
  35:	4c 8b 04 24          	mov    (%rsp),%r8
  39:	65                   	gs
  3a:	48                   	rex.W
  3b:	8b                   	.byte 0x8b
  3c:	05                   	.byte 0x5
  3d:	04 51                	add    $0x51,%al
  3f:	9e                   	sahf