Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
------------[ cut here ]------------
kernfs_put: syz6/pids.events: released with incorrect active_ref 0
WARNING: CPU: 1 PID: 84 at fs/kernfs/dir.c:531 kernfs_put.part.0+0x433/0x540
Modules linked in:
------------[ cut here ]------------
CPU: 1 PID: 84 Comm: kworker/1:3 Not tainted 5.19.0-rc4-next-20220704 #1
WARNING: CPU: 0 PID: 112 at fs/kernfs/dir.c:504 kernfs_get.part.0+0x69/0x80
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
Modules linked in:
CPU: 0 PID: 112 Comm: systemd-journal Not tainted 5.19.0-rc4-next-20220704 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
Workqueue: events kernfs_notify_workfn
RIP: 0010:kernfs_get.part.0+0x69/0x80
Code: 31 ff 89 ee e8 c8 0c a7 ff 85 ed 74 18 e8 ef 0f a7 ff be 04 00 00 00 48 89 df e8 d2 ba d9 ff f0 ff 03 5b 5d c3 e8 d7 0f a7 ff <0f> 0b eb df 48 89 df e8 7b b7 d9 ff eb c6 66 0f 1f 84 00 00 00 00
RSP: 0000:ffff888018667bc8 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffff88800fc91910 RCX: 0000000000000100
RDX: ffff88800f933580 RSI: ffffffff819de5c9 RDI: 0000000000000005
RIP: 0010:kernfs_put.part.0+0x433/0x540
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001
R13: 1ffffffff0a01e40 R14: ffff88800fc91910 R15: ffff88800e1efd30
FS: 00007fd7d688f900(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000
Code: 03 80 3c 18 00 0f 85 ea 00 00 00 4d 8b 7d 38 e8 73 0b a7 ff 48 8b 14 24 44 89 f1 4c 89 fe 48 c7 c7 e0 58 72 84 e8 93 9c 6c 02 <0f> 0b e9 b9 fc ff ff 48 89 ef e8 0e b3 d9 ff e9 c1 fd ff ff e8 04
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd7d5d3fcb8 CR3: 000000000ee70000 CR4: 0000000000350ef0
Call Trace:
RSP: 0018:ffff88800fa17bd8 EFLAGS: 00010286
kernfs_get+0x1b/0x30
kernfs_notify+0x180/0x350
cgroup_file_notify+0xf5/0x1a0
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: ffff88800fabb580 RSI: ffffffff812bd348 RDI: ffffed1001f42f6d
call_timer_fn+0x17d/0x5f0
RBP: ffff88800fc91948 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000001 R12: ffff88800fc91910
R13: ffff888043b94570 R14: 0000000000000000 R15: ffff888014adc168
__run_timers.part.0+0x65e/0xa50
FS: 0000000000000000(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d72a000 CR3: 000000004398e000 CR4: 0000000000350ee0
Call Trace:
kernfs_put+0x42/0x50
run_timer_softirq+0xae/0x1a0
kernfs_notify_workfn+0x417/0x560
__do_softirq+0x1c8/0x8cc
__irq_exit_rcu+0x113/0x170
irq_exit_rcu+0x5/0x20
sysvec_apic_timer_interrupt+0x40/0xc0
process_one_work+0xa0f/0x1690
asm_sysvec_apic_timer_interrupt+0x1b/0x20
RIP: 0033:0x7fd7d7148c64
Code: 84 00 00 00 00 00 44 89 54 24 0c e8 36 61 f9 ff 44 8b 54 24 0c 44 89 e2 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 89 44 24 0c e8 68 61 f9 ff 8b 44
RSP: 002b:00007ffd49b783d0 EFLAGS: 00000293
RAX: fffffffffffffffe RBX: 0000557f61fd0d60 RCX: 00007fd7d7148c64
worker_thread+0x637/0x1250
RDX: 0000000000080802 RSI: 0000557f61ff0900 RDI: 00000000ffffff9c
RBP: 0000557f61ff0900 R08: 0000000000000000 R09: ffffffffffffff01
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000080802
R13: 00000000fffffffa R14: 0000557f62012b20 R15: 0000000000000002
kthread+0x2ed/0x3a0
irq event stamp: 613217
hardirqs last enabled at (613216): [] _raw_spin_unlock_irq+0x1f/0x40
hardirqs last disabled at (613217): [] _raw_spin_lock_irqsave+0x4e/0x50
ret_from_fork+0x22/0x30
softirqs last enabled at (612976): [] __irq_exit_rcu+0x113/0x170
softirqs last disabled at (613213): [] __irq_exit_rcu+0x113/0x170
---[ end trace 0000000000000000 ]---
irq event stamp: 1019133
hardirqs last enabled at (1019391): [] __up_console_sem+0x78/0x80
hardirqs last disabled at (1019402): [] __up_console_sem+0x5d/0x80
softirqs last enabled at (1019052): [] __irq_exit_rcu+0x113/0x170
softirqs last disabled at (1018967): [] __irq_exit_rcu+0x113/0x170
---[ end trace 0000000000000000 ]---
==================================================================
BUG: KASAN: use-after-free in llist_del_first+0x89/0xa0
Read of size 8 at addr ffff88800fc91990 by task kworker/1:3/84
CPU: 1 PID: 84 Comm: kworker/1:3 Tainted: G W 5.19.0-rc4-next-20220704 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
------------[ cut here ]------------
Workqueue: events kernfs_notify_workfn
WARNING: CPU: 0 PID: 8910 at fs/kernfs/dir.c:504 kernfs_get.part.0+0x69/0x80
Modules linked in:
Call Trace:
CPU: 0 PID: 8910 Comm: syz-executor.0 Tainted: G W 5.19.0-rc4-next-20220704 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
dump_stack_lvl+0x8b/0xb3
RIP: 0010:kernfs_get.part.0+0x69/0x80
print_report.cold+0x5e/0x5e1
Code: 31 ff 89 ee e8 c8 0c a7 ff 85 ed 74 18 e8 ef 0f a7 ff be 04 00 00 00 48 89 df e8 d2 ba d9 ff f0 ff 03 5b 5d c3 e8 d7 0f a7 ff <0f> 0b eb df 48 89 df e8 7b b7 d9 ff eb c6 66 0f 1f 84 00 00 00 00
RSP: 0018:ffff88806ce09c80 EFLAGS: 00010046
kasan_report+0xb1/0x1b0
RAX: 0000000000000000 RBX: ffff88800fc91910 RCX: 0000000000000100
RDX: ffff888045691ac0 RSI: ffffffff819de5c9 RDI: 0000000000000005
llist_del_first+0x89/0xa0
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
kernfs_notify_workfn+0x78/0x560
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001
R13: 1ffffffff0a01e40 R14: ffff88800fc91910 R15: ffff88800e1efd30
FS: 00007f90b0033700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
process_one_work+0xa0f/0x1690
CR2: 00007fff9ed4f810 CR3: 000000004398e000 CR4: 0000000000350ef0
Call Trace:
kernfs_get+0x1b/0x30
kernfs_notify+0x180/0x350
worker_thread+0x637/0x1250
cgroup_file_notify+0xf5/0x1a0
kthread+0x2ed/0x3a0
call_timer_fn+0x17d/0x5f0
ret_from_fork+0x22/0x30
Allocated by task 295:
kasan_save_stack+0x1e/0x40
__run_timers.part.0+0x65e/0xa50
__kasan_slab_alloc+0x66/0x80
kmem_cache_alloc+0x1b1/0x490
__kernfs_new_node+0xd4/0x8b0
kernfs_new_node+0x93/0x120
run_timer_softirq+0xae/0x1a0
__kernfs_create_file+0x51/0x350
__do_softirq+0x1c8/0x8cc
cgroup_addrm_files+0x3e2/0x9d0
__irq_exit_rcu+0x113/0x170
css_populate_dir+0x19b/0x450
irq_exit_rcu+0x5/0x20
cgroup_apply_control_enable+0x3ae/0xa40
sysvec_apic_timer_interrupt+0x8e/0xc0
cgroup_mkdir+0x824/0x11f0
kernfs_iop_mkdir+0x149/0x1d0
asm_sysvec_apic_timer_interrupt+0x1b/0x20
vfs_mkdir+0x417/0x6a0
RIP: 0010:smp_call_function_many_cond+0x46d/0xcc0
do_mkdirat+0x17b/0x2e0
Code: 31 ff 83 e5 01 89 ee e8 b1 10 0a 00 85 ed 74 43 4d 89 ec 4c 89 ed 49 c1 ec 03 83 e5 07 4d 01 fc 83 c5 03 e8 c5 13 0a 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 ac 06 00 00 8b 43 08 31
__x64_sys_mkdir+0xf2/0x140
RSP: 0018:ffff88804539f6e0 EFLAGS: 00000216
do_syscall_64+0x3b/0x90
RAX: 0000000000026aee RBX: ffff88806cf3d420 RCX: ffffc90000dce000
entry_SYSCALL_64_after_hwframe+0x46/0xb0
RDX: 0000000000040000 RSI: ffffffff813ae1db RDI: 0000000000000005
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000
Freed by task 84:
R10: 0000000000000001 R11: 0000000000000001 R12: ffffed100d9e7a85
kasan_save_stack+0x1e/0x40
R13: ffff88806cf3d428 R14: 0000000000000001 R15: dffffc0000000000
kasan_set_track+0x21/0x30
kasan_set_free_info+0x20/0x30
__kasan_slab_free+0x108/0x190
kmem_cache_free+0xfb/0x600
on_each_cpu_cond_mask+0x56/0xa0
kernfs_put.part.0+0x2c7/0x540
kvm_flush_tlb_multi+0x294/0x3a0
kernfs_put+0x42/0x50
kernfs_notify_workfn+0x417/0x560
process_one_work+0xa0f/0x1690
flush_tlb_mm_range+0x2ee/0x410
worker_thread+0x637/0x1250
tlb_finish_mmu+0x33c/0x7f0
kthread+0x2ed/0x3a0
unmap_region+0x261/0x2f0
ret_from_fork+0x22/0x30
do_mas_align_munmap.constprop.0+0x924/0xff0
The buggy address belongs to the object at ffff88800fc91910
which belongs to the cache kernfs_node_cache of size 168
The buggy address is located 128 bytes inside of
168-byte region [ffff88800fc91910, ffff88800fc919b8)
The buggy address belongs to the physical page:
page:0000000083dac9eb refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xfc91
do_mas_munmap+0x1e8/0x2b0
flags: 0x100000000000200(slab|node=0|zone=1)
mmap_region+0x21c/0x19f0
raw: 0100000000000200 0000000000000000 dead000000000122 ffff8880080358c0
raw: 0000000000000000 0000000000110011 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
do_mmap+0x824/0xf40
ffff88800fc91880: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc
vm_mmap_pgoff+0x1ab/0x270
ffff88800fc91900: fc fc fa fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88800fc91980: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc 00
ksys_mmap_pgoff+0x3cc/0x4f0
^
do_syscall_64+0x3b/0x90
ffff88800fc91a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
entry_SYSCALL_64_after_hwframe+0x46/0xb0
ffff88800fc91a80: 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 00
RIP: 0033:0x7f90b2abdb62
==================================================================
Code: 00 00 00 00 00 0f 1f 00 41 f7 c1 ff 0f 00 00 75 27 55 48 89 fd 53 89 cb 48 85 ff 74 3b 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 5b 5d c3 0f 1f 00 48 c7 c0 bc ff ff ff 64
RSP: 002b:00007f90b00330f8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 0000000000008011 RCX: 00007f90b2abdb62
RDX: 0000000000000003 RSI: 0000000000040000 RDI: 0000000020ffe000
RBP: 0000000020ffe000 R08: 0000000000000007 R09: 0000000010000000
R10: 0000000000008011 R11: 0000000000000206 R12: 0000000020000380
R13: 0000000020ffe000 R14: 00000000200001c0 R15: 0000000020ffc000
irq event stamp: 25605
hardirqs last enabled at (25604): [] _raw_spin_unlock_irq+0x1f/0x40
hardirqs last disabled at (25605): [] _raw_spin_lock_irqsave+0x4e/0x50
softirqs last enabled at (24978): [] __irq_exit_rcu+0x113/0x170
softirqs last disabled at (25601): [] __irq_exit_rcu+0x113/0x170
---[ end trace 0000000000000000 ]---
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
BUG: kernel NULL pointer dereference, address: 0000000000000018
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 41465067 P4D 41465067 PUD 43688067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 1 PID: 9168 Comm: syz-executor.4 Tainted: G B W 5.19.0-rc4-next-20220704 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
RIP: 0010:qlist_free_all+0xd3/0x190
Code: 03 05 a1 82 7b 03 48 8b 48 08 48 89 c2 f6 c1 01 0f 85 b6 00 00 00 0f 1f 44 00 00 48 8b 02 f6 c4 02 b8 00 00 00 00 48 0f 44 d0 <4c> 8b 72 18 e9 50 ff ff ff 49 83 7e 48 00 0f 85 68 ff ff ff 41 f7
RSP: 0000:ffff88801b54f908 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88800e55a1d3 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff81770c31
RBP: 0000000000000000 R08: ffff88800e55a1d3 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: dffffc0000000000
R13: ffff88801b54f948 R14: 0000000000000000 R15: ffff88800fc91910
FS: 0000555555fff400(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000018 CR3: 00000000175d0000 CR4: 0000000000350ee0
Call Trace:
kasan_quarantine_reduce+0x180/0x200
__kasan_slab_alloc+0x78/0x80
kmem_cache_alloc+0x1b1/0x490
jbd2__journal_start+0x18c/0x8c0
__ext4_journal_start_sb+0x38d/0x470
ext4_dirty_inode+0x9d/0x110
__mark_inode_dirty+0x455/0xf00
generic_update_time+0x21d/0x350
file_update_time+0x227/0x280
ext4_page_mkwrite+0x2ea/0x1a60
do_page_mkwrite+0x1a0/0x630
__handle_mm_fault+0x127c/0x34f0
handle_mm_fault+0x2e6/0xa10
do_user_addr_fault+0x536/0x1300
exc_page_fault+0x98/0x1a0
asm_exc_page_fault+0x27/0x30
RIP: 0033:0x7f96889c2673
Code: 5d c3 0f 1f 44 00 00 48 8b 0d 59 ed 0a 01 48 8b 05 4a ed 0a 01 4c 8d 81 00 00 00 01 48 39 c8 72 13 4c 39 c0 73 0e 48 8d 50 04 <89> 38 48 89 15 2c ed 0a 01 c3 52 48 8d 35 77 b7 0b 00 48 89 c2 48
RSP: 002b:00007fff15bcca38 EFLAGS: 00010287
RAX: 0000001b2db25000 RBX: 00007f968859c008 RCX: 0000001b2db20000
RDX: 0000001b2db25004 RSI: ffffffff81fb22cb RDI: 00000000892b8bf3
RBP: 0000000000000001 R08: 0000001b2eb20000 R09: 0000001b2db24b54
R10: 0000000000000bf3 R11: 00000000892b8bf7 R12: 00000000000027d5
R13: 00007f9688b2c000 R14: ffffffff81fb22cb R15: 00007f9688b380b0
Modules linked in:
CR2: 0000000000000018
---[ end trace 0000000000000000 ]---
RIP: 0010:qlist_free_all+0xd3/0x190
Code: 03 05 a1 82 7b 03 48 8b 48 08 48 89 c2 f6 c1 01 0f 85 b6 00 00 00 0f 1f 44 00 00 48 8b 02 f6 c4 02 b8 00 00 00 00 48 0f 44 d0 <4c> 8b 72 18 e9 50 ff ff ff 49 83 7e 48 00 0f 85 68 ff ff ff 41 f7
RSP: 0000:ffff88801b54f908 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88800e55a1d3 RCX: 0000000000000000
Invalid ELF header type: 3 != 1
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff81770c31
RBP: 0000000000000000 R08: ffff88800e55a1d3 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: dffffc0000000000
R13: ffff88801b54f948 R14: 0000000000000000 R15: ffff88800fc91910
FS: 0000555555fff400(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000018 CR3: 00000000175d0000 CR4: 0000000000350ee0
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
Invalid ELF header type: 3 != 1
----------------
Code disassembly (best guess):
0: 31 ff xor %edi,%edi
2: 83 e5 01 and $0x1,%ebp
5: 89 ee mov %ebp,%esi
7: e8 b1 10 0a 00 callq 0xa10bd
c: 85 ed test %ebp,%ebp
e: 74 43 je 0x53
10: 4d 89 ec mov %r13,%r12
13: 4c 89 ed mov %r13,%rbp
16: 49 c1 ec 03 shr $0x3,%r12
1a: 83 e5 07 and $0x7,%ebp
1d: 4d 01 fc add %r15,%r12
20: 83 c5 03 add $0x3,%ebp
23: e8 c5 13 0a 00 callq 0xa13ed
28: f3 90 pause
* 2a: 41 0f b6 04 24 movzbl (%r12),%eax <-- trapping instruction
2f: 40 38 c5 cmp %al,%bpl
32: 7c 08 jl 0x3c
34: 84 c0 test %al,%al
36: 0f 85 ac 06 00 00 jne 0x6e8
3c: 8b 43 08 mov 0x8(%rbx),%eax
3f: 31 .byte 0x31