R13: 00007ffdaec1273f R14: 00007f28bc589300 R15: 0000000000022000
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 19362 Comm: syz-executor.6 Not tainted 6.5.0-rc7-next-20230825 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
RIP: 0010:strchr+0x1b/0xb0
Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 b8 00 00 00 00 00 fc ff df 55 48 89 fa 53 48 c1 ea 03 48 83 ec 10 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 04 84 c0 75 59 0f b6 07 89
RSP: 0018:ffff888035547020 EFLAGS: 00010282
RAX: dffffc0000000000 RBX: ffff8880424405c0 RCX: ffffc900007f7000
RDX: 0000000000000000 RSI: 0000000000000025 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff8880355470b0
R13: 0000000000000cc0 R14: ffff888009899380 R15: 0000000000000001
FS: 00007f28bc589700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e423000 CR3: 000000002e192000 CR4: 0000000000350ee0
Call Trace:
kvasprintf_const+0x25/0x1a0
kobject_set_name_vargs+0x5a/0x150
kobject_add+0x111/0x240
device_add+0x334/0x1830
netdev_register_kobject+0x17e/0x3b0
register_netdevice+0xbd7/0x13a0
cfg80211_register_netdevice+0x157/0x330
ieee80211_if_add+0xfe4/0x1710
ieee80211_add_iface+0x9d/0x170
nl80211_new_interface+0x57c/0x10c0
genl_family_rcv_msg_doit+0x1ff/0x2f0
genl_rcv_msg+0x505/0x7e0
netlink_rcv_skb+0x15d/0x450
genl_rcv+0x28/0x40
netlink_unicast+0x552/0x810
netlink_sendmsg+0x923/0xe40
sock_sendmsg+0x20d/0x260
____sys_sendmsg+0x76a/0xa00
___sys_sendmsg+0x110/0x1b0
__sys_sendmsg+0xf7/0x1d0
do_syscall_64+0x3f/0x90
entry_SYSCALL_64_after_hwframe+0x6e/0xd8
RIP: 0033:0x7f28bf013b19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f28bc589188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f28bf126f60 RCX: 00007f28bf013b19
RDX: 0000000000000000 RSI: 0000000020000540 RDI: 0000000000000004
RBP: 00007f28bc5891d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffdaec1273f R14: 00007f28bc589300 R15: 0000000000022000
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:strchr+0x1b/0xb0
Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 b8 00 00 00 00 00 fc ff df 55 48 89 fa 53 48 c1 ea 03 48 83 ec 10 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 04 84 c0 75 59 0f b6 07 89
RSP: 0018:ffff888035547020 EFLAGS: 00010282
RAX: dffffc0000000000 RBX: ffff8880424405c0 RCX: ffffc900007f7000
RDX: 0000000000000000 RSI: 0000000000000025 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff8880355470b0
R13: 0000000000000cc0 R14: ffff888009899380 R15: 0000000000000001
FS: 00007f28bc589700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e423000 CR3: 000000002e192000 CR4: 0000000000350ee0
==================================================================
BUG: KASAN: slab-use-after-free in __mutex_lock+0x19db/0x1a30
Read of size 4 at addr ffff888014ce51f4 by task kworker/0:4/18734
CPU: 0 PID: 18734 Comm: kworker/0:4 Tainted: G D 6.5.0-rc7-next-20230825 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
Workqueue: ipv6_addrconf addrconf_verify_work
Call Trace:
dump_stack_lvl+0x91/0xf0
print_report+0xcc/0x620
kasan_report+0xbe/0xf0
__mutex_lock+0x19db/0x1a30
addrconf_verify_work+0x12/0x30
process_one_work+0x7c8/0x1450
worker_thread+0x80e/0x1190
kthread+0x33f/0x440
ret_from_fork+0x48/0x80
ret_from_fork_asm+0x1b/0x30
Allocated by task 19360:
kasan_save_stack+0x22/0x50
kasan_set_track+0x25/0x30
__kasan_slab_alloc+0x59/0x70
kmem_cache_alloc_node+0x199/0x3b0
copy_process+0x3c2/0x7320
kernel_clone+0xeb/0x810
__do_sys_clone+0xba/0x100
do_syscall_64+0x3f/0x90
entry_SYSCALL_64_after_hwframe+0x6e/0xd8
Freed by task 3815:
kasan_save_stack+0x22/0x50
kasan_set_track+0x25/0x30
kasan_save_free_info+0x2b/0x50
__kasan_slab_free+0x10a/0x190
kmem_cache_free+0x10d/0x4d0
delayed_put_task_struct+0x21a/0x280
rcu_core+0x8c8/0x28b0
__do_softirq+0x1b7/0x7d4
Last potentially related work creation:
kasan_save_stack+0x22/0x50
__kasan_record_aux_stack+0x8e/0xa0
__call_rcu_common.constprop.0+0x6a/0xbd0
put_task_struct_rcu_user+0x87/0xd0
__schedule+0x9b1/0x2b00
__cond_resched+0x46/0x70
__do_fault+0x386/0x480
__handle_mm_fault+0x1214/0x29b0
handle_mm_fault+0x2c1/0xb10
do_user_addr_fault+0x6b7/0x14b0
exc_page_fault+0x9c/0x1a0
asm_exc_page_fault+0x26/0x30
Second to last potentially related work creation:
kasan_save_stack+0x22/0x50
__kasan_record_aux_stack+0x8e/0xa0
task_work_add+0x7e/0x2d0
scheduler_tick+0x176/0x3d0
update_process_times+0x10e/0x150
tick_sched_handle+0x8e/0x170
tick_sched_timer+0xe6/0x110
__hrtimer_run_queues+0x17f/0xb60
hrtimer_interrupt+0x2ef/0x750
__sysvec_apic_timer_interrupt+0xb3/0x330
sysvec_apic_timer_interrupt+0x33/0x90
asm_sysvec_apic_timer_interrupt+0x1a/0x20
The buggy address belongs to the object at ffff888014ce51c0
which belongs to the cache task_struct of size 6720
The buggy address is located 52 bytes inside of
freed 6720-byte region [ffff888014ce51c0, ffff888014ce6c00)
The buggy address belongs to the physical page:
page:000000004c1c29f2 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888014ce0000 pfn:0x14ce0
head:000000004c1c29f2 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff88800c1c8341
flags: 0x100000000000840(slab|head|node=0|zone=1)
page_type: 0xffffffff()
raw: 0100000000000840 ffff8880087af640 ffffea000109b810 ffffea0000390c10
raw: ffff888014ce0000 0000000000040003 00000001ffffffff ffff88800c1c8341
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888014ce5080: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
ffff888014ce5100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888014ce5180: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
^
ffff888014ce5200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888014ce5280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess):
0: 90 nop
1: 90 nop
2: 90 nop
3: 90 nop
4: 90 nop
5: 90 nop
6: 90 nop
7: 90 nop
8: 90 nop
9: 90 nop
a: 90 nop
b: 90 nop
c: 90 nop
d: 90 nop
e: 90 nop
f: f3 0f 1e fa endbr64
13: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
1a: fc ff df
1d: 55 push %rbp
1e: 48 89 fa mov %rdi,%rdx
21: 53 push %rbx
22: 48 c1 ea 03 shr $0x3,%rdx
26: 48 83 ec 10 sub $0x10,%rsp
* 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction
2e: 48 89 fa mov %rdi,%rdx
31: 83 e2 07 and $0x7,%edx
34: 38 d0 cmp %dl,%al
36: 7f 04 jg 0x3c
38: 84 c0 test %al,%al
3a: 75 59 jne 0x95
3c: 0f b6 07 movzbl (%rdi),%eax
3f: 89 .byte 0x89