CVS commit: src/sys/kern

2019-01-05 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Jan 5 09:39:56 UTC 2019 Modified Files: src/sys/kern: kern_subr.c Log Message: Refactor setroot, no functional change intended. setroot - prepare special cases - loop until root is set setroot_nfs - special case for disk b

CVS commit: src/sys/kern

2019-01-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jan 3 10:16:43 UTC 2019 Modified Files: src/sys/kern: kern_descrip.c Log Message: Add KASSERT. To generate a diff of this commit: cvs rdiff -u -r1.241 -r1.242 src/sys/kern/kern_descrip.c Please note that diffs are not public

CVS commit: src/sys/kern

2018-12-28 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sat Dec 29 04:39:14 UTC 2018 Modified Files: src/sys/kern: kern_threadpool.c Log Message: Expose the worker thread idle timeout via sysctl as "kern.threadpool.idle_ms". To generate a diff of this commit: cvs rdiff -u -r1.13 -r1

CVS commit: src/sys/kern

2018-12-27 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Fri Dec 28 00:15:57 UTC 2018 Modified Files: src/sys/kern: kern_threadpool.c Log Message: Fix job reference counting: - threadpool_job_hold() no longer returns failure on overflow; it asserts that overflow doesn't happen. - thr

CVS commit: src/sys/kern

2018-12-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Dec 27 07:56:43 UTC 2018 Modified Files: src/sys/kern: uipc_domain.c Log Message: Fix apparent race. We're doing a LIST_FOREACH, but unlock filelist_lock in the middle of the loop and drop the reference to fp. We then read fp->

CVS commit: src/sys/kern

2018-12-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Thu Dec 27 04:45:29 UTC 2018 Modified Files: src/sys/kern: kern_threadpool.c Log Message: Restore curlwp->l_name in threadpool_job_done(), rather than after the job function has returned. This lays the groundwork for some job ob

CVS commit: src/sys/kern

2018-12-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Wed Dec 26 21:25:52 UTC 2018 Modified Files: src/sys/kern: kern_threadpool.c Log Message: Whitespace tweaks. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/kern/kern_threadpool.c Please note that diffs are

CVS commit: src/sys/kern

2018-12-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Wed Dec 26 21:18:51 UTC 2018 Modified Files: src/sys/kern: kern_threadpool.c Log Message: Stylistic tweak to previous. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/kern/kern_threadpool.c Please note that

CVS commit: src/sys/kern

2018-12-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Wed Dec 26 21:15:50 UTC 2018 Modified Files: src/sys/kern: kern_threadpool.c Log Message: Simplify thread reference counting of the thread pool object. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/kern/ke

CVS commit: src/sys/kern

2018-12-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Wed Dec 26 20:30:36 UTC 2018 Modified Files: src/sys/kern: kern_threadpool.c Log Message: Make the callers of threadpool_create() and threadpool_destroy() responsibile for managing their own storage. To generate a diff of this

CVS commit: src/sys/kern

2018-12-26 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Wed Dec 26 20:08:22 UTC 2018 Modified Files: src/sys/kern: kern_threadpool.c Log Message: Use uint64_t for the unbound and per-cpu thread pool ref counts; they're always manipulated under a lock. Rather than bother returning EBU

CVS commit: src/sys/kern

2018-12-24 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Tue Dec 25 05:44:13 UTC 2018 Modified Files: src/sys/kern: kern_threadpool.c Log Message: Ho ho ho! We can suppress that warning with __diagused! Merry Christmas! To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 sr

CVS commit: src/sys/kern

2018-12-24 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Dec 25 02:17:07 UTC 2018 Modified Files: src/sys/kern: kern_threadpool.c Log Message: Fix !DIAGNOSTIC builds. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/kern/kern_threadpool.c Please note that diffs ar

CVS commit: src/sys/kern

2018-12-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Dec 23 11:42:13 UTC 2018 Modified Files: src/sys/kern: subr_pool.c Log Message: Remove useless debugging code, the area is completely filled but it's not checked afterwards, only pi_magic is. To generate a diff of this commit:

CVS commit: src/sys/kern

2018-12-22 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Dec 22 21:53:06 UTC 2018 Modified Files: src/sys/kern: subr_thmap.c Log Message: add missing quotes 7 To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/kern/subr_thmap.c Please note that diffs are not pu

CVS commit: src/sys/kern

2018-12-22 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Dec 22 20:49:04 UTC 2018 Modified Files: src/sys/kern: subr_thmap.c Log Message: - add rcsid - don't define DEBUG - protect function used in KASSERT with DIAGNOSTIC not DEBUG To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/kern

2018-12-22 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Dec 22 20:49:19 UTC 2018 Modified Files: src/sys/kern: subr_syscall_stats.c Log Message: use the proper rcsid for the kernel To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/kern/subr_syscall_stats.c Pl

CVS commit: src/sys/kern

2018-12-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Dec 10 07:24:49 UTC 2018 Modified Files: src/sys/kern: subr_kleak.c Log Message: Improve error handling, doesn't matter a lot, but still. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/kern/subr_kleak.c P

CVS commit: src/sys/kern

2018-12-09 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sun Dec 9 23:05:02 UTC 2018 Modified Files: src/sys/kern: sys_pset.c Log Message: Handle the case when a CPU is assigned to a set it is already a member of. Previously this would trigger an assertion failure. To generate a dif

CVS commit: src/sys/kern

2018-12-06 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Dec 6 13:51:43 UTC 2018 Modified Files: src/sys/kern: kern_proc.c Log Message: Typo fix (Geoff Wing) To generate a diff of this commit: cvs rdiff -u -r1.222 -r1.223 src/sys/kern/kern_proc.c Please note that diffs are not

CVS commit: src/sys/kern

2018-12-03 Thread Maya Rashish
Module Name:src Committed By: maya Date: Tue Dec 4 00:18:05 UTC 2018 Modified Files: src/sys/kern: sys_socket.c Log Message: soo_fcntl is identical to fnullop_fcntl, use the latter ok kamil mrg To generate a diff of this commit: cvs rdiff -u -r1.77 -r1.78 src/sys/kern/

CVS commit: src/sys/kern

2018-12-02 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Dec 3 00:11:02 UTC 2018 Modified Files: src/sys/kern: files.kern init_sysctl.c Log Message: Expose addresses depending on the KASLR setting (from mrg@). Restores the status quo of exposing kernel addresses if there is no KA

CVS commit: src/sys/kern

2018-12-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Dec 1 14:05:34 UTC 2018 Modified Files: src/sys/kern: sys_sig.c Log Message: Fix kernel info leak, 4 bytes of padding in struct _ksiginfo. Maybe we should just set _pad to zero on LP64? + Possible info leak: [len=40, l

CVS commit: src/sys/kern

2018-11-30 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Sat Dec 1 02:08:16 UTC 2018 Modified Files: src/sys/kern: subr_autoconf.c Log Message: Fix compile error. To generate a diff of this commit: cvs rdiff -u -r1.264 -r1.265 src/sys/kern/subr_autoconf.c Please note that diffs ar

CVS commit: src/sys/kern

2018-11-30 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Fri Nov 30 15:05:35 UTC 2018 Modified Files: src/sys/kern: kern_synch.c Log Message: The SHOULDYIELD flag doesn't indicate that other LWPs could run but only that the current LWP was seen on two consecutive scheduler intervals.

CVS commit: src/sys/kern

2018-11-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 29 12:37:22 UTC 2018 Modified Files: src/sys/kern: kern_exit.c Log Message: Fix info leak. There is one branch where 'status' is not initialized at all. + Possible info leak: [len=4, leaked=4] | #0 0xfff

CVS commit: src/sys/kern

2018-11-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 29 11:45:52 UTC 2018 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Fix stack info leak. + Possible info leak: [len=136, leaked=92] | #0 0x80baf397 in kleak_copyout | #1 0xfff

CVS commit: src/sys/kern

2018-11-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 29 10:27:36 UTC 2018 Modified Files: src/sys/kern: kern_sig.c Log Message: Fix kernel info leak, 4 bytes of padding at the end of struct sigaction. + Possible info leak: [len=32, leaked=4] | #0 0x80b

CVS commit: src/sys/kern

2018-11-28 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Wed Nov 28 19:36:43 UTC 2018 Modified Files: src/sys/kern: kern_synch.c Log Message: Revert previous for a better fix. To generate a diff of this commit: cvs rdiff -u -r1.319 -r1.320 src/sys/kern/kern_synch.c Please note that

CVS commit: src/sys/kern

2018-11-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Nov 28 15:10:40 UTC 2018 Modified Files: src/sys/kern: kern_time.c Log Message: Fix kernel info leak. + Possible info leak: [len=32, leaked=16] | #0 0x80baf3a7 in kleak_copyout | #1 0x80b

CVS commit: src/sys/kern

2018-11-28 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Wed Nov 28 09:44:49 UTC 2018 Modified Files: src/sys/kern: kern_synch.c Log Message: Fix statistics in case mi_switch didn't actually switch LWPs. To generate a diff of this commit: cvs rdiff -u -r1.318 -r1.319 src/sys/kern/ker

CVS commit: src/sys/kern

2018-11-26 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon Nov 26 17:18:01 UTC 2018 Modified Files: src/sys/kern: kern_lwp.c Log Message: Use cpu_index(). NFC. To generate a diff of this commit: cvs rdiff -u -r1.194 -r1.195 src/sys/kern/kern_lwp.c Please note that diffs are not publ

CVS commit: src/sys/kern

2018-11-24 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Nov 24 19:22:17 UTC 2018 Modified Files: src/sys/kern: kern_proc.c Log Message: - instead of zeroing struct proc on each allocation, provide a pool cache constructor. - instead of sprinkling memsets, zalloc the whole buffe

CVS commit: src/sys/kern

2018-11-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 24 17:52:39 UTC 2018 Modified Files: src/sys/kern: vfs_bio.c Log Message: Fix kernel pointer leaks in sysctl_dobuf. While here constify argument. Also memset the buffer, to prevent leaks (even if there doesn't seem to be cu

CVS commit: src/sys/kern

2018-11-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 24 17:40:37 UTC 2018 Modified Files: src/sys/kern: subr_evcnt.c Log Message: Fix kernel pointer leaks in sysctl_doevcnt. While here also fix info leak; there is a big padding so use zalloc. To generate a diff of this comm

CVS commit: src/sys/kern

2018-11-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 24 17:26:27 UTC 2018 Modified Files: src/sys/kern: init_sysctl.c Log Message: Fix kernel pointer leaks in the kern.lwp sysctl. To generate a diff of this commit: cvs rdiff -u -r1.218 -r1.219 src/sys/kern/init_sysctl.c Ple

CVS commit: src/sys/kern

2018-11-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 24 17:16:44 UTC 2018 Modified Files: src/sys/kern: uipc_domain.c Log Message: Fix kernel pointer leaks in sysctl_unpcblist. To generate a diff of this commit: cvs rdiff -u -r1.104 -r1.105 src/sys/kern/uipc_domain.c Please

CVS commit: src/sys/kern

2018-11-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 24 16:41:48 UTC 2018 Modified Files: src/sys/kern: kern_descrip.c Log Message: Fix kernel pointer leaks in the kern.file sysctl, same as kern.file2. To generate a diff of this commit: cvs rdiff -u -r1.240 -r1.241 src/sys/k

CVS commit: src/sys/kern

2018-11-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 24 16:25:20 UTC 2018 Modified Files: src/sys/kern: kern_descrip.c Log Message: Rename fill_file -> fill_file2, since that's the KERN_FILE2 sysctl. To generate a diff of this commit: cvs rdiff -u -r1.239 -r1.240 src/sys/ker

CVS commit: src/sys/kern

2018-11-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 24 16:18:36 UTC 2018 Modified Files: src/sys/kern: kern_proc.c Log Message: Fix kernel info leak, we do a blunt copy of struct proc, but it has padding. So zero out the structure on each allocation. And copy field by field w

CVS commit: src/sys/kern

2018-11-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Nov 15 10:37:26 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Add KASSERTs. To generate a diff of this commit: cvs rdiff -u -r1.223 -r1.224 src/sys/kern/uipc_mbuf.c Please note that diffs are not public doma

CVS commit: src/sys/kern

2018-11-13 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Tue Nov 13 11:06:19 UTC 2018 Modified Files: src/sys/kern: kern_cpu.c Log Message: Fix/add KASSERTS to work with a system of MAXCPUS. Add some comments to explain things. Discussed with rmind To generate a diff of this commit:

CVS commit: src/sys/kern

2018-11-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 13 07:16:33 UTC 2018 Modified Files: src/sys/kern: kern_time.c Log Message: Fix kernel info leak. There are 2x4 bytes of padding in struct itimerval. [ 738.451860] kleak: Possible leak in copyout: [len=32, leaked=8] [ 738

CVS commit: src/sys/kern

2018-11-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Nov 13 06:58:14 UTC 2018 Modified Files: src/sys/kern: kern_event.c Log Message: Fix kernel info leak. There are 4 bytes of padding in struct kevent. [ 287.537676] kleak: Possible leak in copyout: [len=40, leaked=4] [ 287.537

CVS commit: src/sys/kern

2018-11-12 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Nov 12 09:21:13 UTC 2018 Modified Files: src/sys/kern: uipc_syscalls.c Log Message: sys_recvmmsg: don't defer an error that already gets returned. To generate a diff of this commit: cvs rdiff -u -r1.198 -r1.199 src/sys/kern

CVS commit: src/sys/kern

2018-11-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Nov 12 06:55:03 UTC 2018 Modified Files: src/sys/kern: kern_proc.c Log Message: Fix buffer overflow, which can lead to severe information leak. Detected by kASan. To generate a diff of this commit: cvs rdiff -u -r1.218 -r1.219

CVS commit: src/sys/kern

2018-11-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 11 11:17:49 UTC 2018 Modified Files: src/sys/kern: kern_time.c Log Message: Fix stack info leak. There are 4 bytes of padding in struct timeval. Looks like there are other leaks related to timeval in this file. [ 133.41435

CVS commit: src/sys/kern

2018-11-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 11 10:55:58 UTC 2018 Modified Files: src/sys/kern: kern_exec.c Log Message: Fix stack info leak. There are 2x4 bytes of padding in struct ps_strings. [ 223.896199] kleak: Possible leak in copyout: [len=32, leaked=8] [ 223

CVS commit: src/sys/kern

2018-11-07 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Wed Nov 7 09:59:12 UTC 2018 Modified Files: src/sys/kern: uipc_syscalls.c Log Message: Don't defer errors from sendmmsg(). This matches the linux manpage. Defer errors from recvmmsg() through so_rerror and tests and return a d

CVS commit: src/sys/kern

2018-11-07 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Wed Nov 7 09:58:19 UTC 2018 Modified Files: src/sys/kern: uipc_socket.c Log Message: Update getsockopt(SO_ERROR) to behave like soreceive() and return and clear so->so_rerror if so->so_error is zero. Ok: christos@ To generate

CVS commit: src/sys/kern

2018-11-03 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Nov 3 15:20:03 UTC 2018 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: Deduplicate debug printing code. To generate a diff of this commit: cvs rdiff -u -r1.68 -r1.69 src/sys/kern/subr_lockdebug.c Please note

CVS commit: src/sys/kern

2018-11-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Nov 2 12:27:47 UTC 2018 Modified Files: src/sys/kern: kern_descrip.c Log Message: Add LIST_INIT for filehead. To generate a diff of this commit: cvs rdiff -u -r1.238 -r1.239 src/sys/kern/kern_descrip.c Please note that diffs

CVS commit: src/sys/kern

2018-10-29 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Oct 29 22:02:25 UTC 2018 Modified Files: src/sys/kern: kern_ntptime.c Log Message: Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure. Reported by Thomas Barabosch. To generate a diff of this com

CVS commit: src/sys/kern

2018-10-27 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Oct 27 09:13:45 UTC 2018 Modified Files: src/sys/kern: subr_tftproot.c Log Message: appease gcc To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/kern/subr_tftproot.c Please note that diffs are not publ

CVS commit: src/sys/kern

2018-10-26 Thread Martin Husemann
Module Name:src Committed By: martin Date: Fri Oct 26 18:16:42 UTC 2018 Modified Files: src/sys/kern: init_main.c Log Message: Only print the "no console" warning when booting verbose or debug. It is a normal condition in many setups and has no consequences for the user, s

CVS commit: src/sys/kern

2018-10-25 Thread matthew green
Module Name:src Committed By: mrg Date: Thu Oct 25 09:30:45 UTC 2018 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: in the !MP world, ci->ci_curlwp may not exist. just use curlwp. XXX: can we just do this for MP builds, too? i think so. To generate a diff

CVS commit: src/sys/kern

2018-10-20 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sat Oct 20 14:09:47 UTC 2018 Modified Files: src/sys/kern: kern_malloc.c Log Message: Do not assume size_t == unsigned long To generate a diff of this commit: cvs rdiff -u -r1.153 -r1.154 src/sys/kern/kern_malloc.c Please note

CVS commit: src/sys/kern

2018-10-17 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Thu Oct 18 05:44:19 UTC 2018 Modified Files: src/sys/kern: uipc_mbufdebug.c Log Message: KNF. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/kern/uipc_mbufdebug.c Please note that di

CVS commit: src/sys/kern

2018-10-11 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Thu Oct 11 11:17:07 UTC 2018 Modified Files: src/sys/kern: uipc_mbufdebug.c Log Message: Fix m_examine_ip6() to print IPv6 payload length (ip6_plen) correctly. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys

CVS commit: src/sys/kern

2018-10-10 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Wed Oct 10 10:54:30 UTC 2018 Modified Files: src/sys/kern: uipc_mbufdebug.c Log Message: Fix m_examine_tcp() to print TCP header length (th_off) correctly. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/ke

CVS commit: src/sys/kern

2018-10-07 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sun Oct 7 11:24:16 UTC 2018 Modified Files: src/sys/kern: kern_subr.c Log Message: Set rootdev for wedges. To generate a diff of this commit: cvs rdiff -u -r1.219 -r1.220 src/sys/kern/kern_subr.c Please note that diffs are no

CVS commit: src/sys/kern

2018-10-04 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Fri Oct 5 05:06:48 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: s/conver_to/convert_to/. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.219 -r1.220 src/sys/kern/uipc_mbuf.c Pleas

CVS commit: src/sys/kern

2018-10-04 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Fri Oct 5 01:25:38 UTC 2018 Modified Files: src/sys/kern: vfs_trans.c Log Message: Back out sftchg/fstcnt deadlock workaround The change did prevent some system freeze, but caused spurious unmount failures reporter by bouyer@. ha

CVS commit: src/sys/kern

2018-09-26 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Sep 27 01:03:40 UTC 2018 Modified Files: src/sys/kern: vfs_trans.c Log Message: Work around deadlock between fstchg and fstcnt When suspending a filesystem in fstrans_setstate(), we wait on fstcnt for threads to finish transact

CVS commit: src/sys/kern

2018-09-16 Thread matthew green
Module Name:src Committed By: mrg Date: Sun Sep 16 20:39:04 UTC 2018 Modified Files: src/sys/kern: init_sysctl.c Log Message: CTL_DEBUG_MAXID is only used to size a static array that the compiler can do just fine itself. use the compiler and remove the define. To genera

CVS commit: src/sys/kern

2018-09-14 Thread matthew green
Module Name:src Committed By: mrg Date: Fri Sep 14 07:01:28 UTC 2018 Removed Files: src/sys/kern: kern_xxx.c Log Message: remove obsolete file missed while splitting it! thanks wiz. To generate a diff of this commit: cvs rdiff -u -r1.74 -r0 src/sys/kern/kern_xxx.c Plea

CVS commit: src/sys/kern

2018-09-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Sep 13 14:44:09 UTC 2018 Modified Files: src/sys/kern: kern_descrip.c Log Message: Don't leak kernel pointers to userland in kern.file2, same as kern.proc2. To generate a diff of this commit: cvs rdiff -u -r1.236 -r1.237 src/s

CVS commit: src/sys/kern

2018-09-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Sep 10 13:11:05 UTC 2018 Modified Files: src/sys/kern: subr_pool.c Log Message: Correctly align the size+redzone for KASAN, on amd64 it happens to be always 8byte-aligned but on other architectures it may not be. To generate a

CVS commit: src/sys/kern

2018-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Sep 4 16:03:56 UTC 2018 Modified Files: src/sys/kern: kern_proc.c Log Message: Clear the kernel pointers from kern.proc and kern.proc2 when the user is not privileged. To generate a diff of this commit: cvs rdiff -u -r1.216 -

CVS commit: src/sys/kern

2018-09-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Sep 4 15:48:44 UTC 2018 Modified Files: src/sys/kern: kern_proc.c Log Message: Use p->p_session instead of ep->e_sess, no real functional change. To generate a diff of this commit: cvs rdiff -u -r1.215 -r1.216 src/sys/kern/ke

CVS commit: src/sys/kern

2018-09-03 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Sep 3 21:29:30 UTC 2018 Modified Files: src/sys/kern: kern_clock.c Log Message: C99 initializers for intr_timecounter. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.137 -r1.138 src/sys/kern/k

CVS commit: src/sys/kern

2018-08-30 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Fri Aug 31 01:23:57 UTC 2018 Modified Files: src/sys/kern: kern_mutex.c kern_rwlock.c Log Message: Sprinkle __predict_false to dedicated assertions of mutex and rwlock To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.

CVS commit: src/sys/kern

2018-08-29 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Wed Aug 29 09:05:17 UTC 2018 Modified Files: src/sys/kern: vfs_bio.c Log Message: Make sure getnewbuf() runs bawrite() inside fstrans. Use fstrans_start_nowait() to skip buffers that would block. To generate a diff of this comm

CVS commit: src/sys/kern

2018-08-26 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Aug 26 11:53:28 UTC 2018 Modified Files: src/sys/kern: makesyscalls.sh Log Message: Refactor the numeric validity check just added, so the error messages can be (easily) done better. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/kern

2018-08-26 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Aug 26 11:48:00 UTC 2018 Modified Files: src/sys/kern: makesyscalls.sh Log Message: Validate that the configuration parameters that are supposed to be numeric are in fact numeric, and then have the awk script use them as awk numb

CVS commit: src/sys/kern

2018-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 25 05:56:25 UTC 2018 Modified Files: src/sys/kern: subr_pool.c Log Message: Disable POOL_REDZONE until we figure out what's wrong. There must be a dumb problem, that is not triggerable on amd64. To generate a diff of this

CVS commit: src/sys/kern

2018-08-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 24 14:04:27 UTC 2018 Modified Files: src/sys/kern: subr_pool.c Log Message: Use __predict_false to optimize, and also replace panic->printf. To generate a diff of this commit: cvs rdiff -u -r1.224 -r1.225 src/sys/kern/subr

CVS commit: src/sys/kern

2018-08-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 23 12:18:02 UTC 2018 Modified Files: src/sys/kern: subr_pool.c Log Message: Add kASan redzones on pools and pool_caches. Also enable POOL_REDZONE on DIAGNOSTIC. To generate a diff of this commit: cvs rdiff -u -r1.223 -r1.2

CVS commit: src/sys/kern

2018-08-22 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Aug 22 14:12:30 UTC 2018 Modified Files: src/sys/kern: kern_malloc.c subr_kmem.c Log Message: - opt_kasan.h is included from - now that we are not using inlines, we need one more ifdef. To generate a diff of this commit:

CVS commit: src/sys/kern

2018-08-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 21 07:56:53 UTC 2018 Modified Files: src/sys/kern: kern_malloc.c Log Message: Need to keep track of the requested size, when realloc is used under kASan. Maybe we could use mh_rqsz by default. To generate a diff of this co

CVS commit: src/sys/kern

2018-08-20 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Tue Aug 21 01:25:57 UTC 2018 Modified Files: src/sys/kern: kern_malloc.c Log Message: Conditionalize inclusion of kasan.h so that rump can build. To generate a diff of this commit: cvs rdiff -u -r1.148 -r1.149 src/sys/kern/ker

CVS commit: src/sys/kern

2018-08-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 20 11:46:44 UTC 2018 Modified Files: src/sys/kern: kern_malloc.c subr_kmem.c Log Message: Compute the pointer earlier, not in the return statement. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.

CVS commit: src/sys/kern

2018-08-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 20 11:35:28 UTC 2018 Modified Files: src/sys/kern: files.kern subr_kmem.c Log Message: Retire KMEM_REDZONE and KMEM_POISON. KMEM_REDZONE is not very efficient and cannot detect read overflows. KASAN can, and will be used in

CVS commit: src/sys/kern

2018-08-19 Thread Jonathan A. Kollasch
Module Name:src Committed By: jakllsch Date: Sun Aug 19 15:10:23 UTC 2018 Modified Files: src/sys/kern: sys_mqueue.c Log Message: Handle p->p_mqueue_cnt in a symmetric manner. While this change does mean that each open mqd_t counts against the limit, it also means that p_

CVS commit: src/sys/kern

2018-08-13 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Tue Aug 14 01:09:53 UTC 2018 Modified Files: src/sys/kern: kern_mutex.c kern_rwlock.c Log Message: Check pserialize_not_in_read_section for adaptive mutexes and rwlocks The overhead of the checks is not negligible so they're tur

CVS commit: src/sys/kern

2018-08-13 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Tue Aug 14 01:06:01 UTC 2018 Modified Files: src/sys/kern: kern_synch.c subr_pserialize.c Log Message: Change the place to check if a context switch doesn't happen within a pserialize read section The previous place (pserialize

CVS commit: src/sys/kern

2018-08-01 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Thu Aug 2 04:28:56 UTC 2018 Modified Files: src/sys/kern: uipc_mbuf2.c Log Message: Adjust alignment in m_pulldown(). IP6_EXTHDR_GET() and M_REGION_GET() do m_pulldown(). When m_pulldown() copies data into M_TRAILINGSPACE, the

CVS commit: src/sys/kern

2018-07-31 Thread Robert Swindells
Module Name:src Committed By: rjs Date: Tue Jul 31 13:00:14 UTC 2018 Modified Files: src/sys/kern: syscalls.master uipc_syscalls.c Log Message: Add getsockopt2() syscall. To generate a diff of this commit: cvs rdiff -u -r1.292 -r1.293 src/sys/kern/syscalls.master cvs rdi

CVS commit: src/sys/kern

2018-07-24 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Tue Jul 24 15:09:37 UTC 2018 Modified Files: src/sys/kern: kern_synch.c Log Message: In mi_switch(), also call pserialize_switchpoint() if we're not switching to another lwp, as proposed on http://mail-index.netbsd.org/tech-kern/2

CVS commit: src/sys/kern

2018-07-18 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Wed Jul 18 07:06:40 UTC 2018 Modified Files: src/sys/kern: files.kern uipc_mbuf.c uipc_mbufdebug.c Log Message: - Fix compile error for kernel configuration file which has no any Ethernet device driver. - Add missing default la

CVS commit: src/sys/kern

2018-07-15 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sun Jul 15 07:24:11 UTC 2018 Modified Files: src/sys/kern: subr_prf.c Log Message: More ipkdb removal To generate a diff of this commit: cvs rdiff -u -r1.173 -r1.174 src/sys/kern/subr_prf.c Please note that diffs are not public

CVS commit: src/sys/kern

2018-07-08 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Jul 8 14:42:52 UTC 2018 Modified Files: src/sys/kern: kern_timeout.c Log Message: Try to avoid signed integer overflow in callout_softclock() The delta operation (c->c_time - ticks) is documented as safe, however it still can

CVS commit: src/sys/kern

2018-07-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jul 4 18:15:28 UTC 2018 Modified Files: src/sys/kern: kern_lwp.c Log Message: Avoid undefined behavior in lwp_ctl_free() Do not left shift signed integer in a way that the signedness bit is changed. sys/kern/kern_lwp.c:1892:

CVS commit: src/sys/kern

2018-07-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jul 4 18:13:01 UTC 2018 Modified Files: src/sys/kern: kern_lwp.c Log Message: Avoid undefined behavior in lwp_ctl_alloc() Do not left shift signed integer in a way that the signedness bit is changed. sys/kern/kern_lwp.c:1849

CVS commit: src/sys/kern

2018-07-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jul 4 17:50:18 UTC 2018 Modified Files: src/sys/kern: sys_mqueue.c Log Message: Avoid undefined behavior in mq_send1() Do not shift a signed integer causing change of the signed bit. sys/kern/sys_mqueue.c:881:23, left shift

CVS commit: src/sys/kern

2018-07-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jul 4 17:39:12 UTC 2018 Modified Files: src/sys/kern: sys_mqueue.c Log Message: Avoid undefined behavior in mq_recv1() Do not shift a signed integer causing change of the signed bit. sys/kern/sys_mqueue.c:712:24, left shift

CVS commit: src/sys/kern

2018-07-04 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Wed Jul 4 07:25:47 UTC 2018 Modified Files: src/sys/kern: kern_cpu.c Log Message: Don't allocate memory and return EFTYPE if sc->sc_blobsize==0 to prevent panic in firmware_malloc(). To generate a diff of this commit: cvs rdi

CVS commit: src/sys/kern

2018-07-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jul 4 02:19:02 UTC 2018 Modified Files: src/sys/kern: subr_pool.c Log Message: Avoid undefined behavior in pr_item_notouch_put() Do not left shift a signed integer changing its signedness bit. sys/kern/subr_pool.c:251:30, le

CVS commit: src/sys/kern

2018-07-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jul 4 01:42:37 UTC 2018 Modified Files: src/sys/kern: subr_pool.c Log Message: Avoid Undefined Behavior in pr_item_notouch_get() Change the type of left shifted integer from signed to unsigned. sys/kern/subr_pool.c:274:13, l

CVS commit: src/sys/kern

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

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