================================================================== BUG: KASAN: use-after-free in rxrpc_send_keepalive+0xe2/0x3c0 net/rxrpc/output.c:634 Read of size 8 at addr ffff8880a0282018 by task kworker/0:4/8103 CPU: 0 PID: 8103 Comm: kworker/0:4 Not tainted 5.4.0-rc3+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: krxrpcd rxrpc_peer_keepalive_worker Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x2f8 lib/dump_stack.c:113 print_address_description+0x75/0x5c0 mm/kasan/report.c:374 __kasan_report+0x14b/0x1c0 mm/kasan/report.c:506 kasan_report+0x26/0x50 mm/kasan/common.c:634 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:132 rxrpc_send_keepalive+0xe2/0x3c0 net/rxrpc/output.c:634 rxrpc_peer_keepalive_dispatch net/rxrpc/peer_event.c:369 [inline] rxrpc_peer_keepalive_worker+0x76e/0xb40 net/rxrpc/peer_event.c:430 process_one_work+0x7ef/0x10e0 kernel/workqueue.c:2269 worker_thread+0xc01/0x1630 kernel/workqueue.c:2415 kthread+0x332/0x350 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 7748: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x11c/0x1b0 mm/kasan/common.c:510 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:524 __do_kmalloc mm/slab.c:3655 [inline] __kmalloc+0x254/0x340 mm/slab.c:3664 kmalloc_array include/linux/slab.h:618 [inline] kcalloc+0x36/0x60 include/linux/slab.h:629 alloc_pipe_info+0x1ce/0x3f0 fs/pipe.c:676 get_pipe_inode fs/pipe.c:738 [inline] create_pipe_files+0x89/0x680 fs/pipe.c:770 __do_pipe_flags+0x4c/0x210 fs/pipe.c:807 do_pipe2+0x41/0x230 fs/pipe.c:855 __do_sys_pipe2 fs/pipe.c:873 [inline] __se_sys_pipe2 fs/pipe.c:871 [inline] __x64_sys_pipe2+0x5a/0x70 fs/pipe.c:871 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7748: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x12a/0x1e0 mm/kasan/common.c:471 kasan_slab_free+0xe/0x10 mm/kasan/common.c:480 __cache_free mm/slab.c:3425 [inline] kfree+0x115/0x200 mm/slab.c:3756 free_pipe_info+0x26c/0x2c0 fs/pipe.c:709 put_pipe_info fs/pipe.c:582 [inline] pipe_release+0x23d/0x330 fs/pipe.c:603 __fput+0x2e4/0x740 fs/file_table.c:280 ____fput+0x15/0x20 fs/file_table.c:313 task_work_run+0x17e/0x1b0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:163 [inline] prepare_exit_to_usermode+0x459/0x580 arch/x86/entry/common.c:194 syscall_return_slowpath+0x113/0x4a0 arch/x86/entry/common.c:274 do_syscall_64+0x11f/0x1c0 arch/x86/entry/common.c:300 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880a0282000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 24 bytes inside of 1024-byte region [ffff8880a0282000, ffff8880a0282400) The buggy address belongs to the page: page:ffffea000280a080 refcount:1 mapcount:0 mapping:ffff8880aa400c40 index:0xffff8880a0282800 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea0002925688 ffffea0002549808 ffff8880aa400c40 raw: ffff8880a0282800 ffff8880a0282000 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a0281f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a0281f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880a0282000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880a0282080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a0282100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================