vcan0: j1939_tp_rxtimer: 0x000000004a0b01be: 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 ffff88806280ed73 by task syz-fuzzer/7002 CPU: 1 PID: 7002 Comm: syz-fuzzer Not tainted 5.6.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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: 0033:0x43b69c Code: 8b 44 24 40 31 c9 31 d2 eb 03 48 ff c1 48 89 54 24 18 48 8b 1d e5 18 c8 01 48 39 0d e6 18 c8 01 0f 8e dc 01 00 00 48 8b 1c cb <48> 85 db 74 db 8b 73 04 83 fe 01 0f 85 b7 01 00 00 8b 7b 10 44 8b RSP: 002b:000000c000051f10 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13 RAX: 00000164aa5cc158 RBX: 000000c00002c000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 00007fff3fb69090 RDI: 000000000004a552 RBP: 000000c000051f40 R08: 00007fff3fb69080 R09: 00000000000005fb R10: 000000c000051ed0 R11: 0000000000000202 R12: 00000000004338c0 R13: 0000000000000000 R14: 0000000000ac9ca8 R15: 0000000000000000 Allocated by task 21659: 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_session_fresh_new net/can/j1939/transport.c:1469 [inline] j1939_xtp_rx_rts_session_new net/can/j1939/transport.c:1552 [inline] j1939_xtp_rx_rts+0x898/0xef0 net/can/j1939/transport.c:1653 j1939_tp_cmd_recv net/can/j1939/transport.c:1924 [inline] j1939_tp_recv+0x639/0x970 net/can/j1939/transport.c:2005 j1939_can_recv+0x587/0x6f0 net/can/j1939/main.c:101 deliver net/can/af_can.c:569 [inline] can_rcv_filter+0x2a1/0x8e0 net/can/af_can.c:603 can_receive+0x2e3/0x520 net/can/af_can.c:660 can_rcv+0x12a/0x1a0 net/can/af_can.c:686 __netif_receive_skb_one_core+0xf5/0x160 net/core/dev.c:5187 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5301 process_backlog+0x21e/0x7a0 net/core/dev.c:6133 napi_poll net/core/dev.c:6571 [inline] net_rx_action+0x4c2/0x1070 net/core/dev.c:6639 __do_softirq+0x26c/0x9f7 kernel/softirq.c:292 Freed by task 7002: 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 ffff88806280ec00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 371 bytes inside of 512-byte region [ffff88806280ec00, ffff88806280ee00) The buggy address belongs to the page: page:ffffea00018a0380 refcount:1 mapcount:0 mapping:ffff8880aa000a80 index:0x0 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea0002459f88 ffffea00012ff9c8 ffff8880aa000a80 raw: 0000000000000000 ffff88806280e000 0000000100000004 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88806280ec00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806280ec80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88806280ed00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88806280ed80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806280ee00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================