syzbot


general protection fault in tcp_push

Status: fixed on 2019/12/09 13:28
Reported-by: syzbot+cf762331ca3b8c55c929@syzkaller.appspotmail.com
Fix commit: f1dcc5ed4bea tcp: Reset send_head when removing skb from write-queue
First crash: 1901d, last: 1890d
Fix bisection: fixed by (bisect log) :
commit f1dcc5ed4bea3f2d63b74ad86617ec12b1e5e9d4
Author: Christoph Paasch <cpaasch@apple.com>
Date: Fri Sep 13 20:08:18 2019 +0000

  tcp: Reset send_head when removing skb from write-queue

  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 general protection fault in tcp_push 1 2147d 2050d 0/3 auto-closed as invalid on 2019/07/05 21:43
android-44 general protection fault in tcp_push 1 2135d 2050d 0/2 auto-closed as invalid on 2019/07/17 11:58

Sample crash report:
audit: type=1400 audit(1568743966.749:36): avc:  denied  { map } for  pid=6864 comm="syz-executor588" path="/root/syz-executor588392884" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies.  Check SNMP counters.
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: 6867 Comm: syz-executor588 Not tainted 4.14.144 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888095d94500 task.stack: ffff88808f730000
RIP: 0010:tcp_mark_push net/ipv4/tcp.c:630 [inline]
RIP: 0010:tcp_push+0xe9/0x610 net/ipv4/tcp.c:694
RSP: 0018:ffff88808f737a48 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000007 RSI: 0000000000000008 RDI: 0000000000000038
RBP: ffff88808f737a98 R08: ffff88808d32c91c R09: ffff888095d94da0
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88808d32c080
R13: 0000000000000000 R14: ffff88808d32c914 R15: 0000000000000008
FS:  00007f73452ee700(0000) GS:ffff8880aee00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000021000000 CR3: 000000009e14a000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tcp_sendmsg_locked+0x2307/0x3200 net/ipv4/tcp.c:1426
 tcp_sendmsg+0x30/0x50 net/ipv4/tcp.c:1457
 inet_sendmsg+0x122/0x500 net/ipv4/af_inet.c:762
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xce/0x110 net/socket.c:656
 SYSC_sendto+0x206/0x310 net/socket.c:1763
 SyS_sendto+0x40/0x50 net/socket.c:1731
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x446869
RSP: 002b:00007f73452edd98 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00000000006dbc58 RCX: 0000000000446869
RDX: ffffffffffffff47 RSI: 00000000200000c0 RDI: 0000000000000005
RBP: 00000000006dbc50 R08: 0000000000000000 R09: 000000000000001a
R10: 0000000000000008 R11: 0000000000000246 R12: 00000000006dbc5c
R13: 0000000000000000 R14: 0000000000000000 R15: 20c49ba5e353f7cf
Code: 00 4d 8d 84 24 9c 08 00 00 4c 89 45 b8 e8 c0 c7 39 fc 48 8d 7b 38 4c 8b 45 b8 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 06 0f 8e 1e 04 00 00 48 b8 00 00 00 00 00 
RIP: tcp_mark_push net/ipv4/tcp.c:630 [inline] RSP: ffff88808f737a48
RIP: tcp_push+0xe9/0x610 net/ipv4/tcp.c:694 RSP: ffff88808f737a48
---[ end trace e7663ee5316fa09c ]---

Crashes (55):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/17 18:16 linux-4.14.y 968722f5371a 13dcda9b .config console log report syz C ci2-linux-4-14
2019/09/21 05:19 linux-4.14.y b10ab5e2c476 d96e88f3 .config console log report ci2-linux-4-14
2019/09/20 19:31 linux-4.14.y b10ab5e2c476 d96e88f3 .config console log report ci2-linux-4-14
2019/09/20 14:52 linux-4.14.y b10ab5e2c476 d96e88f3 .config console log report ci2-linux-4-14
2019/09/20 09:09 linux-4.14.y b10ab5e2c476 d96e88f3 .config console log report ci2-linux-4-14
2019/09/20 05:20 linux-4.14.y b10ab5e2c476 4d3ae0b7 .config console log report ci2-linux-4-14
2019/09/20 01:33 linux-4.14.y b10ab5e2c476 4d3ae0b7 .config console log report ci2-linux-4-14
2019/09/19 02:56 linux-4.14.y 968722f5371a 46c0be24 .config console log report ci2-linux-4-14
2019/09/18 17:09 linux-4.14.y 968722f5371a 46c0be24 .config console log report ci2-linux-4-14
2019/09/18 15:33 linux-4.14.y 968722f5371a 1037b424 .config console log report ci2-linux-4-14
2019/09/18 10:21 linux-4.14.y 968722f5371a 03e0d245 .config console log report ci2-linux-4-14
2019/09/18 08:30 linux-4.14.y 968722f5371a 03e0d245 .config console log report ci2-linux-4-14
2019/09/18 05:37 linux-4.14.y 968722f5371a 03e0d245 .config console log report ci2-linux-4-14
2019/09/18 05:18 linux-4.14.y 968722f5371a 03e0d245 .config console log report ci2-linux-4-14
2019/09/18 03:51 linux-4.14.y 968722f5371a 03e0d245 .config console log report ci2-linux-4-14
2019/09/18 03:49 linux-4.14.y 968722f5371a 03e0d245 .config console log report ci2-linux-4-14
2019/09/17 22:48 linux-4.14.y 968722f5371a 13dcda9b .config console log report ci2-linux-4-14
2019/09/17 22:45 linux-4.14.y 968722f5371a 13dcda9b .config console log report ci2-linux-4-14
2019/09/17 22:43 linux-4.14.y 968722f5371a 13dcda9b .config console log report ci2-linux-4-14
2019/09/17 22:13 linux-4.14.y 968722f5371a 13dcda9b .config console log report ci2-linux-4-14
2019/09/17 17:31 linux-4.14.y 968722f5371a 13dcda9b .config console log report ci2-linux-4-14
2019/09/17 16:43 linux-4.14.y 968722f5371a 13dcda9b .config console log report ci2-linux-4-14
2019/09/17 13:42 linux-4.14.y 968722f5371a 13dcda9b .config console log report ci2-linux-4-14
2019/09/17 12:30 linux-4.14.y 968722f5371a 13dcda9b .config console log report ci2-linux-4-14
2019/09/17 12:13 linux-4.14.y 968722f5371a 13dcda9b .config console log report ci2-linux-4-14
2019/09/17 02:12 linux-4.14.y 968722f5371a 51ca0454 .config console log report ci2-linux-4-14
2019/09/16 20:33 linux-4.14.y 968722f5371a 51ca0454 .config console log report ci2-linux-4-14
2019/09/16 17:10 linux-4.14.y 968722f5371a 55c50e70 .config console log report ci2-linux-4-14
2019/09/16 09:52 linux-4.14.y 968722f5371a 55c50e70 .config console log report ci2-linux-4-14
2019/09/16 09:23 linux-4.14.y 968722f5371a 55c50e70 .config console log report ci2-linux-4-14
2019/09/15 22:27 linux-4.14.y e2cd24b62938 32d59357 .config console log report ci2-linux-4-14
2019/09/15 10:17 linux-4.14.y e2cd24b62938 32d59357 .config console log report ci2-linux-4-14
2019/09/14 13:59 linux-4.14.y e2cd24b62938 32d59357 .config console log report ci2-linux-4-14
2019/09/14 11:49 linux-4.14.y e2cd24b62938 32d59357 .config console log report ci2-linux-4-14
2019/09/14 04:33 linux-4.14.y e2cd24b62938 32d59357 .config console log report ci2-linux-4-14
2019/09/13 00:52 linux-4.14.y e2cd24b62938 40fa42bc .config console log report ci2-linux-4-14
2019/09/13 00:11 linux-4.14.y e2cd24b62938 0b7672ee .config console log report ci2-linux-4-14
2019/09/12 19:39 linux-4.14.y e2cd24b62938 0b7672ee .config console log report ci2-linux-4-14
2019/09/12 18:34 linux-4.14.y e2cd24b62938 0b7672ee .config console log report ci2-linux-4-14
2019/09/12 00:50 linux-4.14.y e2cd24b62938 f4e53c10 .config console log report ci2-linux-4-14
2019/09/11 21:51 linux-4.14.y e2cd24b62938 f4e53c10 .config console log report ci2-linux-4-14
2019/09/11 20:37 linux-4.14.y e2cd24b62938 f4e53c10 .config console log report ci2-linux-4-14
2019/09/11 20:29 linux-4.14.y e2cd24b62938 f4e53c10 .config console log report ci2-linux-4-14
2019/09/11 09:54 linux-4.14.y e2cd24b62938 a60cb4cd .config console log report ci2-linux-4-14
2019/09/11 08:21 linux-4.14.y e2cd24b62938 a60cb4cd .config console log report ci2-linux-4-14
2019/09/11 04:49 linux-4.14.y e2cd24b62938 a60cb4cd .config console log report ci2-linux-4-14
2019/09/11 02:27 linux-4.14.y e2cd24b62938 a60cb4cd .config console log report ci2-linux-4-14
2019/09/11 02:16 linux-4.14.y e2cd24b62938 a60cb4cd .config console log report ci2-linux-4-14
2019/09/11 02:14 linux-4.14.y e2cd24b62938 a60cb4cd .config console log report ci2-linux-4-14
2019/09/10 11:57 linux-4.14.y e2cd24b62938 a60cb4cd .config console log report ci2-linux-4-14
2019/09/10 10:14 linux-4.14.y e2cd24b62938 a60cb4cd .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.