CVS commit: src/sys/kern

2018-01-30 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Tue Jan 30 11:03:06 UTC 2018 Modified Files: src/sys/kern: subr_workqueue.c Log Message: Check if a queued work is tried to be enqueued again, which is not allowed To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 s

CVS commit: src/sys/kern

2018-01-29 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Tue Jan 30 07:52:23 UTC 2018 Modified Files: src/sys/kern: kern_condvar.c kern_mutex.c kern_rwlock.c kern_synch.c sys_lwp.c sys_select.c Log Message: Apply C99-style struct initialization to syncobj_t To generate a

CVS commit: src/sys/kern

2018-01-28 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Jan 28 22:24:58 UTC 2018 Modified Files: src/sys/kern: subr_interrupt.c Log Message: - don't return ENOMEM for errors not related to memory - don't overload return values (-error/+size) - don't allocate kernel memory from us

CVS commit: src/sys/kern

2018-01-26 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Jan 27 00:00:26 UTC 2018 Modified Files: src/sys/kern: kern_sysctl.c Log Message: remove useless KASSERT. To generate a diff of this commit: cvs rdiff -u -r1.260 -r1.261 src/sys/kern/kern_sysctl.c Please note that diffs a

CVS commit: src/sys/kern

2018-01-26 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Fri Jan 26 22:58:09 UTC 2018 Modified Files: src/sys/kern: subr_autoconf.c Log Message: Ensure that dev is not NULL - CID/1428649 To generate a diff of this commit: cvs rdiff -u -r1.255 -r1.256 src/sys/kern/subr_autoconf.c Pl

CVS commit: src/sys/kern

2018-01-26 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Fri Jan 26 22:54:33 UTC 2018 Modified Files: src/sys/kern: kern_sysctl.c Log Message: Bounds checking - CID/1428650 To generate a diff of this commit: cvs rdiff -u -r1.259 -r1.260 src/sys/kern/kern_sysctl.c Please note that d

CVS commit: src/sys/kern

2018-01-23 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Tue Jan 23 22:08:55 UTC 2018 Modified Files: src/sys/kern: subr_bufq.c Log Message: Fix a comment. NFC To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/kern/subr_bufq.c Please note that diffs are not pub

CVS commit: src/sys/kern

2018-01-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jan 22 15:05:28 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Style and clarify. To generate a diff of this commit: cvs rdiff -u -r1.180 -r1.181 src/sys/kern/uipc_mbuf.c Please note that diffs are not public

CVS commit: src/sys/kern

2018-01-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jan 22 09:06:40 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Style, no functional change. To generate a diff of this commit: cvs rdiff -u -r1.178 -r1.179 src/sys/kern/uipc_mbuf.c Please note that diffs are

CVS commit: src/sys/kern

2018-01-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jan 22 07:22:52 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Fix m_prepend(). If 'm' is not a pkthdr, it doesn't make sense to use MH_ALIGN, it should rather be M_ALIGN. I'm wondering whether there should not

CVS commit: src/sys/kern

2018-01-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Jan 21 17:22:56 UTC 2018 Modified Files: src/sys/kern: core_elf32.c Log Message: CID-1427760: While overrun can't happen, make it obvious that it can't To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/

CVS commit: src/sys/kern

2018-01-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Jan 21 16:55:25 UTC 2018 Modified Files: src/sys/kern: subr_disk_mbr.c Log Message: CID-1427768: Off by one To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/kern/subr_disk_mbr.c Please note that diffs

CVS commit: src/sys/kern

2018-01-18 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Thu Jan 18 08:40:56 UTC 2018 Modified Files: src/sys/kern: kern_mutex.c Log Message: typo in comment To generate a diff of this commit: cvs rdiff -u -r1.68 -r1.69 src/sys/kern/kern_mutex.c Please note that diffs are not public d

CVS commit: src/sys/kern

2018-01-16 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Tue Jan 16 08:15:29 UTC 2018 Modified Files: src/sys/kern: kern_timeout.c Log Message: Sanity-check if interlock is held when it's passed To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/sys/kern/kern_timeout.c

CVS commit: src/sys/kern

2018-01-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 14 16:59:37 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: style To generate a diff of this commit: cvs rdiff -u -r1.176 -r1.177 src/sys/kern/uipc_mbuf.c Please note that diffs are not public domain; they

CVS commit: src/sys/kern

2018-01-13 Thread Reinoud Zandijk
Module Name:src Committed By: reinoud Date: Sat Jan 13 13:53:36 UTC 2018 Modified Files: src/sys/kern: subr_interrupt.c Log Message: Compilation of a kernel outside the build.sh framework exposed the uninitialised usage of `error' in interrupt_avert_intr(). In theory it ca

CVS commit: src/sys/kern

2018-01-12 Thread Lars Reichardt
Module Name:src Committed By: para Date: Fri Jan 12 18:54:37 UTC 2018 Modified Files: src/sys/kern: subr_pool.c Log Message: fix comment pool stats are listed 'vmstat -m' not 'vmstat -i' To generate a diff of this commit: cvs rdiff -u -r1.220 -r1.221 src/sys/kern/subr_p

CVS commit: src/sys/kern

2018-01-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jan 12 17:58:51 UTC 2018 Modified Files: src/sys/kern: kern_event.c Log Message: Set EV_ONESHOT to prevent rescheduling XXX: pullup-8 To generate a diff of this commit: cvs rdiff -u -r1.102 -r1.103 src/sys/kern/kern_event.

CVS commit: src/sys/kern

2018-01-09 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Tue Jan 9 22:58:45 UTC 2018 Modified Files: src/sys/kern: kern_kthread.c Log Message: KASSERT() that kthread_join()'s target is expecting to be joined. As discussed on IRC. To generate a diff of this commit: cvs rdiff -u -r1

CVS commit: src/sys/kern

2018-01-08 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Jan 9 01:44:50 UTC 2018 Modified Files: src/sys/kern: kern_timeout.c Log Message: check the magic first in case we got passed a junk pointer. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/sys/kern/kern

CVS commit: src/sys/kern

2018-01-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Jan 8 06:10:30 UTC 2018 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Use the proper process (the tracee) to get information about lwps and registers and the tracer for vmspace. To generate a diff of this

CVS commit: src/sys/kern

2018-01-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Jan 8 04:45:53 UTC 2018 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: don't ignore error from copyout_piod To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/sys/kern/sys_ptrace_common.c P

CVS commit: src/sys/kern

2018-01-06 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Jan 7 03:35:43 UTC 2018 Modified Files: src/sys/kern: subr_disk_mbr.c Log Message: use a fixed-size type, this code also exists in sys/dev/dkwedge/dkwedge_bsdlabel.c To generate a diff of this commit: cvs rdiff -u -r1.47

CVS commit: src/sys/kern

2018-01-04 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jan 5 01:51:36 UTC 2018 Modified Files: src/sys/kern: kern_exec.c Log Message: don't print for ENOEXEC To generate a diff of this commit: cvs rdiff -u -r1.453 -r1.454 src/sys/kern/kern_exec.c Please note that diffs are n

CVS commit: src/sys/kern

2018-01-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jan 1 12:22:59 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Detect use-after-frees on mbufs with external storage, too. This is done even when the refcount is > 1. Again, this code is enabled by default, bec

CVS commit: src/sys/kern

2017-12-31 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Jan 1 00:45:12 UTC 2018 Modified Files: src/sys/kern: uipc_socket.c Log Message: make sure that we have enough space, don't require the exact size (Tom Ivar Helbekkmo) To generate a diff of this commit: cvs rdiff -u -r1.2

CVS commit: src/sys/kern

2017-12-31 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Dec 31 19:39:57 UTC 2017 Modified Files: src/sys/kern: uipc_syscalls.c Log Message: pass valsize for getsockopt like we do for setsockopt To generate a diff of this commit: cvs rdiff -u -r1.188 -r1.189 src/sys/kern/uipc_sy

CVS commit: src/sys/kern

2017-12-31 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sun Dec 31 09:25:19 UTC 2017 Modified Files: src/sys/kern: subr_extent.c Log Message: Don't take the mutex in extent_print if EX_EARLY To generate a diff of this commit: cvs rdiff -u -r1.86 -r1.87 src/sys/kern/subr_extent.c Plea

CVS commit: src/sys/kern

2017-12-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 31 06:57:12 UTC 2017 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Check MT_FREE by default, and not just under DEBUG (or DIAGNOSTIC). This code is fast, with an nonexistent overhead - and we already take care of se

CVS commit: src/sys/kern

2017-12-29 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Dec 29 16:13:26 UTC 2017 Modified Files: src/sys/kern: subr_pool.c Log Message: Don't release the lock in the PR_NOWAIT allocation. Move flags setting after the acquiring the mutex. (from Tobias Nygren) To generate a diff

CVS commit: src/sys/kern

2017-12-28 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Dec 28 18:29:45 UTC 2017 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: provide separate read and write functions to accomodate register functions that need a size argument. To generate a diff of this commi

CVS commit: src/sys/kern

2017-12-27 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Thu Dec 28 03:39:48 UTC 2017 Modified Files: src/sys/kern: kern_softint.c subr_pserialize.c subr_psref.c Log Message: Prevent panic or hangup in softint_disestablish(), pserialize_perform() or psref_target_destroy() while mp_onl

CVS commit: src/sys/kern

2017-12-25 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Tue Dec 26 03:58:03 UTC 2017 Modified Files: src/sys/kern: init_main.c Log Message: Make cold __read_mostly like mp_online. To generate a diff of this commit: cvs rdiff -u -r1.493 -r1.494 src/sys/kern/init_main.c Please note

CVS commit: src/sys/kern

2017-12-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Dec 23 22:12:19 UTC 2017 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Merge the code back; the problem was that since we are reading/writing to a kernel address for PT_{READ,WRITE}_{I,D} we need the kernel

CVS commit: src/sys/kern

2017-12-22 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Dec 22 15:02:57 UTC 2017 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: ptrace: Partially undo PT_{READ,WRITE}_{I,D} and unbreak these commands The refactored code did not work and was generating EFAULT. Spons

CVS commit: src/sys/kern

2017-12-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Dec 19 08:51:09 UTC 2017 Modified Files: src/sys/kern: systrace_args.c Log Message: Regenerate kern/systrace_args.c for the ___lwp_wait60 prototype change ___lwp_part60 removed 'const' from the ts argument. 'const struct time

CVS commit: src/sys/kern

2017-12-17 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Dec 17 15:43:28 UTC 2017 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: - reduce ifdef ugliness by moving it up top. - factor out PT_IO and make PT_{READ,WRITE}_{I,D} use it - factor out PT_DUMPCORE - factor

CVS commit: src/sys/kern

2017-12-16 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Dec 17 04:35:21 UTC 2017 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: untangle the mess: - factor out common code - break each ptrace subcall to its own sub-function ... more to come ... To generate a dif

CVS commit: src/sys/kern

2017-12-16 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Dec 16 18:42:22 UTC 2017 Modified Files: src/sys/kern: kern_stub.c Log Message: Fix the build: XXX this might^Wwill break module autoloading... It is the general issue about symbol replacement during module loading and unloa

CVS commit: src/sys/kern

2017-12-15 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Fri Dec 15 16:05:51 UTC 2017 Modified Files: src/sys/kern: init_main.c Log Message: add some assertions to verify that CPU_INFO_FOREACH() works right early in the boot process. this detects existing bugs on some platforms. To gene

CVS commit: src/sys/kern

2017-12-14 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Thu Dec 14 22:29:00 UTC 2017 Modified Files: src/sys/kern: kern_module.c Log Message: Remove the check for duplicate-module-name-on-pending-list since it really doesn't help. The check really cannot fail, and it only looks at t

CVS commit: src/sys/kern

2017-12-14 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Thu Dec 14 11:45:40 UTC 2017 Modified Files: src/sys/kern: kern_module.c Log Message: When looking for a duplicate module name, also check the pending list. To generate a diff of this commit: cvs rdiff -u -r1.128 -r1.129 src/s

CVS commit: src/sys/kern

2017-12-14 Thread Martin Husemann
Module Name:src Committed By: martin Date: Thu Dec 14 10:39:32 UTC 2017 Modified Files: src/sys/kern: kern_module.c Log Message: Change a KASSERTMSG into a regular module_error - not nice for the kernel to panic when I try to modload the 'ntfs' module. To generate a diff

CVS commit: src/sys/kern

2017-12-13 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Thu Dec 14 05:45:55 UTC 2017 Modified Files: src/sys/kern: subr_psref.c Log Message: Improve debugging functions - Make psref_check_duplication check just if a given psref is on the list - It checked both psref and target -

CVS commit: src/sys/kern

2017-12-11 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Mon Dec 11 22:00:26 UTC 2017 Modified Files: src/sys/kern: kern_module.c Log Message: Use KASSERT to ensure that the newly-added module's name can be found. XXX Pull-up to -8 To generate a diff of this commit: cvs rdiff -u -r

CVS commit: src/sys/kern

2017-12-09 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Sun Dec 10 03:08:32 UTC 2017 Modified Files: src/sys/kern: kern_module.c Log Message: Add additional duplicate-module-name check in case we have two modules with the same internal name but no conflicting symbol definitions. Whe

CVS commit: src/sys/kern

2017-12-08 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Dec 9 05:18:45 UTC 2017 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: use process_*reg32 instead of struct *reg32. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/kern/sys_ptrace_com

CVS commit: src/sys/kern

2017-12-08 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Dec 8 15:54:40 UTC 2017 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: add disgusting magic to handle compat_netbsd32 as a module. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/kern

CVS commit: src/sys/kern

2017-12-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Dec 7 19:49:43 UTC 2017 Modified Files: src/sys/kern: kern_sig.c Log Message: - Reset ignored or masked traps to avoid infinite loops - If sigpost fails don't add an SDT_PROBE ok (and author) chuq To generate a diff of th

CVS commit: src/sys/kern

2017-12-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Dec 7 15:21:34 UTC 2017 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Make {s,g}et{db,fp,}regs work again for PK_32 processes XXX: pullup-8 To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 sr

CVS commit: src/sys/kern

2017-12-03 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Dec 4 03:05:24 UTC 2017 Modified Files: src/sys/kern: subr_pool.c Log Message: properly account PR_RECURSIVE pools like vmstat does. To generate a diff of this commit: cvs rdiff -u -r1.217 -r1.218 src/sys/kern/subr_pool.c Ple

CVS commit: src/sys/kern

2017-12-02 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Dec 2 22:51:22 UTC 2017 Modified Files: src/sys/kern: kern_lwp.c Log Message: Also wait interruptibly when exiting. Avoids deadlocked on exit processes create by golang. To generate a diff of this commit: cvs rdiff -u -r1

CVS commit: src/sys/kern

2017-12-02 Thread Jaromir Dolecek
Module Name:src Committed By: jdolecek Date: Sat Dec 2 17:29:55 UTC 2017 Modified Files: src/sys/kern: vfs_wapbl.c Log Message: according to benchmark extracting pkgsrc.tar, using FUA and hence waiting for each transfer to write through to the medium is way slower than ju

CVS commit: src/sys/kern

2017-12-02 Thread matthew green
Module Name:src Committed By: mrg Date: Sat Dec 2 08:22:04 UTC 2017 Modified Files: src/sys/kern: uipc_usrreq.c Log Message: include opt_compat_netbsd.h, so that eg COMPAT_70 will be set. To generate a diff of this commit: cvs rdiff -u -r1.181 -r1.182 src/sys/kern/uipc_

CVS commit: src/sys/kern

2017-12-01 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Dec 1 19:05:49 UTC 2017 Modified Files: src/sys/kern: subr_cprng.c Log Message: Allow attaching for write, but return no events. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/kern/subr_cprng.c Ple

CVS commit: src/sys/kern

2017-11-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 30 18:44:16 UTC 2017 Modified Files: src/sys/kern: kern_proc.c Log Message: If no auxv is present, don't kmem_alloc(0). Easy to panic the kernel by typing 'cat /proc/aout_pid/auxv' on whatever a.out binary you're running. Fo

CVS commit: src/sys/kern

2017-11-30 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Nov 30 14:19:27 UTC 2017 Modified Files: src/sys/kern: kern_event.c Log Message: Put previous removed diagnostic back as debug. It has caught in the past (and now) different kqueue behavior between NetBSD and other kqueue im

CVS commit: src/sys/kern

2017-11-29 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Nov 30 05:52:40 UTC 2017 Modified Files: src/sys/kern: kern_event.c Log Message: Remove spammy kevent failure printf. Maybe this was once useful for debugging the kernel, but it's just console spam triggered by buggy or ma

CVS commit: src/sys/kern

2017-11-21 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Wed Nov 22 02:20:22 UTC 2017 Modified Files: src/sys/kern: kern_softint.c Log Message: Increase the size of softint's data to prevent panic on big machine. Nowadays, some device drivers and some pseudo interfaces allocate a lot

CVS commit: src/sys/kern

2017-11-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Nov 14 15:02:06 UTC 2017 Modified Files: src/sys/kern: subr_pool.c Log Message: - fix an assert; we can reach there if we are nowait or limitfail. - when priming the pool and failing with ERESTART, don't decrement the number

CVS commit: src/sys/kern

2017-11-14 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Tue Nov 14 14:14:29 UTC 2017 Modified Files: src/sys/kern: kern_subr.c Log Message: Include "flash" in list of block devices that don't use partitions. To generate a diff of this commit: cvs rdiff -u -r1.218 -r1.219 src/sys/ke

CVS commit: src/sys/kern

2017-11-13 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Nov 13 22:01:45 UTC 2017 Modified Files: src/sys/kern: kern_exec.c Log Message: grab a copy of the absolute pathbuf, before namei() munges it. To generate a diff of this commit: cvs rdiff -u -r1.452 -r1.453 src/sys/kern/ke

CVS commit: src/sys/kern

2017-11-13 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Nov 13 20:38:32 UTC 2017 Modified Files: src/sys/kern: kern_exec.c Log Message: Use the pathbuf which we pass to namei() (which is always absolute) as the resolved pathname. We need this in the case of scripts where p_path n

CVS commit: src/sys/kern

2017-11-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Nov 12 20:04:51 UTC 2017 Modified Files: src/sys/kern: kern_condvar.c Log Message: Apply same treatment to cv_timedwaitbt. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/sys/kern/kern_condvar.c Please

CVS commit: src/sys/kern

2017-11-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Nov 12 19:46:34 UTC 2017 Modified Files: src/sys/kern: kern_condvar.c Log Message: Clarify interpretation of timeout/epsilon in cv_timedwaitbt. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/kern/ke

CVS commit: src/sys/kern

2017-11-10 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Nov 11 03:58:01 UTC 2017 Modified Files: src/sys/kern: kern_event.c Log Message: Don't add kevents to closing file descriptors (from riastradh) To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/sys/kern/ker

CVS commit: src/sys/kern

2017-11-09 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Nov 9 23:20:12 UTC 2017 Modified Files: src/sys/kern: subr_kmem.c Log Message: Assert KM_SLEEP xor KM_NOSLEEP in all kmem allocation. To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/sys/kern/subr_kmem.c

CVS commit: src/sys/kern

2017-11-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Nov 9 22:52:27 UTC 2017 Modified Files: src/sys/kern: subr_pool.c Log Message: Add assertions that either PR_WAITOK or PR_NOWAIT are set. To generate a diff of this commit: cvs rdiff -u -r1.214 -r1.215 src/sys/kern/subr_p

CVS commit: src/sys/kern

2017-11-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Nov 9 22:21:27 UTC 2017 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Don't use 0 for PR_NOWAIT To generate a diff of this commit: cvs rdiff -u -r1.172 -r1.173 src/sys/kern/uipc_mbuf.c Please note that diffs are

CVS commit: src/sys/kern

2017-11-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Nov 9 21:57:06 UTC 2017 Modified Files: src/sys/kern: subr_extent.c Log Message: don't pass 0 to the pool flags To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/sys/kern/subr_extent.c Please note that di

CVS commit: src/sys/kern

2017-11-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Nov 9 19:34:17 UTC 2017 Modified Files: src/sys/kern: subr_pool.c Log Message: Handle the ERESTART case from pool_grow() To generate a diff of this commit: cvs rdiff -u -r1.213 -r1.214 src/sys/kern/subr_pool.c Please not

CVS commit: src/sys/kern

2017-11-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Nov 9 15:53:40 UTC 2017 Modified Files: src/sys/kern: subr_pool.c Log Message: make the KASSERTMSG/panic strings consistent as '%s: [%s], __func__, wchan' To generate a diff of this commit: cvs rdiff -u -r1.212 -r1.213 sr

CVS commit: src/sys/kern

2017-11-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Nov 9 15:40:23 UTC 2017 Modified Files: src/sys/kern: subr_pool.c Log Message: Since pr_lock is now used to wait for two things now (PR_GROWING and PR_WANTED) we need to loop for the condition we wanted. To generate a dif

CVS commit: src/sys/kern

2017-11-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Nov 7 20:58:23 UTC 2017 Modified Files: src/sys/kern: kern_exec.c Log Message: hack around namei problem. To generate a diff of this commit: cvs rdiff -u -r1.450 -r1.451 src/sys/kern/kern_exec.c Please note that diffs ar

CVS commit: src/sys/kern

2017-11-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Nov 7 15:57:38 UTC 2017 Modified Files: src/sys/kern: vfs_syscalls.c Log Message: We computed the length of the string already, so use it... To generate a diff of this commit: cvs rdiff -u -r1.516 -r1.517 src/sys/kern/vfs

CVS commit: src/sys/kern

2017-11-06 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Nov 6 18:41:23 UTC 2017 Modified Files: src/sys/kern: subr_pool.c Log Message: Assert that pool_get failure happens only with PR_NOWAIT. This would have caught the mistake I made last week leading to null pointer derefere

CVS commit: src/sys/kern

2017-11-05 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sun Nov 5 07:49:45 UTC 2017 Modified Files: src/sys/kern: subr_pool.c Log Message: pool_grow can now fail even when sleeping is ok. Catch this case in pool_get and retry. To generate a diff of this commit: cvs rdiff -u -r1.209

CVS commit: src/sys/kern

2017-11-02 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Nov 2 15:28:23 UTC 2017 Modified Files: src/sys/kern: kern_tc.c Log Message: C99ify initialization of dummy_timecounter. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/sys/kern/kern_tc.c Please note t

CVS commit: src/sys/kern

2017-10-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 28 17:06:43 UTC 2017 Modified Files: src/sys/kern: subr_pool.c Log Message: Allow only one pending call to a pool's backing allocator at a time. Candidate fix for problems with hanging after kva fragmentation related t

CVS commit: src/sys/kern

2017-10-24 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Oct 25 06:02:40 UTC 2017 Modified Files: src/sys/kern: kern_event.c Log Message: Document lock order and locking rules. To generate a diff of this commit: cvs rdiff -u -r1.94 -r1.95 src/sys/kern/kern_event.c Please note

CVS commit: src/sys/kern

2017-10-23 Thread Jaromir Dolecek
Module Name:src Committed By: jdolecek Date: Mon Oct 23 19:03:40 UTC 2017 Modified Files: src/sys/kern: vfs_wapbl.c Log Message: remove counter for 'journal I/O bufs biowait' - it's (total - async), so superfluous; adjust the description of the the other counters a bit to

CVS commit: src/sys/kern

2017-10-20 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Oct 20 19:06:46 UTC 2017 Modified Files: src/sys/kern: kern_exec.c Log Message: Initialize the in/out parameter vmin. vmin is only an optional hint since we're not passing UVM_FLAG_FIXED, but that doesn't mean we should us

CVS commit: src/sys/kern

2017-10-20 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Oct 20 14:48:43 UTC 2017 Modified Files: src/sys/kern: kern_exec.c Log Message: Carve out KVA for execargs on boot from an exec_map like we used to. Candidate fix for PR kern/45718: `processes sometimes get stuck and spin

CVS commit: src/sys/kern

2017-10-20 Thread Martin Husemann
Module Name:src Committed By: martin Date: Fri Oct 20 12:11:34 UTC 2017 Modified Files: src/sys/kern: kern_exec.c Log Message: Make check_exec() errors print the name of the binary that fails to execute. To generate a diff of this commit: cvs rdiff -u -r1.446 -r1.447 src

CVS commit: src/sys/kern

2017-10-16 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Mon Oct 16 15:03:57 UTC 2017 Modified Files: src/sys/kern: subr_pcu.c Log Message: PR port-arm/52603: There is a race here, as seen on arm with FPU: LWP L is running but not on CPU, has its FPU state on CPU2 which has not been rel

CVS commit: src/sys/kern

2017-10-15 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Oct 16 01:50:55 UTC 2017 Modified Files: src/sys/kern: exec_elf.c Log Message: Setting AT_BASE on static binaries breaks TLS because they assume that it is 0, will fix it differently. To generate a diff of this commit: cvs

CVS commit: src/sys/kern

2017-10-08 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Oct 8 15:00:40 UTC 2017 Modified Files: src/sys/kern: exec_elf.c Log Message: For static PIE set the interpreter address to be the entry offset so we don't lose it. To generate a diff of this commit: cvs rdiff -u -r1.90 -

CVS commit: src/sys/kern

2017-09-21 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Fri Sep 22 06:05:20 UTC 2017 Modified Files: src/sys/kern: vfs_vnode.c Log Message: Fix non-DIAGNOSTICS build by adjusting _vstate_assert here too. To generate a diff of this commit: cvs rdiff -u -r1.99 -r1.100 src/sys/kern/vfs_v

CVS commit: src/sys/kern

2017-09-18 Thread Jonathan A. Kollasch
Module Name:src Committed By: jakllsch Date: Mon Sep 18 13:22:56 UTC 2017 Modified Files: src/sys/kern: subr_extent.c Log Message: Initialize ex_lock and ex_cv only in the not-EX_EARLY case. To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 src/sys/kern/subr_

CVS commit: src/sys/kern

2017-09-16 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Sep 16 23:55:33 UTC 2017 Modified Files: src/sys/kern: kern_lock.c kern_mutex.c kern_rwlock.c subr_lockdebug.c Log Message: more const To generate a diff of this commit: cvs rdiff -u -r1.158 -r1.159 src/sys/kern/kern_lock.

CVS commit: src/sys/kern

2017-09-16 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Sep 16 23:55:16 UTC 2017 Modified Files: src/sys/kern: kern_event.c Log Message: more debug info To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 src/sys/kern/kern_event.c Please note that diffs are not publi

CVS commit: src/sys/kern

2017-09-09 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Sat Sep 9 14:41:20 UTC 2017 Modified Files: src/sys/kern: uipc_domain.c Log Message: Fix a race between sysctl_unpcblist and closef. To generate a diff of this commit: cvs rdiff -u -r1.99 -r1.100 src/sys/kern/uipc_domain.c Plea

CVS commit: src/sys/kern

2017-08-31 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Thu Aug 31 08:47:19 UTC 2017 Modified Files: src/sys/kern: kern_veriexec.c Log Message: When adding a new veriexec_file_entry, if an entry already exists with all the same values (except for the filename) just ignore it. Otherw

CVS commit: src/sys/kern

2017-08-29 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Tue Aug 29 12:48:50 UTC 2017 Modified Files: src/sys/kern: kern_veriexec.c Log Message: Revert previous changes. They are wrong. The intended clean-up is already being handled by the call to veriexec_file_free() in the "out:"

CVS commit: src/sys/kern

2017-08-29 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Tue Aug 29 10:23:13 UTC 2017 Modified Files: src/sys/kern: kern_veriexec.c Log Message: One more resource to release - the filename, if we kept it. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/kern/ker

CVS commit: src/sys/kern

2017-08-29 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Tue Aug 29 10:19:54 UTC 2017 Modified Files: src/sys/kern: kern_veriexec.c Log Message: Release any allocated resources if we take the error paths. As posted on tech-kern and discussed on IRC. To generate a diff of this commi

CVS commit: src/sys/kern

2017-08-27 Thread David A. Holland
Module Name:src Committed By: dholland Date: Mon Aug 28 04:57:11 UTC 2017 Modified Files: src/sys/kern: kern_ktrace.c Log Message: If we go to allocate and find someone else has at the same time, don't trigger a refcount leak of the other guy's object. From mjg@freebsd. W

CVS commit: src/sys/kern

2017-08-24 Thread Robert Elz
Module Name:src Committed By: kre Date: Thu Aug 24 17:18:55 UTC 2017 Modified Files: src/sys/kern: subr_extent.c Log Message: Build fix attempt ... changes affect !KERNEL (ie: userland, rump) version of this file only. Rather than adding meaningless {} around all uses of

CVS commit: src/sys/kern

2017-08-24 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Thu Aug 24 11:37:25 UTC 2017 Modified Files: src/sys/kern: subr_extent.c Log Message: Whitespace fix To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83 src/sys/kern/subr_extent.c Please note that diffs are not public

CVS commit: src/sys/kern

2017-08-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 8 16:57:32 UTC 2017 Modified Files: src/sys/kern: kern_exec.c Log Message: Remove compat_svr4, compat_svr4_32 and compat_ibcs2 from the list of autoloaded modules. These options are disabled everywhere (except ibcs2 on Vax,

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