================================================================== BUG: KASAN: use-after-free in rxrpc_send_keepalive+0xe2/0x3c0 net/rxrpc/output.c:634 Read of size 8 at addr ffff8880a7e19018 by task kworker/1:2/16327 CPU: 1 PID: 16327 Comm: kworker/1:2 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 7882: 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 kmem_cache_alloc_trace+0x221/0x2f0 mm/slab.c:3550 kmalloc include/linux/slab.h:556 [inline] syslog_print kernel/printk/printk.c:1356 [inline] do_syslog+0x1205/0x1740 kernel/printk/printk.c:1529 kmsg_read+0x94/0xd0 fs/proc/kmsg.c:40 proc_reg_read+0x1e2/0x2d0 fs/proc/inode.c:223 __vfs_read+0xb8/0x730 fs/read_write.c:425 vfs_read+0x1dd/0x420 fs/read_write.c:461 ksys_read+0x117/0x220 fs/read_write.c:587 __do_sys_read fs/read_write.c:597 [inline] __se_sys_read fs/read_write.c:595 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:595 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7882: 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 syslog_print kernel/printk/printk.c:1415 [inline] do_syslog+0x164d/0x1740 kernel/printk/printk.c:1529 kmsg_read+0x94/0xd0 fs/proc/kmsg.c:40 proc_reg_read+0x1e2/0x2d0 fs/proc/inode.c:223 __vfs_read+0xb8/0x730 fs/read_write.c:425 vfs_read+0x1dd/0x420 fs/read_write.c:461 ksys_read+0x117/0x220 fs/read_write.c:587 __do_sys_read fs/read_write.c:597 [inline] __se_sys_read fs/read_write.c:595 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:595 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880a7e19000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 24 bytes inside of 1024-byte region [ffff8880a7e19000, ffff8880a7e19400) The buggy address belongs to the page: page:ffffea00029f8640 refcount:1 mapcount:0 mapping:ffff8880aa400c40 index:0x0 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea000262e808 ffffea0002855148 ffff8880aa400c40 raw: 0000000000000000 ffff8880a7e19000 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a7e18f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a7e18f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880a7e19000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880a7e19080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a7e19100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================