syzbot


BUG: unable to handle kernel paging request in do_xdp_generic

Status: fixed on 2021/10/12 13:38
Reported-by: syzbot+371e7a4b047428862a6e@syzkaller.appspotmail.com
Fix commit: 747d5bcb97eb tun: correct header offsets in napi frags mode
First crash: 1773d, last: 1743d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in do_xdp_generic C done done 7444 1667d 1773d 15/28 fixed on 2020/07/17 17:58

Sample crash report:
BUG: unable to handle page fault for address: ffffed101a0e92ff
#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: 1882 Comm: syz-executor057 Not tainted 5.4.19-syzkaller-00486-ga6e4656398da #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 f4 e4 95 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 2e e4 95 fe 49 8b 37 83 e6 01 31
RSP: 0018:ffff8881c58df680 EFLAGS: 00010a07
RAX: 1ffff1101a0e92ff RBX: ffff8881c58df788 RCX: 1ffff11038b1bef1
RDX: ffff8881d06902f4 RSI: 0000000000000000 RDI: ffff8881c58df798
RBP: ffff8881c58df830 R08: ffffffff82db065b R09: ffffed103a0e735d
R10: ffffed103a0e735d R11: 0000000000000000 R12: ffff8880d0739966
R13: ffff8881d0739800 R14: dffffc0000000000 R15: ffff8880d07497ff
FS:  0000000002041880(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed101a0e92ff CR3: 00000001d0ee8003 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tun_get_user+0x2498/0x3d10 drivers/net/tun.c:1935
 tun_chr_write_iter+0x134/0x1c0 drivers/net/tun.c:2026
 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:0x4418c0
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 51 97 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:00007ffd0caa3998 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007ffd0caa39b0 RCX: 00000000004418c0
RDX: 0000000000000001 RSI: 00007ffd0caa39e0 RDI: 00000000000000f0
RBP: 0000000000000003 R08: 00000000bb1414ac R09: 00000000bb1414ac
R10: 00000000bb1414ac R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000402cb0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: ffffed101a0e92ff
---[ end trace 9ae3538e7c2cc39c ]---
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 f4 e4 95 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 2e e4 95 fe 49 8b 37 83 e6 01 31
RSP: 0018:ffff8881c58df680 EFLAGS: 00010a07
RAX: 1ffff1101a0e92ff RBX: ffff8881c58df788 RCX: 1ffff11038b1bef1
RDX: ffff8881d06902f4 RSI: 0000000000000000 RDI: ffff8881c58df798
RBP: ffff8881c58df830 R08: ffffffff82db065b R09: ffffed103a0e735d
R10: ffffed103a0e735d R11: 0000000000000000 R12: ffff8880d0739966
R13: ffff8881d0739800 R14: dffffc0000000000 R15: ffff8880d07497ff
FS:  0000000002041880(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed101a0e92ff CR3: 00000001d0ee8003 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (189):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/13 22:23 https://android.googlesource.com/kernel/common android-5.4 a6e4656398da e6247653 .config console log report syz C ci2-android-5-4-kasan
2020/02/13 21:48 https://android.googlesource.com/kernel/common android-5.4 a6e4656398da e6247653 .config console log report syz C ci2-android-5-4-kasan
2020/02/09 10:56 https://android.googlesource.com/kernel/common android-5.4 9204f620c2a9 6ece2ea5 .config console log report syz C ci2-android-5-4-kasan
2020/02/05 14:45 https://android.googlesource.com/kernel/common android-5.4 550c85b1ec3e 662cf49a .config console log report syz C ci2-android-5-4-kasan
2020/02/03 11:35 https://android.googlesource.com/kernel/common android-5.4 83003512ab3b 93e5e335 .config console log report syz C ci2-android-5-4-kasan
2020/01/30 13:27 https://android.googlesource.com/kernel/common android-5.4 cac5f7901828 5ed23f9a .config console log report syz C ci2-android-5-4-kasan
2020/01/28 01:28 https://android.googlesource.com/kernel/common android-5.4 b2b96d09ef40 56cd6c9b .config console log report syz C ci2-android-5-4-kasan
2020/01/20 12:01 https://android.googlesource.com/kernel/common android-5.4 b0b02162a4b8 c40da18c .config console log report syz C ci2-android-5-4-kasan
2020/01/20 07:37 https://android.googlesource.com/kernel/common android-5.4 b0b02162a4b8 0342f8c7 .config console log report syz C ci2-android-5-4-kasan
2020/01/20 01:08 https://android.googlesource.com/kernel/common android-5.4 b0b02162a4b8 0342f8c7 .config console log report syz C ci2-android-5-4-kasan
2020/01/20 00:01 https://android.googlesource.com/kernel/common android-5.4 b0b02162a4b8 0342f8c7 .config console log report syz C ci2-android-5-4-kasan
2020/01/19 14:30 https://android.googlesource.com/kernel/common android-5.4 b0b02162a4b8 bc8bc756 .config console log report syz C ci2-android-5-4-kasan
2020/01/19 11:36 https://android.googlesource.com/kernel/common android-5.4 b0b02162a4b8 bc8bc756 .config console log report syz C ci2-android-5-4-kasan
2020/01/19 11:05 https://android.googlesource.com/kernel/common android-5.4 b0b02162a4b8 bc8bc756 .config console log report syz C ci2-android-5-4-kasan
2020/01/19 10:35 https://android.googlesource.com/kernel/common android-5.4 b0b02162a4b8 bc8bc756 .config console log report syz C ci2-android-5-4-kasan
2020/02/18 11:52 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 1ce142dc .config console log report ci2-android-5-4-kasan
2020/02/18 06:44 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 1ce142dc .config console log report ci2-android-5-4-kasan
2020/02/18 04:58 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 1ce142dc .config console log report ci2-android-5-4-kasan
2020/02/18 00:20 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 72bfa6f2 .config console log report ci2-android-5-4-kasan
2020/02/17 23:17 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 72bfa6f2 .config console log report ci2-android-5-4-kasan
2020/02/17 16:51 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 72bfa6f2 .config console log report ci2-android-5-4-kasan
2020/02/17 12:50 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 72bfa6f2 .config console log report ci2-android-5-4-kasan
2020/02/17 12:26 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 72bfa6f2 .config console log report ci2-android-5-4-kasan
2020/02/17 06:56 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 1f448cd6 .config console log report ci2-android-5-4-kasan
2020/02/17 00:24 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 1f448cd6 .config console log report ci2-android-5-4-kasan
2020/02/16 20:53 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 cf914200 .config console log report ci2-android-5-4-kasan
2020/02/16 19:23 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 cf914200 .config console log report ci2-android-5-4-kasan
2020/02/16 14:32 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 cf914200 .config console log report ci2-android-5-4-kasan
2020/02/16 10:46 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 cf914200 .config console log report ci2-android-5-4-kasan
2020/02/16 09:30 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 5d7b90f1 .config console log report ci2-android-5-4-kasan
2020/02/16 08:21 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 5d7b90f1 .config console log report ci2-android-5-4-kasan
2020/02/16 03:49 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 5d7b90f1 .config console log report ci2-android-5-4-kasan
2020/02/15 20:05 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 5d7b90f1 .config console log report ci2-android-5-4-kasan
2020/02/15 18:25 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 5d7b90f1 .config console log report ci2-android-5-4-kasan
2020/02/15 16:35 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 5d7b90f1 .config console log report ci2-android-5-4-kasan
2020/02/15 15:50 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 5d7b90f1 .config console log report ci2-android-5-4-kasan
2020/02/15 11:11 https://android.googlesource.com/kernel/common android-5.4 f0212822faa9 5d7b90f1 .config console log report ci2-android-5-4-kasan
2020/02/15 06:26 https://android.googlesource.com/kernel/common android-5.4 f7d5a6d230b5 5d7b90f1 .config console log report ci2-android-5-4-kasan
2020/02/14 19:19 https://android.googlesource.com/kernel/common android-5.4 f7d5a6d230b5 5d7b90f1 .config console log report ci2-android-5-4-kasan
2020/02/14 14:20 https://android.googlesource.com/kernel/common android-5.4 6387e43186c9 5d7b90f1 .config console log report ci2-android-5-4-kasan
2020/02/14 09:16 https://android.googlesource.com/kernel/common android-5.4 6387e43186c9 5d7b90f1 .config console log report ci2-android-5-4-kasan
2020/02/14 00:00 https://android.googlesource.com/kernel/common android-5.4 a6e4656398da e6247653 .config console log report ci2-android-5-4-kasan
2020/02/13 20:21 https://android.googlesource.com/kernel/common android-5.4 a6e4656398da e6247653 .config console log report ci2-android-5-4-kasan
2020/02/13 12:51 https://android.googlesource.com/kernel/common android-5.4 a6e4656398da e6247653 .config console log report ci2-android-5-4-kasan
2020/02/13 06:57 https://android.googlesource.com/kernel/common android-5.4 a6e4656398da 84f4fc8a .config console log report ci2-android-5-4-kasan
2020/02/12 17:58 https://android.googlesource.com/kernel/common android-5.4 eefb13c9f286 84f4fc8a .config console log report ci2-android-5-4-kasan
2020/02/12 15:35 https://android.googlesource.com/kernel/common android-5.4 ecf5064346c1 a75b198c .config console log report ci2-android-5-4-kasan
2020/02/12 11:43 https://android.googlesource.com/kernel/common android-5.4 ecf5064346c1 a75b198c .config console log report ci2-android-5-4-kasan
2020/02/12 10:28 https://android.googlesource.com/kernel/common android-5.4 ecf5064346c1 a75b198c .config console log report ci2-android-5-4-kasan
2020/02/12 05:49 https://android.googlesource.com/kernel/common android-5.4 ecf5064346c1 a75b198c .config console log report ci2-android-5-4-kasan
2020/02/11 22:50 https://android.googlesource.com/kernel/common android-5.4 b84184d5fe84 4d1ab643 .config console log report ci2-android-5-4-kasan
2020/02/11 17:13 https://android.googlesource.com/kernel/common android-5.4 0dba8e724663 4d1ab643 .config console log report ci2-android-5-4-kasan
2020/02/11 07:31 https://android.googlesource.com/kernel/common android-5.4 0dba8e724663 084454ae .config console log report ci2-android-5-4-kasan
2020/02/10 19:01 https://android.googlesource.com/kernel/common android-5.4 9204f620c2a9 d9e55b05 .config console log report ci2-android-5-4-kasan
2020/02/10 16:56 https://android.googlesource.com/kernel/common android-5.4 9204f620c2a9 18847f55 .config console log report ci2-android-5-4-kasan
2020/02/10 14:58 https://android.googlesource.com/kernel/common android-5.4 9204f620c2a9 35f5e45e .config console log report ci2-android-5-4-kasan
2020/02/10 11:59 https://android.googlesource.com/kernel/common android-5.4 9204f620c2a9 35f5e45e .config console log report ci2-android-5-4-kasan
2020/02/10 10:57 https://android.googlesource.com/kernel/common android-5.4 9204f620c2a9 35f5e45e .config console log report ci2-android-5-4-kasan
2020/02/10 09:16 https://android.googlesource.com/kernel/common android-5.4 9204f620c2a9 35f5e45e .config console log report ci2-android-5-4-kasan
2020/02/10 07:20 https://android.googlesource.com/kernel/common android-5.4 9204f620c2a9 35f5e45e .config console log report ci2-android-5-4-kasan
2020/02/10 00:08 https://android.googlesource.com/kernel/common android-5.4 9204f620c2a9 35f5e45e .config console log report ci2-android-5-4-kasan
2020/02/09 22:18 https://android.googlesource.com/kernel/common android-5.4 9204f620c2a9 35f5e45e .config console log report ci2-android-5-4-kasan
* Struck through repros no longer work on HEAD.