syzbot


kernel BUG in cdc_ncm_fill_tx_frame

Status: upstream: reported syz repro on 2023/06/02 18:39
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+1994e2ecf323ed90f255@syzkaller.appspotmail.com
First crash: 327d, last: 73d
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] [usb?] kernel BUG in cdc_ncm_fill_tx_frame 0 (2) 2023/06/02 19:09
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
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 351d 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 850d 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
android-5-10 kernel BUG in cdc_ncm_fill_tx_frame (2) C error 3 344d 351d 2/2 fixed on 2023/06/28 00:02
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/03/30 16:23 19m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing error OK
2024/03/17 13:58 22m retest repro upstream error OK
2024/02/11 20:08 2h47m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/01/20 15:31 13m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing report log
2023/12/03 13:03 35m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/11/19 12:12 14m retest repro upstream report log
2023/11/03 21:39 8m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing report log
2023/09/24 10:09 21m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/09/10 09:28 22m retest repro upstream report log
2023/08/25 20:15 16m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/01/06 13:22 2h04m bisect fix upstream job log (0) log

Sample crash report:
skbuff: skb_over_panic: text:ffffffff861d04bb len:428 put:172 head:ffff8880232ed800 data:ffff8880232ed800 tail:0x1ac end:0x140 dev:<NULL>
------------[ cut here ]------------
kernel BUG at net/core/skbuff.c:192!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4665 Comm: dhcpcd Not tainted 6.4.0-syzkaller-09774-gb25f62ccb490 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:skb_panic+0x152/0x1d0 net/core/skbuff.c:192
Code: 0f b6 04 01 84 c0 74 04 3c 03 7e 20 8b 4b 70 41 56 45 89 e8 48 c7 c7 00 51 7f 8b 41 57 56 48 89 ee 52 4c 89 e2 e8 0e 0c 57 f9 <0f> 0b 4c 89 4c 24 10 48 89 54 24 08 48 89 34 24 e8 e9 92 c6 f9 4c
RSP: 0018:ffffc900034df2b0 EFLAGS: 00010286
RAX: 0000000000000089 RBX: ffff888020d52500 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81690b5c RDI: 0000000000000005
RBP: ffffffff8b7f6020 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000604 R11: 0000000000000001 R12: ffffffff861d04bb
R13: 00000000000000ac R14: ffffffff8b7f50c0 R15: 0000000000000140
FS:  00007f5d5f16c740(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055dc7fac9131 CR3: 000000001ed2a000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 skb_over_panic net/core/skbuff.c:197 [inline]
 skb_put+0x16f/0x1a0 net/core/skbuff.c:2376
 skb_put_zero include/linux/skbuff.h:2613 [inline]
 cdc_ncm_ndp16 drivers/net/usb/cdc_ncm.c:1135 [inline]
 cdc_ncm_fill_tx_frame+0x20fb/0x38d0 drivers/net/usb/cdc_ncm.c:1310
 cdc_ncm_tx_fixup+0xde/0x120 drivers/net/usb/cdc_ncm.c:1537
 usbnet_start_xmit+0x156/0x21a0 drivers/net/usb/usbnet.c:1365
 __netdev_start_xmit include/linux/netdevice.h:4910 [inline]
 netdev_start_xmit include/linux/netdevice.h:4924 [inline]
 xmit_one net/core/dev.c:3537 [inline]
 dev_hard_start_xmit+0x187/0x700 net/core/dev.c:3553
 sch_direct_xmit+0x1a3/0xc30 net/sched/sch_generic.c:342
 __dev_xmit_skb net/core/dev.c:3764 [inline]
 __dev_queue_xmit+0x14d6/0x3b10 net/core/dev.c:4169
 lapb_data_transmit+0x93/0xc0 net/lapb/lapb_iface.c:447
 lapb_transmit_buffer+0x187/0x3a0 net/lapb/lapb_out.c:149
 lapb_send_control+0x1cb/0x370 net/lapb/lapb_subr.c:251
 lapb_establish_data_link+0xeb/0x110 net/lapb/lapb_out.c:163
 lapb_device_event+0x399/0x570 net/lapb/lapb_iface.c:512
 notifier_call_chain+0xb6/0x3c0 kernel/notifier.c:93
 call_netdevice_notifiers_info+0xb9/0x130 net/core/dev.c:1962
 call_netdevice_notifiers_extack net/core/dev.c:2000 [inline]
 call_netdevice_notifiers net/core/dev.c:2014 [inline]
 __dev_notify_flags+0x120/0x2d0 net/core/dev.c:8569
 dev_change_flags+0x11b/0x170 net/core/dev.c:8607
 devinet_ioctl+0x15fb/0x1df0 net/ipv4/devinet.c:1150
 inet_ioctl+0x33f/0x380 net/ipv4/af_inet.c:980
 sock_do_ioctl+0xcc/0x230 net/socket.c:1190
 sock_ioctl+0x1f8/0x680 net/socket.c:1307
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x19d/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f5d5f23ad49
Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8
RSP: 002b:00007ffda2283908 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5d5f16c6c0 RCX: 00007f5d5f23ad49
RDX: 00007ffda2293af8 RSI: 0000000000008914 RDI: 0000000000000018
RBP: 00007ffda22a3cb8 R08: 00007ffda2293ab8 R09: 00007ffda2293a68
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffda2293af8 R14: 0000000000000028 R15: 0000000000008914
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:skb_panic+0x152/0x1d0 net/core/skbuff.c:192
Code: 0f b6 04 01 84 c0 74 04 3c 03 7e 20 8b 4b 70 41 56 45 89 e8 48 c7 c7 00 51 7f 8b 41 57 56 48 89 ee 52 4c 89 e2 e8 0e 0c 57 f9 <0f> 0b 4c 89 4c 24 10 48 89 54 24 08 48 89 34 24 e8 e9 92 c6 f9 4c
RSP: 0018:ffffc900034df2b0 EFLAGS: 00010286
RAX: 0000000000000089 RBX: ffff888020d52500 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81690b5c RDI: 0000000000000005
RBP: ffffffff8b7f6020 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000604 R11: 0000000000000001 R12: ffffffff861d04bb
R13: 00000000000000ac R14: ffffffff8b7f50c0 R15: 0000000000000140
FS:  00007f5d5f16c740(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055dc7fac9131 CR3: 000000001ed2a000 CR4: 0000000000350ef0

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/01 16:53 upstream b25f62ccb490 af3053d2 .config strace log report syz [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in cdc_ncm_fill_tx_frame
2023/06/02 19:09 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 243ff7e6a035 a4ae4f42 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-upstream-usb kernel BUG in cdc_ncm_fill_tx_frame
2023/06/02 22:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci eb0f1697d729 a4ae4f42 .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in cdc_ncm_fill_tx_frame
2023/06/02 14:23 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 243ff7e6a035 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb kernel BUG in cdc_ncm_fill_tx_frame
* Struck through repros no longer work on HEAD.