Bluetooth: hci5: command 0x040f tx timeout
Bluetooth: hci4: command 0x0419 tx timeout
Bluetooth: hci5: command 0x0419 tx timeout
==================================================================
BUG: KASAN: use-after-free in inet_twsk_kill+0x358/0x3c0 net/ipv4/inet_timewait_sock.c:46
Read of size 8 at addr ffff888041571900 by task swapper/1/0
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.17.0-rc1-next-20220127 #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 lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x8b/0xb3 lib/dump_stack.c:106
print_address_description.constprop.0+0x1f/0x190 mm/kasan/report.c:255
__kasan_report mm/kasan/report.c:442 [inline]
kasan_report.cold+0x7f/0x11b mm/kasan/report.c:459
inet_twsk_kill+0x358/0x3c0 net/ipv4/inet_timewait_sock.c:46
call_timer_fn+0x182/0x600 kernel/time/timer.c:1421
expire_timers kernel/time/timer.c:1466 [inline]
__run_timers.part.0+0x666/0xa00 kernel/time/timer.c:1734
__run_timers kernel/time/timer.c:1715 [inline]
run_timer_softirq+0xae/0x1a0 kernel/time/timer.c:1747
__do_softirq+0x270/0x8c7 kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x113/0x170 kernel/softirq.c:637
irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1097
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:default_idle+0xb/0x10 arch/x86/kernel/process.c:734
Code: ff ff ff 48 89 df e8 84 69 6a fd e9 55 ff ff ff 4c 89 e7 e8 77 69 6a fd eb 96 0f 1f 44 00 00 eb 07 0f 00 2d 87 61 58 00 fb f4 cc cc cc cc 41 55 41 54 55 48 89 fd 53 48 83 ec 08 e8 7e 3c 39
RSP: 0018:ffff888008217e78 EFLAGS: 00000202
RAX: ffffffff840a0390 RBX: ffff8880081b1ac0 RCX: ffffffff840824d1
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000001 R09: ffff88806cf38993
R10: ffffed100d9e7132 R11: 0000000000000001 R12: ffffed1001036358
R13: ffffffff858c6cd0 R14: 0000000000000000 R15: dffffc0000000000
default_idle_call+0x87/0xd0 kernel/sched/idle.c:112
cpuidle_idle_call kernel/sched/idle.c:194 [inline]
do_idle+0x3b9/0x530 kernel/sched/idle.c:306
cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:403
secondary_startup_64_no_verify+0xd5/0xdb
Allocated by task 297:
kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:436 [inline]
__kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:469
kasan_slab_alloc include/linux/kasan.h:260 [inline]
slab_post_alloc_hook mm/slab.h:732 [inline]
slab_alloc_node mm/slub.c:3230 [inline]
slab_alloc mm/slub.c:3238 [inline]
kmem_cache_alloc+0x1aa/0x480 mm/slub.c:3243
kmem_cache_zalloc include/linux/slab.h:705 [inline]
net_alloc net/core/net_namespace.c:407 [inline]
copy_net_ns+0x125/0x760 net/core/net_namespace.c:462
create_new_namespaces+0x3f6/0xb30 kernel/nsproxy.c:110
unshare_nsproxy_namespaces+0xc1/0x1f0 kernel/nsproxy.c:226
ksys_unshare+0x445/0x8d0 kernel/fork.c:3048
__do_sys_unshare kernel/fork.c:3119 [inline]
__se_sys_unshare kernel/fork.c:3117 [inline]
__x64_sys_unshare+0x2d/0x40 kernel/fork.c:3117
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
The buggy address belongs to the object at ffff8880415714c0
which belongs to the cache net_namespace of size 5056
The buggy address is located 1088 bytes inside of
5056-byte region [ffff8880415714c0, ffff888041572880)
The buggy address belongs to the page:
page:00000000eb51062d refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880415767c0 pfn:0x41570
head:00000000eb51062d order:3 compound_mapcount:0 compound_pincount:0
memcg:ffff88800d203381
flags: 0x100000000010200(slab|head|node=0|zone=1)
raw: 0100000000010200 0000000000000000 dead000000000122 ffff88800805d640
raw: ffff8880415767c0 0000000080060005 00000001ffffffff ffff88800d203381
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888041571800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888041571880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888041571900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888041571980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888041571a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
loop4: detected capacity change from 0 to 264192
loop6: detected capacity change from 0 to 5408
FAT-fs (loop2): bogus number of reserved sectors
FAT-fs (loop2): Can't find a valid FAT filesystem
FAT-fs (loop2): bogus number of reserved sectors
FAT-fs (loop2): Can't find a valid FAT filesystem
blktrace: Concurrent blktraces are not allowed on sr0
9pnet_fd: p9_fd_create_unix (6021): problem connecting socket: ./file0: -111
9pnet_fd: p9_fd_create_unix (6023): problem connecting socket: ./file0: -111
----------------
Code disassembly (best guess), 2 bytes skipped:
0: ff 48 89 decl -0x77(%rax)
3: df e8 fucomip %st(0),%st
5: 84 69 6a test %ch,0x6a(%rcx)
8: fd std
9: e9 55 ff ff ff jmpq 0xffffff63
e: 4c 89 e7 mov %r12,%rdi
11: e8 77 69 6a fd callq 0xfd6a698d
16: eb 96 jmp 0xffffffae
18: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
1d: eb 07 jmp 0x26
1f: 0f 00 2d 87 61 58 00 verw 0x586187(%rip) # 0x5861ad
26: fb sti
27: f4 hlt
* 28: c3 retq <-- trapping instruction
29: cc int3
2a: cc int3
2b: cc int3
2c: cc int3
2d: 41 55 push %r13
2f: 41 54 push %r12
31: 55 push %rbp
32: 48 89 fd mov %rdi,%rbp
35: 53 push %rbx
36: 48 83 ec 08 sub $0x8,%rsp
3a: e8 .byte 0xe8
3b: 7e 3c jle 0x79
3d: 39 .byte 0x39