CVS commit: src/sys/kern

2018-07-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jul 3 23:11:06 UTC 2018 Modified Files: src/sys/kern: kern_descrip.c Log Message: Avoid unportable signed integer left shift in fd_copy() Detected with Kernel Undefined Behavior Sanitizer. There were at least a single place

CVS commit: src/sys/kern

2018-07-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jul 3 22:49:51 UTC 2018 Modified Files: src/sys/kern: kern_descrip.c Log Message: Avoid unportable signed integer left shift in fd_isused() Detected with Kernel Undefined Behavior Sanitizer. sys/kern/kern_descrip.c:188:34, l

CVS commit: src/sys/kern

2018-07-03 Thread Jaromir Dolecek
Module Name:src Committed By: jdolecek Date: Tue Jul 3 18:09:28 UTC 2018 Modified Files: src/sys/kern: kern_rndq.c Log Message: add DIAGNOSTIC check for rnd_attach_source() being called twice for same rnd source; it's driver error, and it breaks rnd source list pointers

CVS commit: src/sys/kern

2018-07-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jul 3 12:17:54 UTC 2018 Modified Files: src/sys/kern: kern_descrip.c Log Message: Avoid unportable signed integer left shift in fd_used() Detected with Kernel Undefined Behavior Sanitizer. There were at least a single place

CVS commit: src/sys/kern

2018-07-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Jul 1 15:12:06 UTC 2018 Modified Files: src/sys/kern: kern_ntptime.c kern_tc.c Log Message: Revert "Sprinkle cold conditionals to make tc_ticktock before inittimecounter." Not needed if we're no longer doing tc_ticktock i

CVS commit: src/sys/kern

2018-07-01 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Sun Jul 1 09:53:54 UTC 2018 Modified Files: src/sys/kern: subr_prf.c Log Message: Revert previous To generate a diff of this commit: cvs rdiff -u -r1.172 -r1.173 src/sys/kern/subr_prf.c Please note that diffs are not public

CVS commit: src/sys/kern

2018-06-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jun 30 22:47:51 UTC 2018 Modified Files: src/sys/kern: kern_ntptime.c kern_tc.c Log Message: Sprinkle cold conditionals to make tc_ticktock before inittimecounter. Enables Xen to boot again. XXX Maybe we should have a tc_

CVS commit: src/sys/kern

2018-06-30 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Sat Jun 30 17:15:01 UTC 2018 Modified Files: src/sys/kern: subr_prf.c Log Message: When cold, manually update timecounters before calling getnanouptime. Now kernel printf timestamps are updated properly before interrupts are ena

CVS commit: src/sys/kern

2018-06-30 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jun 30 11:10:54 UTC 2018 Modified Files: src/sys/kern: exec_script.c Log Message: Fix module build. Options SUIDSCRIPTS and FDSCRIPTS will be off for the module. If one (or both) should be enabled, add it to CPPFLAGSin the modul

CVS commit: src/sys/kern

2018-06-29 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Jun 30 00:37:38 UTC 2018 Modified Files: src/sys/kern: exec_script.c files.kern Log Message: defflag {SETUID,FD}SCRIPTS To generate a diff of this commit: cvs rdiff -u -r1.75 -r1.76 src/sys/kern/exec_script.c cvs rdiff -u

CVS commit: src/sys/kern

2018-06-23 Thread Jonathan A. Kollasch
Module Name:src Committed By: jakllsch Date: Sat Jun 23 14:22:30 UTC 2018 Modified Files: src/sys/kern: subr_kobj.c Log Message: add a kobj_error() to a recently added error case To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/sys/kern/subr_kobj.c Plea

CVS commit: src/sys/kern

2018-06-22 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Jun 23 03:32:48 UTC 2018 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Add some debugging in case someone else wants to debug gdb... To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/ke

CVS commit: src/sys/kern

2018-06-18 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Tue Jun 19 04:10:51 UTC 2018 Modified Files: src/sys/kern: subr_autoconf.c Log Message: Sigh, fix another stupid mistake in previous that squeaked by because, again, I booted the wrong test kernel. To generate a diff of this co

CVS commit: src/sys/kern

2018-06-18 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jun 18 16:31:42 UTC 2018 Modified Files: src/sys/kern: subr_autoconf.c Log Message: Fix a silly mistake in device_compatible_entry_matches() that I made while re-factoring this from a prior version. (I booted the wrong kerne

CVS commit: src/sys/kern

2018-06-12 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Wed Jun 13 05:26:12 UTC 2018 Modified Files: src/sys/kern: subr_workqueue.c Log Message: Don't wait on workqueue_wait if called from worker itself Otherwise workqueue_wait never return in such a case. This treatment is the same

CVS commit: src/sys/kern

2018-06-03 Thread Jonathan A. Kollasch
Module Name:src Committed By: jakllsch Date: Sun Jun 3 15:26:04 UTC 2018 Modified Files: src/sys/kern: subr_prf.c Log Message: Make identification of accounted aprint_error()s possible by putting a big ugly "autoconfiguration error: " in the log when they occur. To gene

CVS commit: src/sys/kern

2018-05-30 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 30 23:54:03 UTC 2018 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Simplify comparison of two processes No need to check p_pid to compare whether two processes are the same. No functional change intended.

CVS commit: src/sys/kern

2018-05-29 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue May 29 23:34:18 UTC 2018 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Harden PT_ATTACH in ptrace(2) Don't allow to PT_ATTACH from a vfork(2)ed child (before exec(3)/_exit(3)) to its parent. Return error with

CVS commit: src/sys/kern

2018-05-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon May 28 14:07:37 UTC 2018 Modified Files: src/sys/kern: kern_sig.c Log Message: Revert previous There is a regression not covered by tests. To generate a diff of this commit: cvs rdiff -u -r1.348 -r1.349 src/sys/kern/kern_sig

CVS commit: src/sys/kern

2018-05-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon May 28 13:12:54 UTC 2018 Modified Files: src/sys/kern: kern_sig.c Log Message: Enhance the signal routing of a trapsignal under a debugger Stop resetting signal masks for crash signals under a debugger. If we set a trap (eith

CVS commit: src/sys/kern

2018-05-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon May 28 11:32:20 UTC 2018 Modified Files: src/sys/kern: kern_exec.c Log Message: Correct reporting SIGTRAP TRAP_EXEC when SIGTRAP is masked Switch from kpsignal(9) to sigswitch() as it allows to bypass signal masking rules of a

CVS commit: src/sys/kern

2018-05-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat May 19 05:01:42 UTC 2018 Modified Files: src/sys/kern: kern_sig.c Log Message: Stop masking raise(SIGSTOP) in a vfork(2)ed child that called PT_TRACE_ME. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.345

CVS commit: src/sys/kern

2018-05-13 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun May 13 14:45:23 UTC 2018 Modified Files: src/sys/kern: kern_resource.c Log Message: correct the function name. To generate a diff of this commit: cvs rdiff -u -r1.180 -r1.181 src/sys/kern/kern_resource.c Please note that

CVS commit: src/sys/kern

2018-05-08 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue May 8 19:34:54 UTC 2018 Modified Files: src/sys/kern: kern_resource.c Log Message: get the maxrss from the vmspace field, and handle platforms that don't have pmap statistics here. To generate a diff of this commit: cvs r

CVS commit: src/sys/kern

2018-05-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon May 7 09:57:37 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Copy some KASSERTs from m_move_pkthdr into m_copy_pkthdr, and reorder the latter to reduce the diff with the former. To generate a diff of this co

CVS commit: src/sys/kern

2018-05-05 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun May 6 00:46:09 UTC 2018 Modified Files: src/sys/kern: uipc_sem.c Log Message: don't use pathbuf here; it is intertwined with vfs and gives rump heartburn. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/

CVS commit: src/sys/kern

2018-05-05 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat May 5 22:14:45 UTC 2018 Modified Files: src/sys/kern: uipc_sem.c Log Message: don't use stack for name (requested by joerg) To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/sys/kern/uipc_sem.c Please not

CVS commit: src/sys/kern

2018-05-04 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri May 4 19:56:59 UTC 2018 Modified Files: src/sys/kern: uipc_sem.c Log Message: bump the pathname size to NAME_MAX as POSIX wants. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/kern/uipc_sem.c Pleas

CVS commit: src/sys/kern

2018-05-04 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri May 4 08:47:55 UTC 2018 Modified Files: src/sys/kern: uipc_syscalls.c Log Message: define MBUFTYPES here. To generate a diff of this commit: cvs rdiff -u -r1.193 -r1.194 src/sys/kern/uipc_syscalls.c Please note that diff

CVS commit: src/sys/kern

2018-05-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 3 07:46:17 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Revert my rev1.190, remove the M_READONLY check. The initial code was correct: what is read-only is the mbuf storage, not the mbuf itself. The stora

CVS commit: src/sys/kern

2018-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue May 1 14:09:53 UTC 2018 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Add additional hardening in PT_TRACE_ME and PT_ATTACH Prohibit: - calling PT_TRACE_ME by initproc (PID1), - calling PT_ATTACH by initpro

CVS commit: src/sys/kern

2018-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue May 1 13:48:38 UTC 2018 Modified Files: src/sys/kern: kern_sig.c Log Message: Improve the proc_stoptrace() function proc_stoptrace() is dedicated for emitting a syscall trap for a debugger, either on entry or exit of the syst

CVS commit: src/sys/kern

2018-04-28 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 29 04:28:10 UTC 2018 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Harden the NetBSD PT_TRACE_ME operation You can't say to the parent of a process to start tracing if: (1) the parent is initproc,

CVS commit: src/sys/kern

2018-04-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Apr 28 08:16:15 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Modify m_defrag, so that it never frees the first mbuf of the chain. While here use the given 'flags' argument, and not M_DONTWAIT. We have a probl

CVS commit: src/sys/kern

2018-04-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Apr 27 18:40:40 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Remove reference to m_ext.ext_type (doesn't exist). To generate a diff of this commit: cvs rdiff -u -r1.208 -r1.209 src/sys/kern/uipc_mbuf.c Plea

CVS commit: src/sys/kern

2018-04-27 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Apr 27 16:50:57 UTC 2018 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Correct XXX comment in the ptrace(2) kernel code Explain I and D read/write operations and its history, removing dummy XXX comments. Spon

CVS commit: src/sys/kern

2018-04-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Apr 27 16:18:40 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Stop passing the pool as argument of the storage. M_EXT_CLUSTER mbufs are supposed to take their area from mcl_cache only. To generate a diff of t

CVS commit: src/sys/kern

2018-04-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Apr 27 08:23:18 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Reorder, to group related functions. To generate a diff of this commit: cvs rdiff -u -r1.204 -r1.205 src/sys/kern/uipc_mbuf.c Please note that di

CVS commit: src/sys/kern

2018-04-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Apr 27 06:36:16 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Simplify m_copydata, use unsigned int, and change its last argument to match that of the man page. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/kern

2018-04-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Apr 27 06:27:36 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Style and simplify. To generate a diff of this commit: cvs rdiff -u -r1.198 -r1.199 src/sys/kern/uipc_mbuf.c Please note that diffs are not publi

CVS commit: src/sys/kern

2018-04-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Apr 27 06:15:49 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Panic in m_copypacket if no header is present, that's a requirement. To generate a diff of this commit: cvs rdiff -u -r1.197 -r1.198 src/sys/kern/

CVS commit: src/sys/kern

2018-04-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Apr 26 08:31:36 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Rename m_copyback0 -> m_copyback_internal M_COPYBACK0_* -> CB_* That's a lot less misleading. While here, fix a bunch of panic mes

CVS commit: src/sys/kern

2018-04-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Apr 26 07:46:24 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Change comment, to clearly say that m_prepend should not be used directly. To generate a diff of this commit: cvs rdiff -u -r1.193 -r1.194 src/sys

CVS commit: src/sys/kern

2018-04-24 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Apr 24 18:34:46 UTC 2018 Modified Files: src/sys/kern: kern_sig.c Log Message: Remove unused code branch in the signal code Remove the ppsig argument from proc_stop_done() and from sigswitch(). This functionality was used in

CVS commit: src/sys/kern

2018-04-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Apr 23 15:51:00 UTC 2018 Modified Files: src/sys/kern: kern_lwp.c Log Message: PR/kern/53202: Kernel hangs running t_ptrace_wait:resume1 test, revert previous. To generate a diff of this commit: cvs rdiff -u -r1.191 -r1.19

CVS commit: src/sys/kern

2018-04-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Apr 20 06:01:59 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Cast to int, to properly handle dstoff > MHLEN (which never happens). To generate a diff of this commit: cvs rdiff -u -r1.192 -r1.193 src/sys/kern

CVS commit: src/sys/kern

2018-04-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Apr 19 05:16:02 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: The mbuf length is allowed to be zero. To generate a diff of this commit: cvs rdiff -u -r1.191 -r1.192 src/sys/kern/uipc_mbuf.c Please note that

CVS commit: src/sys/kern

2018-04-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Apr 17 07:58:31 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: change the comment To generate a diff of this commit: cvs rdiff -u -r1.190 -r1.191 src/sys/kern/uipc_mbuf.c Please note that diffs are not public

CVS commit: src/sys/kern

2018-04-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Apr 17 07:41:34 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: If the mbuf is shared leave M_PKTHDR in place. Given where this function is called from that's not supposed to happen, but I'm growing unconfident a

CVS commit: src/sys/kern

2018-04-16 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Apr 16 20:25:21 UTC 2018 Modified Files: src/sys/kern: subr_pserialize.c Log Message: Function pserialize_perform() usually succeeds after two cross calls so defer kpause() to iterations three and above. Speeds up VOP_REVOKE

CVS commit: src/sys/kern

2018-04-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Apr 16 19:19:51 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Disable the M_PKTHDR check for now. It causes PR/53189 (which is also reproducible on i386). It seems that someone is giving looutput a malformed c

CVS commit: src/sys/kern

2018-04-16 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Apr 16 14:18:16 UTC 2018 Modified Files: src/sys/kern: init_main.c Log Message: Set initproc inside start_init() This allows us to stop using the rnewprocp argument in fork1(9). The rnewprocp argument will be removed soon fro

CVS commit: src/sys/kern

2018-04-14 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Apr 14 14:26:20 UTC 2018 Modified Files: src/sys/kern: kern_proc.c Log Message: Don't set errno ESRCH for empty result of KINFO_PROC[2] Restore the previous behavior as it's prefered. This new behavior was introduced in 1.210

CVS commit: src/sys/kern

2018-04-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Apr 14 08:13:58 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf2.c Log Message: cosmetic To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/kern/uipc_mbuf2.c Please note that diffs are not public domain; t

CVS commit: src/sys/kern

2018-04-13 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Apr 14 01:53:38 UTC 2018 Modified Files: src/sys/kern: subr_prf.c Log Message: Change the default precision of timestamps from 9 digits (nanosecs) to 7 (100's of nanosecs). This should perhaps depend upon the port (what resolut

CVS commit: src/sys/kern

2018-04-13 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Apr 14 01:45:37 UTC 2018 Modified Files: src/sys/kern: subr_prf.c Log Message: Allow the precision of the sub-second field of timestamps to be controlled - for now that is done by editing this file and recompiling (or using gdb o

CVS commit: src/sys/kern

2018-04-13 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Apr 13 09:21:16 UTC 2018 Modified Files: src/sys/kern: subr_prf.c Log Message: make this narrower by popular request. To generate a diff of this commit: cvs rdiff -u -r1.167 -r1.168 src/sys/kern/subr_prf.c Please note tha

CVS commit: src/sys/kern

2018-04-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Apr 12 20:49:08 UTC 2018 Modified Files: src/sys/kern: exec_elf.c Log Message: ignore the ancient NetBSD emulation tag. To generate a diff of this commit: cvs rdiff -u -r1.96 -r1.97 src/sys/kern/exec_elf.c Please note tha

CVS commit: src/sys/kern

2018-04-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Apr 12 20:43:44 UTC 2018 Modified Files: src/sys/kern: kern_stub.c Log Message: let the modular code load the sysv modules. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/kern/kern_stub.c Please not

CVS commit: src/sys/kern

2018-04-11 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Apr 11 23:20:15 UTC 2018 Modified Files: src/sys/kern: subr_prf.c Log Message: fix type confusion on 32 bits To generate a diff of this commit: cvs rdiff -u -r1.166 -r1.167 src/sys/kern/subr_prf.c Please note that diffs a

CVS commit: src/sys/kern

2018-04-11 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Apr 11 15:25:58 UTC 2018 Modified Files: src/sys/kern: subr_prf.c Log Message: flip the default and enable kernel timestamps. To generate a diff of this commit: cvs rdiff -u -r1.165 -r1.166 src/sys/kern/subr_prf.c Please

CVS commit: src/sys/kern

2018-04-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Apr 10 15:29:46 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Put the "free" functions close to one another. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.185 -r1.186 src/sys/kern/

CVS commit: src/sys/kern

2018-04-08 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sun Apr 8 11:46:13 UTC 2018 Modified Files: src/sys/kern: kern_pmf.c Log Message: expose pmf debug switches with sysctl. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/sys/kern/kern_pmf.c Please note that d

CVS commit: src/sys/kern

2018-04-08 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sun Apr 8 11:43:01 UTC 2018 Modified Files: src/sys/kern: kern_resource.c Log Message: limits are bytes, vm sizes are clicks. To generate a diff of this commit: cvs rdiff -u -r1.176 -r1.177 src/sys/kern/kern_resource.c Please

CVS commit: src/sys/kern

2018-04-01 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Apr 1 19:29:43 UTC 2018 Modified Files: src/sys/kern: subr_prf.c Log Message: Add the ability to prepend a timestamp [ sec.nsec] relative to boottime in kernel messages if KLOG_TIMESTAMP is enabled. To generate a diff of

CVS commit: src/sys/kern

2018-04-01 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Apr 1 19:28:17 UTC 2018 Modified Files: src/sys/kern: subr_prf.c Log Message: Instead of expanding the syslog level into early, defer expansion inside putchar; extract the actual character addition function to a separate f

CVS commit: src/sys/kern

2018-04-01 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Apr 1 19:01:08 UTC 2018 Modified Files: src/sys/kern: subr_log.c Log Message: Move the add char portion to its own function. To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/sys/kern/subr_log.c Please no

CVS commit: src/sys/kern

2018-03-30 Thread Maya Rashish
Module Name:src Committed By: maya Date: Fri Mar 30 22:59:43 UTC 2018 Modified Files: src/sys/kern: tty.c Log Message: correct typo: and and -> and from chris28. To generate a diff of this commit: cvs rdiff -u -r1.275 -r1.276 src/sys/kern/tty.c Please note that diffs a

CVS commit: src/sys/kern

2018-03-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Mar 21 16:26:05 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Remove these global variables. They are unused, racy, and the only thing they do is triggering cache synchronization latencies between CPUs. To ge

CVS commit: src/sys/kern

2018-03-19 Thread Roy Marples
Module Name:src Committed By: roy Date: Mon Mar 19 16:32:30 UTC 2018 Modified Files: src/sys/kern: uipc_socket.c Log Message: socket: remove now incorrect comment that so_error is only udp As it can be affected by route(4) sockets which are raw. To generate a diff of th

CVS commit: src/sys/kern

2018-03-19 Thread Roy Marples
Module Name:src Committed By: roy Date: Mon Mar 19 16:31:24 UTC 2018 Modified Files: src/sys/kern: uipc_socket.c Log Message: socket: clear error even when peeking The error has already been reported and it's pointless requiring another recv(2) call just to clear it. To

CVS commit: src/sys/kern

2018-03-18 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Mar 18 13:18:39 UTC 2018 Modified Files: src/sys/kern: exec_elf.c Log Message: stsrt with an alignment of 1 (which means no alignment). From alnsn To generate a diff of this commit: cvs rdiff -u -r1.95 -r1.96 src/sys/kern/

CVS commit: src/sys/kern

2018-03-17 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Mar 18 02:16:21 UTC 2018 Modified Files: src/sys/kern: exec_elf.c Log Message: Turn KASSERTS that check alignment which are user triggerable into errors. >From alnsn To generate a diff of this commit: cvs rdiff -u -r1.94 -

CVS commit: src/sys/kern

2018-03-17 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Mar 17 19:03:25 UTC 2018 Modified Files: src/sys/kern: kern_cpu.c Log Message: move the compat code in compat. To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/sys/kern/kern_cpu.c Please note that diffs a

CVS commit: src/sys/kern

2018-03-16 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Mar 17 00:30:50 UTC 2018 Modified Files: src/sys/kern: exec_elf.c Log Message: CID/1427732: Don't dereference NULL execname if there is no emul_arg. (there always is one in our emulations) from alnsn@ To generate a diff of

CVS commit: src/sys/kern

2018-03-16 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Fri Mar 16 08:21:45 UTC 2018 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: Get rid of a redundant output To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys/kern/subr_lockdebug.c Please note tha

CVS commit: src/sys/kern

2018-03-15 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Fri Mar 16 04:43:38 UTC 2018 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: Add a new command, show lockstat, which shows statistics of locks Currently the command shows the number of allocated locks. The command i

CVS commit: src/sys/kern

2018-03-12 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Mar 13 02:24:26 UTC 2018 Modified Files: src/sys/kern: kern_proc.c Log Message: Make sysctl_doeproc() more predictable Swap the order of looking into zombie and all process lists, start now with the zombie one. This prevents a

CVS commit: src/sys/kern

2018-03-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Mar 11 15:13:05 UTC 2018 Modified Files: src/sys/kern: kern_proc.c Log Message: Make a comment meaningful. ie: s/Ditto/what it was copying/ (more or less) That is, there was a comment "Ditto" - which once upon a time, was use

CVS commit: src/sys/kern

2018-03-07 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Mar 7 21:13:24 UTC 2018 Modified Files: src/sys/kern: subr_disk.c Log Message: Fix typo in comment (s/is/if/) - NFC. To generate a diff of this commit: cvs rdiff -u -r1.121 -r1.122 src/sys/kern/subr_disk.c Please note that di

CVS commit: src/sys/kern

2018-03-03 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sun Mar 4 07:12:18 UTC 2018 Modified Files: src/sys/kern: subr_autoconf.c Log Message: expose struct devicelist alldevs again. To generate a diff of this commit: cvs rdiff -u -r1.256 -r1.257 src/sys/kern/subr_autoconf.c Pleas

CVS commit: src/sys/kern

2018-02-28 Thread matthew green
Module Name:src Committed By: mrg Date: Wed Feb 28 09:44:26 UTC 2018 Modified Files: src/sys/kern: uipc_domain.c Log Message: in sockaddr_getsize_by_family() print the p_comm, pid and lid for unknown address family. helps location where missing af settings are. To gener

CVS commit: src/sys/kern

2018-02-25 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sun Feb 25 18:54:29 UTC 2018 Modified Files: src/sys/kern: kern_mutex.c Log Message: add defines to control whether or not mutex operations are skipped after we have panic'd. no functional change. To generate a diff of this commit

CVS commit: src/sys/kern

2018-02-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 23 19:43:08 UTC 2018 Modified Files: src/sys/kern: kern_exec.c Log Message: Fix off-by-one, we don't want the entry point to equal the maximum address. To generate a diff of this commit: cvs rdiff -u -r1.455 -r1.456 src/sy

CVS commit: src/sys/kern

2018-02-19 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Tue Feb 20 03:34:52 UTC 2018 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: Spinkle __predict_false to LOCKDEBUG functions Panics and lockdebug failures are unlikely to occur normally. To generate a diff of this c

CVS commit: src/sys/kern

2018-02-17 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Feb 17 20:19:36 UTC 2018 Modified Files: src/sys/kern: uipc_usrreq.c Log Message: fix LOCAL_PEEREID to not return the same info for both sides... XXX: pullup-{7,8} To generate a diff of this commit: cvs rdiff -u -r1.182 -r

CVS commit: src/sys/kern

2018-02-15 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Fri Feb 16 07:04:51 UTC 2018 Modified Files: src/sys/kern: kern_synch.c Log Message: Avoid a race condition between an LWP migration and curlwp_bind curlwp_bind sets the LP_BOUND flag to l_pflags of the current LWP, which preven

CVS commit: src/sys/kern

2018-02-13 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Wed Feb 14 03:56:26 UTC 2018 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: Use cpu_softintr_p To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/kern/subr_lockdebug.c Please note that diffs are

CVS commit: src/sys/kern

2018-02-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Feb 13 09:26:18 UTC 2018 Modified Files: src/sys/kern: kern_tc.c Log Message: Put time_second and time_uptime in different cache lines, probably saves us some false sharing. To generate a diff of this commit: cvs rdiff -u -r1.

CVS commit: src/sys/kern

2018-02-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Feb 12 16:01:35 UTC 2018 Modified Files: src/sys/kern: uipc_syscalls.c Log Message: Add a KASSERT; we expect *from to be a single mbuf (not chained). To generate a diff of this commit: cvs rdiff -u -r1.190 -r1.191 src/sys/kern

CVS commit: src/sys/kern

2018-02-07 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Wed Feb 7 15:51:35 UTC 2018 Modified Files: src/sys/kern: subr_tftproot.c Log Message: Fix md(4) double attachment in TFTPROOT option The mdattach() call in tftproot_dhcpboot() has probably always been useless, but it seems it bec

CVS commit: src/sys/kern

2018-02-06 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Wed Feb 7 04:25:09 UTC 2018 Modified Files: src/sys/kern: subr_xcall.c Log Message: Spinkle ASSERT_SLEEPABLE to xcall functions To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/kern/subr_xcall.c Please no

CVS commit: src/sys/kern

2018-02-05 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Tue Feb 6 07:46:24 UTC 2018 Modified Files: src/sys/kern: kern_mutex.c Log Message: Check if adaptive mutex isn't called in interrupt context By this check, we can notice this programming error without LOCKDEBUG. The same check

CVS commit: src/sys/kern

2018-02-05 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Tue Feb 6 03:48:39 UTC 2018 Modified Files: src/sys/kern: subr_workqueue.c Log Message: Check the length of a passed name to avoid slient truncation To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/sys/kern/su

CVS commit: src/sys/kern

2018-02-04 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Mon Feb 5 04:25:04 UTC 2018 Modified Files: src/sys/kern: kern_mutex.c kern_mutex_obj.c kern_rwlock.c kern_rwlock_obj.c Log Message: Obtain proper initialized addresses of locks allocated by mutex_obj_alloc or rw_ob

CVS commit: src/sys/kern

2018-02-04 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Mon Feb 5 02:51:41 UTC 2018 Modified Files: src/sys/kern: subr_xcall.c Log Message: Sort XC_IPL_* in order of priority (NFC) To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/kern/subr_xcall.c Please note

CVS commit: src/sys/kern

2018-02-04 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Mon Feb 5 02:51:08 UTC 2018 Modified Files: src/sys/kern: subr_xcall.c Log Message: Avoid allocating unused softints that share a value of IPL between another To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/s

CVS commit: src/sys/kern

2018-02-04 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Mon Feb 5 02:49:47 UTC 2018 Modified Files: src/sys/kern: subr_xcall.c Log Message: Fix build of kernels that some (or all) IPL_SOFT* share a value (e.g., mips) To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src

CVS commit: src/sys/kern

2018-02-03 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sat Feb 3 11:30:01 UTC 2018 Modified Files: src/sys/kern: subr_xcall.c Log Message: Try to fix the build: avoid duplicate case labels when IPL_SOFT* are all the same. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.2

CVS commit: src/sys/kern

2018-01-31 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Thu Feb 1 03:17:00 UTC 2018 Modified Files: src/sys/kern: subr_psref.c Log Message: Use high priority xcall with a softint of an IPL the same as psref class's one This mitigates undesired delay of psref_target_destroy under loa

<    3   4   5   6   7   8   9   10   11   12   >