general protection fault in bpf_skb_cgroup_id

7 views
Skip to first unread message

syzbot

unread,
Jan 11, 2020, 7:22:09 AM1/11/20
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: f5f770e4 ANDROID: Kconfig.gki: Add QCOM_SCM to QCOM Hidden..
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=11dd5876e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=91fe4507c5782603
dashboard link: https://syzkaller.appspot.com/bug?extid=398df33fae6ec4a049c5
compiler: Android (6032204 based on r370808) clang version 10.0.1
(https://android.googlesource.com/toolchain/llvm-project
6e765c10313d15c02ab29977a82938f66742c3a9)

Unfortunately, I don't have any reproducer for this crash yet.

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

kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 22196 Comm: syz-executor.0 Not tainted
5.4.10-syzkaller-00217-gf5f770e495ba #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:____bpf_skb_cgroup_id net/core/filter.c:4092 [inline]
RIP: 0010:bpf_skb_cgroup_id+0x110/0x190 net/core/filter.c:4083
Code: c7 90 02 00 00 4c 89 f8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8
4f 92 8d fe bb 20 01 00 00 49 03 1f 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00
74 08 48 89 df e8 31 92 8d fe 48 8b 1b 48 83 c3 68
RSP: 0018:ffff8881d54076b8 EFLAGS: 00010206
RAX: 0000000000000024 RBX: 0000000000000120 RCX: 0000000000040000
RDX: ffffc90002bb1000 RSI: 00000000000000f8 RDI: 00000000000000f9
RBP: ffff8881d54076d8 R08: ffffffff82e2f187 R09: fffffbfff0933d6d
R10: fffffbfff0933d6d R11: 0000000000000000 R12: dffffc0000000000
R13: fffffec4ed37e662 R14: ffff8881c7840012 R15: ffff8881c7840290
FS: 00007f6b62dda700(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001cefcb003 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
bpf_prog_f6df238ac16548fe+0xdb1/0x1000
bpf_call_func include/linux/filter.h:608 [inline]
bpf_test_run+0x2c0/0x6a0 net/bpf/test_run.c:44
bpf_prog_test_run_skb+0x7a6/0x10e0 net/bpf/test_run.c:310
bpf_prog_test_run kernel/bpf/syscall.c:2120 [inline]
__do_sys_bpf+0x31e8/0xbbc0 kernel/bpf/syscall.c:2896
__se_sys_bpf kernel/bpf/syscall.c:2837 [inline]
__x64_sys_bpf+0x7a/0x90 kernel/bpf/syscall.c:2837
do_syscall_64+0xc0/0x100 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45af49
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f6b62dd9c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045af49
RDX: 0000000000000028 RSI: 00000000200001c0 RDI: 000000000000000a
RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6b62dda6d4
R13: 00000000004c15ad R14: 00000000004d6420 R15: 00000000ffffffff
Modules linked in:
---[ end trace 6538aefb3c7c5ad7 ]---
RIP: 0010:____bpf_skb_cgroup_id net/core/filter.c:4092 [inline]
RIP: 0010:bpf_skb_cgroup_id+0x110/0x190 net/core/filter.c:4083
Code: c7 90 02 00 00 4c 89 f8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8
4f 92 8d fe bb 20 01 00 00 49 03 1f 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00
74 08 48 89 df e8 31 92 8d fe 48 8b 1b 48 83 c3 68
RSP: 0018:ffff8881d54076b8 EFLAGS: 00010206
RAX: 0000000000000024 RBX: 0000000000000120 RCX: 0000000000040000
RDX: ffffc90002bb1000 RSI: 00000000000000f8 RDI: 00000000000000f9
RBP: ffff8881d54076d8 R08: ffffffff82e2f187 R09: fffffbfff0933d6d
R10: fffffbfff0933d6d R11: 0000000000000000 R12: dffffc0000000000
R13: fffffec4ed37e662 R14: ffff8881c7840012 R15: ffff8881c7840290
FS: 00007f6b62dda700(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001cefcb003 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600


---
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

unread,
Jan 11, 2020, 7:47:10 AM1/11/20
to syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: f5f770e4 ANDROID: Kconfig.gki: Add QCOM_SCM to QCOM Hidden..
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=17505021e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=91fe4507c5782603
dashboard link: https://syzkaller.appspot.com/bug?extid=398df33fae6ec4a049c5
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=14982515e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17d251b9e00000

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

kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 1890 Comm: syz-executor389 Not tainted
5.4.10-syzkaller-00217-gf5f770e495ba #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:____bpf_skb_cgroup_id net/core/filter.c:4092 [inline]
RIP: 0010:bpf_skb_cgroup_id+0x110/0x190 net/core/filter.c:4083
Code: c7 90 02 00 00 4c 89 f8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8
4f 92 8d fe bb 20 01 00 00 49 03 1f 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00
74 08 48 89 df e8 31 92 8d fe 48 8b 1b 48 83 c3 68
RSP: 0018:ffff8881cf98f6b8 EFLAGS: 00010206
RAX: 0000000000000024 RBX: 0000000000000120 RCX: ffff8881d36b6740
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 0000000000000000
RBP: ffff8881cf98f6d8 R08: ffffffff82e2f187 R09: fffffbfff0933d6d
R10: fffffbfff0933d6d R11: 0000000000000000 R12: dffffc0000000000
R13: fffffff94124f58f R14: ffff8881cf9ca812 R15: ffff8881cf9caa90
FS: 0000000002259880(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000d000 CR3: 00000001d18d6006 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
bpf_prog_f6df238ac16548fe+0xd87/0x1000
bpf_call_func include/linux/filter.h:608 [inline]
bpf_test_run+0x2c0/0x6a0 net/bpf/test_run.c:44
bpf_prog_test_run_skb+0x7a6/0x10e0 net/bpf/test_run.c:310
bpf_prog_test_run kernel/bpf/syscall.c:2120 [inline]
__do_sys_bpf+0x31e8/0xbbc0 kernel/bpf/syscall.c:2896
__se_sys_bpf kernel/bpf/syscall.c:2837 [inline]
__x64_sys_bpf+0x7a/0x90 kernel/bpf/syscall.c:2837
do_syscall_64+0xc0/0x100 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x440389
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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fff71cee9e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440389
RDX: 0000000000000028 RSI: 00000000200001c0 RDI: 000000000000000a
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401c10
R13: 0000000000401ca0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 45fb37da91055827 ]---
RIP: 0010:____bpf_skb_cgroup_id net/core/filter.c:4092 [inline]
RIP: 0010:bpf_skb_cgroup_id+0x110/0x190 net/core/filter.c:4083
Code: c7 90 02 00 00 4c 89 f8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8
4f 92 8d fe bb 20 01 00 00 49 03 1f 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00
74 08 48 89 df e8 31 92 8d fe 48 8b 1b 48 83 c3 68
RSP: 0018:ffff8881cf98f6b8 EFLAGS: 00010206
RAX: 0000000000000024 RBX: 0000000000000120 RCX: ffff8881d36b6740
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 0000000000000000
RBP: ffff8881cf98f6d8 R08: ffffffff82e2f187 R09: fffffbfff0933d6d
R10: fffffbfff0933d6d R11: 0000000000000000 R12: dffffc0000000000
R13: fffffff94124f58f R14: ffff8881cf9ca812 R15: ffff8881cf9caa90
FS: 0000000002259880(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000d000 CR3: 00000001d18d6006 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Reply all
Reply to author
Forward
0 new messages