general protection fault in tcp_cleanup_ulp

23 views
Skip to first unread message

syzbot

unread,
Sep 6, 2018, 4:50:02ā€ÆAM9/6/18
to da...@davemloft.net, edum...@google.com, kuz...@ms2.inr.ac.ru, linux-...@vger.kernel.org, net...@vger.kernel.org, syzkall...@googlegroups.com, yosh...@linux-ipv6.org
Hello,

syzbot found the following crash on:

HEAD commit: b36fdc6853a3 Merge tag 'gpio-v4.19-2' of git://git.kernel...
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1589eb7a400000
kernel config: https://syzkaller.appspot.com/x/.config?x=4c7e83258d6e0156
dashboard link: https://syzkaller.appspot.com/bug?extid=0b3ccd4f62dac2cf3a7d
compiler: gcc (GCC) 8.0.1 20180413 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+0b3ccd...@syzkaller.appspotmail.com

ISOFS: Unable to identify CD-ROM format.
ISOFS: Unable to identify CD-ROM format.
ISOFS: Unable to identify CD-ROM format.
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
CPU: 1 PID: 27135 Comm: syz-executor0 Not tainted 4.19.0-rc2+ #2
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:tcp_cleanup_ulp+0xbe/0x140 net/ipv4/tcp_ulp.c:131
Code: 02 00 0f 85 8a 00 00 00 49 8b 9c 24 88 06 00 00 e8 b7 f8 cd fb 48 8d
7b 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75
51 48 8b 7b 38 e8 93 5c c2 fb 4c 89 ea 48 b8 00 00
RSP: 0018:ffff8801c754fb80 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90001ed8000
RDX: 0000000000000007 RSI: ffffffff85aed689 RDI: 0000000000000038
RBP: ffff8801c754fba0 R08: 1ffff10038ea9f3c R09: ffffed003b6246de
R10: 0000000000000003 R11: 0000000000000001 R12: ffff8801d7db0440
R13: ffff8801d7db0ac8 R14: ffffffff819162e0 R15: dffffc0000000000
FS: 00007fb062d18700(0000) GS:ffff8801db100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe020cfbf0 CR3: 00000001ad873000 CR4: 00000000001426e0
Call Trace:
smap_release_sock+0x2e5/0x380 kernel/bpf/sockmap.c:1474
sock_map_delete_elem+0x3e9/0x5a0 kernel/bpf/sockmap.c:1813
map_delete_elem+0x32e/0x4e0 kernel/bpf/syscall.c:882
__do_sys_bpf kernel/bpf/syscall.c:2366 [inline]
__se_sys_bpf kernel/bpf/syscall.c:2334 [inline]
__x64_sys_bpf+0x342/0x510 kernel/bpf/syscall.c:2334
do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457099
Code: fd b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fb062d17c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fb062d186d4 RCX: 0000000000457099
RDX: 0000000000000010 RSI: 0000000020000040 RDI: 0000000000000003
RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004cb908 R14: 00000000004c32ca R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
---------------------------------
CPU:1 [LOST 1631 EVENTS]
syz-exec-9417 1...2 282913244us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913249us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913254us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913260us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913265us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913270us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913275us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913280us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913285us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913290us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913295us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913313us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913318us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913323us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913327us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913332us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913337us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913342us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913347us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913363us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913368us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913387us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913392us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913409us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913414us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913419us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913424us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913428us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913434us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913439us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913444us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913449us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913454us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913459us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913464us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913469us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913474us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913479us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913484us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913488us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913493us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913498us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913503us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913508us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913513us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913518us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913523us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913528us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913533us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913538us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913543us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913548us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913553us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913558us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913563us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913568us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913573us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913578us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913583us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913588us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913593us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913598us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913603us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913608us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913613us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913617us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913622us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913628us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913633us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913637us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913642us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913647us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913659us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913665us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913670us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913675us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913680us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913685us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913690us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913695us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913700us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913705us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913710us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913715us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913720us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913725us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913730us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913735us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913740us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913745us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913750us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913755us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913760us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913764us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913769us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913774us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913779us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913784us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913789us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913794us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913799us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913804us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913811us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913816us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913821us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913826us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913831us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913836us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913841us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913846us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913851us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913856us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913861us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913866us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913871us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913876us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913881us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913885us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913890us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913895us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913905us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913910us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913915us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913920us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913931us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282913936us : 0: u00000000a32ec4ab
syz-exec-9417 1.N.2 282914013us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914059us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914065us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914069us : 0: u00000000a32ec4ab
syz-exec-9417 1.N.2 282914133us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914255us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914261us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914266us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914271us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914276us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914281us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914286us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914291us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914295us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914300us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914304us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914308us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914313us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914317us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914321us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914326us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914331us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914336us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914341us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914346us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914351us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914356us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914361us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914366us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914370us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914375us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914380us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914385us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914390us : 0: u00000000a32ec4ab
syz-exec-9417 1...2 282914395us : 0: u00000000a32ec4ab
---------------------------------
---[ end trace 9de9b5e392d96e98 ]---
RIP: 0010:tcp_cleanup_ulp+0xbe/0x140 net/ipv4/tcp_ulp.c:131
Code: 02 00 0f 85 8a 00 00 00 49 8b 9c 24 88 06 00 00 e8 b7 f8 cd fb 48 8d
7b 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75
51 48 8b 7b 38 e8 93 5c c2 fb 4c 89 ea 48 b8 00 00
RSP: 0018:ffff8801c754fb80 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90001ed8000
RDX: 0000000000000007 RSI: ffffffff85aed689 RDI: 0000000000000038
RBP: ffff8801c754fba0 R08: 1ffff10038ea9f3c R09: ffffed003b6246de
R10: 0000000000000003 R11: 0000000000000001 R12: ffff8801d7db0440
R13: ffff8801d7db0ac8 R14: ffffffff819162e0 R15: dffffc0000000000
FS: 00007fb062d18700(0000) GS:ffff8801db100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe020cfbf0 CR3: 00000001ad873000 CR4: 00000000001426e0


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with
syzbot.

syzbot

unread,
Sep 12, 2018, 6:00:03ā€ÆAM9/12/18
to da...@davemloft.net, edum...@google.com, kuz...@ms2.inr.ac.ru, linux-...@vger.kernel.org, net...@vger.kernel.org, syzkall...@googlegroups.com, yosh...@linux-ipv6.org
syzbot has found a reproducer for the following crash on:

HEAD commit: 28619527b8a7 Merge git://git.kernel.org/pub/scm/linux/kern..
git tree: bpf
console output: https://syzkaller.appspot.com/x/log.txt?x=127f5b49400000
kernel config: https://syzkaller.appspot.com/x/.config?x=8f59875069d721b6
dashboard link: https://syzkaller.appspot.com/bug?extid=0b3ccd4f62dac2cf3a7d
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13537269400000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+0b3ccd...@syzkaller.appspotmail.com

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: 18627 Comm: syz-executor0 Not tainted 4.19.0-rc2+ #51
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:tcp_cleanup_ulp+0xbe/0x140 net/ipv4/tcp_ulp.c:131
Code: 02 00 0f 85 8a 00 00 00 49 8b 9c 24 88 06 00 00 e8 b7 43 ec fa 48 8d
7b 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75
51 48 8b 7b 38 e8 b3 a2 e0 fa 4c 89 ea 48 b8 00 00
RSP: 0018:ffff8801b92f76c0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff10037e84da6
RDX: 0000000000000007 RSI: ffffffff86928b79 RDI: 0000000000000038
RBP: ffff8801b92f76e0 R08: 0000000000000000 R09: ffffed003b5c4732
R10: ffffed003b5c4732 R11: ffff8801dae23993 R12: ffff8801be338f40
R13: ffff8801be3395c8 R14: ffffffff81938ae0 R15: ffff8801b92f7800
FS: 0000000001a06940(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4d5d4b8db8 CR3: 00000001bc421000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
tcp_v4_destroy_sock+0x161/0x990 net/ipv4/tcp_ipv4.c:1978
tcp_v6_destroy_sock+0x15/0x20 net/ipv6/tcp_ipv6.c:1762
inet_csk_destroy_sock+0x19f/0x440 net/ipv4/inet_connection_sock.c:835
tcp_close+0xba7/0x1300 net/ipv4/tcp.c:2477
bpf_tcp_close+0x93c/0x10c0 kernel/bpf/sockmap.c:384
inet_release+0x104/0x1f0 net/ipv4/af_inet.c:428
inet6_release+0x50/0x70 net/ipv6/af_inet6.c:457
__sock_release+0xd7/0x250 net/socket.c:579
sock_close+0x19/0x20 net/socket.c:1139
__fput+0x385/0xa30 fs/file_table.c:278
____fput+0x15/0x20 fs/file_table.c:309
task_work_run+0x1e8/0x2a0 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:193 [inline]
exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166
prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x410e91
Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 34 19 00 00 c3 48
83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48
89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01
RSP: 002b:00007ffd70bafde0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000410e91
RDX: 0000000000000000 RSI: 0000000000731160 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffffffffffff
R10: 00000000009300a0 R11: 0000000000000293 R12: 0000000000000008
R13: 00000000000dc3fa R14: 0000000000000875 R15: badc0ffeebadface
Modules linked in:
Dumping ftrace buffer:
(ftrace buffer empty)
---[ end trace d9e209a7bdcaec58 ]---
RIP: 0010:tcp_cleanup_ulp+0xbe/0x140 net/ipv4/tcp_ulp.c:131
Code: 02 00 0f 85 8a 00 00 00 49 8b 9c 24 88 06 00 00 e8 b7 43 ec fa 48 8d
7b 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75
51 48 8b 7b 38 e8 b3 a2 e0 fa 4c 89 ea 48 b8 00 00
RSP: 0018:ffff8801b92f76c0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff10037e84da6
RDX: 0000000000000007 RSI: ffffffff86928b79 RDI: 0000000000000038
RBP: ffff8801b92f76e0 R08: 0000000000000000 R09: ffffed003b5c4732
R10: ffffed003b5c4732 R11: ffff8801dae23993 R12: ffff8801be338f40
R13: ffff8801be3395c8 R14: ffffffff81938ae0 R15: ffff8801b92f7800
FS: 0000000001a06940(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4d5d4b8db8 CR3: 00000001bc421000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

syzbot

unread,
Mar 30, 2019, 1:17:02ā€ÆAM3/30/19
to a...@kernel.org, dan...@iogearbox.net, da...@davemloft.net, edum...@google.com, john.fa...@gmail.com, kuz...@ms2.inr.ac.ru, linux-...@vger.kernel.org, net...@vger.kernel.org, songliu...@fb.com, syzkall...@googlegroups.com, yosh...@linux-ipv6.org
syzbot has bisected this bug to:

commit 90545cdc3f2b2ea700e24335610cd181e73756da
Author: Daniel Borkmann <dan...@iogearbox.net>
Date: Thu Aug 16 19:49:07 2018 +0000

tcp, ulp: fix leftover icsk_ulp_ops preventing sock from reattach

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=15dab897200000
start commit: 28619527 Merge git://git.kernel.org/pub/scm/linux/kernel/g..
git tree: bpf
final crash: https://syzkaller.appspot.com/x/report.txt?x=17dab897200000
console output: https://syzkaller.appspot.com/x/log.txt?x=13dab897200000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13537269400000

Reported-by: syzbot+0b3ccd...@syzkaller.appspotmail.com
Fixes: 90545cdc3f2b ("tcp, ulp: fix leftover icsk_ulp_ops preventing sock
from reattach")

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

syzbot

unread,
Nov 7, 2019, 8:42:10ā€ÆAM11/7/19
to a...@kernel.org, b...@vger.kernel.org, dan...@iogearbox.net, da...@davemloft.net, edum...@google.com, john.fa...@gmail.com, ka...@fb.com, kuz...@ms2.inr.ac.ru, linux-...@vger.kernel.org, net...@vger.kernel.org, songliu...@fb.com, syzkall...@googlegroups.com, y...@fb.com, yosh...@linux-ipv6.org
syzbot suspects this bug was fixed by commit:

commit 5607fff303636d48b88414c6be353d9fed700af2
Author: John Fastabend <john.fa...@gmail.com>
Date: Tue Sep 18 16:01:44 2018 +0000

bpf: sockmap only allow ESTABLISHED sock state

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=17fdc73c600000
start commit: 28619527 Merge git://git.kernel.org/pub/scm/linux/kernel/g..
git tree: bpf
If the result looks correct, please mark the bug fixed by replying with:

#syz fix: bpf: sockmap only allow ESTABLISHED sock state

syzbot

unread,
Nov 10, 2019, 9:31:24ā€ÆAM11/10/19
to Tetsuo Handa, penguin...@i-love.sakura.ne.jp, syzkall...@googlegroups.com
> Bisection log looks reasonable.

> #syz fix: bpf: sockmap only allow ESTABLISHED sock state

Your 'fix:' command is accepted, but please keep
syzkall...@googlegroups.com mailing list in CC next time. It serves as
a history of what happened with each bug report. Thank you.

John Fastabend

unread,
Nov 13, 2019, 11:51:00ā€ÆAM11/13/19
to syzbot, a...@kernel.org, b...@vger.kernel.org, dan...@iogearbox.net, da...@davemloft.net, edum...@google.com, john.fa...@gmail.com, ka...@fb.com, kuz...@ms2.inr.ac.ru, linux-...@vger.kernel.org, net...@vger.kernel.org, songliu...@fb.com, syzkall...@googlegroups.com, y...@fb.com, yosh...@linux-ipv6.org
Reply all
Reply to author
Forward
0 new messages