syzbot


BUG: unable to handle kernel paging request in csum_partial (3)

Status: fixed on 2021/11/10 00:50
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+ff8e1b9f2f36481e2efc@syzkaller.appspotmail.com
Fix commit: 9cf448c200ba ip6_gre: add validation for csum_start 1d011c4803c7 ip_gre: add validation for csum_start
First crash: 1014d, last: 979d
Cause bisection: introduced by (bisect log) :
commit fdafed459998e2be0e877e6189b24cb7a0183224
Author: Cong Wang <xiyou.wangcong@gmail.com>
Date: Mon Oct 12 23:17:21 2020 +0000

  ip_gre: set dev->hard_header_len and dev->needed_headroom properly

Crash: BUG: unable to handle kernel paging request in do_csum (log)
Repro: C syz .config
  
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 4.9 00/16] 4.9.282-rc1 review 23 (23) 2021/09/03 16:02
[PATCH 5.10 000/103] 5.10.62-rc1 review 128 (128) 2021/09/03 14:14
[PATCH 5.13 000/113] 5.13.14-rc1 review 120 (120) 2021/09/02 21:51
[PATCH 5.4 00/48] 5.4.144-rc1 review 55 (55) 2021/09/02 21:50
[PATCH 4.19 00/33] 4.19.206-rc1 review 40 (40) 2021/09/02 21:50
[PATCH 4.14 00/23] 4.14.246-rc1 review 27 (27) 2021/09/02 21:50
[PATCH] ip_gre/ip6_gre: add check for invalid csum_start 14 (14) 2021/09/01 21:39
[syzbot] BUG: unable to handle kernel paging request in csum_partial (3) 0 (1) 2021/07/15 05:49
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 BUG: unable to handle kernel paging request in csum_partial C 5 966d 1548d 1/2 fixed on 2021/10/21 11:33
upstream BUG: unable to handle kernel paging request in csum_partial (4) net 12 272d 330d 0/26 closed as invalid on 2023/10/17 18:04
upstream BUG: unable to handle kernel paging request in csum_partial (2) kernel 1 1183d 1183d 0/26 auto-closed as invalid on 2021/04/23 09:26
Last patch testing requests (3)
Created Duration User Patch Repo Result
2021/08/18 07:43 34m chouhan.shreyansh630@gmail.com patch upstream OK
2021/08/09 16:33 33m chouhan.shreyansh630@gmail.com patch upstream OK
2021/07/30 11:22 36m chouhan.shreyansh630@gmail.com upstream report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2021/08/15 01:33 20m bisect fix upstream job log (0) log

Sample crash report:
BUG: unable to handle page fault for address: ffff8880bfffd000
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 11401067 P4D 11401067 PUD 23ffff067 PMD 23fffe067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8613 Comm: syz-executor500 Not tainted 5.13.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:do_csum arch/x86/lib/csum-partial_64.c:72 [inline]
RIP: 0010:csum_partial+0x184/0x470 arch/x86/lib/csum-partial_64.c:136
Code: 84 7c 00 00 00 41 ff ce 4c 89 f0 48 c1 e0 06 48 89 44 24 28 45 31 ff 48 8b 6c 24 08 66 2e 0f 1f 84 00 00 00 00 00 4c 03 6d 00 <4c> 13 6d 08 4c 13 6d 10 4c 13 6d 18 4c 13 6d 20 4c 13 6d 28 4c 13
RSP: 0018:ffffc9000203f050 EFLAGS: 00010282
RAX: ffffffff84277631 RBX: 000000001ffffffd RCX: ffff888031b08000
RDX: 0000000000000000 RSI: 0000000003ffffff RDI: 0000000000000000
RBP: ffff8880bfffcff8 R08: ffffffff842775d1 R09: 0000000000000000
R10: ffffed1007067160 R11: 0000000000000000 R12: 00000000ffffffec
R13: ceb3fe5867b5b00e R14: 0000000001e0cee1 R15: 0000000000000000
FS:  00007f6bd4cc4700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff8880bfffd000 CR3: 000000003517b000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lco_csum include/linux/skbuff.h:4662 [inline]
 gre_build_header+0x49d/0x880 include/net/gre.h:139
 __gre_xmit net/ipv4/ip_gre.c:467 [inline]
 ipgre_xmit+0x6ab/0x9e0 net/ipv4/ip_gre.c:653
 __netdev_start_xmit include/linux/netdevice.h:4944 [inline]
 netdev_start_xmit include/linux/netdevice.h:4958 [inline]
 xmit_one net/core/dev.c:3658 [inline]
 dev_hard_start_xmit+0x20b/0x450 net/core/dev.c:3674
 __dev_queue_xmit+0x1c40/0x3500 net/core/dev.c:4273
 packet_snd net/packet/af_packet.c:3016 [inline]
 packet_sendmsg+0x4cd4/0x66f0 net/packet/af_packet.c:3044
 sock_sendmsg_nosec net/socket.c:702 [inline]
 sock_sendmsg net/socket.c:722 [inline]
 kernel_sendmsg+0xf5/0x130 net/socket.c:742
 sock_no_sendpage+0x150/0x1b0 net/core/sock.c:2898
 kernel_sendpage+0x2ca/0x370 net/socket.c:3666
 sock_sendpage+0x7e/0xb0 net/socket.c:995
 pipe_to_sendpage+0x258/0x340 fs/splice.c:364
 splice_from_pipe_feed fs/splice.c:418 [inline]
 __splice_from_pipe+0x351/0x8b0 fs/splice.c:562
 splice_from_pipe fs/splice.c:597 [inline]
 generic_splice_sendpage+0x172/0x200 fs/splice.c:746
 do_splice_from fs/splice.c:767 [inline]
 do_splice+0x11e4/0x17c0 fs/splice.c:1079
 __do_splice fs/splice.c:1144 [inline]
 __do_sys_splice fs/splice.c:1350 [inline]
 __se_sys_splice+0x32c/0x430 fs/splice.c:1332
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x449009
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6bd4cc42e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000113
RAX: ffffffffffffffda RBX: 00000000004cf510 RCX: 0000000000449009
RDX: 0000000000000006 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00000000004cf51c R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000049e004
R13: 78902f0000000000 R14: 6d32cc5e8ead0600 R15: 00000000004cf518
Modules linked in:
CR2: ffff8880bfffd000
---[ end trace ff76c8da88e0ae91 ]---
RIP: 0010:do_csum arch/x86/lib/csum-partial_64.c:72 [inline]
RIP: 0010:csum_partial+0x184/0x470 arch/x86/lib/csum-partial_64.c:136
Code: 84 7c 00 00 00 41 ff ce 4c 89 f0 48 c1 e0 06 48 89 44 24 28 45 31 ff 48 8b 6c 24 08 66 2e 0f 1f 84 00 00 00 00 00 4c 03 6d 00 <4c> 13 6d 08 4c 13 6d 10 4c 13 6d 18 4c 13 6d 20 4c 13 6d 28 4c 13
RSP: 0018:ffffc9000203f050 EFLAGS: 00010282
RAX: ffffffff84277631 RBX: 000000001ffffffd RCX: ffff888031b08000
RDX: 0000000000000000 RSI: 0000000003ffffff RDI: 0000000000000000
RBP: ffff8880bfffcff8 R08: ffffffff842775d1 R09: 0000000000000000
R10: ffffed1007067160 R11: 0000000000000000 R12: 00000000ffffffec
R13: ceb3fe5867b5b00e R14: 0000000001e0cee1 R15: 0000000000000000
FS:  00007f6bd4cc4700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff8880bfffd000 CR3: 000000003517b000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/11 05:38 upstream 3dbdb38e2869 8f5a7b8c .config console log report syz C ci-upstream-kasan-gce-smack-root BUG: unable to handle kernel paging request in csum_partial
* Struck through repros no longer work on HEAD.