general protection fault in pppol2tp_session_init

8 views
Skip to first unread message

syzbot

unread,
May 28, 2020, 10:01:19 PM5/28/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 4f68020f Linux 4.14.182
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13f33326100000
kernel config: https://syzkaller.appspot.com/x/.config?x=c7045c57a90d1ddc
dashboard link: https://syzkaller.appspot.com/bug?extid=2311b5d4421a00a871e4
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

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+2311b5...@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
Modules linked in:
CPU: 1 PID: 4859 Comm: syz-executor.1 Not tainted 4.14.182-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88805b1201c0 task.stack: ffff8881db940000
RIP: 0010:__read_once_size include/linux/compiler.h:183 [inline]
RIP: 0010:sk_dst_get include/net/sock.h:1766 [inline]
RIP: 0010:pppol2tp_session_init+0x1ca/0x4d0 net/l2tp/l2tp_ppp.c:616
RSP: 0018:ffff8881db947c50 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888091972900 RCX: ffffc90005aea000
RDX: 0000000000000045 RSI: ffffffff85c11192 RDI: 0000000000000228
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000020012
R10: ffff88805b120a70 R11: ffff88805b1201c0 R12: 00000000000012fb
R13: 0000000000000002 R14: ffff8880a1b68dd2 R15: ffff8880a1b68df0
FS: 00007f021f3b9700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30524000 CR3: 00000000940f8000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
pppol2tp_connect+0xd11/0x1370 net/l2tp/l2tp_ppp.c:790
SYSC_connect net/socket.c:1655 [inline]
SyS_connect+0x186/0x260 net/socket.c:1636
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x45ca29
RSP: 002b:00007f021f3b8c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00000000004db200 RCX: 000000000045ca29
RDX: 000000000000002e RSI: 0000000020000000 RDI: 0000000000000004
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000008f R14: 00000000004c3466 R15: 00007f021f3b96d4
Code: fb 80 3d eb 5d ac 02 00 0f 84 25 02 00 00 e8 7e 90 99 fb 48 8d bd 28 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 db 02 00 00 48 8b ad 28 02 00 00 e8 10 60 8a
RIP: __read_once_size include/linux/compiler.h:183 [inline] RSP: ffff8881db947c50
RIP: sk_dst_get include/net/sock.h:1766 [inline] RSP: ffff8881db947c50
RIP: pppol2tp_session_init+0x1ca/0x4d0 net/l2tp/l2tp_ppp.c:616 RSP: ffff8881db947c50
---[ end trace 1eee792fa287581e ]---


---
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,
May 29, 2020, 1:12:15 AM5/29/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 4f68020f Linux 4.14.182
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=173bc74a100000
kernel config: https://syzkaller.appspot.com/x/.config?x=c7045c57a90d1ddc
dashboard link: https://syzkaller.appspot.com/bug?extid=2311b5d4421a00a871e4
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1709ced2100000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=167096ce100000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+2311b5...@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
Modules linked in:
CPU: 0 PID: 12255 Comm: syz-executor545 Not tainted 4.14.182-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880a046c240 task.stack: ffff8880951a0000
RIP: 0010:__read_once_size include/linux/compiler.h:183 [inline]
RIP: 0010:sk_dst_get include/net/sock.h:1766 [inline]
RIP: 0010:pppol2tp_session_init+0x1ca/0x4d0 net/l2tp/l2tp_ppp.c:616
RSP: 0018:ffff8880951a7c50 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888095b584c0 RCX: 1ffffffff0f00bac
RDX: 0000000000000045 RSI: ffffffff86c44aa0 RDI: 0000000000000228
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000020012
R10: ffff8880a046caf0 R11: ffff8880a046c240 R12: 0000000000002fdf
R13: 0000000000000002 R14: ffff888097c37512 R15: ffff888097c37530
FS: 000000000161b880(0000) GS:ffff8880aec00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000a01ea000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
pppol2tp_connect+0xd11/0x1370 net/l2tp/l2tp_ppp.c:790
SYSC_connect net/socket.c:1655 [inline]
SyS_connect+0x186/0x260 net/socket.c:1636
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x441249
RSP: 002b:00007ffed60e47b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441249
RDX: 000000000000002e RSI: 0000000020000000 RDI: 0000000000000003
RBP: 0000000000034a18 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000402070
R13: 0000000000402100 R14: 0000000000000000 R15: 0000000000000000
Code: fb 80 3d eb 5d ac 02 00 0f 84 25 02 00 00 e8 7e 90 99 fb 48 8d bd 28 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 db 02 00 00 48 8b ad 28 02 00 00 e8 10 60 8a
RIP: __read_once_size include/linux/compiler.h:183 [inline] RSP: ffff8880951a7c50
RIP: sk_dst_get include/net/sock.h:1766 [inline] RSP: ffff8880951a7c50
RIP: pppol2tp_session_init+0x1ca/0x4d0 net/l2tp/l2tp_ppp.c:616 RSP: ffff8880951a7c50
---[ end trace d5086c67b8c099b8 ]---

Reply all
Reply to author
Forward
0 new messages