lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <000000000000077caa05e67e7461@google.com>
Date:   Wed, 17 Aug 2022 23:54:30 -0700
From:   syzbot <syzbot+7b9133d0ed61f27a4f7d@...kaller.appspotmail.com>
To:     borisp@...dia.com, davem@...emloft.net, edumazet@...gle.com,
        john.fastabend@...il.com, kuba@...nel.org,
        linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
        pabeni@...hat.com, syzkaller-bugs@...glegroups.com
Subject: [syzbot] general protection fault in tls_strp_load_anchor_with_queue

Hello,

syzbot found the following issue on:

HEAD commit:    7ebfc85e2cd7 Merge tag 'net-6.0-rc1' of git://git.kernel.o..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1750b16b080000
kernel config:  https://syzkaller.appspot.com/x/.config?x=924833c12349a8c0
dashboard link: https://syzkaller.appspot.com/bug?extid=7b9133d0ed61f27a4f7d
compiler:       gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2

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+7b9133d0ed61f27a4f7d@...kaller.appspotmail.com

general protection fault, probably for non-canonical address 0xdffffc000000000e: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000070-0x0000000000000077]
CPU: 1 PID: 9070 Comm: syz-executor.1 Not tainted 5.19.0-syzkaller-13930-g7ebfc85e2cd7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:tls_strp_load_anchor_with_queue+0x111/0x360 net/tls/tls_strp.c:329
Code: 48 c1 ea 03 80 3c 02 00 0f 85 26 02 00 00 4c 8b 73 18 41 01 f4 48 b8 00 00 00 00 00 fc ff df 49 8d 7e 70 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e e3 01 00 00 48 b8 00 00 00 00
RSP: 0018:ffffc900051c7b88 EFLAGS: 00010212
RAX: dffffc0000000000 RBX: ffff88801fe3f0d0 RCX: ffffc9000ac99000
RDX: 000000000000000e RSI: 0000000000000000 RDI: 0000000000000070
RBP: ffff8880174dcb40 R08: 0000000000000004 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: 1ffff92000a38f72 R14: 0000000000000000 R15: ffff88801fe3f0e8
FS:  00007fc847b72700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc847b71ff8 CR3: 0000000079991000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 tls_strp_read_sock+0x3a4/0x840 net/tls/tls_strp.c:379
 tls_strp_check_rcv+0x79/0xb0 net/tls/tls_strp.c:404
 do_tls_setsockopt_conf net/tls/tls_main.c:731 [inline]
 do_tls_setsockopt net/tls/tls_main.c:801 [inline]
 tls_setsockopt+0xecb/0x1240 net/tls/tls_main.c:829
 __sys_setsockopt+0x2d6/0x690 net/socket.c:2252
 __do_sys_setsockopt net/socket.c:2263 [inline]
 __se_sys_setsockopt net/socket.c:2260 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2260
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fc846a89279
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc847b72168 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007fc846b9bf80 RCX: 00007fc846a89279
RDX: 0000000000000002 RSI: 000000000000011a RDI: 0000000000000003
RBP: 00007fc847b721d0 R08: 0000000000000038 R09: 0000000000000000
R10: 00000000200004c0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffd9012e3f R14: 00007fc847b72300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:tls_strp_load_anchor_with_queue+0x111/0x360 net/tls/tls_strp.c:329
Code: 48 c1 ea 03 80 3c 02 00 0f 85 26 02 00 00 4c 8b 73 18 41 01 f4 48 b8 00 00 00 00 00 fc ff df 49 8d 7e 70 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e e3 01 00 00 48 b8 00 00 00 00
RSP: 0018:ffffc900051c7b88 EFLAGS: 00010212
RAX: dffffc0000000000 RBX: ffff88801fe3f0d0 RCX: ffffc9000ac99000
RDX: 000000000000000e RSI: 0000000000000000 RDI: 0000000000000070
RBP: ffff8880174dcb40 R08: 0000000000000004 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: 1ffff92000a38f72 R14: 0000000000000000 R15: ffff88801fe3f0e8
FS:  00007fc847b72700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc280ded718 CR3: 0000000079991000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	48 c1 ea 03          	shr    $0x3,%rdx
   4:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   8:	0f 85 26 02 00 00    	jne    0x234
   e:	4c 8b 73 18          	mov    0x18(%rbx),%r14
  12:	41 01 f4             	add    %esi,%r12d
  15:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1c:	fc ff df
  1f:	49 8d 7e 70          	lea    0x70(%r14),%rdi
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	74 08                	je     0x3a
  32:	3c 03                	cmp    $0x3,%al
  34:	0f 8e e3 01 00 00    	jle    0x21d
  3a:	48                   	rex.W
  3b:	b8 00 00 00 00       	mov    $0x0,%eax


---
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 syzkaller@...glegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ