linux-sctp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* general protection fault in sctp_sched_dequeue_common
@ 2018-11-21  4:28 syzbot
  2018-11-21 17:51 ` Xin Long
  2019-03-14 21:02 ` general protection fault in sctp_sched_dequeue_common (2) syzbot
  0 siblings, 2 replies; 5+ messages in thread
From: syzbot @ 2018-11-21  4:28 UTC (permalink / raw)
  To: davem, linux-kernel, linux-sctp, marcelo.leitner, netdev, nhorman,
	syzkaller-bugs, vyasevich

Hello,

syzbot found the following crash on:

HEAD commit:    cfc6731d2f79 Merge branch 'sctp-add-subscribe-per-asoc-and..
git tree:       net-next
console output: https://syzkaller.appspot.com/x/log.txt?x\x14fc234d400000
kernel config:  https://syzkaller.appspot.com/x/.config?xse2bc0cb6463446
dashboard link: https://syzkaller.appspot.com/bug?extidã3a3a138267ca119c7d
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+e33a3a138267ca119c7d@syzkaller.appspotmail.com

netlink: 'syz-executor1': attribute type 39 has an invalid length.
IPv6: ADDRCONF(NETDEV_CHANGE): lo: link becomes ready
A link change request failed with some changes committed already. Interface  
lo may have been left with an inconsistent configuration, please check.
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: 1 PID: 4030 Comm: syz-executor5 Not tainted 4.20.0-rc3+ #304
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
RIP: 0010:__list_del_entry_valid+0x84/0x100 lib/list_debug.c:51
Code: 0f 84 60 01 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 39 01  
00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75  
5f 49 8b 14 24 48 39 da 0f 85 4e 01 00 00 49 8d 7d
RSP: 0018:ffff8881c1bfea48 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8881bb175618 RCX: ffffc9001006b000
RDX: 0000000000000000 RSI: ffffffff8752c823 RDI: ffff8881bb175620
RBP: ffff8881c1bfea60 R08: ffff88818dc04200 R09: ffff8881c1bff488
R10: ffffed103837feb6 R11: 0000000000000003 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8881cb4d8e20 R15: dffffc0000000000
FS:  00007f34b0944700(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000ae0ed0 CR3: 00000001cb898000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
  __list_del_entry include/linux/list.h:117 [inline]
  list_del_init include/linux/list.h:159 [inline]
  sctp_sched_dequeue_common+0xab/0x610 net/sctp/stream_sched.c:267
  sctp_sched_fcfs_dequeue+0x18d/0x280 net/sctp/stream_sched.c:90
  sctp_outq_dequeue_data net/sctp/outqueue.c:90 [inline]
  sctp_outq_flush_data net/sctp/outqueue.c:1079 [inline]
  sctp_outq_flush+0x13e2/0x34f0 net/sctp/outqueue.c:1205
  sctp_outq_uncork+0x6a/0x80 net/sctp/outqueue.c:772
  sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1820 [inline]
  sctp_side_effects net/sctp/sm_sideeffect.c:1220 [inline]
  sctp_do_sm+0x5ff/0x7180 net/sctp/sm_sideeffect.c:1191
  sctp_primitive_SEND+0xa0/0xd0 net/sctp/primitive.c:178
  sctp_sendmsg_to_asoc+0xa0b/0x1a10 net/sctp/socket.c:1955
  sctp_sendmsg+0x13c2/0x1da0 net/sctp/socket.c:2113
  inet_sendmsg+0x1a1/0x690 net/ipv4/af_inet.c:798
  sock_sendmsg_nosec net/socket.c:621 [inline]
  sock_sendmsg+0xd5/0x120 net/socket.c:631
  sock_write_iter+0x35e/0x5c0 net/socket.c:900
  call_write_iter include/linux/fs.h:1857 [inline]
  new_sync_write fs/read_write.c:474 [inline]
  __vfs_write+0x6b8/0x9f0 fs/read_write.c:487
  vfs_write+0x1fc/0x560 fs/read_write.c:549
  ksys_write+0x101/0x260 fs/read_write.c:598
  __do_sys_write fs/read_write.c:610 [inline]
  __se_sys_write fs/read_write.c:607 [inline]
  __x64_sys_write+0x73/0xb0 fs/read_write.c:607
  do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457569
Code: fd b3 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 b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f34b0943c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569
RDX: 0000000000034000 RSI: 0000000020000040 RDI: 0000000000000005
RBP: 000000000072bfa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f34b09446d4
R13: 00000000004c5cde R14: 00000000004da090 R15: 00000000ffffffff
Modules linked in:
---[ end trace 23757f22491d2e93 ]---
RIP: 0010:__list_del_entry_valid+0x84/0x100 lib/list_debug.c:51
Code: 0f 84 60 01 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 39 01  
00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75  
5f 49 8b 14 24 48 39 da 0f 85 4e 01 00 00 49 8d 7d
kobject: 'loop0' (00000000e65c44e1): kobject_uevent_env
kobject: 'loop0' (00000000e65c44e1): fill_kobj_path: path  
= '/devices/virtual/block/loop0'
RSP: 0018:ffff8881c1bfea48 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8881bb175618 RCX: ffffc9001006b000
kobject: 'rx-0' (000000005994716d): kobject_cleanup, parent 00000000ba7aa131
RDX: 0000000000000000 RSI: ffffffff8752c823 RDI: ffff8881bb175620
kobject: 'loop4' (000000004d250bad): kobject_uevent_env
kobject: 'rx-0' (000000005994716d): auto cleanup 'remove' event
kobject: 'loop4' (000000004d250bad): fill_kobj_path: path  
= '/devices/virtual/block/loop4'
kobject: 'rx-0' (000000005994716d): kobject_uevent_env
RBP: ffff8881c1bfea60 R08: ffff88818dc04200 R09: ffff8881c1bff488
R10: ffffed103837feb6 R11: 0000000000000003 R12: 0000000000000000
kobject: 'rx-0' (000000005994716d): kobject_uevent_env: uevent_suppress  
caused the event to drop!
R13: 0000000000000000 R14: ffff8881cb4d8e20 R15: dffffc0000000000
kobject: 'rx-0' (000000005994716d): auto cleanup kobject_del
FS:  00007f34b0944700(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000
kobject: 'rx-0' (000000005994716d): calling ktype release
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000072c000 CR3: 00000001cb898000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
kobject: 'rx-0': free name
kobject: 'loop0' (00000000e65c44e1): kobject_uevent_env
kobject: 'tx-3' (00000000a24965cd): kobject_cleanup, parent 00000000ba7aa131
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
kobject: 'tx-3' (00000000a24965cd): auto cleanup 'remove' event
kobject: 'loop0' (00000000e65c44e1): fill_kobj_path: path  
= '/devices/virtual/block/loop0'
kobject: 'tx-3' (00000000a24965cd): kobject_uevent_env
kobject: 'tx-3' (00000000a24965cd): kobject_uevent_env: uevent_suppress  
caused the event to drop!
kobject: 'tx-3' (00000000a24965cd): auto cleanup kobject_del


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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: general protection fault in sctp_sched_dequeue_common
  2018-11-21  4:28 general protection fault in sctp_sched_dequeue_common syzbot
@ 2018-11-21 17:51 ` Xin Long
  2018-11-21 19:23   ` Marcelo Ricardo Leitner
  2019-03-14 21:02 ` general protection fault in sctp_sched_dequeue_common (2) syzbot
  1 sibling, 1 reply; 5+ messages in thread
From: Xin Long @ 2018-11-21 17:51 UTC (permalink / raw)
  To: syzbot+e33a3a138267ca119c7d
  Cc: davem, LKML, linux-sctp, Marcelo Ricardo Leitner, network dev,
	Neil Horman, syzkaller-bugs, Vlad Yasevich

On Wed, Nov 21, 2018 at 1:30 PM syzbot
<syzbot+e33a3a138267ca119c7d@syzkaller.appspotmail.com> wrote:
>
> Hello,
>
> syzbot found the following crash on:
>
> HEAD commit:    cfc6731d2f79 Merge branch 'sctp-add-subscribe-per-asoc-and..
> git tree:       net-next
> console output: https://syzkaller.appspot.com/x/log.txt?x\x14fc234d400000
> kernel config:  https://syzkaller.appspot.com/x/.config?xse2bc0cb6463446
> dashboard link: https://syzkaller.appspot.com/bug?extidã3a3a138267ca119c7d
> 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+e33a3a138267ca119c7d@syzkaller.appspotmail.com
>
> netlink: 'syz-executor1': attribute type 39 has an invalid length.
> IPv6: ADDRCONF(NETDEV_CHANGE): lo: link becomes ready
> A link change request failed with some changes committed already. Interface
> lo may have been left with an inconsistent configuration, please check.
> 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: 1 PID: 4030 Comm: syz-executor5 Not tainted 4.20.0-rc3+ #304
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
> Google 01/01/2011
> RIP: 0010:__list_del_entry_valid+0x84/0x100 lib/list_debug.c:51
> Code: 0f 84 60 01 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 39 01
> 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75
> 5f 49 8b 14 24 48 39 da 0f 85 4e 01 00 00 49 8d 7d
> RSP: 0018:ffff8881c1bfea48 EFLAGS: 00010246
> RAX: dffffc0000000000 RBX: ffff8881bb175618 RCX: ffffc9001006b000
> RDX: 0000000000000000 RSI: ffffffff8752c823 RDI: ffff8881bb175620
> RBP: ffff8881c1bfea60 R08: ffff88818dc04200 R09: ffff8881c1bff488
> R10: ffffed103837feb6 R11: 0000000000000003 R12: 0000000000000000
> R13: 0000000000000000 R14: ffff8881cb4d8e20 R15: dffffc0000000000
> FS:  00007f34b0944700(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 0000000000ae0ed0 CR3: 00000001cb898000 CR4: 00000000001406e0
> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
> Call Trace:
>   __list_del_entry include/linux/list.h:117 [inline]
>   list_del_init include/linux/list.h:159 [inline]
>   sctp_sched_dequeue_common+0xab/0x610 net/sctp/stream_sched.c:267
>   sctp_sched_fcfs_dequeue+0x18d/0x280 net/sctp/stream_sched.c:90
This probably is also caused by stream->out_curr not being updated
when adding stream_out. we need a fix like:

+static void sctp_stream_out_copy(struct flex_array *fa,
+                                struct sctp_stream *stream, __u16 count)
+{
+       size_t index = 0;
+       void *elem;
+
+       count = min(count, stream->outcnt);
+       while (count--) {
+               elem = flex_array_get(stream->out, index);
+               flex_array_put(fa, index, elem, 0);
+               if (stream->out_curr = elem)
+                       stream->out_curr = flex_array_get(fa, index);
+               index++;
+       }
+}
+
 static int sctp_stream_alloc_out(struct sctp_stream *stream, __u16 outcnt,
                                 gfp_t gfp)
 {
@@ -146,7 +164,7 @@ static int sctp_stream_alloc_out(struct
sctp_stream *stream, __u16 outcnt,
                return -ENOMEM;

        if (stream->out) {
-               fa_copy(out, stream->out, 0, min(outcnt, stream->outcnt));
+               sctp_stream_out_copy(out, stream, outcnt);
                fa_free(stream->out);
        }


>   sctp_outq_dequeue_data net/sctp/outqueue.c:90 [inline]
>   sctp_outq_flush_data net/sctp/outqueue.c:1079 [inline]
>   sctp_outq_flush+0x13e2/0x34f0 net/sctp/outqueue.c:1205
>   sctp_outq_uncork+0x6a/0x80 net/sctp/outqueue.c:772
>   sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1820 [inline]
>   sctp_side_effects net/sctp/sm_sideeffect.c:1220 [inline]
>   sctp_do_sm+0x5ff/0x7180 net/sctp/sm_sideeffect.c:1191
>   sctp_primitive_SEND+0xa0/0xd0 net/sctp/primitive.c:178
>   sctp_sendmsg_to_asoc+0xa0b/0x1a10 net/sctp/socket.c:1955
>   sctp_sendmsg+0x13c2/0x1da0 net/sctp/socket.c:2113
>   inet_sendmsg+0x1a1/0x690 net/ipv4/af_inet.c:798
>   sock_sendmsg_nosec net/socket.c:621 [inline]
>   sock_sendmsg+0xd5/0x120 net/socket.c:631
>   sock_write_iter+0x35e/0x5c0 net/socket.c:900
>   call_write_iter include/linux/fs.h:1857 [inline]
>   new_sync_write fs/read_write.c:474 [inline]
>   __vfs_write+0x6b8/0x9f0 fs/read_write.c:487
>   vfs_write+0x1fc/0x560 fs/read_write.c:549
>   ksys_write+0x101/0x260 fs/read_write.c:598
>   __do_sys_write fs/read_write.c:610 [inline]
>   __se_sys_write fs/read_write.c:607 [inline]
>   __x64_sys_write+0x73/0xb0 fs/read_write.c:607
>   do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
>   entry_SYSCALL_64_after_hwframe+0x49/0xbe
> RIP: 0033:0x457569
> Code: fd b3 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 b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
> RSP: 002b:00007f34b0943c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
> RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569
> RDX: 0000000000034000 RSI: 0000000020000040 RDI: 0000000000000005
> RBP: 000000000072bfa0 R08: 0000000000000000 R09: 0000000000000000
> R10: 0000000000000000 R11: 0000000000000246 R12: 00007f34b09446d4
> R13: 00000000004c5cde R14: 00000000004da090 R15: 00000000ffffffff
> Modules linked in:
> ---[ end trace 23757f22491d2e93 ]---
> RIP: 0010:__list_del_entry_valid+0x84/0x100 lib/list_debug.c:51
> Code: 0f 84 60 01 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 39 01
> 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75
> 5f 49 8b 14 24 48 39 da 0f 85 4e 01 00 00 49 8d 7d
> kobject: 'loop0' (00000000e65c44e1): kobject_uevent_env
> kobject: 'loop0' (00000000e65c44e1): fill_kobj_path: path
> = '/devices/virtual/block/loop0'
> RSP: 0018:ffff8881c1bfea48 EFLAGS: 00010246
> RAX: dffffc0000000000 RBX: ffff8881bb175618 RCX: ffffc9001006b000
> kobject: 'rx-0' (000000005994716d): kobject_cleanup, parent 00000000ba7aa131
> RDX: 0000000000000000 RSI: ffffffff8752c823 RDI: ffff8881bb175620
> kobject: 'loop4' (000000004d250bad): kobject_uevent_env
> kobject: 'rx-0' (000000005994716d): auto cleanup 'remove' event
> kobject: 'loop4' (000000004d250bad): fill_kobj_path: path
> = '/devices/virtual/block/loop4'
> kobject: 'rx-0' (000000005994716d): kobject_uevent_env
> RBP: ffff8881c1bfea60 R08: ffff88818dc04200 R09: ffff8881c1bff488
> R10: ffffed103837feb6 R11: 0000000000000003 R12: 0000000000000000
> kobject: 'rx-0' (000000005994716d): kobject_uevent_env: uevent_suppress
> caused the event to drop!
> R13: 0000000000000000 R14: ffff8881cb4d8e20 R15: dffffc0000000000
> kobject: 'rx-0' (000000005994716d): auto cleanup kobject_del
> FS:  00007f34b0944700(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000
> kobject: 'rx-0' (000000005994716d): calling ktype release
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 000000000072c000 CR3: 00000001cb898000 CR4: 00000000001406e0
> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> kobject: 'rx-0': free name
> kobject: 'loop0' (00000000e65c44e1): kobject_uevent_env
> kobject: 'tx-3' (00000000a24965cd): kobject_cleanup, parent 00000000ba7aa131
> DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
> kobject: 'tx-3' (00000000a24965cd): auto cleanup 'remove' event
> kobject: 'loop0' (00000000e65c44e1): fill_kobj_path: path
> = '/devices/virtual/block/loop0'
> kobject: 'tx-3' (00000000a24965cd): kobject_uevent_env
> kobject: 'tx-3' (00000000a24965cd): kobject_uevent_env: uevent_suppress
> caused the event to drop!
> kobject: 'tx-3' (00000000a24965cd): auto cleanup kobject_del
>
>
> ---
> 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 syzkaller@googlegroups.com.
>
> syzbot will keep track of this bug report. See:
> https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with
> syzbot.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: general protection fault in sctp_sched_dequeue_common
  2018-11-21 17:51 ` Xin Long
@ 2018-11-21 19:23   ` Marcelo Ricardo Leitner
  0 siblings, 0 replies; 5+ messages in thread
From: Marcelo Ricardo Leitner @ 2018-11-21 19:23 UTC (permalink / raw)
  To: Xin Long
  Cc: syzbot+e33a3a138267ca119c7d, davem, LKML, linux-sctp, network dev,
	Neil Horman, syzkaller-bugs, Vlad Yasevich

On Thu, Nov 22, 2018 at 02:51:44AM +0900, Xin Long wrote:
> On Wed, Nov 21, 2018 at 1:30 PM syzbot
> <syzbot+e33a3a138267ca119c7d@syzkaller.appspotmail.com> wrote:
> >
> > Hello,
> >
> > syzbot found the following crash on:
> >
> > HEAD commit:    cfc6731d2f79 Merge branch 'sctp-add-subscribe-per-asoc-and..
> > git tree:       net-next
> > console output: https://syzkaller.appspot.com/x/log.txt?x\x14fc234d400000
> > kernel config:  https://syzkaller.appspot.com/x/.config?xse2bc0cb6463446
> > dashboard link: https://syzkaller.appspot.com/bug?extidã3a3a138267ca119c7d
> > 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+e33a3a138267ca119c7d@syzkaller.appspotmail.com
> >
> > netlink: 'syz-executor1': attribute type 39 has an invalid length.
> > IPv6: ADDRCONF(NETDEV_CHANGE): lo: link becomes ready
> > A link change request failed with some changes committed already. Interface
> > lo may have been left with an inconsistent configuration, please check.
> > 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: 1 PID: 4030 Comm: syz-executor5 Not tainted 4.20.0-rc3+ #304
> > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
> > Google 01/01/2011
> > RIP: 0010:__list_del_entry_valid+0x84/0x100 lib/list_debug.c:51
> > Code: 0f 84 60 01 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 39 01
> > 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75
> > 5f 49 8b 14 24 48 39 da 0f 85 4e 01 00 00 49 8d 7d
> > RSP: 0018:ffff8881c1bfea48 EFLAGS: 00010246
> > RAX: dffffc0000000000 RBX: ffff8881bb175618 RCX: ffffc9001006b000
> > RDX: 0000000000000000 RSI: ffffffff8752c823 RDI: ffff8881bb175620
> > RBP: ffff8881c1bfea60 R08: ffff88818dc04200 R09: ffff8881c1bff488
> > R10: ffffed103837feb6 R11: 0000000000000003 R12: 0000000000000000
> > R13: 0000000000000000 R14: ffff8881cb4d8e20 R15: dffffc0000000000
> > FS:  00007f34b0944700(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000
> > CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> > CR2: 0000000000ae0ed0 CR3: 00000001cb898000 CR4: 00000000001406e0
> > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
> > Call Trace:
> >   __list_del_entry include/linux/list.h:117 [inline]
> >   list_del_init include/linux/list.h:159 [inline]
> >   sctp_sched_dequeue_common+0xab/0x610 net/sctp/stream_sched.c:267
> >   sctp_sched_fcfs_dequeue+0x18d/0x280 net/sctp/stream_sched.c:90
> This probably is also caused by stream->out_curr not being updated
> when adding stream_out. we need a fix like:

Yes,

> 
> +static void sctp_stream_out_copy(struct flex_array *fa,
> +                                struct sctp_stream *stream, __u16 count)
> +{
> +       size_t index = 0;
> +       void *elem;
> +
> +       count = min(count, stream->outcnt);
> +       while (count--) {
> +               elem = flex_array_get(stream->out, index);
> +               flex_array_put(fa, index, elem, 0);
> +               if (stream->out_curr = elem)
> +                       stream->out_curr = flex_array_get(fa, index);

makes sense to me too.

> +               index++;
> +       }
> +}
> +
>  static int sctp_stream_alloc_out(struct sctp_stream *stream, __u16 outcnt,
>                                  gfp_t gfp)
>  {
> @@ -146,7 +164,7 @@ static int sctp_stream_alloc_out(struct
> sctp_stream *stream, __u16 outcnt,
>                 return -ENOMEM;
> 
>         if (stream->out) {
> -               fa_copy(out, stream->out, 0, min(outcnt, stream->outcnt));
> +               sctp_stream_out_copy(out, stream, outcnt);
>                 fa_free(stream->out);
>         }
> 
> 
> >   sctp_outq_dequeue_data net/sctp/outqueue.c:90 [inline]
> >   sctp_outq_flush_data net/sctp/outqueue.c:1079 [inline]
> >   sctp_outq_flush+0x13e2/0x34f0 net/sctp/outqueue.c:1205
> >   sctp_outq_uncork+0x6a/0x80 net/sctp/outqueue.c:772
> >   sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1820 [inline]
> >   sctp_side_effects net/sctp/sm_sideeffect.c:1220 [inline]
> >   sctp_do_sm+0x5ff/0x7180 net/sctp/sm_sideeffect.c:1191
> >   sctp_primitive_SEND+0xa0/0xd0 net/sctp/primitive.c:178
> >   sctp_sendmsg_to_asoc+0xa0b/0x1a10 net/sctp/socket.c:1955
> >   sctp_sendmsg+0x13c2/0x1da0 net/sctp/socket.c:2113
> >   inet_sendmsg+0x1a1/0x690 net/ipv4/af_inet.c:798
> >   sock_sendmsg_nosec net/socket.c:621 [inline]
> >   sock_sendmsg+0xd5/0x120 net/socket.c:631
> >   sock_write_iter+0x35e/0x5c0 net/socket.c:900
> >   call_write_iter include/linux/fs.h:1857 [inline]
> >   new_sync_write fs/read_write.c:474 [inline]
> >   __vfs_write+0x6b8/0x9f0 fs/read_write.c:487
> >   vfs_write+0x1fc/0x560 fs/read_write.c:549
> >   ksys_write+0x101/0x260 fs/read_write.c:598
> >   __do_sys_write fs/read_write.c:610 [inline]
> >   __se_sys_write fs/read_write.c:607 [inline]
> >   __x64_sys_write+0x73/0xb0 fs/read_write.c:607
> >   do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
> >   entry_SYSCALL_64_after_hwframe+0x49/0xbe
> > RIP: 0033:0x457569
> > Code: fd b3 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 b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
> > RSP: 002b:00007f34b0943c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
> > RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569
> > RDX: 0000000000034000 RSI: 0000000020000040 RDI: 0000000000000005
> > RBP: 000000000072bfa0 R08: 0000000000000000 R09: 0000000000000000
> > R10: 0000000000000000 R11: 0000000000000246 R12: 00007f34b09446d4
> > R13: 00000000004c5cde R14: 00000000004da090 R15: 00000000ffffffff
> > Modules linked in:
> > ---[ end trace 23757f22491d2e93 ]---
> > RIP: 0010:__list_del_entry_valid+0x84/0x100 lib/list_debug.c:51
> > Code: 0f 84 60 01 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 39 01
> > 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75
> > 5f 49 8b 14 24 48 39 da 0f 85 4e 01 00 00 49 8d 7d
> > kobject: 'loop0' (00000000e65c44e1): kobject_uevent_env
> > kobject: 'loop0' (00000000e65c44e1): fill_kobj_path: path
> > = '/devices/virtual/block/loop0'
> > RSP: 0018:ffff8881c1bfea48 EFLAGS: 00010246
> > RAX: dffffc0000000000 RBX: ffff8881bb175618 RCX: ffffc9001006b000
> > kobject: 'rx-0' (000000005994716d): kobject_cleanup, parent 00000000ba7aa131
> > RDX: 0000000000000000 RSI: ffffffff8752c823 RDI: ffff8881bb175620
> > kobject: 'loop4' (000000004d250bad): kobject_uevent_env
> > kobject: 'rx-0' (000000005994716d): auto cleanup 'remove' event
> > kobject: 'loop4' (000000004d250bad): fill_kobj_path: path
> > = '/devices/virtual/block/loop4'
> > kobject: 'rx-0' (000000005994716d): kobject_uevent_env
> > RBP: ffff8881c1bfea60 R08: ffff88818dc04200 R09: ffff8881c1bff488
> > R10: ffffed103837feb6 R11: 0000000000000003 R12: 0000000000000000
> > kobject: 'rx-0' (000000005994716d): kobject_uevent_env: uevent_suppress
> > caused the event to drop!
> > R13: 0000000000000000 R14: ffff8881cb4d8e20 R15: dffffc0000000000
> > kobject: 'rx-0' (000000005994716d): auto cleanup kobject_del
> > FS:  00007f34b0944700(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000
> > kobject: 'rx-0' (000000005994716d): calling ktype release
> > CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> > CR2: 000000000072c000 CR3: 00000001cb898000 CR4: 00000000001406e0
> > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> > kobject: 'rx-0': free name
> > kobject: 'loop0' (00000000e65c44e1): kobject_uevent_env
> > kobject: 'tx-3' (00000000a24965cd): kobject_cleanup, parent 00000000ba7aa131
> > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
> > kobject: 'tx-3' (00000000a24965cd): auto cleanup 'remove' event
> > kobject: 'loop0' (00000000e65c44e1): fill_kobj_path: path
> > = '/devices/virtual/block/loop0'
> > kobject: 'tx-3' (00000000a24965cd): kobject_uevent_env
> > kobject: 'tx-3' (00000000a24965cd): kobject_uevent_env: uevent_suppress
> > caused the event to drop!
> > kobject: 'tx-3' (00000000a24965cd): auto cleanup kobject_del
> >
> >
> > ---
> > 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 syzkaller@googlegroups.com.
> >
> > syzbot will keep track of this bug report. See:
> > https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with
> > syzbot.
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* general protection fault in sctp_sched_dequeue_common (2)
  2018-11-21  4:28 general protection fault in sctp_sched_dequeue_common syzbot
  2018-11-21 17:51 ` Xin Long
@ 2019-03-14 21:02 ` syzbot
  2019-03-15  7:38   ` Xin Long
  1 sibling, 1 reply; 5+ messages in thread
From: syzbot @ 2019-03-14 21:02 UTC (permalink / raw)
  To: davem, linux-kernel, linux-sctp, lucien.xin, marcelo.leitner,
	netdev, nhorman, syzkaller-bugs, vyasevich

Hello,

syzbot found the following crash on:

HEAD commit:    d9862cfb Merge tag 'mips_5.1' of git://git.kernel.org/pub/..
git tree:       net-next
console output: https://syzkaller.appspot.com/x/log.txt?x\x132308f7200000
kernel config:  https://syzkaller.appspot.com/x/.config?xsd88a42238825ad
dashboard link: https://syzkaller.appspot.com/bug?extid=357cc384ddccdc2fff
compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
userspace arch: amd64
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x\x10f95493200000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x\x133be2cf200000

The crash was bisected to:

commit 7efba10d6bd22030fb5931e50bf97496f932f00e
Author: Xin Long <lucien.xin@gmail.com>
Date:   Mon Jan 28 07:08:46 2019 +0000

     sctp: add SCTP_FUTURE_ASOC and SCTP_CURRENT_ASSOC for  
SCTP_STREAM_SCHEDULER sockopt

bisection log:  https://syzkaller.appspot.com/x/bisect.txt?x\x1467361b200000
final crash:    https://syzkaller.appspot.com/x/report.txt?x\x1667361b200000
console output: https://syzkaller.appspot.com/x/log.txt?x\x1267361b200000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+3d357cc384ddccdc2fff@syzkaller.appspotmail.com
Fixes: 7efba10d ("sctp: add SCTP_FUTURE_ASOC and SCTP_CURRENT_ASSOC for  
SCTP_STREAM_SCHEDULER sockopt")

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: 1 PID: 7793 Comm: syz-executor452 Not tainted 5.0.0+ #97
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
RIP: 0010:__list_del_entry_valid+0x85/0xf5 lib/list_debug.c:51
Code: 0f 84 e1 00 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 e2 00  
00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75  
53 49 8b 14 24 4c 39 f2 0f 85 99 00 00 00 49 8d 7d
RSP: 0018:ffff88809e8c6fd8 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: ffff88808fdd6d10 RCX: ffffffff86799d9f
RDX: 0000000000000000 RSI: ffffffff86815d20 RDI: ffff88808fdd6d18
RBP: ffff88809e8c6ff0 R08: ffff888091bc0080 R09: 0000000000000002
R10: ffffed1015d25bcf R11: ffff8880ae92de7b R12: 0000000000000006
R13: 0000000100000000 R14: ffff88808fdd6d10 R15: ffff88809e8c7198
FS:  0000000000fad880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 00000000a1385000 CR4: 00000000001406e0
Call Trace:
  __list_del_entry include/linux/list.h:117 [inline]
  list_del_init include/linux/list.h:159 [inline]
  sctp_sched_dequeue_common+0x28/0x340 net/sctp/stream_sched.c:267
  sctp_sched_prio_dequeue+0xec/0x1a0 net/sctp/stream_sched_prio.c:283
  sctp_outq_dequeue_data net/sctp/outqueue.c:90 [inline]
  sctp_outq_flush_data net/sctp/outqueue.c:1079 [inline]
  sctp_outq_flush+0xba2/0x2790 net/sctp/outqueue.c:1205
  sctp_outq_uncork+0x6c/0x80 net/sctp/outqueue.c:772
  sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1820 [inline]
  sctp_side_effects net/sctp/sm_sideeffect.c:1220 [inline]
  sctp_do_sm+0x513/0x5390 net/sctp/sm_sideeffect.c:1191
  sctp_assoc_bh_rcv+0x343/0x660 net/sctp/associola.c:1074
  sctp_inq_push+0x1ea/0x290 net/sctp/inqueue.c:95
  sctp_backlog_rcv+0x189/0xbc0 net/sctp/input.c:354
  sk_backlog_rcv include/net/sock.h:937 [inline]
  __release_sock+0x12e/0x3a0 net/core/sock.c:2413
  release_sock+0x59/0x1c0 net/core/sock.c:2929
  sctp_wait_for_connect+0x316/0x540 net/sctp/socket.c:8999
  sctp_sendmsg_to_asoc+0x13e2/0x17d0 net/sctp/socket.c:1968
  sctp_sendmsg+0x10a9/0x17e0 net/sctp/socket.c:2114
  inet_sendmsg+0x147/0x5d0 net/ipv4/af_inet.c:798
  sock_sendmsg_nosec net/socket.c:622 [inline]
  sock_sendmsg+0xdd/0x130 net/socket.c:632
  ___sys_sendmsg+0x806/0x930 net/socket.c:2137
  __sys_sendmsg+0x105/0x1d0 net/socket.c:2175
  __do_sys_sendmsg net/socket.c:2184 [inline]
  __se_sys_sendmsg net/socket.c:2182 [inline]
  __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2182
  do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4402a9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fff60414978 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004402a9
RDX: 0000000000000000 RSI: 000000002001afc8 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000002 R09: 00000000004002c8
R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000401b30
R13: 0000000000401bc0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 8121cdb67bdbbfc9 ]---
RIP: 0010:__list_del_entry_valid+0x85/0xf5 lib/list_debug.c:51
Code: 0f 84 e1 00 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 e2 00  
00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75  
53 49 8b 14 24 4c 39 f2 0f 85 99 00 00 00 49 8d 7d
RSP: 0018:ffff88809e8c6fd8 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: ffff88808fdd6d10 RCX: ffffffff86799d9f
RDX: 0000000000000000 RSI: ffffffff86815d20 RDI: ffff88808fdd6d18
RBP: ffff88809e8c6ff0 R08: ffff888091bc0080 R09: 0000000000000002
R10: ffffed1015d25bcf R11: ffff8880ae92de7b R12: 0000000000000006
R13: 0000000100000000 R14: ffff88808fdd6d10 R15: ffff88809e8c7198
FS:  0000000000fad880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 00000000a1385000 CR4: 00000000001406e0


---
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 syzkaller@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 can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: general protection fault in sctp_sched_dequeue_common (2)
  2019-03-14 21:02 ` general protection fault in sctp_sched_dequeue_common (2) syzbot
@ 2019-03-15  7:38   ` Xin Long
  0 siblings, 0 replies; 5+ messages in thread
From: Xin Long @ 2019-03-15  7:38 UTC (permalink / raw)
  To: syzbot
  Cc: davem, LKML, linux-sctp, Marcelo Ricardo Leitner, network dev,
	Neil Horman, syzkaller-bugs, Vlad Yasevich

I think this commit has fixed it:

commit 2e990dfd13974d9eae493006f42ffb48707970ef
Author: Xin Long <lucien.xin@gmail.com>
Date:   Fri Mar 8 15:49:16 2019 +0800

    sctp: remove sched init from sctp_stream_init

On Fri, Mar 15, 2019 at 5:02 AM syzbot
<syzbot+3d357cc384ddccdc2fff@syzkaller.appspotmail.com> wrote:
>
> Hello,
>
> syzbot found the following crash on:
>
> HEAD commit:    d9862cfb Merge tag 'mips_5.1' of git://git.kernel.org/pub/..
> git tree:       net-next
> console output: https://syzkaller.appspot.com/x/log.txt?x\x132308f7200000
> kernel config:  https://syzkaller.appspot.com/x/.config?xsd88a42238825ad
> dashboard link: https://syzkaller.appspot.com/bug?extid=357cc384ddccdc2fff
> compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
> userspace arch: amd64
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x\x10f95493200000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x\x133be2cf200000
>
> The crash was bisected to:
>
> commit 7efba10d6bd22030fb5931e50bf97496f932f00e
> Author: Xin Long <lucien.xin@gmail.com>
> Date:   Mon Jan 28 07:08:46 2019 +0000
>
>      sctp: add SCTP_FUTURE_ASOC and SCTP_CURRENT_ASSOC for
> SCTP_STREAM_SCHEDULER sockopt
>
> bisection log:  https://syzkaller.appspot.com/x/bisect.txt?x\x1467361b200000
> final crash:    https://syzkaller.appspot.com/x/report.txt?x\x1667361b200000
> console output: https://syzkaller.appspot.com/x/log.txt?x\x1267361b200000
>
> IMPORTANT: if you fix the bug, please add the following tag to the commit:
> Reported-by: syzbot+3d357cc384ddccdc2fff@syzkaller.appspotmail.com
> Fixes: 7efba10d ("sctp: add SCTP_FUTURE_ASOC and SCTP_CURRENT_ASSOC for
> SCTP_STREAM_SCHEDULER sockopt")
>
> 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: 1 PID: 7793 Comm: syz-executor452 Not tainted 5.0.0+ #97
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
> Google 01/01/2011
> RIP: 0010:__list_del_entry_valid+0x85/0xf5 lib/list_debug.c:51
> Code: 0f 84 e1 00 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 e2 00
> 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75
> 53 49 8b 14 24 4c 39 f2 0f 85 99 00 00 00 49 8d 7d
> RSP: 0018:ffff88809e8c6fd8 EFLAGS: 00010247
> RAX: dffffc0000000000 RBX: ffff88808fdd6d10 RCX: ffffffff86799d9f
> RDX: 0000000000000000 RSI: ffffffff86815d20 RDI: ffff88808fdd6d18
> RBP: ffff88809e8c6ff0 R08: ffff888091bc0080 R09: 0000000000000002
> R10: ffffed1015d25bcf R11: ffff8880ae92de7b R12: 0000000000000006
> R13: 0000000100000000 R14: ffff88808fdd6d10 R15: ffff88809e8c7198
> FS:  0000000000fad880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 0000000020000080 CR3: 00000000a1385000 CR4: 00000000001406e0
> Call Trace:
>   __list_del_entry include/linux/list.h:117 [inline]
>   list_del_init include/linux/list.h:159 [inline]
>   sctp_sched_dequeue_common+0x28/0x340 net/sctp/stream_sched.c:267
>   sctp_sched_prio_dequeue+0xec/0x1a0 net/sctp/stream_sched_prio.c:283
>   sctp_outq_dequeue_data net/sctp/outqueue.c:90 [inline]
>   sctp_outq_flush_data net/sctp/outqueue.c:1079 [inline]
>   sctp_outq_flush+0xba2/0x2790 net/sctp/outqueue.c:1205
>   sctp_outq_uncork+0x6c/0x80 net/sctp/outqueue.c:772
>   sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1820 [inline]
>   sctp_side_effects net/sctp/sm_sideeffect.c:1220 [inline]
>   sctp_do_sm+0x513/0x5390 net/sctp/sm_sideeffect.c:1191
>   sctp_assoc_bh_rcv+0x343/0x660 net/sctp/associola.c:1074
>   sctp_inq_push+0x1ea/0x290 net/sctp/inqueue.c:95
>   sctp_backlog_rcv+0x189/0xbc0 net/sctp/input.c:354
>   sk_backlog_rcv include/net/sock.h:937 [inline]
>   __release_sock+0x12e/0x3a0 net/core/sock.c:2413
>   release_sock+0x59/0x1c0 net/core/sock.c:2929
>   sctp_wait_for_connect+0x316/0x540 net/sctp/socket.c:8999
>   sctp_sendmsg_to_asoc+0x13e2/0x17d0 net/sctp/socket.c:1968
>   sctp_sendmsg+0x10a9/0x17e0 net/sctp/socket.c:2114
>   inet_sendmsg+0x147/0x5d0 net/ipv4/af_inet.c:798
>   sock_sendmsg_nosec net/socket.c:622 [inline]
>   sock_sendmsg+0xdd/0x130 net/socket.c:632
>   ___sys_sendmsg+0x806/0x930 net/socket.c:2137
>   __sys_sendmsg+0x105/0x1d0 net/socket.c:2175
>   __do_sys_sendmsg net/socket.c:2184 [inline]
>   __se_sys_sendmsg net/socket.c:2182 [inline]
>   __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2182
>   do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
>   entry_SYSCALL_64_after_hwframe+0x49/0xbe
> RIP: 0033:0x4402a9
> Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
> RSP: 002b:00007fff60414978 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
> RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004402a9
> RDX: 0000000000000000 RSI: 000000002001afc8 RDI: 0000000000000003
> RBP: 00000000006ca018 R08: 0000000000000002 R09: 00000000004002c8
> R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000401b30
> R13: 0000000000401bc0 R14: 0000000000000000 R15: 0000000000000000
> Modules linked in:
> ---[ end trace 8121cdb67bdbbfc9 ]---
> RIP: 0010:__list_del_entry_valid+0x85/0xf5 lib/list_debug.c:51
> Code: 0f 84 e1 00 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 e2 00
> 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75
> 53 49 8b 14 24 4c 39 f2 0f 85 99 00 00 00 49 8d 7d
> RSP: 0018:ffff88809e8c6fd8 EFLAGS: 00010247
> RAX: dffffc0000000000 RBX: ffff88808fdd6d10 RCX: ffffffff86799d9f
> RDX: 0000000000000000 RSI: ffffffff86815d20 RDI: ffff88808fdd6d18
> RBP: ffff88809e8c6ff0 R08: ffff888091bc0080 R09: 0000000000000002
> R10: ffffed1015d25bcf R11: ffff8880ae92de7b R12: 0000000000000006
> R13: 0000000100000000 R14: ffff88808fdd6d10 R15: ffff88809e8c7198
> FS:  0000000000fad880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 0000000020000080 CR3: 00000000a1385000 CR4: 00000000001406e0
>
>
> ---
> 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 syzkaller@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 can test patches for this bug, for details see:
> https://goo.gl/tpsmEJ#testing-patches

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-03-15  7:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-21  4:28 general protection fault in sctp_sched_dequeue_common syzbot
2018-11-21 17:51 ` Xin Long
2018-11-21 19:23   ` Marcelo Ricardo Leitner
2019-03-14 21:02 ` general protection fault in sctp_sched_dequeue_common (2) syzbot
2019-03-15  7:38   ` Xin Long

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).