CVS commit: src/sys/kern

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 1 22:55:55 UTC 2019 Modified Files: src/sys/kern: sys_lwp.c Log Message: Call MD code in mi_startlwp() before MI check for debugger This allows to get initialized mcontext. To generate a diff of this commit: cvs rdiff -

CVS commit: src/sys/kern

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 1 21:57:35 UTC 2019 Modified Files: src/sys/kern: kern_lwp.c sys_lwp.c Log Message: Correct passing debugger related events for LWP create and exit Add MI toplevel startlwp function. Switch all userland LWPs to go throug

CVS commit: src/sys/kern

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 1 21:52:35 UTC 2019 Modified Files: src/sys/kern: kern_sig.c Log Message: Assert that debugger event is triggered only for userland LWP All passing ATF ptrace(2) tests still pass. To generate a diff of this commit: cvs

CVS commit: src/sys/kern

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 1 18:01:54 UTC 2019 Modified Files: src/sys/kern: kern_fork.c kern_sig.c Log Message: Correct handling of corner cases in fork1(9) code under a debugger Correct detaching and SIGKILLing forker and vforker in the middle of

CVS commit: src/sys/kern

2019-05-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed May 1 17:02:40 UTC 2019 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Disallow resuming program with PC=0x0 in ptrace(2) If the address parameter is 0, report error. It's a popular mistake to set Program Coun

CVS commit: src/sys/kern

2019-04-30 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Apr 30 22:32:01 UTC 2019 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Reject ptrace(2) PIOD_READ/WRITE operations with length 0 Return EINVAL for such invalid requests. To generate a diff of this commit: cv

CVS commit: src/sys/kern

2019-04-30 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Apr 30 20:50:30 UTC 2019 Modified Files: src/sys/kern: sys_ptrace_common.c Log Message: Return EIO for empty memory transfer from ptrace(2) Certain operations of PT_READ/PT_WRITE and PIOD_READ/PIOD_WRITE can result in 0 byte t

CVS commit: src/sys/kern

2019-04-28 Thread Alexander Nasonov
Module Name:src Committed By: alnsn Date: Sun Apr 28 21:36:20 UTC 2019 Modified Files: src/sys/kern: kern_veriexec.c Log Message: Document that veriexec_file_add() also expects keep-filename and eval-on-load. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20

CVS commit: src/sys/kern

2019-04-26 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Fri Apr 26 17:24:23 UTC 2019 Modified Files: src/sys/kern: sys_pipe.c Log Message: Handle half-closed pipes in FIONWRITE and FIONSPACE. To generate a diff of this commit: cvs rdiff -u -r1.147 -r1.148 src/sys/kern/sys_pipe.c Pl

CVS commit: src/sys/kern

2019-04-26 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Fri Apr 26 17:20:49 UTC 2019 Modified Files: src/sys/kern: sys_pipe.c Log Message: Clean up pipe structure before recycling it. To generate a diff of this commit: cvs rdiff -u -r1.146 -r1.147 src/sys/kern/sys_pipe.c Please not

CVS commit: src/sys/kern

2019-04-16 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Wed Apr 17 02:29:43 UTC 2019 Modified Files: src/sys/kern: kern_mutex.c kern_rwlock.c Log Message: Don't check pserialize_not_in_read_section after panic It can cause a false positive assertion failure. To generate a diff of t

CVS commit: src/sys/kern

2019-04-15 Thread Martin Husemann
Module Name:src Committed By: martin Date: Tue Apr 16 01:02:41 UTC 2019 Modified Files: src/sys/kern: sys_mqueue.c Log Message: mq_send1: fix argument validation and reject too large lengths early. Discovered by Andy Nguyen. To generate a diff of this commit: cvs rdiff -

CVS commit: src/sys/kern

2019-04-15 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Apr 15 13:01:08 UTC 2019 Modified Files: src/sys/kern: vfs_trans.c Log Message: Add reference counting to alias states to prevent them disappearing while still in use. To generate a diff of this commit: cvs rdiff -u -r1.58

CVS commit: src/sys/kern

2019-04-14 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Mon Apr 15 03:58:29 UTC 2019 Modified Files: src/sys/kern: uipc_socket.c Log Message: If the compat code successfully handled an option, don't return an error. To generate a diff of this commit: cvs rdiff -u -r1.276 -r1.277 sr

CVS commit: src/sys/kern

2019-04-14 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Mon Apr 15 02:35:28 UTC 2019 Modified Files: src/sys/kern: uipc_socket.c Log Message: Actually update the timeout value for the compability sockops To generate a diff of this commit: cvs rdiff -u -r1.275 -r1.276 src/sys/kern/u

CVS commit: src/sys/kern

2019-04-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Apr 14 09:09:55 UTC 2019 Modified Files: src/sys/kern: uipc_socket.c Log Message: Add more checks, if the values are negative we hit a KASSERT later in the timeout. Reported-by: syzbot+662dbeb526303f458...@syzkaller.appspotmail

CVS commit: src/sys/kern

2019-04-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Apr 8 18:38:45 UTC 2019 Modified Files: src/sys/kern: uipc_socket.c Log Message: Reset so_cred to NULL after freeing it, because close() may leave the PCB in pcblist, and we don't want a future lookup (via eg netstat) to read f

CVS commit: src/sys/kern

2019-04-08 Thread Maya Rashish
Module Name:src Committed By: maya Date: Mon Apr 8 13:05:23 UTC 2019 Modified Files: src/sys/kern: subr_exec_fd.c Log Message: Update comment to match existing function name. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/kern/subr_exec_fd.c Please

CVS commit: src/sys/kern

2019-04-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 7 21:01:43 UTC 2019 Modified Files: src/sys/kern: subr_kcov.c Log Message: Switch kcov module class to MODULE_CLASS_MISC MODULE_CLASS_ANY is not intended to be used by modules. Noted by To generate a diff of this comm

CVS commit: src/sys/kern

2019-04-07 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Apr 7 16:27:41 UTC 2019 Modified Files: src/sys/kern: subr_copy.c Log Message: Exclude references to _ucas_{32,64}_mp() for _RUMPKERNEL. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/kern/subr_copy.

CVS commit: src/sys/kern

2019-04-07 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Apr 7 14:50:41 UTC 2019 Modified Files: src/sys/kern: kern_fork.c Log Message: Add a paranoid racy lock check in child_return() In theory a child could be detached for some reason or another during the time window between che

CVS commit: src/sys/kern

2019-04-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Apr 7 08:37:38 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: Fix tiny race in pool+KASAN, that resulted in occasional false positives. We were uselessly marking already valid areas as valid. When doing that,

CVS commit: src/sys/kern

2019-04-06 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Sun Apr 7 02:58:02 UTC 2019 Modified Files: src/sys/kern: subr_disklabel.c Log Message: Fix previous. We define _KERNEL for rump in opt_rumpkernel.h. XXX This works because arch's with _RUMP_NATIVEABI=yes and therefore XXX without

CVS commit: src/sys/kern

2019-04-06 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sat Apr 6 15:52:35 UTC 2019 Modified Files: src/sys/kern: subr_copy.c Log Message: Treat _RUMPKERNEL like a __HAVE_UCAS_FULL platform. Add a comment explaining what's going on. Fixes librump build on sparc. To generate a dif

CVS commit: src/sys/kern

2019-04-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Apr 5 21:41:18 UTC 2019 Modified Files: src/sys/kern: kern_fork.c Log Message: Correct distinguishing fork/vfork tracing event in fork1(9) flags can contain a different value than FORK_PPWAIT and bit comparing with '&&' was a

CVS commit: src/sys/kern

2019-04-04 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Apr 5 01:10:32 UTC 2019 Modified Files: src/sys/kern: subr_disklabel.c Log Message: we need it for non-kernel builds (rump) To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/kern/subr_disklabel.c Please

CVS commit: src/sys/kern

2019-04-04 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Fri Apr 5 00:33:22 UTC 2019 Modified Files: src/sys/kern: kern_resource.c Log Message: avoid underflow in user/system time. To generate a diff of this commit: cvs rdiff -u -r1.181 -r1.182 src/sys/kern/kern_resource.c Please n

CVS commit: src/sys/kern

2019-04-04 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Apr 4 20:19:07 UTC 2019 Modified Files: src/sys/kern: files.kern subr_disk.c Added Files: src/sys/kern: subr_disklabel.c Log Message: move setdisklabel(9) into a separate file. To generate a diff of this commit: c

CVS commit: src/sys/kern

2019-04-04 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Thu Apr 4 12:26:45 UTC 2019 Modified Files: src/sys/kern: kern_physio.c Log Message: Don't validate buffer size for tape I/O, this is already done by the tape driver. Using MAXBSIZE as limit was also wrong on sun2 where MAXBSIZE

CVS commit: src/sys/kern

2019-04-04 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Apr 4 11:49:06 UTC 2019 Modified Files: src/sys/kern: subr_disk.c Log Message: one more __func__ To generate a diff of this commit: cvs rdiff -u -r1.125 -r1.126 src/sys/kern/subr_disk.c Please note that diffs are not pub

CVS commit: src/sys/kern

2019-04-04 Thread Martin Husemann
Module Name:src Committed By: martin Date: Thu Apr 4 07:09:55 UTC 2019 Modified Files: src/sys/kern: subr_disk.c Log Message: Make the DEBUG version compile To generate a diff of this commit: cvs rdiff -u -r1.124 -r1.125 src/sys/kern/subr_disk.c Please note that diffs

CVS commit: src/sys/kern

2019-04-03 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Apr 3 08:34:33 UTC 2019 Modified Files: src/sys/kern: kern_sig.c Log Message: Remove support for early SIGTRAP (fork related) signals in kpsignal2() This function is no longer used to handle early SIGTRAP signals for fork-rel

CVS commit: src/sys/kern

2019-03-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Mar 31 19:54:36 UTC 2019 Modified Files: src/sys/kern: uipc_socket.c Log Message: Also check for MT_CONTROL, and end the receive operation if we see one. It is possible to get an MT_CONTROL if we sleep in MSG_WAITALL. The other

CVS commit: src/sys/kern

2019-03-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Mar 28 18:12:24 UTC 2019 Modified Files: src/sys/kern: subr_pool.c vfs_init.c Log Message: Move pnbuf_cache into vfs_init.c, where it belongs. To generate a diff of this commit: cvs rdiff -u -r1.245 -r1.246 src/sys/kern/subr_p

CVS commit: src/sys/kern

2019-03-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Mar 26 20:05:18 UTC 2019 Modified Files: src/sys/kern: subr_kmem.c Log Message: Remove unneeded PR_NOALIGN, pool_allocator_kmem is already page-aligned. To generate a diff of this commit: cvs rdiff -u -r1.73 -r1.74 src/sys/ker

CVS commit: src/sys/kern

2019-03-26 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Tue Mar 26 09:33:58 UTC 2019 Modified Files: src/sys/kern: kern_physio.c Log Message: physio can issue multiple concurrent I/O requests for scatter/gather and split requests, concurrent requests are limited to use multiple-of-DEV

CVS commit: src/sys/kern

2019-03-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Mar 18 20:34:48 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: Kernel Heap Hardening: manage freed items with bitmaps rather than linked lists when we're on-page and the page header is naturally big enough to co

CVS commit: src/sys/kern

2019-03-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Mar 17 15:33:50 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: Kernel Heap Hardening: put the pool header at the beginning of the backing page, not at the end of it. This makes it harder to exploit buffer overf

CVS commit: src/sys/kern

2019-03-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Mar 17 14:52:25 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: Move some code into a separate function, and explain a bit. Also define PHSIZE. No functional change. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/kern

2019-03-17 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sun Mar 17 10:14:52 UTC 2019 Modified Files: src/sys/kern: vfs_lookup.c Log Message: With TRYEMULROOT namei_getstartdir() gets used twice so have to vrele() "ni_rootdir" and "ni_erootdir" on entry. To generate a diff of this co

CVS commit: src/sys/kern

2019-03-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Mar 17 07:22:18 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: cosmetic To generate a diff of this commit: cvs rdiff -u -r1.238 -r1.239 src/sys/kern/subr_pool.c Please note that diffs are not public domain; t

CVS commit: src/sys/kern

2019-03-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Mar 17 06:55:06 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: Prepare the removal of the 'ioff' argument: add a KASSERT to ensure it is zero, and remove the internal logic. The pool code is simpler now. To ge

CVS commit: src/sys/kern

2019-03-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Mar 16 13:33:10 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: Misc changes: - Turn two KASSERTs to real panics, they are useful and not expensive. - Rename a few variables for clarity. - Add a new panic, to

CVS commit: src/sys/kern

2019-03-14 Thread Palle Lyckegaard
Module Name:src Committed By: palle Date: Thu Mar 14 19:51:50 UTC 2019 Modified Files: src/sys/kern: kern_scdebug.c Log Message: syscall debug - fix build when SYSCALL_DEBUG option is present in kernel config file To generate a diff of this commit: cvs rdiff -u -r1.1 -r

CVS commit: src/sys/kern

2019-03-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Mar 13 20:56:33 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: style To generate a diff of this commit: cvs rdiff -u -r1.235 -r1.236 src/sys/kern/subr_pool.c Please note that diffs are not public domain; they

CVS commit: src/sys/kern

2019-03-12 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Tue Mar 12 14:03:35 UTC 2019 Modified Files: src/sys/kern: vfs_lookup.c Log Message: Take a reference on ndp->ni_rootdir and ndp->ni_erootdir. A multithreaded process may chroot during namei() and we end up with vn_under() tryin

CVS commit: src/sys/kern

2019-03-11 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue Mar 12 00:25:44 UTC 2019 Modified Files: src/sys/kern: subr_humanize.c Log Message: This had a similar problem to that reported in PR lib/54053 for the userland (libc) version of humanize_number(), except in a much more limited,

CVS commit: src/sys/kern

2019-03-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Mar 11 20:38:28 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: Add sanity check: make sure we retrieve a valid item header, by checking its page address against the one we computed. If there's a mismatch it mean

CVS commit: src/sys/kern

2019-03-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Mar 11 20:21:33 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: Rename pr_item_notouch_* to pr_item_bitmap_*, and move some code into new pr_item_linkedlist_* functions. This makes it easier to see that we have t

CVS commit: src/sys/kern

2019-03-10 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Mar 10 14:45:53 UTC 2019 Modified Files: src/sys/kern: kern_time.c Log Message: Fix the code that deals with very long sleeps (> 248 days) which go beyond the maximum that the callout mechanism can handle. [See the comments in tv

CVS commit: src/sys/kern

2019-03-10 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Mar 10 13:44:49 UTC 2019 Modified Files: src/sys/kern: kern_timeout.c Log Message: Undo previous, in the name of "defined" behaviour, it breaks things. This is all explained in the comment at the head of the file: * Some of th

CVS commit: src/sys/kern

2019-03-10 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sun Mar 10 12:49:48 UTC 2019 Modified Files: src/sys/kern: kern_mutex.c Log Message: Fix two oddities... - remove extraneous semi-colons from do { } while (0) macro definitions - actually wrap MUTEX_INITIALIZE_ADAPTIVE contents in

CVS commit: src/sys/kern

2019-03-08 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Mar 8 23:32:31 UTC 2019 Modified Files: src/sys/kern: kern_sig.c Log Message: Stop resetting signal context on a trap signal under a debugger In case of a crash signal, notify debugger immediately passing the signal regardles

CVS commit: src/sys/kern

2019-03-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Mar 7 18:32:10 UTC 2019 Modified Files: src/sys/kern: kern_malloc.c Log Message: Mmh, fix len, mh_size includes the malloc header, but we don't redzone it. To generate a diff of this commit: cvs rdiff -u -r1.155 -r1.156 src/s

CVS commit: src/sys/kern

2019-03-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Mar 7 12:22:43 UTC 2019 Modified Files: src/sys/kern: uipc_socket.c Log Message: style To generate a diff of this commit: cvs rdiff -u -r1.269 -r1.270 src/sys/kern/uipc_socket.c Please note that diffs are not public domain;

CVS commit: src/sys/kern

2019-03-07 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Thu Mar 7 11:09:48 UTC 2019 Modified Files: src/sys/kern: vfs_vnops.c Log Message: Change vn_openchk() to fail VNON and VBAD with error ENXIO. Reported-by: syzbot+d66b1be08516a4d2d...@syzkaller.appspotmail.com Reported-by: syzb

CVS commit: src/sys/kern

2019-03-07 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Thu Mar 7 11:09:10 UTC 2019 Modified Files: src/sys/kern: vfs_trans.c Log Message: Change "fli_alias" to point to the corresponding "fstrans_lwp_info". Fix fstrans_clear_lwp_info() list traversal, remove already advanced the li

CVS commit: src/sys/kern

2019-02-28 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Mar 1 03:20:50 UTC 2019 Modified Files: src/sys/kern: kern_proc.c Log Message: no more p_nsems. To generate a diff of this commit: cvs rdiff -u -r1.226 -r1.227 src/sys/kern/kern_proc.c Please note that diffs are not publ

CVS commit: src/sys/kern

2019-02-24 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sun Feb 24 16:11:24 UTC 2019 Modified Files: src/sys/kern: vfs_trans.c Log Message: Clear per-lwp entries whose mount is gone before the first return from fstrans_done(). No longer leaks "struct mount" forever. To generate a d

CVS commit: src/sys/kern

2019-02-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 24 10:44:41 UTC 2019 Modified Files: src/sys/kern: subr_asan.c Log Message: Improve the KASAN output, provide an error code, to help distinguish classes of bugs. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5

CVS commit: src/sys/kern

2019-02-23 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sun Feb 24 07:23:12 UTC 2019 Modified Files: src/sys/kern: kern_time.c Log Message: The callout is used by any nonvirtual timer including CLOCK_MONOTONIC and needs to be initialized. Detected by [syzkaller]. To generate a diff

CVS commit: src/sys/kern

2019-02-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Feb 23 12:07:40 UTC 2019 Modified Files: src/sys/kern: subr_kcov.c Log Message: Stop including in KCOV This header is not needed. Noted by To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/kern/subr_kcov

CVS commit: src/sys/kern

2019-02-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Feb 23 12:03:07 UTC 2019 Modified Files: src/sys/kern: subr_kcov.c Log Message: Fix subr_kcov build on NetBSD/i386 Cast the pointer returned from __builtin_return_address() to intptr_t before converting it to uint64_t. To ge

CVS commit: src/sys/kern

2019-02-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Feb 21 21:49:23 UTC 2019 Modified Files: src/sys/kern: uipc_sem.c Log Message: PR/53998: Joel Bertrand: Return ENOSPC when SEM_NSEMS_MAX is exceeded instead of -1. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1

CVS commit: src/sys/kern

2019-02-21 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Thu Feb 21 08:52:53 UTC 2019 Modified Files: src/sys/kern: vfs_trans.c Log Message: Fix bad assertion: vfs_suspend(dead_rootmount) may happen and must return EOPNOTSUPP. To generate a diff of this commit: cvs rdiff -u -r1.54 -r

CVS commit: src/sys/kern

2019-02-20 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Feb 20 19:42:14 UTC 2019 Modified Files: src/sys/kern: kern_descrip.c Log Message: handle O_NOSIGPIPE too. To generate a diff of this commit: cvs rdiff -u -r1.242 -r1.243 src/sys/kern/kern_descrip.c Please note that diffs

CVS commit: src/sys/kern

2019-02-20 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Wed Feb 20 10:09:45 UTC 2019 Modified Files: src/sys/kern: vfs_trans.c Log Message: - Make the fstrans mount info part of the per-lwp state and replace most accesses to the mount with fstrans mount info. - Add "fmi_gone" to be

CVS commit: src/sys/kern

2019-02-20 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Wed Feb 20 10:06:33 UTC 2019 Modified Files: src/sys/kern: vfs_vnode.c Log Message: Assign vnode to dead_rootmount before vcache_dealloc() releases it. Now v_mount is never NULL. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/kern

2019-02-20 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Wed Feb 20 10:02:52 UTC 2019 Modified Files: src/sys/kern: subr_disk_open.c Log Message: Fix vnode locking for opendisk(), must lock for VOP_OPEN(). To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/kern/sub

CVS commit: src/sys/kern

2019-02-20 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Wed Feb 20 09:59:39 UTC 2019 Modified Files: src/sys/kern: uipc_usrreq.c Log Message: compat70_ocreds_valid is not a pointer to a boolean, it is the boolean itself which controls whether or not we recognize the OCRED options. S

CVS commit: src/sys/kern

2019-02-18 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Tue Feb 19 06:55:28 UTC 2019 Modified Files: src/sys/kern: vfs_syscalls.c Log Message: Don't allow MNT_UNION on the root, there is no covered filesystem. Fixes PR 53850 To generate a diff of this commit: cvs rdiff -u -r1.524 -

CVS commit: src/sys/kern

2019-02-17 Thread Christoph Badura
Module Name:src Committed By: bad Date: Sun Feb 17 23:17:42 UTC 2019 Modified Files: src/sys/kern: subr_bufq.c Log Message: rename module_name to strategy_module_name to avoid fatal shadowing of module_name() when compiled with older external gcc. NFC To generate a diff

CVS commit: src/sys/kern

2019-02-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 13 18:04:35 UTC 2019 Modified Files: src/sys/kern: files.kern Log Message: Silent UB alignment issues in acpica under kUBSan Pass -DACPI_MISALIGNMENT_NOT_SUPPORTED under kUBSan enabled. This option is dedicated for alignme

CVS commit: src/sys/kern

2019-02-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Feb 13 14:55:29 UTC 2019 Modified Files: src/sys/kern: subr_asan.c Log Message: Align the kASan message style with kUBSan Print messages with initial 'ASan', simiarly to kUBSan printing 'UBSan'. To generate a diff of this co

CVS commit: src/sys/kern

2019-02-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Feb 11 11:12:58 UTC 2019 Modified Files: src/sys/kern: subr_pool.c Log Message: Fix previous, pr_size includes the KASAN redzone. Repurpose pr_reqsize and use it for PR_ZERO, it holds the size requested by the user with no paddi

CVS commit: src/sys/kern

2019-02-05 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Feb 5 13:50:10 UTC 2019 Modified Files: src/sys/kern: vfs_syscalls.c Log Message: The panic for fopen(NULL, ... is back, fix it Restore the original behavior before merging the compat refactoring branch. Now: - no compat_10

CVS commit: src/sys/kern

2019-02-05 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Tue Feb 5 09:49:44 UTC 2019 Modified Files: src/sys/kern: vfs_mount.c Log Message: Allow dounmount() with file system already suspended. Remove no longer valid test for layered mounts, ZFS will unmount snapshots bottom up. To

CVS commit: src/sys/kern

2019-02-05 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Tue Feb 5 09:34:38 UTC 2019 Modified Files: src/sys/kern: vfs_syscalls.c Log Message: If the openat_10 hook is present and it returns success, continue with the rest of the syscall; don't return prematurely, as we'll report suc

CVS commit: src/sys/kern

2019-02-05 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Tue Feb 5 08:53:18 UTC 2019 Modified Files: src/sys/kern: vfs_syscalls.c Log Message: Correctly handle the NULL path when no compat_10 code is available. This should address kern/53948 (thanks, kamil@, for the PR and for testi

CVS commit: src/sys/kern

2019-02-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Tue Feb 5 07:14:32 UTC 2019 Modified Files: src/sys/kern: uipc_sem.c Log Message: In ksem_close_fop(), if we get a pshared semaphore that's not already been marked dead, make sure we mark it so if the owner proc is the proc clos

CVS commit: src/sys/kern

2019-02-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Feb 4 15:13:54 UTC 2019 Modified Files: src/sys/kern: subr_kmem.c Log Message: Clobber the size when freeing a buffer. This way, if the same buffer gets freed twice, the second size check will fire. To generate a diff of this

CVS commit: src/sys/kern

2019-02-04 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Feb 4 08:00:27 UTC 2019 Modified Files: src/sys/kern: subr_thmap.c Log Message: pass a pointer to atomic_cas_ptr_p(), not an (equiv) integer. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/kern/subr_thmap.

CVS commit: src/sys/kern

2019-02-03 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Feb 4 04:18:59 UTC 2019 Modified Files: src/sys/kern: vfs_vnops.c Log Message: s/fall into .../FALLTHROUGH/ To generate a diff of this commit: cvs rdiff -u -r1.198 -r1.199 src/sys/kern/vfs_vnops.c Please note that diffs are n

CVS commit: src/sys/kern

2019-02-03 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Feb 4 04:18:27 UTC 2019 Modified Files: src/sys/kern: uipc_socket.c Log Message: add a couple of fallthru comments. To generate a diff of this commit: cvs rdiff -u -r1.268 -r1.269 src/sys/kern/uipc_socket.c Please note that d

CVS commit: src/sys/kern

2019-01-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jan 31 20:09:05 UTC 2019 Modified Files: src/sys/kern: kern_time.c Log Message: Fix kernel info leaks. To generate a diff of this commit: cvs rdiff -u -r1.193 -r1.194 src/sys/kern/kern_time.c Please note that diffs are not pu

CVS commit: src/sys/kern

2019-01-30 Thread Emmanuel Dreyfus
Module Name:src Committed By: manu Date: Thu Jan 31 02:27:06 UTC 2019 Modified Files: src/sys/kern: vfs_syscalls.c Log Message: Do not resolve fdat for openat(2) if path is absolute Opengroup says "The openat() function shall be equivalent to the open() function except i

CVS commit: src/sys/kern

2019-01-28 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Jan 28 16:55:57 UTC 2019 Modified Files: src/sys/kern: sys_module.c Log Message: remove uninitialized (and unused) To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/sys/kern/sys_module.c Please note that d

CVS commit: src/sys/kern

2019-01-28 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Jan 28 15:56:12 UTC 2019 Modified Files: src/sys/kern: kern_sysctl.c Log Message: print the names of the sysctl nodes in the KASSERT. To generate a diff of this commit: cvs rdiff -u -r1.262 -r1.263 src/sys/kern/kern_sysctl

CVS commit: src/sys/kern

2019-01-26 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Jan 27 02:55:26 UTC 2019 Modified Files: src/sys/kern: kern_stub.c Log Message: remove extra #endif To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47 src/sys/kern/kern_stub.c Please note that diffs are not pub

CVS commit: src/sys/kern

2019-01-23 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jan 23 13:38:30 UTC 2019 Modified Files: src/sys/kern: init_main.c Log Message: Change the place of initproc initialization The initproc variable cannot be initialized in start_init as there is a race between vfs_mountroot and

CVS commit: src/sys/kern

2019-01-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jan 22 03:44:45 UTC 2019 Modified Files: src/sys/kern: core_elf32.c Log Message: Fix code generation for programs with a faulty process map In case of any errors of scanning the segments reset their content to a default value

CVS commit: src/sys/kern

2019-01-20 Thread Christoph Badura
Module Name:src Committed By: bad Date: Sun Jan 20 21:26:13 UTC 2019 Modified Files: src/sys/kern: subr_tftproot.c Log Message: tftproot_getfile(): return E2BIG when bootfile is to long. tftproot_getfile() must return something != 0 to indicate error when the bootfile is

CVS commit: src/sys/kern

2019-01-19 Thread Mindaugas Rasiukevicius
Module Name:src Committed By: rmind Date: Sat Jan 19 20:42:54 UTC 2019 Modified Files: src/sys/kern: subr_thmap.c Log Message: thmap: use KM_NOSLEEP for now; might revisit later. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/kern/subr_thmap.c Pleas

CVS commit: src/sys/kern

2019-01-17 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Thu Jan 17 10:18:52 UTC 2019 Modified Files: src/sys/kern: kern_threadpool.c Log Message: Use PRIu64 for "uint64_t tp_refcnt". To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/kern/kern_threadpool.c Please

CVS commit: src/sys/kern

2019-01-15 Thread Kengo NAKAHARA
Module Name:src Committed By: knakahara Date: Wed Jan 16 01:50:25 UTC 2019 Modified Files: src/sys/kern: uipc_mbuf.c Log Message: Initialize m_pkthdr members explicity. To generate a diff of this commit: cvs rdiff -u -r1.230 -r1.231 src/sys/kern/uipc_mbuf.c Please note

CVS commit: src/sys/kern

2019-01-14 Thread matthew green
Module Name:src Committed By: mrg Date: Tue Jan 15 07:11:23 UTC 2019 Modified Files: src/sys/kern: init_sysctl.c Log Message: remove kern.panic_now -- crashme panic node replaces it. To generate a diff of this commit: cvs rdiff -u -r1.221 -r1.222 src/sys/kern/init_sysctl

CVS commit: src/sys/kern

2019-01-14 Thread Jaromir Dolecek
Module Name:src Committed By: jdolecek Date: Mon Jan 14 19:21:54 UTC 2019 Modified Files: src/sys/kern: subr_prf.c Log Message: add KASSERT()s to ensure aprint_*_dev() and aprint_*_ifp() is not called with NULL dv or ifp respectively related to PR kern/53789 To generate

CVS commit: src/sys/kern

2019-01-12 Thread Tobias Nygren
Module Name:src Committed By: tnn Date: Sun Jan 13 00:11:29 UTC 2019 Modified Files: src/sys/kern: kern_crashme.c Log Message: clang does not like to deref a null pointer unless it is qualified volatile To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/

CVS commit: src/sys/kern

2019-01-10 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Jan 10 22:02:16 UTC 2019 Modified Files: src/sys/kern: sysv_ipc.c Log Message: handle errors from loading the syscalls and bail early. establish sysctl later. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 s

CVS commit: src/sys/kern

2019-01-05 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Jan 5 18:03:41 UTC 2019 Modified Files: src/sys/kern: kern_subr.c Log Message: Restore code to create md0, this fixes booting an INSTALL kernel. To generate a diff of this commit: cvs rdiff -u -r1.221 -r1.222 src/sys/kern/

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