syzbot


kernel BUG in cdc_ncm_fill_tx_frame (2)

Status: fixed on 2023/06/28 00:02
Reported-by: syzbot+38fc76976c23d1ad8d44@syzkaller.appspotmail.com
Fix commit: 42b78c8cc774 net: cdc_ncm: Deal with too low values of dwNtbOutMaxSize
First crash: 371d, last: 344d
Cause bisection: failed (error log, bisect log)
  
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in cdc_ncm_fill_tx_frame usb syz error 4 73d 327d 0/26 upstream: reported syz repro on 2023/06/02 18:39
android-5-10 kernel BUG in add_grec C error 83 758d 832d 2/2 fixed on 2022/03/29 10:01
android-54 kernel BUG at net/core/skbuff.c:LINE! C 267 344d 1564d 0/2 auto-obsoleted due to no activity on 2023/08/22 15:17
android-5-15 kernel BUG in cdc_ncm_fill_tx_frame (2) origin:downstream C done 5 337d 352d 2/2 fixed on 2023/06/16 14:10
android-5-10 kernel BUG in add_grec (2) C error inconclusive 1039 518d 518d 2/2 fixed on 2023/02/24 12:10
android-5-10 kernel BUG in cdc_ncm_fill_tx_frame C error 40 851d 916d 1/2 fixed on 2021/12/29 12:20
android-5-15 kernel BUG in cdc_ncm_fill_tx_frame 1 518d 518d 0/2 auto-obsoleted due to no activity on 2023/04/11 17:56

Sample crash report:
skbuff: skb_over_panic: text:ffffffff8304d6bb len:184 put:172 head:ffff8881073a2400 data:ffff8881073a2400 tail:0xb8 end:0x80 dev:<NULL>
------------[ cut here ]------------
kernel BUG at net/core/skbuff.c:110!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.10.177-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:skb_panic net/core/skbuff.c:110 [inline]
RIP: 0010:skb_over_panic+0x14c/0x150 net/core/skbuff.c:115
Code: 60 5f 8d 85 48 c7 c6 f5 04 d8 85 48 8b 55 c0 8b 4d d4 44 8b 45 d0 4c 8b 4d c8 53 41 55 41 54 41 57 e8 e7 8b ec 00 48 83 c4 20 <0f> 0b 66 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 10 89
RSP: 0018:ffffc9000016fea0 EFLAGS: 00010286
RAX: 0000000000000087 RBX: ffffffff858d5fe0 RCX: d8a862c2af08d000
RDX: 0000000080000704 RSI: 0000000080000704 RDI: 0000000000000000
RBP: ffffc9000016fee0 R08: ffffffff8151f808 R09: ffffed103ee2a600
R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000000000b8
R13: 0000000000000080 R14: dffffc0000000000 R15: ffff8881073a2400
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005573324327d8 CR3: 0000000115aa2000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 skb_put+0x151/0x210 net/core/skbuff.c:1915
 skb_put_zero include/linux/skbuff.h:2328 [inline]
 cdc_ncm_ndp16 drivers/net/usb/cdc_ncm.c:1118 [inline]
 cdc_ncm_fill_tx_frame+0x11ab/0x3da0 drivers/net/usb/cdc_ncm.c:1295
 cdc_ncm_tx_fixup+0xa3/0x100
 usbnet_start_xmit+0x118/0x1a40 drivers/net/usb/usbnet.c:1336
 __netdev_start_xmit include/linux/netdevice.h:4841 [inline]
 netdev_start_xmit include/linux/netdevice.h:4855 [inline]
 xmit_one net/core/dev.c:3597 [inline]
 dev_hard_start_xmit+0x228/0x620 net/core/dev.c:3613
 sch_direct_xmit+0x292/0x9b0 net/sched/sch_generic.c:336
 qdisc_restart net/sched/sch_generic.c:401 [inline]
 __qdisc_run+0xa85/0x1df0 net/sched/sch_generic.c:409
 qdisc_run+0x121/0x330 include/net/pkt_sched.h:127
 __dev_xmit_skb net/core/dev.c:3789 [inline]
 __dev_queue_xmit+0xcf0/0x28e0 net/core/dev.c:4145
 dev_queue_xmit+0x17/0x20 net/core/dev.c:4213
 neigh_resolve_output+0x6b8/0x760 net/core/neighbour.c:1529
 neigh_output include/net/neighbour.h:524 [inline]
 ip6_finish_output2+0xf21/0x1850 net/ipv6/ip6_output.c:145
 __ip6_finish_output+0x658/0x820 net/ipv6/ip6_output.c:210
 ip6_finish_output+0x34/0x1e0 net/ipv6/ip6_output.c:220
 NF_HOOK_COND include/linux/netfilter.h:293 [inline]
 ip6_output+0x1f7/0x4d0 net/ipv6/ip6_output.c:243
 dst_output include/net/dst.h:443 [inline]
 NF_HOOK include/linux/netfilter.h:304 [inline]
 mld_sendpack+0x5fc/0xb40 net/ipv6/mcast.c:1676
 mld_send_cr net/ipv6/mcast.c:1972 [inline]
 mld_ifc_timer_expire+0x816/0xbf0 net/ipv6/mcast.c:2471
 call_timer_fn+0x3b/0x2d0 kernel/time/timer.c:1420
 expire_timers kernel/time/timer.c:1465 [inline]
 __run_timers+0x72a/0xa10 kernel/time/timer.c:1759
 run_timer_softirq+0x69/0xf0 kernel/time/timer.c:1772
 __do_softirq+0x268/0x5bb kernel/softirq.c:309
 asm_call_irq_on_stack+0xf/0x20
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
 do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:405 [inline]
 __irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
 sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1095
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:native_irq_disable arch/x86/include/asm/irqflags.h:49 [inline]
RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:89 [inline]
RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:114 [inline]
RIP: 0010:acpi_idle_do_entry drivers/acpi/processor_idle.c:575 [inline]
RIP: 0010:acpi_idle_enter+0x416/0x760 drivers/acpi/processor_idle.c:710
Code: 89 de 48 83 e6 08 31 ff e8 f7 65 bb fc 48 83 e3 08 0f 85 b0 00 00 00 0f 1f 44 00 00 e8 a3 61 bb fc 0f 00 2d ac f0 b6 00 fb f4 <fa> e9 e1 00 00 00 49 83 c7 04 4c 89 f8 48 c1 e8 03 42 0f b6 04 30
RSP: 0018:ffffc90000107c30 EFLAGS: 000002d3
RAX: ffffffff84af0b4d RBX: 0000000000000000 RCX: ffff888100290000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000107c70 R08: ffffffff84af0b39 R09: ffffed1020052001
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: ffff888100076004 R14: dffffc0000000000 R15: ffff888105f81864
 cpuidle_enter_state+0x5e1/0x1550 drivers/cpuidle/cpuidle.c:249
 cpuidle_enter+0x5f/0xa0 drivers/cpuidle/cpuidle.c:364
 call_cpuidle kernel/sched/idle.c:160 [inline]
 cpuidle_idle_call kernel/sched/idle.c:241 [inline]
 do_idle+0x364/0x5c0 kernel/sched/idle.c:302
 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:398
 start_secondary+0x2e9/0x3a0 arch/x86/kernel/smpboot.c:265
 secondary_startup_64_no_verify+0xb1/0xbb
Modules linked in:
---[ end trace 64c317807c21ae36 ]---
RIP: 0010:skb_panic net/core/skbuff.c:110 [inline]
RIP: 0010:skb_over_panic+0x14c/0x150 net/core/skbuff.c:115
Code: 60 5f 8d 85 48 c7 c6 f5 04 d8 85 48 8b 55 c0 8b 4d d4 44 8b 45 d0 4c 8b 4d c8 53 41 55 41 54 41 57 e8 e7 8b ec 00 48 83 c4 20 <0f> 0b 66 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 10 89
----------------
Code disassembly (best guess):
   0:	89 de                	mov    %ebx,%esi
   2:	48 83 e6 08          	and    $0x8,%rsi
   6:	31 ff                	xor    %edi,%edi
   8:	e8 f7 65 bb fc       	callq  0xfcbb6604
   d:	48 83 e3 08          	and    $0x8,%rbx
  11:	0f 85 b0 00 00 00    	jne    0xc7
  17:	0f 1f 44 00 00       	nopl   0x0(%rax,%rax,1)
  1c:	e8 a3 61 bb fc       	callq  0xfcbb61c4
  21:	0f 00 2d ac f0 b6 00 	verw   0xb6f0ac(%rip)        # 0xb6f0d4
  28:	fb                   	sti
  29:	f4                   	hlt
* 2a:	fa                   	cli <-- trapping instruction
  2b:	e9 e1 00 00 00       	jmpq   0x111
  30:	49 83 c7 04          	add    $0x4,%r15
  34:	4c 89 f8             	mov    %r15,%rax
  37:	48 c1 e8 03          	shr    $0x3,%rax
  3b:	42 0f b6 04 30       	movzbl (%rax,%r14,1),%eax

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/09 02:51 android13-5.10-lts 3ad342cf5b2c c7a5e2a0 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in cdc_ncm_fill_tx_frame
2023/05/16 18:44 android13-5.10-lts 43c801dc3325 11c89444 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in cdc_ncm_fill_tx_frame
2023/04/20 01:32 android12-5.10-lts 416c4356f372 a219f34e .config console log report info ci2-android-5-10 kernel BUG in cdc_ncm_fill_tx_frame
* Struck through repros no longer work on HEAD.