syzbot


kernel BUG in dev_gro_receive

Status: fixed on 2024/06/11 12:03
Subsystems: net
[Documentation on labels]
Fix commit: be008726d0ac net: gro: initialize network_offset in network layer
First crash: 203d, last: 186d
Cause bisection: introduced by (bisect log) :
commit 186b1ea73ad8f30d1d7afdb1d07dfd5b5de8f2da
Author: Richard Gobert <richardbgobert@gmail.com>
Date: Thu May 9 19:08:17 2024 +0000

  net: gro: use cb instead of skb->network_header

Crash: kernel BUG in dev_gro_receive (log)
Repro: C syz .config
  

Sample crash report:
------------[ cut here ]------------
kernel BUG at net/core/gro.c:424!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 PID: 5100 Comm: syz-executor336 Not tainted 6.9.0-syzkaller-05151-g1b294a1f3561 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:gro_pull_from_frag0 net/core/gro.c:424 [inline]
RIP: 0010:gro_try_pull_from_frag0 net/core/gro.c:446 [inline]
RIP: 0010:dev_gro_receive+0x242f/0x24b0 net/core/gro.c:571
Code: ff d3 66 90 e9 ea fa ff ff 44 89 f1 80 e1 07 38 c1 0f 8c f1 f9 ff ff 4c 89 f7 e8 cc ba 94 f8 e9 e4 f9 ff ff e8 82 a6 2f f8 90 <0f> 0b 89 d9 80 e1 07 fe c1 38 c1 0f 8c 19 fa ff ff 48 89 df e8 d8
RSP: 0018:ffffc90000a18ae8 EFLAGS: 00010246
RAX: ffffffff8966b6ae RBX: 00000000000000bc RCX: ffff888020590000
RDX: 0000000080000101 RSI: 000000000000000a RDI: 0000000000000004
RBP: 0000000000000004 R08: ffffffff8966a91b R09: 1ffffffff1f593a5
R10: dffffc0000000000 R11: fffffbfff1f593a6 R12: 1ffff1100fc091c6
R13: 000000000000000a R14: ffff88807e048e34 R15: 1ffff1100fc091d1
FS:  000055559370f380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f849a2aa5e3 CR3: 0000000027ae6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 napi_gro_receive+0x3c3/0xc90 net/core/gro.c:639
 gro_cell_poll+0x13c/0x1c0 net/core/gro_cells.c:61
 __napi_poll+0xcb/0x490 net/core/dev.c:6721
 napi_poll net/core/dev.c:6790 [inline]
 net_rx_action+0x7bb/0x10a0 net/core/dev.c:6906
 handle_softirqs+0x2d6/0x990 kernel/softirq.c:554
 do_softirq+0x11b/0x1e0 kernel/softirq.c:455
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x1bb/0x200 kernel/softirq.c:382
 tun_rx_batched+0x732/0x8f0
 tun_get_user+0x2f35/0x4560 drivers/net/tun.c:2002
 tun_chr_write_iter+0x113/0x1f0 drivers/net/tun.c:2048
 call_write_iter include/linux/fs.h:2120 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0xa2d/0xc50 fs/read_write.c:590
 ksys_write+0x1a0/0x2c0 fs/read_write.c:643
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f849a2ab7b0
Code: 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d f1 d8 07 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007fff6a394f88 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f849a2ab7b0
RDX: 000000000000007c RSI: 0000000020000080 RDI: 00000000000000c8
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:gro_pull_from_frag0 net/core/gro.c:424 [inline]
RIP: 0010:gro_try_pull_from_frag0 net/core/gro.c:446 [inline]
RIP: 0010:dev_gro_receive+0x242f/0x24b0 net/core/gro.c:571
Code: ff d3 66 90 e9 ea fa ff ff 44 89 f1 80 e1 07 38 c1 0f 8c f1 f9 ff ff 4c 89 f7 e8 cc ba 94 f8 e9 e4 f9 ff ff e8 82 a6 2f f8 90 <0f> 0b 89 d9 80 e1 07 fe c1 38 c1 0f 8c 19 fa ff ff 48 89 df e8 d8
RSP: 0018:ffffc90000a18ae8 EFLAGS: 00010246
RAX: ffffffff8966b6ae RBX: 00000000000000bc RCX: ffff888020590000
RDX: 0000000080000101 RSI: 000000000000000a RDI: 0000000000000004
RBP: 0000000000000004 R08: ffffffff8966a91b R09: 1ffffffff1f593a5
R10: dffffc0000000000 R11: fffffbfff1f593a6 R12: 1ffff1100fc091c6
R13: 000000000000000a R14: ffff88807e048e34 R15: 1ffff1100fc091d1
FS:  000055559370f380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f849a2aa5e3 CR3: 0000000027ae6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (72):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/16 21:13 net-next 1b294a1f3561 ef5d53ed .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/31 08:56 upstream 4a4be1ad3a6e 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in dev_gro_receive
2024/05/28 03:25 upstream 2bfcfd584ff5 f550015e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in dev_gro_receive
2024/05/26 20:50 upstream 6fbf71854e2d a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in dev_gro_receive
2024/05/26 11:20 upstream 9b62e02e6336 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in dev_gro_receive
2024/05/25 22:27 upstream 56fb6f92854f a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in dev_gro_receive
2024/05/24 21:21 upstream 8f6a15f095a6 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in dev_gro_receive
2024/05/22 09:55 upstream 8f6a15f095a6 1014eca7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 21:33 upstream ff2632d7d08e a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in dev_gro_receive
2024/05/16 21:35 upstream ea5f6ad9ad96 ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in dev_gro_receive
2024/05/27 21:23 upstream 2bfcfd584ff5 f550015e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 kernel BUG in dev_gro_receive
2024/05/21 05:20 upstream 3eb3c33c1d87 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 kernel BUG in dev_gro_receive
2024/05/20 12:16 net b1fa60ec252f c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce kernel BUG in dev_gro_receive
2024/05/19 21:39 net 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 20:50 net f6f25eebe05f a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce kernel BUG in dev_gro_receive
2024/05/31 20:25 net-next ccf23c916ca3 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/31 18:05 net-next ccf23c916ca3 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/29 01:14 net-next c30ff5f3aec3 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/27 16:27 net-next 66ad4829ddd0 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/25 04:17 net-next 66ad4829ddd0 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/23 09:15 net-next 4b377b4868ef 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/23 00:20 net-next 4b377b4868ef 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/22 12:25 net-next 4b377b4868ef 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/22 02:19 net-next 4b377b4868ef 1014eca7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/20 09:52 net-next 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/20 02:48 net-next 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/19 23:20 net-next 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/19 16:04 net-next 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/19 10:21 net-next 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/19 00:45 net-next 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/18 21:56 net-next 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/18 21:42 net-next 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/18 18:18 net-next 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/18 16:43 net-next 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/18 15:32 net-next 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/18 03:10 net-next 1b294a1f3561 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/18 02:57 net-next 1b294a1f3561 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 23:10 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 23:08 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 23:01 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 22:59 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 22:53 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 22:48 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 22:07 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 22:05 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 21:54 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 21:08 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 21:07 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 18:57 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 18:12 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 18:11 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 16:43 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 13:43 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 13:09 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 13:09 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 13:08 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 13:08 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 13:08 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 13:08 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/17 03:52 net-next 1b294a1f3561 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/16 18:54 net-next 1b294a1f3561 ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/15 23:09 net-next 1b294a1f3561 0b3dad46 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/15 13:04 net-next 654de42f3fc6 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/15 12:54 net-next 654de42f3fc6 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
2024/05/15 11:59 net-next 654de42f3fc6 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce kernel BUG in dev_gro_receive
* Struck through repros no longer work on HEAD.