syzbot


BUG: stack guard page was hit in sys_setsockopt (2)

Status: auto-closed as invalid on 2022/03/14 06:27
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 347d, last: 347d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: stack guard page was hit in sys_setsockopt 10 440d 493d 0/24 auto-closed as invalid on 2021/12/11 16:25

Sample crash report:
BUG: TASK stack guard page was hit at ffffc90008a3fff8 (stack is ffffc90008a40000..ffffc90008a48000)
stack guard page: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5071 Comm: syz-executor.3 Not tainted 5.16.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:write_comp_data kernel/kcov.c:221 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x17/0x70 kernel/kcov.c:287
Code: 30 f0 4c 89 54 d8 20 48 89 10 5b c3 0f 1f 80 00 00 00 00 41 89 f8 bf 03 00 00 00 4c 8b 14 24 89 f1 65 48 8b 34 25 40 70 02 00 <e8> 14 f9 ff ff 84 c0 74 4b 48 8b 86 88 15 00 00 8b b6 84 15 00 00
RSP: 0018:ffffc90008a40000 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 1ffff92001148008 RCX: 0000000000000006
RDX: ffff88807218d700 RSI: ffff88807218d700 RDI: 0000000000000003
RBP: ffffc90008a400c8 R08: 000000000000011a R09: 0000000000000004
R10: ffffffff87d54f20 R11: 0000000000000000 R12: ffff888078eb5400
R13: 0000000000000006 R14: 0000000000000013 R15: dffffc0000000000
FS:  00007fe7e9aee700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90008a3fff8 CR3: 00000000229f4000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 tls_setsockopt+0x90/0xe70 net/tls/tls_main.c:708
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 tls_setsockopt+0x128/0xe70 net/tls/tls_main.c:709
 __sys_setsockopt+0x2db/0x610 net/socket.c:2176
 __do_sys_setsockopt net/socket.c:2187 [inline]
 __se_sys_setsockopt net/socket.c:2184 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2184
 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+0x44/0xae
RIP: 0033:0x7fe7eb178e99
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe7e9aee168 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007fe7eb28bf60 RCX: 00007fe7eb178e99
RDX: 0000000000000013 RSI: 0000000000000006 RDI: 0000000000000003
RBP: 00007fe7eb1d2ff1 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000020000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff0540325f R14: 00007fe7e9aee300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 7c38f2d65fef396f ]---
RIP: 0010:write_comp_data kernel/kcov.c:221 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x17/0x70 kernel/kcov.c:287
Code: 30 f0 4c 89 54 d8 20 48 89 10 5b c3 0f 1f 80 00 00 00 00 41 89 f8 bf 03 00 00 00 4c 8b 14 24 89 f1 65 48 8b 34 25 40 70 02 00 <e8> 14 f9 ff ff 84 c0 74 4b 48 8b 86 88 15 00 00 8b b6 84 15 00 00
RSP: 0018:ffffc90008a40000 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 1ffff92001148008 RCX: 0000000000000006
RDX: ffff88807218d700 RSI: ffff88807218d700 RDI: 0000000000000003
RBP: ffffc90008a400c8 R08: 000000000000011a R09: 0000000000000004
R10: ffffffff87d54f20 R11: 0000000000000000 R12: ffff888078eb5400
R13: 0000000000000006 R14: 0000000000000013 R15: dffffc0000000000
FS:  00007fe7e9aee700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90008a3fff8 CR3: 00000000229f4000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	30 f0                	xor    %dh,%al
   2:	4c 89 54 d8 20       	mov    %r10,0x20(%rax,%rbx,8)
   7:	48 89 10             	mov    %rdx,(%rax)
   a:	5b                   	pop    %rbx
   b:	c3                   	retq
   c:	0f 1f 80 00 00 00 00 	nopl   0x0(%rax)
  13:	41 89 f8             	mov    %edi,%r8d
  16:	bf 03 00 00 00       	mov    $0x3,%edi
  1b:	4c 8b 14 24          	mov    (%rsp),%r10
  1f:	89 f1                	mov    %esi,%ecx
  21:	65 48 8b 34 25 40 70 	mov    %gs:0x27040,%rsi
  28:	02 00
* 2a:	e8 14 f9 ff ff       	callq  0xfffff943 <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	74 4b                	je     0x7e
  33:	48 8b 86 88 15 00 00 	mov    0x1588(%rsi),%rax
  3a:	8b b6 84 15 00 00    	mov    0x1584(%rsi),%esi

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-kasan-gce 2021/12/14 06:19 net-next a3c62a042237 5d14b1ea .config log report info BUG: stack guard page was hit in sys_setsockopt
* Struck through repros no longer work on HEAD.