Regarding pledge system call bit value for a non-pledged process

2018-02-17 Thread Neeraj Pal
Hello guys, #pledge_queries I have a query regarding #pledge internals. I read kern_pledge.c file, but, I am not able to figure out the pledge bit value of a program which isn't using pledge() system call in user-space code. Because even after not using pledge() system call in user-space, still,

Doc. modification advise not to use softdep with KARL

2018-02-17 Thread Jason Tubnor
Hi, In some instances, we have found that where softdep has been placed on file systems that are used as part of the KARL process, incomplete writes have occurred (not committed to storage correctly) prior to reboot. Files affected have been /bsd, /usr/share/compile/GENERIC/relink.log and /v

special/sysctl: missing prototype

2018-02-17 Thread Christian Weisgerber
Fix a compiler warning about a missing prototype for tolower() when building the installer's cut down sysctl. ok? Index: distrib/special/sysctl/sysctl.c === RCS file: /cvs/src/distrib/special/sysctl/sysctl.c,v retrieving revision 1.1

Re: rc.d/vmd - wait for vms to shutdown

2018-02-17 Thread Mike Larkin
On Sat, Feb 17, 2018 at 08:36:41PM +, Stuart Henderson wrote: > On 2018/02/17 10:47, Mike Larkin wrote: > > On Sat, Feb 17, 2018 at 10:10:37AM +, Stuart Henderson wrote: > > > On 2018/02/16 17:55, Aaron Bieber wrote: > > > > Hola, > > > > > > > > Here is a stab at telling /etc/rc.d/vmd to

Re: rc.d/vmd - wait for vms to shutdown

2018-02-17 Thread Stuart Henderson
On 2018/02/17 10:47, Mike Larkin wrote: > On Sat, Feb 17, 2018 at 10:10:37AM +, Stuart Henderson wrote: > > On 2018/02/16 17:55, Aaron Bieber wrote: > > > Hola, > > > > > > Here is a stab at telling /etc/rc.d/vmd to wait for vms to shutdown > > > before killing vmd. > > > > > > Since there is

Re: rename arm64 memhook

2018-02-17 Thread Todd C. Miller
On Sat, 17 Feb 2018 20:10:45 +0100, Mark Kettenis wrote: > Not that vmmap is a much better name, but that's what we use on other > non-pmap-direct architectures. Consistency is good, OK millert@ - todd

rename arm64 memhook

2018-02-17 Thread Mark Kettenis
Not that vmmap is a much better name, but that's what we use on other non-pmap-direct architectures. ok? Index: arch/arm64/arm64/mem.c === RCS file: /cvs/src/sys/arch/arm64/arm64/mem.c,v retrieving revision 1.3 diff -u -p -r1.3 mem.

Re: rc.d/vmd - wait for vms to shutdown

2018-02-17 Thread Mike Larkin
On Sat, Feb 17, 2018 at 10:10:37AM +, Stuart Henderson wrote: > On 2018/02/16 17:55, Aaron Bieber wrote: > > Hola, > > > > Here is a stab at telling /etc/rc.d/vmd to wait for vms to shutdown > > before killing vmd. > > > > Since there is no linux vmmci layer - linux machines still get killed.

armv7 userland FPU support bits

2018-02-17 Thread Mark Kettenis
Now that we switched the clang and have FPU suuport in the kernel we can actually start using hardware floating-point instructions in userland. It is possible to this without breaking the ABI by using the -mfloat-abi=softfp option. I am considering to make this the default. But before we do that

Re: goto in ptrace_ctrl()

2018-02-17 Thread Mark Kettenis
> Date: Sat, 17 Feb 2018 15:17:11 +0100 > From: Martin Pieuchot > > On 12/02/18(Mon) 09:26, Martin Pieuchot wrote: > > Diff below introduce multiple 'goto fail' in ptrace_ctrl(). It is > > extracted from guenther@'s proctreelk diff because it doesn't introduce > > any change in behavior. I'd li

Re: soconnect2() & solock()

2018-02-17 Thread Martin Pieuchot
On 07/02/18(Wed) 15:45, Martin Pieuchot wrote: > I'd like to push the lock *inside* soconnect2(). This is mostly a noop > as only AF_LOCAL support PRU_CONNECT2. But having less solock/sounlock > dances in kern/uipc_syscalls.c helps mentally :) > > ok? Anyone? > Index: kern/uipc_socket.c >

Re: goto in ptrace_ctrl()

2018-02-17 Thread Martin Pieuchot
On 12/02/18(Mon) 09:26, Martin Pieuchot wrote: > Diff below introduce multiple 'goto fail' in ptrace_ctrl(). It is > extracted from guenther@'s proctreelk diff because it doesn't introduce > any change in behavior. I'd like to get it in to shrink the locking > diff. > > ok? Anyone? > Index: ke

Re: rc.d/vmd - wait for vms to shutdown

2018-02-17 Thread Stuart Henderson
On 2018/02/16 17:55, Aaron Bieber wrote: > Hola, > > Here is a stab at telling /etc/rc.d/vmd to wait for vms to shutdown > before killing vmd. > > Since there is no linux vmmci layer - linux machines still get killed. Simpler and less busy-waiting. Do we need a timeout though? Index: vmd ==