==================================================================
BUG: KASAN: use-after-free in instrument_atomic_read_write include/linux/instrumented.h:101 [inline]
BUG: KASAN: use-after-free in atomic_dec_return include/asm-generic/atomic-instrumented.h:340 [inline]
BUG: KASAN: use-after-free in rxrpc_put_bundle+0x1d/0x80 net/rxrpc/conn_client.c:141
Write of size 4 at addr ffff888098164620 by task swapper/1/0
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.9.0-rc8-next-20201006-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x198/0x1fb lib/dump_stack.c:118
print_address_description.constprop.0.cold+0xae/0x497 mm/kasan/report.c:385
__kasan_report mm/kasan/report.c:545 [inline]
kasan_report.cold+0x1f/0x37 mm/kasan/report.c:562
check_memory_region_inline mm/kasan/generic.c:186 [inline]
check_memory_region+0x13d/0x180 mm/kasan/generic.c:192
instrument_atomic_read_write include/linux/instrumented.h:101 [inline]
atomic_dec_return include/asm-generic/atomic-instrumented.h:340 [inline]
rxrpc_put_bundle+0x1d/0x80 net/rxrpc/conn_client.c:141
rxrpc_destroy_connection+0x150/0x2f0 net/rxrpc/conn_object.c:367
rcu_do_batch kernel/rcu/tree.c:2484 [inline]
rcu_core+0x645/0x1240 kernel/rcu/tree.c:2718
__do_softirq+0x203/0xab6 kernel/softirq.c:298
asm_call_irq_on_stack+0xf/0x20
__run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
do_softirq_own_stack+0x9b/0xd0 arch/x86/kernel/irq_64.c:77
invoke_softirq kernel/softirq.c:393 [inline]
__irq_exit_rcu kernel/softirq.c:423 [inline]
irq_exit_rcu+0x235/0x280 kernel/softirq.c:435
sysvec_apic_timer_interrupt+0x51/0xf0 arch/x86/kernel/apic/apic.c:1091
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:631
RIP: 0010:native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:61
Code: 89 ef e8 85 77 6f f9 e9 86 fe ff ff 48 89 df e8 78 77 6f f9 e9 7b ff ff ff cc cc cc e9 07 00 00 00 0f 00 2d c4 17 61 00 fb f4 90 e9 07 00 00 00 0f 00 2d b4 17 61 00 f4 c3 cc cc 55 53 e8 09
RSP: 0018:ffffc90000d3fd80 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff176a721
RDX: ffff8880a9696340 RSI: ffffffff8847d653 RDI: 0000000000000000
RBP: ffff8880a67e1064 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001
R13: ffff8880a67e1000 R14: ffff8880a67e1064 R15: ffff8882185fd804
arch_safe_halt arch/x86/include/asm/paravirt.h:150 [inline]
acpi_safe_halt drivers/acpi/processor_idle.c:111 [inline]
acpi_idle_do_entry+0x1e8/0x330 drivers/acpi/processor_idle.c:517
acpi_idle_enter+0x35a/0x550 drivers/acpi/processor_idle.c:648
cpuidle_enter_state+0x1ab/0xdb0 drivers/cpuidle/cpuidle.c:237
cpuidle_enter+0x4a/0xa0 drivers/cpuidle/cpuidle.c:351
call_cpuidle kernel/sched/idle.c:132 [inline]
cpuidle_idle_call kernel/sched/idle.c:213 [inline]
do_idle+0x48e/0x730 kernel/sched/idle.c:273
cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:369
secondary_startup_64_no_verify+0xa6/0xab
Allocated by task 13288:
kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48
kasan_set_track mm/kasan/common.c:56 [inline]
__kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:461
kmem_cache_alloc_trace+0x1a0/0x480 mm/slab.c:3552
kmalloc include/linux/slab.h:554 [inline]
kzalloc include/linux/slab.h:666 [inline]
rxrpc_alloc_bundle+0x88/0x2c0 net/rxrpc/conn_client.c:121
rxrpc_look_up_bundle net/rxrpc/conn_client.c:275 [inline]
rxrpc_prep_call net/rxrpc/conn_client.c:374 [inline]
rxrpc_connect_call+0x85c/0x1580 net/rxrpc/conn_client.c:710
rxrpc_new_client_call+0x961/0x1020 net/rxrpc/call_object.c:331
rxrpc_new_client_call_for_sendmsg net/rxrpc/sendmsg.c:622 [inline]
rxrpc_do_sendmsg+0xf14/0x1370 net/rxrpc/sendmsg.c:679
rxrpc_sendmsg+0x420/0x630 net/rxrpc/af_rxrpc.c:560
sock_sendmsg_nosec net/socket.c:651 [inline]
sock_sendmsg+0xcf/0x120 net/socket.c:671
____sys_sendmsg+0x6e8/0x810 net/socket.c:2362
___sys_sendmsg+0xf3/0x170 net/socket.c:2416
__sys_sendmsg+0xe5/0x1b0 net/socket.c:2449
do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
Freed by task 50:
kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48
kasan_set_track+0x1c/0x30 mm/kasan/common.c:56
kasan_set_free_info+0x1b/0x30 mm/kasan/generic.c:355
__kasan_slab_free+0xd8/0x120 mm/kasan/common.c:422
__cache_free mm/slab.c:3420 [inline]
kfree+0x10e/0x2a0 mm/slab.c:3758
rxrpc_put_bundle net/rxrpc/conn_client.c:146 [inline]
rxrpc_put_bundle+0x6b/0x80 net/rxrpc/conn_client.c:138
rxrpc_unbundle_conn+0x1f8/0x3d0 net/rxrpc/conn_client.c:935
rxrpc_clean_up_local_conns+0x38d/0x590 net/rxrpc/conn_client.c:1114
rxrpc_local_destroyer net/rxrpc/local_object.c:399 [inline]
rxrpc_local_processor+0x38d/0x5e0 net/rxrpc/local_object.c:433
process_one_work+0x933/0x15a0 kernel/workqueue.c:2269
worker_thread+0x64c/0x1120 kernel/workqueue.c:2415
kthread+0x3af/0x4a0 kernel/kthread.c:292
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
The buggy address belongs to the object at ffff888098164600
which belongs to the cache kmalloc-192 of size 192
The buggy address is located 32 bytes inside of
192-byte region [ffff888098164600, ffff8880981646c0)
The buggy address belongs to the page:
page:00000000e920add1 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x98164
flags: 0xfffe0000000200(slab)
raw: 00fffe0000000200 ffffea00028c7548 ffffea0002a2b448 ffff8880aa040000
raw: 0000000000000000 ffff888098164000 0000000100000010 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888098164500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888098164580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff888098164600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888098164680: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff888098164700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================