vcan0: j1939_tp_rxtimer: 0x0000000003fc70c3: rx timeout, send abort vcan0: j1939_xtp_rx_abort_one: 0x000000004f2a7166: 0x00000: (3) A timeout occurred and this is the connection abort to close the session. vcan0: j1939_tp_rxtimer: 0x0000000003fc70c3: abort rx timeout. Force session deactivation ================================================================== BUG: KASAN: use-after-free in __run_hrtimer kernel/time/hrtimer.c:1521 [inline] BUG: KASAN: use-after-free in __hrtimer_run_queues+0xe18/0xf10 kernel/time/hrtimer.c:1583 Read of size 1 at addr ffff88805f25f573 by task kworker/u4:0/7 CPU: 1 PID: 7 Comm: kworker/u4:0 Not tainted 5.6.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: krdsd rds_shutdown_worker Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x315 mm/kasan/report.c:374 __kasan_report.cold+0x1a/0x32 mm/kasan/report.c:506 kasan_report+0xe/0x20 mm/kasan/common.c:641 __run_hrtimer kernel/time/hrtimer.c:1521 [inline] __hrtimer_run_queues+0xe18/0xf10 kernel/time/hrtimer.c:1583 hrtimer_run_softirq+0x16d/0x250 kernel/time/hrtimer.c:1600 __do_softirq+0x26c/0x9f7 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x192/0x1d0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0x19e/0x600 arch/x86/kernel/apic/apic.c:1140 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:759 [inline] RIP: 0010:lock_acquire+0x267/0x8f0 kernel/locking/lockdep.c:4926 Code: 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 c6 05 00 00 48 83 3d d5 41 3b 08 00 0f 84 65 04 00 00 48 8b 3c 24 57 9d <0f> 1f 44 00 00 48 b8 00 00 00 00 00 fc ff df 48 03 44 24 08 48 c7 RSP: 0018:ffffc90000cdf850 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff132918c RBX: ffff8880a95a41c0 RCX: ffffffff8158f175 RDX: dffffc0000000000 RSI: 0000000000000008 RDI: 0000000000000282 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001 R10: fffffbfff1856184 R11: ffffffff8c2b0c27 R12: 0000000000000002 R13: ffffffff899bab40 R14: 0000000000000000 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:208 [inline] rcu_read_lock include/linux/rcupdate.h:601 [inline] ip6_mtu+0x19c/0x450 net/ipv6/route.c:3071 dst_mtu include/net/dst.h:198 [inline] tcp_current_mss+0x16c/0x370 net/ipv4/tcp_output.c:1666 tcp_send_fin+0x112/0xce0 net/ipv4/tcp_output.c:3243 tcp_close+0xbf4/0x1250 net/ipv4/tcp.c:2425 inet_release+0xe4/0x1f0 net/ipv4/af_inet.c:427 inet6_release+0x4c/0x70 net/ipv6/af_inet6.c:471 __sock_release+0x1d3/0x280 net/socket.c:605 rds_tcp_conn_path_shutdown+0x1cb/0x3d0 net/rds/tcp_connect.c:216 rds_conn_shutdown+0x271/0x909 net/rds/connection.c:386 process_one_work+0x965/0x16a0 kernel/workqueue.c:2266 worker_thread+0x96/0xe20 kernel/workqueue.c:2412 kthread+0x388/0x470 kernel/kthread.c:268 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 30368: save_stack+0x1b/0x80 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc mm/kasan/common.c:515 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:488 kmem_cache_alloc_trace+0x153/0x7d0 mm/slab.c:3551 kmalloc include/linux/slab.h:555 [inline] kzalloc include/linux/slab.h:669 [inline] j1939_session_new+0x7c/0x3f0 net/can/j1939/transport.c:1418 j1939_tp_send+0x22f/0x800 net/can/j1939/transport.c:1877 j1939_sk_send_loop net/can/j1939/socket.c:1037 [inline] j1939_sk_sendmsg+0xabf/0x1360 net/can/j1939/socket.c:1160 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 ____sys_sendmsg+0x308/0x7e0 net/socket.c:2362 ___sys_sendmsg+0x100/0x170 net/socket.c:2416 __sys_sendmmsg+0x195/0x480 net/socket.c:2506 __do_sys_sendmmsg net/socket.c:2535 [inline] __se_sys_sendmmsg net/socket.c:2532 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2532 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 7: save_stack+0x1b/0x80 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] kasan_set_free_info mm/kasan/common.c:337 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/common.c:476 __cache_free mm/slab.c:3426 [inline] kfree+0x109/0x2b0 mm/slab.c:3757 j1939_session_destroy net/can/j1939/transport.c:276 [inline] __j1939_session_release net/can/j1939/transport.c:284 [inline] kref_put include/linux/kref.h:65 [inline] j1939_session_put+0x25c/0x330 net/can/j1939/transport.c:289 j1939_tp_rxtimer+0x2e9/0x2f4 net/can/j1939/transport.c:1194 __run_hrtimer kernel/time/hrtimer.c:1519 [inline] __hrtimer_run_queues+0x3a2/0xf10 kernel/time/hrtimer.c:1583 hrtimer_run_softirq+0x16d/0x250 kernel/time/hrtimer.c:1600 __do_softirq+0x26c/0x9f7 kernel/softirq.c:292 The buggy address belongs to the object at ffff88805f25f400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 371 bytes inside of 512-byte region [ffff88805f25f400, ffff88805f25f600) The buggy address belongs to the page: page:ffffea00017c97c0 refcount:1 mapcount:0 mapping:ffff8880aa000a80 index:0xffff88805f25f000 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00022f9948 ffffea0002670448 ffff8880aa000a80 raw: ffff88805f25f000 ffff88805f25f000 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88805f25f400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805f25f480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805f25f500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805f25f580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805f25f600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================