syzbot


BUG: unable to handle kernel paging request in csum_partial (3)
Status: fixed on 2021/11/10 00:50
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: 314d, last: 279d

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
similar bugs (2):
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 266d 848d 1/2 fixed on 2021/10/21 11:33
upstream BUG: unable to handle kernel paging request in csum_partial (2) 1 483d 483d 0/22 auto-closed as invalid on 2021/04/23 09:26
Patch testing requests:
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

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

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2021/08/15 01:54 upstream ba31f97d43be 8f5a7b8c .config log report syz C
Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2021/07/11 05:38 upstream 3dbdb38e2869 8f5a7b8c .config log report syz C BUG: unable to handle kernel paging request in csum_partial