BUG: unable to handle kernel paging request in do_xdp_generic

7 views
Skip to first unread message

syzbot

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

syzbot found the following crash on:

HEAD commit: b0b02162 Merge 5.4.13 into android-5.4
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=12e58faee00000
kernel config: https://syzkaller.appspot.com/x/.config?x=f6f472a6fc2c3095
dashboard link: https://syzkaller.appspot.com/bug?extid=371e7a4b047428862a6e
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=16b160f1e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12116faee00000

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

netlink: 'syz-executor178': attribute type 1 has an invalid length.
netlink: 'syz-executor178': attribute type 1 has an invalid length.
netlink: 'syz-executor178': attribute type 1 has an invalid length.
netlink: 'syz-executor178': attribute type 1 has an invalid length.
netlink: 'syz-executor178': attribute type 1 has an invalid length.
BUG: unable to handle page fault for address: ffffed1019f0d8ff
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 21fff7067 P4D 21fff7067 PUD 21fff6067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 1890 Comm: syz-executor178 Not tainted 5.4.13-syzkaller-00760-gb0b02162a4b8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:is_multicast_ether_addr_64bits include/linux/etherdevice.h:136 [inline]
RIP: 0010:netif_receive_generic_xdp net/core/dev.c:4294 [inline]
RIP: 0010:do_xdp_generic+0x603/0x1500 net/core/dev.c:4392
Code: 00 00 00 00 fc ff df 42 80 3c 30 00 74 05 e8 c4 a7 96 fe 4c 89 a4 24 d8 00 00 00 4c 89 ac 24 18 01 00 00 4c 89 f8 48 c1 e8 03 <42> 80 3c 30 00 74 08 4c 89 ff e8 fe a6 96 fe 49 8b 37 83 e6 01 31
RSP: 0018:ffff8881d03e7680 EFLAGS: 00010a07
RAX: 1ffff11019f0d8ff RBX: ffff8881d03e7788 RCX: 1ffff1103a07cef1
RDX: ffff8881d47a8bb4 RSI: 0000000000000000 RDI: ffff8881d03e7798
RBP: ffff8881d03e7830 R08: ffffffff82da194b R09: ffffed1039f0b95d
R10: ffffed1039f0b95d R11: 0000000000000000 R12: ffff8880cf85c92a
R13: ffff8881cf85c800 R14: dffffc0000000000 R15: ffff8880cf86c7ff
FS: 00000000020d7880(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed1019f0d8ff CR3: 00000001d0206002 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
tun_get_user+0x2498/0x3cd0 drivers/net/tun.c:1935
tun_chr_write_iter+0x134/0x1c0 drivers/net/tun.c:2022
do_iter_readv_writev+0x5fa/0x890 include/linux/fs.h:1909
do_iter_write+0x180/0x590 fs/read_write.c:973
vfs_writev fs/read_write.c:1018 [inline]
do_writev+0x2cd/0x560 fs/read_write.c:1061
__do_sys_writev fs/read_write.c:1134 [inline]
__se_sys_writev fs/read_write.c:1131 [inline]
__x64_sys_writev+0x7d/0x90 fs/read_write.c:1131
do_syscall_64+0xc0/0x100 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x441bf0
Code: 05 48 3d 01 f0 ff ff 0f 83 fd 0e fc ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 83 3d 41 94 29 00 00 75 14 b8 14 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 d4 0e fc ff c3 48 83 ec 08 e8 7a 2b 00 00
RSP: 002b:00007ffebc042d48 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007ffebc042d80 RCX: 0000000000441bf0
RDX: 0000000000000001 RSI: 00007ffebc042db0 RDI: 00000000000000f0
RBP: 00007ffebc042d70 R08: 0000000000000100 R09: 0000000000000020
R10: 0000000000000020 R11: 0000000000000246 R12: 0000000000000003
R13: 00007ffebc042d60 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: ffffed1019f0d8ff
---[ end trace 64a571727baa6472 ]---
RIP: 0010:is_multicast_ether_addr_64bits include/linux/etherdevice.h:136 [inline]
RIP: 0010:netif_receive_generic_xdp net/core/dev.c:4294 [inline]
RIP: 0010:do_xdp_generic+0x603/0x1500 net/core/dev.c:4392
Code: 00 00 00 00 fc ff df 42 80 3c 30 00 74 05 e8 c4 a7 96 fe 4c 89 a4 24 d8 00 00 00 4c 89 ac 24 18 01 00 00 4c 89 f8 48 c1 e8 03 <42> 80 3c 30 00 74 08 4c 89 ff e8 fe a6 96 fe 49 8b 37 83 e6 01 31
RSP: 0018:ffff8881d03e7680 EFLAGS: 00010a07
RAX: 1ffff11019f0d8ff RBX: ffff8881d03e7788 RCX: 1ffff1103a07cef1
RDX: ffff8881d47a8bb4 RSI: 0000000000000000 RDI: ffff8881d03e7798
RBP: ffff8881d03e7830 R08: ffffffff82da194b R09: ffffed1039f0b95d
R10: ffffed1039f0b95d R11: 0000000000000000 R12: ffff8880cf85c92a
R13: ffff8881cf85c800 R14: dffffc0000000000 R15: ffff8880cf86c7ff
FS: 00000000020d7880(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed1019f0d8ff CR3: 00000001d0206002 CR4: 00000000001606f0
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