On Mon, Jul 03, 2017 at 11:30:18PM +0200, Alexander Bluhm wrote:
> On Mon, Jul 03, 2017 at 09:20:51PM +0200, Gregor Best wrote:
> > With this commit in, I get a panic like the one below. That's a
> > transcription from a photo of the screen, the photo itself is at [0].
> 
> I can reproduce it with regress /usr/src/regress/lib/libtls on i386.

This fixes the panic for me.

ok?

bluhm

Index: kern/uipc_syscalls.c
===================================================================
RCS file: /data/mirror/openbsd/cvs/src/sys/kern/uipc_syscalls.c,v
retrieving revision 1.151
diff -u -p -r1.151 uipc_syscalls.c
--- kern/uipc_syscalls.c        27 Mar 2017 11:45:49 -0000      1.151
+++ kern/uipc_syscalls.c        3 Jul 2017 22:18:04 -0000
@@ -327,7 +327,7 @@ doaccept(struct proc *p, int sock, struc
            : (flags & SOCK_NONBLOCK ? FNONBLOCK : 0);
 
        /* connection has been removed from the listen queue */
-       KNOTE(&head->so_rcv.sb_sel.si_note, 0);
+       KNOTE(&head->so_rcv.sb_sel.si_note, NOTE_SUBMIT);
 
        fp->f_type = DTYPE_SOCKET;
        fp->f_flag = FREAD | FWRITE | nflag;

Reply via email to