vcan0: j1939_tp_rxtimer: 0x00000000e5f8c88a: 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 ffff88808cef5573 by task kworker/u4:6/9708 CPU: 1 PID: 9708 Comm: kworker/u4:6 Not tainted 5.6.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: krdsd rds_connect_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 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1082 do_softirq.part.0+0x10f/0x160 kernel/softirq.c:337 do_softirq kernel/softirq.c:329 [inline] __local_bh_enable_ip+0x20e/0x270 kernel/softirq.c:189 local_bh_enable include/linux/bottom_half.h:32 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:690 [inline] ip_finish_output2+0x957/0x2610 net/ipv4/ip_output.c:229 __ip_finish_output net/ipv4/ip_output.c:306 [inline] __ip_finish_output+0x5f3/0xbd0 net/ipv4/ip_output.c:288 ip_finish_output+0x34/0x1f0 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip_output+0x1fe/0x620 net/ipv4/ip_output.c:430 dst_output include/net/dst.h:435 [inline] ip_local_out+0xaf/0x1a0 net/ipv4/ip_output.c:125 __ip_queue_xmit+0x863/0x1c20 net/ipv4/ip_output.c:530 __tcp_transmit_skb+0x1a07/0x3760 net/ipv4/tcp_output.c:1238 __tcp_send_ack.part.0+0x3a9/0x590 net/ipv4/tcp_output.c:3779 __tcp_send_ack net/ipv4/tcp_output.c:3785 [inline] tcp_send_ack+0x7d/0xa0 net/ipv4/tcp_output.c:3785 tcp_rcv_synsent_state_process net/ipv4/tcp_input.c:6035 [inline] tcp_rcv_state_process+0x36e4/0x4c80 net/ipv4/tcp_input.c:6204 tcp_v4_do_rcv+0x34c/0x8b0 net/ipv4/tcp_ipv4.c:1643 sk_backlog_rcv include/net/sock.h:996 [inline] __release_sock+0x134/0x3a0 net/core/sock.c:2460 release_sock+0x54/0x1b0 net/core/sock.c:2976 inet_stream_connect+0x76/0xa0 net/ipv4/af_inet.c:720 rds_tcp_conn_path_connect+0x620/0x880 net/rds/tcp_connect.c:172 rds_connect_worker+0x1a5/0x2c0 net/rds/threads.c:176 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 14601: 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+0x6bf/0x7e0 net/socket.c:2362 ___sys_sendmsg+0x100/0x170 net/socket.c:2416 __sys_sendmsg+0xec/0x1b0 net/socket.c:2449 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 9708: 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 ffff88808cef5400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 371 bytes inside of 512-byte region [ffff88808cef5400, ffff88808cef5600) The buggy address belongs to the page: page:ffffea000233bd40 refcount:1 mapcount:0 mapping:ffff8880aa000a80 index:0x0 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea0002452dc8 ffffea0002245588 ffff8880aa000a80 raw: 0000000000000000 ffff88808cef5000 0000000100000004 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808cef5400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808cef5480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88808cef5500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88808cef5580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808cef5600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================