syz-executor.2: attempt to access beyond end of device
loop2: rw=2049, sector=40, nr_sectors = 4 limit=40
Buffer I/O error on dev loop2, logical block 10, lost async page write
==================================================================
BUG: KASAN: use-after-free in __lock_acquire+0x4346/0x6120
Read of size 8 at addr ffff8880085a8f48 by task syz-executor/19801
CPU: 0 PID: 19801 Comm: syz-executor Not tainted 5.19.0-rc3-next-20220623 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
Call Trace:
dump_stack_lvl+0x8b/0xb3
print_report.cold+0x5e/0x5e8
kasan_report+0xbe/0x1c0
__lock_acquire+0x4346/0x6120
lock_acquire+0x1a2/0x530
_raw_spin_lock_irq+0x32/0x50
kmemleak_scan+0x21d/0x16b0
kmemleak_write+0x56c/0x680
full_proxy_write+0x11d/0x190
vfs_write+0x264/0xac0
ksys_write+0x127/0x250
do_syscall_64+0x3b/0x90
entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f8c582695c3
Code: 16 00 00 00 eb ae 90 b8 6e 00 00 00 eb a6 e8 44 ef 04 00 0f 1f 40 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 48 89 54 24 18
RSP: 002b:00007ffd95d709c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ffd95d71008 RCX: 00007f8c582695c3
RDX: 0000000000000004 RSI: 00007f8c5831fed9 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000bad R09: 00007ffd95dc6080
R10: 00007ffd95dc6090 R11: 0000000000000246 R12: 00007f8c5826bb10
R13: 00007ffd95d71ee2 R14: 0000000000000000 R15: 00000000002d9e21
Allocated by task 19802:
kasan_save_stack+0x1e/0x40
__kasan_slab_alloc+0x66/0x80
kmem_cache_alloc+0x1b1/0x490
__create_object.isra.0+0x3d/0xc10
kmem_cache_alloc_lru+0x2e0/0x7e0
__d_alloc+0x31/0x990
d_alloc+0x46/0x1c0
__lookup_hash+0xc8/0x190
do_unlinkat+0x284/0x630
__x64_sys_unlink+0xc6/0x110
do_syscall_64+0x3b/0x90
entry_SYSCALL_64_after_hwframe+0x46/0xb0
Freed by task 19:
kasan_save_stack+0x1e/0x40
kasan_set_track+0x21/0x30
kasan_set_free_info+0x20/0x30
____kasan_slab_free+0x14b/0x1a0
kmem_cache_free+0xe7/0x5e0
rcu_core+0x7e2/0x2070
__do_softirq+0x270/0x8c7
Last potentially related work creation:
kasan_save_stack+0x1e/0x40
__kasan_record_aux_stack+0x97/0xa0
call_rcu+0x6a/0xa20
kmem_cache_free+0x26e/0x5e0
rcu_core+0x7e2/0x2070
__do_softirq+0x270/0x8c7
Second to last potentially related work creation:
kasan_save_stack+0x1e/0x40
__kasan_record_aux_stack+0x97/0xa0
call_rcu+0x6a/0xa20
kfree+0x1e1/0x5b0
ieee80211_ibss_rx_queued_mgmt+0x1a38/0x2ef0
ieee80211_iface_work+0xa71/0xce0
process_one_work+0xa1c/0x16a0
worker_thread+0x637/0x1250
kthread+0x2f2/0x3b0
ret_from_fork+0x22/0x30
The buggy address belongs to the object at ffff8880085a8f30
which belongs to the cache kmemleak_object of size 368
The buggy address is located 24 bytes inside of
368-byte region [ffff8880085a8f30, ffff8880085a90a0)
The buggy address belongs to the physical page:
page:0000000069b21fe9 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x85a8
head:0000000069b21fe9 order:1 compound_mapcount:0 compound_pincount:0
flags: 0x100000000010200(slab|head|node=0|zone=1)
raw: 0100000000010200 ffffea00003a8a80 dead000000000004 ffff88800784f780
raw: 0000000000000000 0000000000120012 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff8880085a8e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880085a8e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc
>ffff8880085a8f00: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb
^
ffff8880085a8f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880085a9000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
watchdog: BUG: soft lockup - CPU#1 stuck for 26s! [kworker/u4:3:47]
Modules linked in:
irq event stamp: 6006923
hardirqs last enabled at (6006923): [] _raw_spin_unlock_irq+0x1f/0x40
hardirqs last disabled at (6006922): [] _raw_spin_lock_irq+0x41/0x50
softirqs last enabled at (6006916): [] ieee80211_ibss_work+0x2e8/0xdf0
softirqs last disabled at (6006914): [] ieee80211_ibss_work+0x138/0xdf0
CPU: 1 PID: 47 Comm: kworker/u4:3 Tainted: G B 5.19.0-rc3-next-20220623 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
Workqueue: events_unbound enable_ptr_key_workfn
RIP: 0010:smp_call_function_many_cond+0x41b/0xb30
Code: 0a 00 85 ed 74 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 f4 4c 89 f5 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 87 0e 0a 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 ad 05 00 00 8b 43 08 31
RSP: 0018:ffff88800f26faa8 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffff88806ce3f180 RCX: 0000000000000000
RDX: ffff88800f189ac0 RSI: ffffffff813a7419 RDI: 0000000000000005
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffffed100d9c7e31
R13: 0000000000000000 R14: ffff88806ce3f188 R15: 0000000000000001
FS: 0000000000000000(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b1f9ca6390 CR3: 0000000005026000 CR4: 0000000000350ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000400
Call Trace:
on_each_cpu_cond_mask+0x56/0xa0
text_poke_bp_batch+0x236/0x6d0
text_poke_finish+0x16/0x30
arch_jump_label_transform_apply+0x13/0x20
jump_label_update+0x32f/0x410
static_key_enable_cpuslocked+0x1b1/0x260
static_key_enable+0x16/0x20
process_one_work+0xa1c/0x16a0
worker_thread+0x637/0x1250
kthread+0x2f2/0x3b0
ret_from_fork+0x22/0x30
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 19801 Comm: syz-executor Tainted: G B 5.19.0-rc3-next-20220623 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
RIP: 0010:kasan_report+0xf/0x1c0
Code: c4 38 5b 5d 41 5c c3 e9 1a 6d 94 02 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 56 41 55 41 54 55 53 48 83 ec 38 9c 41 5e <0f> 01 ca 65 48 8b 04 25 c0 6e 02 00 8b 80 f8 13 00 00 85 c0 0f 85
RSP: 0018:ffff888045b9fa60 EFLAGS: 00000086
RAX: 0000000000000003 RBX: ffffed10010b51e7 RCX: ffffffff81298687
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880085a8f30
RBP: ffffed10010b51e6 R08: 0000000000000000 R09: ffff8880085a8f33
R10: ffffed10010b51e6 R11: 0000000000000001 R12: 0000000000000003
R13: ffffed10010b51e6 R14: 0000000000000086 R15: 1ffff11008b73f5e
FS: 00005555563cc400(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3468c68344 CR3: 0000000036f70000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000400
Call Trace:
kasan_check_range+0xf9/0x1e0
queued_spin_lock_slowpath+0xa7/0xc80
do_raw_spin_lock+0x1d8/0x260
kmemleak_scan+0x21d/0x16b0
kmemleak_write+0x56c/0x680
full_proxy_write+0x11d/0x190
vfs_write+0x264/0xac0
ksys_write+0x127/0x250
do_syscall_64+0x3b/0x90
entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f8c582695c3
Code: 16 00 00 00 eb ae 90 b8 6e 00 00 00 eb a6 e8 44 ef 04 00 0f 1f 40 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 48 89 54 24 18
RSP: 002b:00007ffd95d709c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ffd95d71008 RCX: 00007f8c582695c3
RDX: 0000000000000004 RSI: 00007f8c5831fed9 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000bad R09: 00007ffd95dc6080
R10: 00007ffd95dc6090 R11: 0000000000000246 R12: 00007f8c5826bb10
R13: 00007ffd95d71ee2 R14: 0000000000000000 R15: 00000000002d9e21
----------------
Code disassembly (best guess):
0: 0a 00 or (%rax),%al
2: 85 ed test %ebp,%ebp
4: 74 4d je 0x53
6: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
d: fc ff df
10: 4d 89 f4 mov %r14,%r12
13: 4c 89 f5 mov %r14,%rbp
16: 49 c1 ec 03 shr $0x3,%r12
1a: 83 e5 07 and $0x7,%ebp
1d: 49 01 c4 add %rax,%r12
20: 83 c5 03 add $0x3,%ebp
23: e8 87 0e 0a 00 callq 0xa0eaf
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 ad 05 00 00 jne 0x5e9
3c: 8b 43 08 mov 0x8(%rbx),%eax
3f: 31 .byte 0x31