syzbot


BUG: unable to handle kernel paging request in csum_partial

Status: fixed on 2021/10/21 11:33
Reported-by: syzbot+445c236b4da0361852f1@syzkaller.appspotmail.com
Fix commit: 53b480e68c1c ip_gre: add validation for csum_start
First crash: 1553d, last: 971d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in csum_partial (4) net 12 277d 335d 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 1188d 1188d 0/26 auto-closed as invalid on 2021/04/23 09:26
upstream BUG: unable to handle kernel paging request in csum_partial (3) kernel C done 1 984d 1015d 20/26 fixed on 2021/11/10 00:50

Sample crash report:
BUG: unable to handle page fault for address: ffff888240000000
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 6801067 P4D 6801067 PUD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 375 Comm: syz-executor116 Not tainted 5.4.86-syzkaller-00678-ge627b02af655 #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+0x194/0x470 arch/x86/lib/csum-partial_64.c:136
Code: 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 6d 30 4c 13 6d 38 4d 11 fd 45 85 f6 74 0e 48 83
RSP: 0018:ffff8881e7d57188 EFLAGS: 00010216
RAX: ffffffff843fd271 RBX: 000000001ffffffd RCX: ffff8881e8532e80
RDX: 0000000000000000 RSI: 0000000003ffffff RDI: 0000000000000000
RBP: ffff88823fffffd8 R08: ffffffff843fd211 R09: 0000000000000000
R10: ffffed103cf9b3a0 R11: 0000000000000000 R12: 00000000ffffffec
R13: 7ed2a7b964b859a6 R14: 00000000029f3671 R15: 0000000000000000
FS:  00007f1f770dd700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff888240000000 CR3: 00000001eaa28000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lco_csum include/linux/skbuff.h:4542 [inline]
 gre_checksum include/net/gre.h:114 [inline]
 gre_build_header+0x477/0x780 include/net/gre.h:149
 __gre_xmit net/ipv4/ip_gre.c:440 [inline]
 ipgre_xmit+0x6c8/0xa00 net/ipv4/ip_gre.c:626
 __netdev_start_xmit include/linux/netdevice.h:4469 [inline]
 netdev_start_xmit include/linux/netdevice.h:4483 [inline]
 xmit_one+0x239/0x480 net/core/dev.c:3203
 dev_hard_start_xmit net/core/dev.c:3219 [inline]
 __dev_queue_xmit+0x1935/0x2700 net/core/dev.c:3778
 packet_snd net/packet/af_packet.c:2988 [inline]
 packet_sendmsg+0x4d2f/0x6780 net/packet/af_packet.c:3013
 sock_sendmsg_nosec net/socket.c:638 [inline]
 sock_sendmsg net/socket.c:658 [inline]
 kernel_sendmsg+0xe2/0x120 net/socket.c:678
 sock_no_sendpage+0x144/0x1b0 net/core/sock.c:2763
 kernel_sendpage net/socket.c:3764 [inline]
 sock_sendpage+0xd0/0x120 net/socket.c:936
 pipe_to_sendpage+0x23b/0x300 fs/splice.c:449
 splice_from_pipe_feed fs/splice.c:500 [inline]
 __splice_from_pipe+0x2d3/0x870 fs/splice.c:624
 splice_from_pipe fs/splice.c:659 [inline]
 generic_splice_sendpage+0x181/0x210 fs/splice.c:829
 do_splice_from fs/splice.c:848 [inline]
 do_splice fs/splice.c:1156 [inline]
 __do_sys_splice fs/splice.c:1433 [inline]
 __se_sys_splice+0x7e8/0x1b70 fs/splice.c:1413
 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x448db9
Code: e8 ac 12 03 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0f 83 1b 0c fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f1f770dcd88 EFLAGS: 00000246 ORIG_RAX: 0000000000000113
RAX: ffffffffffffffda RBX: 00000000006dec78 RCX: 0000000000448db9
RDX: 0000000000000006 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00000000006dec70 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dec7c
R13: 00316c6e747a7973 R14: 0000000000000000 R15: 0000000030657267
Modules linked in:
CR2: ffff888240000000
---[ end trace 216d5a5eec8f0811 ]---
RIP: 0010:do_csum arch/x86/lib/csum-partial_64.c:72 [inline]
RIP: 0010:csum_partial+0x194/0x470 arch/x86/lib/csum-partial_64.c:136
Code: 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 6d 30 4c 13 6d 38 4d 11 fd 45 85 f6 74 0e 48 83
RSP: 0018:ffff8881e7d57188 EFLAGS: 00010216
RAX: ffffffff843fd271 RBX: 000000001ffffffd RCX: ffff8881e8532e80
RDX: 0000000000000000 RSI: 0000000003ffffff RDI: 0000000000000000
RBP: ffff88823fffffd8 R08: ffffffff843fd211 R09: 0000000000000000
R10: ffffed103cf9b3a0 R11: 0000000000000000 R12: 00000000ffffffec
R13: 7ed2a7b964b859a6 R14: 00000000029f3671 R15: 0000000000000000
FS:  00007f1f770dd700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff888240000000 CR3: 00000001eaa28000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/04 07:28 android12-5.4 e627b02af655 79264ae3 .config console log report syz C ci2-android-5-4-kasan
2020/01/24 10:04 https://android.googlesource.com/kernel/common android-5.4 020b443d5560 2e95ab33 .config console log report syz C ci2-android-5-4-kasan
2021/08/27 18:32 android12-5.4 f4bf8b65e48f 57b01c6e .config console log report info ci2-android-5-4-kasan BUG: unable to handle kernel paging request in csum_partial
2021/05/29 16:08 android12-5.4 3e256ddba1ff 325a8dab .config console log report info ci2-android-5-4-kasan BUG: unable to handle kernel paging request in csum_partial
2021/03/23 15:38 android12-5.4 c50ff8e5608b e613994b .config console log report info ci2-android-5-4-kasan BUG: unable to handle kernel paging request in csum_partial
* Struck through repros no longer work on HEAD.