================================================================== BUG: KASAN: use-after-free in rxrpc_send_keepalive+0x83e/0x8e0 net/rxrpc/output.c:637 Read of size 8 at addr ffff8880a8bb2058 by task kworker/0:2/2740 CPU: 0 PID: 2740 Comm: kworker/0:2 Not tainted 4.19.67 #41 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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x8c/0x2ba mm/kasan/report.c:396 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 rxrpc_send_keepalive+0x83e/0x8e0 net/rxrpc/output.c:637 rxrpc_peer_keepalive_dispatch net/rxrpc/peer_event.c:366 [inline] rxrpc_peer_keepalive_worker+0x7be/0xd02 net/rxrpc/peer_event.c:427 process_one_work+0x989/0x1750 kernel/workqueue.c:2153 worker_thread+0x98/0xe40 kernel/workqueue.c:2296 kthread+0x354/0x420 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Allocated by task 7180: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:531 kmem_cache_alloc_trace+0x152/0x760 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] syslog_print kernel/printk/printk.c:1302 [inline] do_syslog kernel/printk/printk.c:1470 [inline] do_syslog+0x9e7/0x1690 kernel/printk/printk.c:1444 kmsg_read+0x8f/0xc0 fs/proc/kmsg.c:40 proc_reg_read+0x1f8/0x2b0 fs/proc/inode.c:231 __vfs_read+0x114/0x800 fs/read_write.c:416 vfs_read+0x194/0x3d0 fs/read_write.c:452 ksys_read+0x14f/0x2d0 fs/read_write.c:579 __do_sys_read fs/read_write.c:589 [inline] __se_sys_read fs/read_write.c:587 [inline] __x64_sys_read+0x73/0xb0 fs/read_write.c:587 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7180: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3503 [inline] kfree+0xcf/0x220 mm/slab.c:3822 syslog_print kernel/printk/printk.c:1353 [inline] do_syslog kernel/printk/printk.c:1470 [inline] do_syslog+0xcf2/0x1690 kernel/printk/printk.c:1444 kmsg_read+0x8f/0xc0 fs/proc/kmsg.c:40 proc_reg_read+0x1f8/0x2b0 fs/proc/inode.c:231 __vfs_read+0x114/0x800 fs/read_write.c:416 vfs_read+0x194/0x3d0 fs/read_write.c:452 ksys_read+0x14f/0x2d0 fs/read_write.c:579 __do_sys_read fs/read_write.c:589 [inline] __se_sys_read fs/read_write.c:587 [inline] __x64_sys_read+0x73/0xb0 fs/read_write.c:587 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880a8bb2040 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 24 bytes inside of 1024-byte region [ffff8880a8bb2040, ffff8880a8bb2440) The buggy address belongs to the page: page:ffffea0002a2ec80 count:1 mapcount:0 mapping:ffff88812c3f0ac0 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000008100(slab|head) raw: 01fffc0000008100 ffffea00022afd08 ffffea0002904f08 ffff88812c3f0ac0 raw: 0000000000000000 ffff8880a8bb2040 0000000100000007 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a8bb1f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a8bb1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880a8bb2000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff8880a8bb2080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a8bb2100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 input: syz1 as /devices/virtual/input/input51