general protection fault in xdp_del_sk_umem

5 views
Skip to first unread message

syzbot

unread,
Aug 7, 2020, 8:49:17 AM8/7/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 961f830a Linux 4.19.138
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15b8fa94900000
kernel config: https://syzkaller.appspot.com/x/.config?x=b89fed56745db52a
dashboard link: https://syzkaller.appspot.com/bug?extid=20739cef7eb06c2b0725
compiler: gcc (GCC) 10.1.0-syz 20200507

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

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+20739c...@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: 24500 Comm: syz-executor.4 Not tainted 4.19.138-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid+0x81/0xef lib/list_debug.c:51
Code: 0f 84 df 00 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 e0 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75 51 49 8b 14 24 48 39 ea 0f 85 97 00 00 00 49 8d 7d
RSP: 0018:ffff888087e67d70 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff888052d4ce00 RCX: ffffffff815255fb
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff888052d4d2d0
RBP: ffff888052d4d2c8 R08: 0000000000000001 R09: ffffed1013fa7355
R10: ffff88809fd39aab R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888052d4d2c8 R15: ffff888052d4d2d0
FS: 0000000001b82940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2c925000 CR3: 0000000051829000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__list_del_entry include/linux/list.h:117 [inline]
list_del_rcu include/linux/rculist.h:130 [inline]
xdp_del_sk_umem+0x72/0x1a0 net/xdp/xdp_umem.c:42
xsk_release+0x128/0x350 net/xdp/xsk.c:344
__sock_release+0xcd/0x2a0 net/socket.c:579
sock_close+0x15/0x20 net/socket.c:1140
__fput+0x2ce/0x890 fs/file_table.c:278
task_work_run+0x148/0x1c0 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:193 [inline]
exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x416991
Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 1b 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01
RSP: 002b:00007fff7ea50ff0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000007 RCX: 0000000000416991
RDX: 0000000000000000 RSI: 0000000000001700 RDI: 0000000000000006
RBP: 0000000000000001 R08: 0000000098d91700 R09: 0000000098d91704
R10: 00007fff7ea510e0 R11: 0000000000000293 R12: 0000000001192478
R13: 00000000000edd9c R14: ffffffffffffffff R15: 000000000118bf2c
Modules linked in:
---[ end trace 22e1261ffc9af0b0 ]---
RIP: 0010:__list_del_entry_valid+0x81/0xef lib/list_debug.c:51
Code: 0f 84 df 00 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 e0 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75 51 49 8b 14 24 48 39 ea 0f 85 97 00 00 00 49 8d 7d
RSP: 0018:ffff888087e67d70 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff888052d4ce00 RCX: ffffffff815255fb
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff888052d4d2d0
RBP: ffff888052d4d2c8 R08: 0000000000000001 R09: ffffed1013fa7355
R10: ffff88809fd39aab R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888052d4d2c8 R15: ffff888052d4d2d0
FS: 0000000001b82940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2c925000 CR3: 0000000051829000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report 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 issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Aug 7, 2020, 9:14:17 AM8/7/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 961f830a Linux 4.19.138
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13efa2c2900000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12f0291a900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11cdd13a900000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+20739c...@syzkaller.appspotmail.com

audit: type=1400 audit(1596805888.021:8): avc: denied { execmem } for pid=6477 comm="syz-executor539" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
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: 1 PID: 6477 Comm: syz-executor539 Not tainted 4.19.138-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid+0x81/0xef lib/list_debug.c:51
Code: 0f 84 df 00 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 e0 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75 51 49 8b 14 24 48 39 ea 0f 85 97 00 00 00 49 8d 7d
RSP: 0018:ffff88809773fc30 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8880a66ae300 RCX: ffffffff815255fb
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880a66ae7d0
RBP: ffff8880a66ae7c8 R08: 0000000000000001 R09: ffffed10141abaf5
R10: ffff8880a0d5d7ab R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8880a66ae7c8 R15: ffff8880a66ae7d0
FS: 0000000001109880(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000559d0ce6c270 CR3: 000000009420c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__list_del_entry include/linux/list.h:117 [inline]
list_del_rcu include/linux/rculist.h:130 [inline]
xdp_del_sk_umem+0x72/0x1a0 net/xdp/xdp_umem.c:42
xsk_release+0x128/0x350 net/xdp/xsk.c:344
__sock_release+0xcd/0x2a0 net/socket.c:579
sock_close+0x15/0x20 net/socket.c:1140
__fput+0x2ce/0x890 fs/file_table.c:278
task_work_run+0x148/0x1c0 kernel/task_work.c:113
exit_task_work include/linux/task_work.h:22 [inline]
do_exit+0xbb2/0x2b70 kernel/exit.c:887
do_group_exit+0x125/0x310 kernel/exit.c:990
__do_sys_exit_group kernel/exit.c:1001 [inline]
__se_sys_exit_group kernel/exit.c:999 [inline]
__x64_sys_exit_group+0x3a/0x50 kernel/exit.c:999
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x43f098
Code: Bad RIP value.
RSP: 002b:00007ffd863a6a28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f098
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004be928 R08: 00000000000000e7 R09: ffffffffffffffd0
R10: 0000000020000180 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 4f62374d8f57854f ]---
RIP: 0010:__list_del_entry_valid+0x81/0xef lib/list_debug.c:51
Code: 0f 84 df 00 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 e0 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75 51 49 8b 14 24 48 39 ea 0f 85 97 00 00 00 49 8d 7d
RSP: 0018:ffff88809773fc30 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8880a66ae300 RCX: ffffffff815255fb
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880a66ae7d0
RBP: ffff8880a66ae7c8 R08: 0000000000000001 R09: ffffed10141abaf5
R10: ffff8880a0d5d7ab R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8880a66ae7c8 R15: ffff8880a66ae7d0
FS: 0000000001109880(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000043f06e CR3: 000000009420c000 CR4: 00000000001406e0
Reply all
Reply to author
Forward
0 new messages