syzbot


WARNING in j1939_xtp_rx_rts (2)

Status: upstream: reported on 2024/05/06 08:26
Subsystems: can
[Documentation on labels]
Reported-by: syzbot+ce5405b9159db688fa37@syzkaller.appspotmail.com
First crash: 53d, last: 39d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly can report (May 2024) 0 (1) 2024/05/31 06:49
[syzbot] [can?] WARNING in j1939_xtp_rx_rts (2) 0 (1) 2024/05/06 08:26
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in j1939_xtp_rx_rts can 2 233d 237d 0/27 auto-obsoleted due to no activity on 2024/02/13 07:03

Sample crash report:
vxcan0: j1939_xtp_rx_abort_one: 0xffff8880453cec00: 0x00000: (1) Already in one or more connection managed sessions and cannot support another.
------------[ cut here ]------------
WARNING: CPU: 3 PID: 34 at net/can/j1939/transport.c:1656 j1939_xtp_rx_rts_session_new net/can/j1939/transport.c:1656 [inline]
WARNING: CPU: 3 PID: 34 at net/can/j1939/transport.c:1656 j1939_xtp_rx_rts+0x148a/0x17d0 net/can/j1939/transport.c:1735
Modules linked in:
CPU: 3 PID: 34 Comm: ksoftirqd/3 Not tainted 6.9.0-syzkaller-08284-gea5f6ad9ad96 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:j1939_xtp_rx_rts_session_new net/can/j1939/transport.c:1656 [inline]
RIP: 0010:j1939_xtp_rx_rts+0x148a/0x17d0 net/can/j1939/transport.c:1735
Code: fb ff ff bd 02 00 00 00 e9 72 fe ff ff e8 fe aa b8 f7 be 01 00 00 00 48 89 ef e8 b1 76 ab fa e9 76 fb ff ff e8 e7 aa b8 f7 90 <0f> 0b 90 48 8d 83 c0 00 00 00 4c 8d b3 c2 00 00 00 48 89 44 24 10
RSP: 0018:ffffc90000908940 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8880453ce400 RCX: ffffffff89d52b30
RDX: ffff88801928c880 RSI: ffffffff89d53199 RDI: 0000000000000005
RBP: 00000000fffffff5 R08: 0000000000000005 R09: 0000000000000000
R10: 00000000fffffff5 R11: 0000000000000002 R12: ffff888015f48000
R13: ffff8880453ce4dc R14: 0000000000000001 R15: 0000000000002447
FS:  0000000000000000(0000) GS:ffff88806b300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30624000 CR3: 000000003cd9e000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 j1939_tp_cmd_recv net/can/j1939/transport.c:2057 [inline]
 j1939_tp_recv+0x36a/0xf50 net/can/j1939/transport.c:2144
 j1939_can_recv+0x78f/0xa70 net/can/j1939/main.c:112
 deliver net/can/af_can.c:572 [inline]
 can_rcv_filter+0x2a8/0x900 net/can/af_can.c:606
 can_receive+0x320/0x5c0 net/can/af_can.c:663
 can_rcv+0x1e0/0x280 net/can/af_can.c:687
 __netif_receive_skb_one_core+0x1b1/0x1e0 net/core/dev.c:5624
 __netif_receive_skb+0x1d/0x160 net/core/dev.c:5738
 process_backlog+0x133/0x760 net/core/dev.c:6067
 __napi_poll.constprop.0+0xb7/0x550 net/core/dev.c:6721
 napi_poll net/core/dev.c:6790 [inline]
 net_rx_action+0x9b6/0xf10 net/core/dev.c:6906
 handle_softirqs+0x216/0x8f0 kernel/softirq.c:554
 __do_softirq kernel/softirq.c:588 [inline]
 invoke_softirq kernel/softirq.c:428 [inline]
 __irq_exit_rcu kernel/softirq.c:637 [inline]
 irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
 sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:finish_task_switch.isra.0+0x220/0xcc0 kernel/sched/core.c:5283
Code: a9 0a 00 00 44 8b 0d 27 cb 85 0e 45 85 c9 0f 85 c0 01 00 00 48 89 df e8 ae f8 ff ff e8 d9 b9 36 00 fb 65 48 8b 1d b0 8f a5 7e <48> 8d bb f8 15 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1
RSP: 0018:ffffc900008dfc78 EFLAGS: 00000206
RAX: 0000000000087187 RBX: ffff88801928c880 RCX: 1ffffffff1fc7391
RDX: 0000000000000000 RSI: ffffffff8b2ca9a0 RDI: ffffffff8b8f8700
RBP: ffffc900008dfcc0 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff8fe3df17 R11: 0000000000000000 R12: ffff88806b33f7b8
R13: ffff88803fdcc880 R14: 0000000000000000 R15: ffff88806b23ea40
 context_switch kernel/sched/core.c:5412 [inline]
 __schedule+0xf1d/0x5d00 kernel/sched/core.c:6746
 __schedule_loop kernel/sched/core.c:6823 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6838
 smpboot_thread_fn+0x2d5/0xa10 kernel/smpboot.c:160
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
----------------
Code disassembly (best guess):
   0:	a9 0a 00 00 44       	test   $0x4400000a,%eax
   5:	8b 0d 27 cb 85 0e    	mov    0xe85cb27(%rip),%ecx        # 0xe85cb32
   b:	45 85 c9             	test   %r9d,%r9d
   e:	0f 85 c0 01 00 00    	jne    0x1d4
  14:	48 89 df             	mov    %rbx,%rdi
  17:	e8 ae f8 ff ff       	call   0xfffff8ca
  1c:	e8 d9 b9 36 00       	call   0x36b9fa
  21:	fb                   	sti
  22:	65 48 8b 1d b0 8f a5 	mov    %gs:0x7ea58fb0(%rip),%rbx        # 0x7ea58fda
  29:	7e
* 2a:	48 8d bb f8 15 00 00 	lea    0x15f8(%rbx),%rdi <-- trapping instruction
  31:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  38:	fc ff df
  3b:	48 89 fa             	mov    %rdi,%rdx
  3e:	48                   	rex.W
  3f:	c1                   	.byte 0xc1

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/17 05:11 upstream ea5f6ad9ad96 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in j1939_xtp_rx_rts
2024/05/11 00:40 net-next 383eed2de529 f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in j1939_xtp_rx_rts
2024/05/08 21:05 net-next 252aa6d53931 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in j1939_xtp_rx_rts
2024/05/06 04:40 net-next cdc74c9d06e7 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in j1939_xtp_rx_rts
2024/05/03 05:17 net-next dcc61472534e ddfc15a1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in j1939_xtp_rx_rts
* Struck through repros no longer work on HEAD.