On 26.06.18 11:47, Martin Pieuchot wrote: > On 26/06/18(Tue) 10:46, Bruno Flueckiger wrote: > > On 20.06.2018 13:13, Martin Pieuchot wrote: > > > Diff below unlocks the following syscalls: > > > > > > recvmsg(2), recvfrom(2), accept(2), getpeername(2), getsockname(2), > > > accept4(2), connect(2), bind(2), setsockopt(2), listen(2), > > > getsockopt(2), shutdown(2) > > > > > > It doesn't mean that they won't run without the KERNEL_LOCK(). Instead > > > a lock will be picked based on the socket type. For Unix/pfkey/routing > > > sockets it is still the KERNEL_LOCK(). That means the KERNEL_LOCK() > > > will be taken a bit later in the syscall. But for TCP/UDP sockets it > > > will grab the NET_LOCK() instead, just like in sendto(2) and sendmsg(2). > > > > > > Tests & oks welcome! > > > > Hi Martin, > > > > I run your diff on my HP ProBook 450 G3 for some days now without problems. > > The only thing to mention is that your diff seems to be incompatible with > > the DRI3 diff from Mark Kettenis[1]. When I apply both diffs to the -current > > kernel the kernel panics during boot: > > I guess the diffs didn't apply cleanly. You can now update your source > -current an apply my diff only, do "make syscalls" and run the resulting > kernel. >
Thanks for the info. This works now as expected. My system is running with your patch.