syzbot


kernel BUG at net/core/dev.c:LINE!

Status: fixed on 2021/01/17 13:53
Reported-by: syzbot+7010af67ced6105e5ab6@syzkaller.appspotmail.com
Fix commit: 8f9a69a92fc6 net: drop bogus skb with CHECKSUM_PARTIAL and offset beyond end of trimmed packet
First crash: 1514d, last: 1245d
Fix bisection the fix commit could be any of (bisect log):
  4520f06b03ae Linux 4.14.175
  4139fb08c05f Linux 4.14.187
  
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 5.10 000/103] 5.10.8-rc1 review 116 (116) 2021/01/18 09:29
[PATCH 5.4 00/62] 5.4.90-rc1 review 68 (68) 2021/01/17 12:54
[PATCH 4.4 00/18] 4.4.252-rc1 review 23 (23) 2021/01/16 07:58
[PATCH 4.19 00/43] 4.19.168-rc1 review 48 (48) 2021/01/16 07:58
[PATCH 4.9 00/25] 4.9.252-rc1 review 29 (29) 2021/01/16 07:41
[PATCH 4.14 00/28] 4.14.216-rc1 review 31 (31) 2021/01/16 06:38
[PATCH] net: check skb partial checksum offset after trim 12 (12) 2020/12/15 05:42
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG at net/core/dev.c:LINE! (2) C error 90 591d 1263d 0/1 upstream: reported C repro on 2020/12/11 13:29
linux-4.14 kernel BUG in validate_xmit_skb 1 1202d 1202d 0/1 auto-closed as invalid on 2021/06/10 04:03
upstream kernel BUG at net/core/dev.c:LINE! (2) net syz 2 2056d 2056d 11/26 fixed on 2018/10/18 14:43
upstream kernel BUG in netem_enqueue net 9 529d 754d 22/26 fixed on 2023/02/24 13:50
linux-4.19 kernel BUG at net/core/dev.c:LINE! 4 1493d 1495d 0/1 auto-closed as invalid on 2020/08/23 07:17
upstream kernel BUG at net/core/dev.c:LINE! (4) C done done 432 894d 1281d 20/26 fixed on 2022/03/08 16:11
upstream kernel BUG at net/core/dev.c:LINE! net C 5 2373d 2378d 3/26 fixed on 2017/12/08 02:32
upstream kernel BUG at net/core/dev.c:LINE! (3) net C done 979 1363d 1507d 15/26 fixed on 2020/09/16 22:51
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2020/07/03 04:40 30m bisect fix linux-4.14.y job log (2)
2020/06/03 04:10 24m bisect fix linux-4.14.y job log (0) log
2020/05/04 03:44 25m bisect fix linux-4.14.y job log (0) log

Sample crash report:
ip_tables: iptables: counters copy to user failed while replacing table
------------[ cut here ]------------
kernel BUG at net/core/dev.c:2648!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 6341 Comm: syz-executor763 Not tainted 4.14.175-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880846780c0 task.stack: ffff888097cd8000
RIP: 0010:skb_checksum_help+0x5fd/0x830 net/core/dev.c:2648
RSP: 0018:ffff888097cdf468 EFLAGS: 00010297
RAX: ffff8880846780c0 RBX: 00000000000000e0 RCX: 0000000000000120
RDX: 0000000000000000 RSI: 000000000000001c RDI: 0000000000000000
RBP: ffff88809dd2cb40 R08: ffff88809dd2cbc0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809dd2cbc4
R13: ffff88809dd2cc0c R14: ffff88809dd2cbd0 R15: 0000000000000000
FS:  0000000000f03880(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000008d0ca000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 checksum_tg+0x52/0x65 net/netfilter/xt_CHECKSUM.c:29
 ipt_do_table+0xaaf/0x16d0 net/ipv4/netfilter/ip_tables.c:353
 iptable_mangle_hook+0x9c/0x560 net/ipv4/netfilter/iptable_mangle.c:90
 nf_hook_entry_hookfn include/linux/netfilter.h:108 [inline]
 nf_hook_slow+0xa5/0x1a0 net/netfilter/core.c:467
 nf_hook include/linux/netfilter.h:205 [inline]
 NF_HOOK include/linux/netfilter.h:248 [inline]
 ip_rcv+0xb9e/0xfec net/ipv4/ip_input.c:493
 __netif_receive_skb_core+0x1e50/0x2c00 net/core/dev.c:4477
 __netif_receive_skb+0x27/0x1a0 net/core/dev.c:4515
 netif_receive_skb_internal+0xd7/0x580 net/core/dev.c:4588
 tun_rx_batched.isra.0+0x46c/0x7a0 drivers/net/tun.c:1221
 tun_get_user+0xcde/0x3880 drivers/net/tun.c:1581
 tun_chr_write_iter+0xcf/0x179 drivers/net/tun.c:1608
 call_write_iter include/linux/fs.h:1778 [inline]
 new_sync_write fs/read_write.c:469 [inline]
 __vfs_write+0x44e/0x630 fs/read_write.c:482
 vfs_write+0x192/0x4e0 fs/read_write.c:544
 SYSC_write fs/read_write.c:590 [inline]
 SyS_write+0xf2/0x210 fs/read_write.c:582
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x441729
RSP: 002b:00007fffbaae6ae8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441729
RDX: 000000000000fdef RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 656c6c616b7a7973 R08: 0000000000001c00 R09: 0000000000402fb0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402fb0
R13: 0000000000403040 R14: 0000000000000000 R15: 0000000000000000
Code: 8b 7c 24 28 e8 75 e0 85 fc e9 0d fe ff ff e8 4b 8e 5c fc 48 89 ef 41 bc ea ff ff ff e8 9d b3 ff ff e9 94 fe ff ff e8 33 8e 5c fc <0f> 0b e8 2c 8e 5c fc 0f 0b e8 25 8e 5c fc 48 8b 54 24 28 48 b8 
RIP: skb_checksum_help+0x5fd/0x830 net/core/dev.c:2648 RSP: ffff888097cdf468
---[ end trace dd20dd799c821843 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/04 03:36 linux-4.14.y 4520f06b03ae ef26b610 .config console log report syz C ci2-linux-4-14
2020/12/29 08:11 linux-4.14.y 3f2ecb86cb90 8259d56c .config console log report info ci2-linux-4-14
2020/12/08 15:04 linux-4.14.y 47cbf4cc32db 9af51e31 .config console log report info ci2-linux-4-14
* Struck through repros no longer work on HEAD.