BUG: unable to handle kernel paging request in csum_partial

28 views
Skip to first unread message

syzbot

unread,
Jan 24, 2020, 5:05:09 AM1/24/20
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 020b443d Revert "ANDROID: security,perf: Allow further res..
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=158cd479e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=3dbeba0f10afef01
dashboard link: https://syzkaller.appspot.com/bug?extid=445c236b4da0361852f1
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1072f721e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10afc5c9e00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+445c23...@syzkaller.appspotmail.com

BUG: unable to handle page fault for address: ffff888220000000
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 5201067 P4D 5201067 PUD 5204067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 1882 Comm: syz-executor339 Not tainted 5.4.14-syzkaller-01010-g020b443d5560 #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/0x460 arch/x86/lib/csum-partial_64.c:136
Code: 45 31 e4 4c 89 6d c8 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 4d 03 75 00 4d 13 75 08 4d 13 75 10 4d 13 75 18 4d 13 75 20 <4d> 13 75 28 4d 13 75 30 4d 13 75 38 4d 11 e6 85 db 74 0d 49 83 c5
RSP: 0018:ffff8881dbb094c0 EFLAGS: 00010202
RAX: ffffffff83845b60 RBX: 0000000002be1e7f RCX: ffff8881d2910000
RDX: 0000000000000101 RSI: 0000000003fffffd RDI: 0000000000000000
RBP: ffff8881dbb09518 R08: ffffffff83845b05 R09: ffff8881ceea7554
R10: fffff94000e58e47 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88821fffffd8 R14: 3fe182ddebd2c24a R15: 000000001fffffed
FS: 000000000220d880(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff888220000000 CR3: 00000001d4c10003 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
gso_make_checksum include/linux/skbuff.h:4384 [inline]
__udp_gso_segment+0x731/0x12c0 net/ipv4/udp_offload.c:252
udp4_ufo_fragment+0x4b4/0x800 net/ipv4/udp_offload.c:311
inet_gso_segment+0x5da/0x1320 net/ipv4/af_inet.c:1352
skb_mac_gso_segment+0x290/0x490 net/core/dev.c:2956
__skb_gso_segment+0x343/0x640 net/core/dev.c:3029
udp_rcv_segment include/net/udp.h:482 [inline]
udp_queue_rcv_skb+0x241/0x6a0 net/ipv4/udp.c:2106
__udp4_lib_mcast_deliver net/ipv4/udp.c:2193 [inline]
__udp4_lib_rcv+0x2c18/0x2cd0 net/ipv4/udp.c:2323
udp_rcv+0x21/0x30 net/ipv4/udp.c:2498
ip_protocol_deliver_rcu+0x2c2/0x620 net/ipv4/ip_input.c:204
ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline]
NF_HOOK include/linux/netfilter.h:305 [inline]
ip_local_deliver+0x407/0x5a0 net/ipv4/ip_input.c:252
dst_input include/net/dst.h:442 [inline]
ip_rcv_finish net/ipv4/ip_input.c:413 [inline]
NF_HOOK include/linux/netfilter.h:305 [inline]
ip_rcv+0x285/0x310 net/ipv4/ip_input.c:523
__netif_receive_skb_one_core net/core/dev.c:4929 [inline]
__netif_receive_skb net/core/dev.c:5043 [inline]
process_backlog+0x50a/0xb00 net/core/dev.c:5874
napi_poll net/core/dev.c:6311 [inline]
net_rx_action+0x52c/0x1100 net/core/dev.c:6379
__do_softirq+0x235/0x57e kernel/softirq.c:292
do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1082
</IRQ>
do_softirq+0xe2/0x130 kernel/softirq.c:337
netif_rx_ni+0x1b9/0x3e0 net/core/dev.c:4487
dev_loopback_xmit+0x3ee/0x540 net/core/dev.c:3507
ip_mc_finish_output+0x1e1/0x3f0 net/ipv4/ip_output.c:357
NF_HOOK include/linux/netfilter.h:305 [inline]
ip_mc_output+0x385/0x9b0 net/ipv4/ip_output.c:396
dst_output include/net/dst.h:436 [inline]
ip_local_out+0x3af/0x510 net/ipv4/ip_output.c:125
ip_send_skb+0x46/0xe0 net/ipv4/ip_output.c:1562
udp_send_skb+0x9aa/0x1340 net/ipv4/udp.c:891
udp_sendmsg+0x1d63/0x2f20 net/ipv4/udp.c:1178
udpv6_sendmsg+0xa62/0x3830 net/ipv6/udp.c:1284
inet6_sendmsg+0xa1/0xc0 net/ipv6/af_inet6.c:578
sock_sendmsg_nosec net/socket.c:638 [inline]
sock_sendmsg net/socket.c:658 [inline]
__sys_sendto+0x4ad/0x680 net/socket.c:1953
__do_sys_sendto net/socket.c:1965 [inline]
__se_sys_sendto net/socket.c:1961 [inline]
__x64_sys_sendto+0xe5/0x100 net/socket.c:1961
do_syscall_64+0xc0/0x100 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4426a9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 7b 10 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc004b6a38 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004426a9
RDX: 0000000000000401 RSI: 0000000020000600 RDI: 0000000000000003
RBP: 00007ffc004b6a60 R08: 00000000200011c0 R09: 000000000000001c
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000403c40 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: ffff888220000000
---[ end trace 8bed4b10a068ece3 ]---
RIP: 0010:do_csum arch/x86/lib/csum-partial_64.c:72 [inline]
RIP: 0010:csum_partial+0x184/0x460 arch/x86/lib/csum-partial_64.c:136
Code: 45 31 e4 4c 89 6d c8 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 4d 03 75 00 4d 13 75 08 4d 13 75 10 4d 13 75 18 4d 13 75 20 <4d> 13 75 28 4d 13 75 30 4d 13 75 38 4d 11 e6 85 db 74 0d 49 83 c5
RSP: 0018:ffff8881dbb094c0 EFLAGS: 00010202
RAX: ffffffff83845b60 RBX: 0000000002be1e7f RCX: ffff8881d2910000
RDX: 0000000000000101 RSI: 0000000003fffffd RDI: 0000000000000000
RBP: ffff8881dbb09518 R08: ffffffff83845b05 R09: ffff8881ceea7554
R10: fffff94000e58e47 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88821fffffd8 R14: 3fe182ddebd2c24a R15: 000000001fffffed
FS: 000000000220d880(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff888220000000 CR3: 00000001d4c10003 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages