syzbot


general protection fault in tcp_cleanup_ulp

Status: auto-obsoleted due to no activity on 2023/02/22 19:49
Reported-by: syzbot+b3b4103d913dae68990e@syzkaller.appspotmail.com
First crash: 954d, last: 770d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in tcp_cleanup_ulp net syz done done 6 2265d 2280d 13/28 fixed on 2019/11/11 16:48

Sample crash report:
EXT4-fs (loop5): inodes count not valid: 458784 vs 32
JBD2: no valid journal superblock found
EXT4-fs (loop4): error loading journal
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: 18774 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:tcp_cleanup_ulp+0xb4/0x130 net/ipv4/tcp_ulp.c:131
Code: 3c 02 00 0f 85 85 00 00 00 48 8b ab c0 06 00 00 e8 a1 96 81 fa 48 8d 7d 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 4d 48 8b 7d 38 e8 cd 33 78 fa 4c 89 ea 48 b8 00 00
RSP: 0018:ffff888045b277d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880abc48d40 RCX: 1ffff110151cd9a3
RDX: 0000000000000007 RSI: ffffffff86e0eecf RDI: 0000000000000038
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8174af10
R13: ffff8880abc49400 R14: ffff8880abc48d68 R15: ffff88809e9c4d40
FS:  00007f104048c700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9bfb32d008 CR3: 000000009b501000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 tcp_v4_destroy_sock+0xf9/0x770 net/ipv4/tcp_ipv4.c:1986
 inet_csk_destroy_sock+0x189/0x400 net/ipv4/inet_connection_sock.c:875
 tcp_done+0x24a/0x2a0 net/ipv4/tcp.c:3799
 tcp_rcv_state_process+0x23c2/0x4c50 net/ipv4/tcp_input.c:6225
 tcp_v4_do_rcv+0x31f/0x870 net/ipv4/tcp_ipv4.c:1569
 sk_backlog_rcv include/net/sock.h:952 [inline]
 __release_sock+0x134/0x3a0 net/core/sock.c:2362
 tcp_close+0x5c5/0xfd0 net/ipv4/tcp.c:2436
 bpf_tcp_close+0x177/0x390 kernel/bpf/sockmap.c:406
 inet_release+0xd7/0x1e0 net/ipv4/af_inet.c:427
 __sock_release+0xcd/0x2a0 net/socket.c:599
 sock_close+0x15/0x20 net/socket.c:1214
 __fput+0x2ce/0x890 fs/file_table.c:278
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 get_signal+0x1b64/0x1f70 kernel/signal.c:2400
 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799
 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163
 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:0x7f1041b3a5f9
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:00007f104048c168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: 0000000000000028 RBX: 00007f1041c5b050 RCX: 00007f1041b3a5f9
RDX: 000000007ffffffe RSI: 0000000020000f00 RDI: 0000000000000003
RBP: 00007f1041b957b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000040 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc25bc650f R14: 00007f104048c300 R15: 0000000000022000
Modules linked in:
---[ end trace 6330359c51682d39 ]---
RIP: 0010:tcp_cleanup_ulp+0xb4/0x130 net/ipv4/tcp_ulp.c:131
Code: 3c 02 00 0f 85 85 00 00 00 48 8b ab c0 06 00 00 e8 a1 96 81 fa 48 8d 7d 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 4d 48 8b 7d 38 e8 cd 33 78 fa 4c 89 ea 48 b8 00 00
RSP: 0018:ffff888045b277d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880abc48d40 RCX: 1ffff110151cd9a3
RDX: 0000000000000007 RSI: ffffffff86e0eecf RDI: 0000000000000038
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000002
EXT4-fs (loop5): inodes count not valid: 458784 vs 32
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8174af10
JBD2: no valid journal superblock found
EXT4-fs (loop4): error loading journal
R13: ffff8880abc49400 R14: ffff8880abc48d68 R15: ffff88809e9c4d40
FS:  00007f104048c700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffeaabf9c20 CR3: 000000009b501000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
----------------
Code disassembly (best guess):
   0:	3c 02                	cmp    $0x2,%al
   2:	00 0f                	add    %cl,(%rdi)
   4:	85 85 00 00 00 48    	test   %eax,0x48000000(%rbp)
   a:	8b ab c0 06 00 00    	mov    0x6c0(%rbx),%ebp
  10:	e8 a1 96 81 fa       	callq  0xfa8196b6
  15:	48 8d 7d 38          	lea    0x38(%rbp),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	75 4d                	jne    0x7d
  30:	48 8b 7d 38          	mov    0x38(%rbp),%rdi
  34:	e8 cd 33 78 fa       	callq  0xfa783406
  39:	4c 89 ea             	mov    %r13,%rdx
  3c:	48                   	rex.W
  3d:	b8                   	.byte 0xb8

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/25 19:48 linux-4.19.y 3f8a27f9e27b 45645420 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in tcp_cleanup_ulp
2022/06/30 04:24 linux-4.19.y 3f8a27f9e27b 1434eec0 .config console log report info ci2-linux-4-19 general protection fault in tcp_cleanup_ulp
2022/04/25 06:08 linux-4.19.y 3f8a27f9e27b 131df97d .config console log report info ci2-linux-4-19 general protection fault in tcp_cleanup_ulp
* Struck through repros no longer work on HEAD.