syzbot


general protection fault in xsk_is_setup_for_bpf_map

Status: fixed on 2020/11/16 12:12
Subsystems: bpf net
[Documentation on labels]
Reported-by: syzbot+febe51d44243fbc564ee@syzkaller.appspotmail.com
Fix commit: 968be23ceaca xsk: Fix possible segfault at xskmap entry insertion
First crash: 1325d, last: 1302d
Cause bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH bpf-next] xsk: fix possible segfault at xskmap entry insertion 2 (2) 2020/09/02 14:58
general protection fault in xsk_is_setup_for_bpf_map 0 (1) 2020/09/02 07:27

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000020: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000100-0x0000000000000107]
CPU: 1 PID: 8180 Comm: syz-executor241 Not tainted 5.9.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:xsk_is_setup_for_bpf_map+0xbd/0x140 net/xdp/xsk.c:39
Code: 80 3c 02 00 0f 85 8b 00 00 00 4c 8b a3 e8 04 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d bc 24 00 01 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 6f 49 83 bc 24 00 01 00 00 00 74 12 41 bc 01 00 00
RSP: 0018:ffffc90005787c30 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff88808880f000 RCX: ffffffff87effd24
RDX: 0000000000000020 RSI: ffffffff87efc58b RDI: 0000000000000100
RBP: 0000000000000000 R08: 0000000000000001 R09: ffff888094f6ea00
R10: 000000000000002c R11: 0000000000000000 R12: 0000000000000000
R13: ffff888082808a80 R14: ffff88808880f000 R15: 000000000000002c
FS:  0000000000767940(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000077fffb CR3: 00000000a939a000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 xsk_map_update_elem+0x1bc/0x9d0 net/xdp/xskmap.c:188
 bpf_map_update_value.isra.0+0x715/0x900 kernel/bpf/syscall.c:200
 map_update_elem kernel/bpf/syscall.c:1120 [inline]
 __do_sys_bpf+0x320b/0x4b30 kernel/bpf/syscall.c:4186
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x44c4f9
Code: e8 1c e6 ff ff 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 3b 04 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc6d766ac8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000044c4f9
RDX: 000000000000002c RSI: 0000000020003000 RDI: 0000000000000002
RBP: 0000000000000000 R08: fffffffffffffff5 R09: fffffffffffffff5
R10: fffffffffffffff5 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 6b3dd16ce201e2fa ]---
RIP: 0010:xsk_is_setup_for_bpf_map+0xbd/0x140 net/xdp/xsk.c:39
Code: 80 3c 02 00 0f 85 8b 00 00 00 4c 8b a3 e8 04 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d bc 24 00 01 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 6f 49 83 bc 24 00 01 00 00 00 74 12 41 bc 01 00 00
RSP: 0018:ffffc90005787c30 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff88808880f000 RCX: ffffffff87effd24
RDX: 0000000000000020 RSI: ffffffff87efc58b RDI: 0000000000000100
RBP: 0000000000000000 R08: 0000000000000001 R09: ffff888094f6ea00
R10: 000000000000002c R11: 0000000000000000 R12: 0000000000000000
R13: ffff888082808a80 R14: ffff88808880f000 R15: 000000000000002c
FS:  0000000000767940(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000077fffb CR3: 00000000a939a000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (294):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/02 00:34 net-next-old dc1a9bf2c816 abf9ba4f .config console log report syz C ci-upstream-net-kasan-gce
2020/09/24 22:06 net-next-old 1a26e88d534b 54289b08 .config console log report info ci-upstream-net-kasan-gce
2020/09/24 14:05 net-next-old 1a26e88d534b 54289b08 .config console log report info ci-upstream-net-kasan-gce
2020/09/24 00:10 net-next-old 748d1c8a425e 287cd75a .config console log report info ci-upstream-net-kasan-gce
2020/09/23 11:57 net-next-old 748d1c8a425e 287cd75a .config console log report info ci-upstream-net-kasan-gce
2020/09/21 19:35 net-next-old 3cec0369905d 9e1fa68e .config console log report info ci-upstream-net-kasan-gce
2020/09/20 17:57 net-next-old dd92f1798981 9564d2e9 .config console log report info ci-upstream-net-kasan-gce
2020/09/18 19:54 net-next-old 1d39cd8cf75f 53ce8104 .config console log report info ci-upstream-net-kasan-gce
2020/09/17 23:28 net-next-old b948577b984a 8247808b .config console log report info ci-upstream-net-kasan-gce
2020/09/16 09:43 net-next-old 0f9ad4e75944 18d7d030 .config console log report info ci-upstream-net-kasan-gce
2020/09/14 10:48 net-next-old 068b62148255 2d3cdd63 .config console log report ci-upstream-net-kasan-gce
2020/09/14 06:35 net-next-old 068b62148255 2d3cdd63 .config console log report ci-upstream-net-kasan-gce
2020/09/14 05:34 net-next-old 068b62148255 2d3cdd63 .config console log report ci-upstream-net-kasan-gce
2020/09/14 03:35 net-next-old 068b62148255 2d3cdd63 .config console log report ci-upstream-net-kasan-gce
2020/09/13 01:29 net-next-old 5a6bd84f8154 ce441f06 .config console log report ci-upstream-net-kasan-gce
2020/09/11 06:13 net-next-old 4f6a5caf187f 409809d8 .config console log report ci-upstream-net-kasan-gce
2020/09/11 05:12 net-next-old 4f6a5caf187f 409809d8 .config console log report ci-upstream-net-kasan-gce
2020/09/11 03:57 net-next-old 4f6a5caf187f 409809d8 .config console log report ci-upstream-net-kasan-gce
2020/09/10 22:31 net-next-old 4f6a5caf187f 409809d8 .config console log report ci-upstream-net-kasan-gce
2020/09/10 22:17 net-next-old 4f6a5caf187f 409809d8 .config console log report ci-upstream-net-kasan-gce
2020/09/10 18:29 net-next-old 4f6a5caf187f 409809d8 .config console log report ci-upstream-net-kasan-gce
2020/09/10 17:18 net-next-old 4f6a5caf187f 409809d8 .config console log report ci-upstream-net-kasan-gce
2020/09/10 12:42 net-next-old b599a5b9e166 409809d8 .config console log report ci-upstream-net-kasan-gce
2020/09/10 08:11 net-next-old b599a5b9e166 409809d8 .config console log report ci-upstream-net-kasan-gce
2020/09/10 05:04 net-next-old b599a5b9e166 409809d8 .config console log report ci-upstream-net-kasan-gce
2020/09/09 19:05 net-next-old f5499c67477e 0ea7a887 .config console log report ci-upstream-net-kasan-gce
2020/09/09 18:47 net-next-old f5499c67477e 0ea7a887 .config console log report ci-upstream-net-kasan-gce
2020/09/09 15:43 net-next-old f5499c67477e 0ea7a887 .config console log report ci-upstream-net-kasan-gce
2020/09/09 12:32 net-next-old f5499c67477e 0ea7a887 .config console log report ci-upstream-net-kasan-gce
2020/09/09 07:23 net-next-old c1f1f16c4de4 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/09 05:18 net-next-old c1f1f16c4de4 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/09 05:12 net-next-old c1f1f16c4de4 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/09 02:43 net-next-old 4349abdb409b abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/08 21:01 net-next-old 4349abdb409b abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/08 19:28 net-next-old 4349abdb409b abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/08 19:27 net-next-old 4349abdb409b abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/08 17:28 net-next-old 4349abdb409b abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/08 16:23 net-next-old 4349abdb409b abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/08 14:29 net-next-old 4349abdb409b abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/08 01:02 net-next-old bb1416adb8a0 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/07 17:36 net-next-old 02a20d4fef3d abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/07 10:48 net-next-old 02a20d4fef3d abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/07 10:41 net-next-old 02a20d4fef3d abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/07 09:32 net-next-old 02a20d4fef3d abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/07 04:21 net-next-old 02a20d4fef3d abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/07 00:50 net-next-old be239c4d5e3e abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/06 23:50 net-next-old be239c4d5e3e abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/06 22:44 net-next-old be239c4d5e3e abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/01 23:15 net-next-old dc1a9bf2c816 abf9ba4f .config console log report ci-upstream-net-kasan-gce
2020/09/02 19:03 linux-next 4442749a2031 abf9ba4f .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.