general protection fault in tls_sk_proto_close

6 views
Skip to first unread message

syzbot

unread,
Mar 1, 2021, 8:43:18 AM3/1/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2d19be46 Linux 4.19.177
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1325ad92d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=6a1a8f0ba6627eb7
dashboard link: https://syzkaller.appspot.com/bug?extid=3494e690cac2371c3ce7
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10502e66d00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1788abccd00000

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

RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000004000 R11: 0000000000000246 R12: 00007ffd78b16f50
R13: 0000000000000000 R14: 00000000004ad018 R15: 0000000000400488
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: 8105 Comm: syz-executor657 Not tainted 4.19.177-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:207 [inline]
RIP: 0010:compound_head include/linux/page-flags.h:142 [inline]
RIP: 0010:put_page include/linux/mm.h:951 [inline]
RIP: 0010:tls_sk_proto_close+0x305/0xc20 net/tls/tls_main.c:277
Code: 00 fc ff df 48 89 44 24 30 48 c1 e8 03 4c 01 f0 48 89 44 24 08 e8 cb fc 6b fa 49 83 e4 fc 49 8d 7c 24 08 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 d1 07 00 00 49 8b 44 24 08 31 ff 49 89 c5 48
RSP: 0018:ffff8880a245fba8 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88809516a580 RCX: ffffffff86f66433
RDX: 0000000000000000 RSI: ffffffff86f66255 RDI: 0000000000000008
RBP: ffff8880b0d5cc40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff8880b31e50c0
FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdede54ed0 CR3: 0000000009e6d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
inet_release+0xd7/0x1e0 net/ipv4/af_inet.c:427
inet6_release+0x4c/0x70 net/ipv6/af_inet6.c:472
__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+0xbf3/0x2be0 kernel/exit.c:870
do_group_exit+0x125/0x310 kernel/exit.c:967
__do_sys_exit_group kernel/exit.c:978 [inline]
__se_sys_exit_group kernel/exit.c:976 [inline]
__x64_sys_exit_group+0x3a/0x50 kernel/exit.c:976
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x43e9a9
Code: Bad RIP value.
RSP: 002b:00007ffd78b16fb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00000000004af3b0 RCX: 000000000043e9a9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffc4 R09: 0000000000000000
R10: 0000000000004000 R11: 0000000000000246 R12: 00000000004af3b0
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
Modules linked in:
---[ end trace f4ace75330b45bf5 ]---
RIP: 0010:__read_once_size include/linux/compiler.h:207 [inline]
RIP: 0010:compound_head include/linux/page-flags.h:142 [inline]
RIP: 0010:put_page include/linux/mm.h:951 [inline]
RIP: 0010:tls_sk_proto_close+0x305/0xc20 net/tls/tls_main.c:277
Code: 00 fc ff df 48 89 44 24 30 48 c1 e8 03 4c 01 f0 48 89 44 24 08 e8 cb fc 6b fa 49 83 e4 fc 49 8d 7c 24 08 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 d1 07 00 00 49 8b 44 24 08 31 ff 49 89 c5 48
RSP: 0018:ffff8880a245fba8 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88809516a580 RCX: ffffffff86f66433
RDX: 0000000000000000 RSI: ffffffff86f66255 RDI: 0000000000000008
RBP: ffff8880b0d5cc40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff8880b31e50c0
FS: 00000000023203c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000043e97f CR3: 0000000009e6d000 CR4: 00000000001406e0
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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages