CVS commit: src/sys/arch/i386/i386

2016-07-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jul 25 15:18:41 UTC 2016 Modified Files: src/sys/arch/i386/i386: locore.S Log Message: This needs to be page-aligned anyway. To generate a diff of this commit: cvs rdiff -u -r1.135 -r1.136 src/sys/arch/i386/i386/locore.S

CVS commit: src/sys/arch/amd64/amd64

2016-07-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jul 25 15:29:06 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: mptramp.S Log Message: Unused. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/arch/amd64/amd64/mptramp.S Please note that diffs are

CVS commit: src/sys/uvm

2016-07-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jul 27 16:45:00 UTC 2016 Modified Files: src/sys/uvm: uvm_km.c Log Message: Use UVM_PROT_ALL only if UVM_KMF_EXEC is given as argument. Otherwise, if UVM_KMF_PAGEABLE is also given as argument, only the VA is allocated and UVM

CVS commit: src/sys/arch

2016-07-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 24 13:04:58 UTC 2016 Modified Files: src/sys/arch/amd64/acpi: acpi_wakecode.S acpi_wakeup_low.S src/sys/arch/i386/acpi: acpi_wakecode.S acpi_wakeup_low.S Log Message: KNF, and reduce the diff between amd64 and i386.

CVS commit: src/sys/arch

2016-07-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 24 14:09:22 UTC 2016 Modified Files: src/sys/arch/i386/acpi: acpi_wakecode.S acpi_wakeup_low.S src/sys/arch/x86/acpi: acpi_wakeup.c Log Message: The MSR EFER state is not saved and restored when sleeping on i386. On

CVS commit: src/sys/kern

2016-08-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 1 15:41:05 UTC 2016 Modified Files: src/sys/kern: subr_kobj.c Log Message: Don't fail if a module does not have a data or rodata section. Small modules don't have data. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/arch/x86/x86

2016-08-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 1 16:07:39 UTC 2016 Modified Files: src/sys/arch/x86/x86: x86_machdep.c Log Message: This panic is wrong. There could be two consecutive clusters below avail_start. To generate a diff of this commit: cvs rdiff -u -r1.74

CVS commit: src/sys/arch/x86/x86

2016-07-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jul 27 12:08:46 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Re-enable large pages on the data segment, but don't map the first page, and add a comment to explain why. We will have to move the LAPIC VA.

CVS commit: src/sys/arch/x86/acpi

2016-07-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jul 27 13:04:29 UTC 2016 Modified Files: src/sys/arch/x86/acpi: acpi_wakeup.c Log Message: Call cpu_init_msrs on i386 when waking up. Currently it does not change anything, since MSR_EFER is already enabled earlier. But if we

CVS commit: src/sys/arch

2016-07-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jul 25 16:03:38 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: locore.S src/sys/arch/i386/i386: locore.S Log Message: Remove lapic_id, lapic_ppr and lapic_isr. We need to be careful though: the offset of lapic_tpr

CVS commit: src/sys/arch/xen/x86

2016-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 2 13:25:56 UTC 2016 Modified Files: src/sys/arch/xen/x86: x86_xpmap.c Log Message: KNF, and use PAGE_SIZE instead of NBPG. To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/sys/arch/xen/x86/x86_xpmap.c

CVS commit: src/sys/arch

2016-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 2 14:03:34 UTC 2016 Modified Files: src/sys/arch/amd64/conf: kern.ldscript.Xen src/sys/arch/i386/conf: kern.ldscript.Xen Log Message: Align the segments properly, and split text+rodata in two separate segments on

CVS commit: src/sys/arch/xen/x86

2016-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 2 13:29:35 UTC 2016 Modified Files: src/sys/arch/xen/x86: x86_xpmap.c Log Message: Use PG_RO instead of a magic zero. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/arch/xen/x86/x86_xpmap.c Please

CVS commit: src/sys/arch/xen/x86

2016-08-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 2 14:21:53 UTC 2016 Modified Files: src/sys/arch/xen/x86: x86_xpmap.c Log Message: Map the kernel text, rodata and data+bss independently on Xen, with respectively RX, R and RW. To generate a diff of this commit: cvs

CVS commit: src/sys/arch/xen/x86

2016-08-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Aug 3 11:51:18 UTC 2016 Modified Files: src/sys/arch/xen/x86: x86_xpmap.c Log Message: Map the recursive slot and page table pages as non-executable on Xen. Same as normal x86. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/arch

2016-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 11 14:58:29 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: trap.c src/sys/arch/i386/i386: trap.c Log Message: Reduce the diff, and typo. To generate a diff of this commit: cvs rdiff -u -r1.83 -r1.84

CVS commit: src/sys/arch/amd64/include

2016-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 11 15:45:39 UTC 2016 Modified Files: src/sys/arch/amd64/include: i82093reg.h Log Message: Use absolute addressing mode, just like the rest. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/sys/arch/xen/x86

2016-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 11 15:35:10 UTC 2016 Modified Files: src/sys/arch/xen/x86: x86_xpmap.c Log Message: Make the I/O area non-executable on Xen. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/arch/xen/x86/x86_xpmap.c

CVS commit: src/sys/arch/i386/i386

2016-08-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 11 15:03:23 UTC 2016 Modified Files: src/sys/arch/i386/i386: trap.c Log Message: This should be VM_MIN_KERNEL_ADDRESS, not KERNBASE. To generate a diff of this commit: cvs rdiff -u -r1.277 -r1.278

CVS commit: src/sys/netsmb

2016-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 15 08:17:35 UTC 2016 Modified Files: src/sys/netsmb: smb_rq.c Log Message: Uninitialized vars, found by brainy To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/netsmb/smb_rq.c Please note that diffs

CVS commit: src/sys/arch/evbsh3/stand/mesboot/src

2016-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 15 08:32:46 UTC 2016 Modified Files: src/sys/arch/evbsh3/stand/mesboot/src: mesboot.c Log Message: Uninitialized var, found by brainy; not tested, but obvious enough To generate a diff of this commit: cvs rdiff -u -r1.1

CVS commit: src/sys/dev/microcode/aic7xxx

2016-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 15 08:52:33 UTC 2016 Modified Files: src/sys/dev/microcode/aic7xxx: aicasm.c Log Message: This thing is completely buggy. There is a use-after-free and NULL pointer dereference. Just fix the uaf, and add a comment. Not

CVS commit: src/sys/arch/ia64/stand/ia64/ski

2016-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 15 09:06:40 UTC 2016 Modified Files: src/sys/arch/ia64/stand/ia64/ski: devicename.c Log Message: Two uninitialized vars, found by brainy. The former is similar to the one I fixed in ia64/stand/efi/libefi/devicename.c. I

CVS commit: src/sys/compat/linux/common

2016-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 15 09:20:11 UTC 2016 Modified Files: src/sys/compat/linux/common: linux_futex.c Log Message: Uninitialized var, found by brainy; not tested, but obvious enough To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35

CVS commit: src/sys/dev/if_ndis

2016-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 15 08:12:32 UTC 2016 Modified Files: src/sys/dev/if_ndis: if_ndis.c Log Message: Uninitialized var, found by brainy To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/dev/if_ndis/if_ndis.c Please note

CVS commit: src/sys/dev/bluetooth

2016-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 15 08:20:11 UTC 2016 Modified Files: src/sys/dev/bluetooth: bcsp.c Log Message: Curious typo, found by mootja To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/sys/dev/bluetooth/bcsp.c Please note that

CVS commit: src/sys/arch/ia64/stand/common

2016-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 15 08:24:05 UTC 2016 Modified Files: src/sys/arch/ia64/stand/common: load_elf64.c Log Message: Uninitialized var, found by brainy; not tested, but obvious enough To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3

CVS commit: src/sys/arch/sparc/stand/ofwboot

2016-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 15 08:29:34 UTC 2016 Modified Files: src/sys/arch/sparc/stand/ofwboot: loadfile_machdep.c Log Message: Uninitialized var, found by brainy; not tested, but obvious enough To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/dev/if_ndis

2016-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 15 08:40:23 UTC 2016 Modified Files: src/sys/dev/if_ndis: if_ndis_pccard.c Log Message: Uninitialized var, found by brainy. FreeBSD fixed it this way four years ago. I haven't tested this change, but it is rather obvious,

CVS commit: src/sys/arch/sparc/sparc

2016-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 15 08:43:19 UTC 2016 Modified Files: src/sys/arch/sparc/sparc: emul.c Log Message: Return zero instead of error, otherwise it looks like it is supposed to return an error; found by brainy. To generate a diff of this

CVS commit: src/sys/arch/ia64/stand/efi/libefi

2016-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 15 09:00:52 UTC 2016 Modified Files: src/sys/arch/ia64/stand/efi/libefi: devicename.c Log Message: Uninitialized var, found by brainy. I haven't tested this change, and it may not be the perfect way to fix it. But it seems

CVS commit: src/sys/net

2016-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 15 09:14:12 UTC 2016 Modified Files: src/sys/net: if_ieee1394subr.c Log Message: Memory leak, found by brainy; not tested, but obvious enough To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57

CVS commit: src/sys/dev/pci

2016-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 15 09:30:22 UTC 2016 Modified Files: src/sys/dev/pci: cmpci.c Log Message: Use the exact same argument for kmem_alloc and kmem_free; from brainy To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49

CVS commit: src/sys/arch/x86/x86

2016-07-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 17 10:46:43 UTC 2016 Modified Files: src/sys/arch/x86/x86: x86_machdep.c Log Message: Simplify x86_add_cluster. To generate a diff of this commit: cvs rdiff -u -r1.73 -r1.74 src/sys/arch/x86/x86/x86_machdep.c Please note

CVS commit: src/sys/arch/x86/x86

2016-07-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jul 19 18:54:45 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: This loop makes no sense at all. To generate a diff of this commit: cvs rdiff -u -r1.211 -r1.212 src/sys/arch/x86/x86/pmap.c Please note that

CVS commit: src/sys/arch/amd64/amd64

2016-07-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jul 20 13:49:18 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: This comment is wrong. In fact, we are in low physical memory, but in high virtual memory, and only the latter matters. I'm not exactly

CVS commit: src/sys/kern

2016-07-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jul 20 13:11:58 UTC 2016 Modified Files: src/sys/kern: subr_kobj.c Log Message: Change the protection of the kernel modules segments once we are done relocating them. The text is allocated as RWX, and then mprotected to RW.

CVS commit: src/sys

2016-07-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jul 20 13:36:19 UTC 2016 Modified Files: src/sys/kern: subr_kobj.c subr_kobj_vfs.c src/sys/sys: kobj_impl.h Log Message: Split the data+bss+rodata segment in two data+bss and rodata segments. The latter is made

CVS commit: src/sys/arch/x86/x86

2016-07-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jul 20 12:33:59 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: There is a huge bug in the way a uvm_map_protect is processed on x86. When mprotecting a page, the kernel updates the uvm protection associated

CVS commit: src/sys/uvm

2016-07-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jul 20 12:38:44 UTC 2016 Modified Files: src/sys/uvm: uvm_extern.h uvm_km.c Log Message: Introduce uvm_km_protect. To generate a diff of this commit: cvs rdiff -u -r1.197 -r1.198 src/sys/uvm/uvm_extern.h cvs rdiff -u -r1.139

CVS commit: src/sys/arch/x86/x86

2016-07-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 16 14:51:45 UTC 2016 Modified Files: src/sys/arch/x86/x86: x86_machdep.c Log Message: Introduce x86_load_region(), and explain a little what we are doing. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71

CVS commit: src/sys/arch

2016-07-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 16 17:02:35 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: machdep.c src/sys/arch/i386/i386: machdep.c src/sys/arch/x86/include: machdep.h src/sys/arch/x86/x86: x86_machdep.c Log Message:

CVS commit: src/sys/arch/x86/x86

2016-07-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 16 17:13:25 UTC 2016 Modified Files: src/sys/arch/x86/x86: x86_machdep.c Log Message: KNF, and rename. To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/sys/arch/x86/x86/x86_machdep.c Please note that

CVS commit: src/sys/arch/x86/include

2016-07-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 16 13:47:01 UTC 2016 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Add the cr4 flags for PKE and UMIP. To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88

CVS commit: src/sys/arch

2016-07-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jul 13 15:35:56 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: machdep.c src/sys/arch/i386/i386: machdep.c Log Message: KNF To generate a diff of this commit: cvs rdiff -u -r1.220 -r1.221

CVS commit: src/sys/arch

2016-07-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jul 13 15:39:33 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: machdep.c src/sys/arch/i386/i386: machdep.c Log Message: Remove msgbuf_paddr. To generate a diff of this commit: cvs rdiff -u -r1.221 -r1.222

CVS commit: src/sys/arch/x86/x86

2016-07-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 9 08:05:47 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: When a user pmap is created, it is populated with the higher kernel slots, which become accessible upon kernel entry (syscall, cpu switch, or

CVS commit: src/sys

2016-07-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 9 07:25:00 UTC 2016 Modified Files: src/sys/kern: subr_kobj.c subr_kobj_vfs.c src/sys/sys: kobj_impl.h Log Message: When loading a module from VFS and from the bootloader, the kernel packs up the module segments

CVS commit: src/sys/arch/x86/x86

2016-07-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 9 09:25:44 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Use pmap_bootstrap_palloc. To generate a diff of this commit: cvs rdiff -u -r1.208 -r1.209 src/sys/arch/x86/x86/pmap.c Please note that diffs

CVS commit: src/sys/arch/x86/x86

2016-07-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 9 09:33:21 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Simplify pmap_get_physpage. To generate a diff of this commit: cvs rdiff -u -r1.209 -r1.210 src/sys/arch/x86/x86/pmap.c Please note that

CVS commit: src/sys/arch

2016-07-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 9 06:58:06 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: locore.S src/sys/arch/i386/i386: locore.S Log Message: The CPU considers a given va as executable if none of its levels have the NOX bit. With the top

CVS commit: src/sys/arch/x86/x86

2016-07-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 9 07:47:25 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: KNF this function a little To generate a diff of this commit: cvs rdiff -u -r1.206 -r1.207 src/sys/arch/x86/x86/pmap.c Please note that diffs

CVS commit: src/sys/arch/x86/x86

2016-07-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jul 11 14:18:16 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: KNF and simplify a little. To generate a diff of this commit: cvs rdiff -u -r1.210 -r1.211 src/sys/arch/x86/x86/pmap.c Please note that diffs

CVS commit: src/sys/arch/amd64/amd64

2016-07-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jul 11 14:52:54 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: KNF and simplify. To generate a diff of this commit: cvs rdiff -u -r1.106 -r1.107 src/sys/arch/amd64/amd64/locore.S Please note that

CVS commit: src/sys/kern

2016-07-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 8 08:55:48 UTC 2016 Modified Files: src/sys/kern: subr_kobj.c Log Message: Force the kernel to dynamically reallocate the preloaded modules. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54

CVS commit: src/sys/arch

2016-07-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 8 09:15:38 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: locore.S src/sys/arch/i386/i386: locore.S Log Message: The preloaded modules are now reallocated dynamically by the kernel. This area does not need to

CVS commit: src/sys/arch/amd64/amd64

2016-08-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Aug 7 09:04:55 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: Explain a little. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/amd64/amd64/amd64_trap.S Please note

CVS commit: src/sys

2016-08-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 6 15:13:14 UTC 2016 Modified Files: src/sys/compat/linux32/common: linux32_exec_elf32.c src/sys/compat/netbsd32: netbsd32_exec_aout.c netbsd32_exec_elf32.c src/sys/kern: kern_exec.c src/sys/sys:

CVS commit: src/sys/arch/i386/acpi

2016-08-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 6 14:54:25 UTC 2016 Modified Files: src/sys/arch/i386/acpi: acpi_wakeup_low.S Log Message: Use the stack to save %edx. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/i386/acpi/acpi_wakeup_low.S

CVS commit: src/sys/arch

2016-08-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Aug 7 10:17:32 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: vector.S src/sys/arch/i386/i386: vector.S Log Message: KNF a little. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46

CVS commit: src/sys/uvm

2016-08-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Aug 7 09:55:18 UTC 2016 Modified Files: src/sys/uvm: uvm_mmap.c Log Message: Explicitly return syscall-specific error codes, instead of the ones given by range_test. This fixes msync, mlock and munlock, which all return EINVAL

CVS commit: src/sys/uvm

2016-08-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Aug 7 10:07:58 UTC 2016 Modified Files: src/sys/uvm: uvm_mmap.c Log Message: KNF a little. To generate a diff of this commit: cvs rdiff -u -r1.160 -r1.161 src/sys/uvm/uvm_mmap.c Please note that diffs are not public domain;

CVS commit: src/sys/arch/x86/x86

2016-07-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 22 12:36:04 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Unused. To generate a diff of this commit: cvs rdiff -u -r1.213 -r1.214 src/sys/arch/x86/x86/pmap.c Please note that diffs are not public

CVS commit: src/sys/arch/x86/x86

2016-07-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 22 13:01:44 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Simplify pmap_alloc_level. It is designed to work only with normal_pdes and PTP_LEVELS, so don't pass them as argument. While here, explain what

CVS commit: src/sys/arch/x86/x86

2016-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 1 11:57:11 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: We use only one L4 slot for the direct map, which means that we cannot map more than 512GB. Panic properly if this limit is reached. To

CVS commit: src/sys/arch/x86/x86

2016-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 1 12:36:43 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: There is no direct map on i386, and therefore we always need to use temporary VAs and PTEs when mapping an area. These temporary VAs don't need

CVS commit: src/sys/arch/amd64/amd64

2016-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 1 12:41:28 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Don't confuse between VM_PROT and UVM_PROT. This should be VM_PROT. To generate a diff of this commit: cvs rdiff -u -r1.218 -r1.219

CVS commit: src/sys/arch/x86/x86

2016-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 1 11:39:46 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Create the direct map in a separate function. While here, add some comments to explain what we are doing. No functional change. To generate a

CVS commit: src/sys/arch/x86/x86

2016-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 1 11:44:05 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Use pmap_bootstrap_valloc and pmap_bootstrap_palloc under XEN at least once, for these not to appear as unused functions (not tested, but I

CVS commit: src/sys/kern

2016-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 1 12:49:22 UTC 2016 Modified Files: src/sys/kern: kern_ras.c Log Message: Ensure the restartable atomic sequence is in userland, for real. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37

CVS commit: src/sys/arch/x86/x86

2016-07-01 Thread Maxime Villard
(c) 2008, 2010, 2016 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation - * by Andrew Doran. + * by Andrew Doran, and by Maxime Villard. * * Redistribution and use in source and binary forms, with or without

CVS commit: src/sys/arch/x86/x86

2016-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 1 12:18:35 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Surprisingly enough, the kernel expects the CPU to support large pages when creating the direct map on amd64. Therefore, the amd64 CPUs that do

CVS commit: src/sys/arch/x86

2016-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 1 11:10:48 UTC 2016 Modified Files: src/sys/arch/x86/include: pmap.h src/sys/arch/x86/x86: pmap.c Log Message: Define pmap_pg_nx globally. Will be used soon. To generate a diff of this commit: cvs rdiff -u -r1.57

CVS commit: src/sys/arch/x86/x86

2016-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 1 11:20:02 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Put the code in charge of remapping the kernel segments with large pages into another function. No functional change. To generate a diff of

CVS commit: src/sys/arch

2016-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 1 10:20:10 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: machdep.c src/sys/arch/x86/x86: pmap.c Log Message: Remove this area (unused). To generate a diff of this commit: cvs rdiff -u -r1.217 -r1.218

CVS commit: src/sys/arch/x86/x86

2016-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 1 11:28:18 UTC 2016 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Introduce pmap_bootstrap_valloc and pmap_bootstrap_palloc, that are used to allocate a virtual/physical address before the VM system has been

CVS commit: src/sys/arch

2016-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 1 13:11:21 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: locore.S src/sys/arch/i386/i386: locore.S Log Message: Try to make this part more readable. No functional change. To generate a diff of this commit:

CVS commit: src/sys/arch/amd64/amd64

2016-07-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jul 2 07:22:10 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Explain why we should use kernel_map instead of module_map, and why we can't. We should probably add some GCC flags in the modules

CVS commit: src/sys

2016-07-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jul 4 07:56:07 UTC 2016 Modified Files: src/sys/arch/amd64/amd64: locore.S src/sys/arch/i386/i386: locore.S src/sys/kern: kern_ras.c Log Message: Make the execution flow canonical instead of jumping back and

CVS commit: src/sys/arch

2017-02-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Feb 2 19:09:08 UTC 2017 Modified Files: src/sys/arch/amd64/conf: Makefile.amd64 src/sys/arch/amd64/include: param.h src/sys/arch/xen/conf: Makefile.xen Log Message: Increase KERNTEXTOFF from 1MB to 2MB on

CVS commit: src/sys/arch

2017-02-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Feb 2 19:12:09 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: locore.S src/sys/arch/i386/i386: locore.S Log Message: Fix these comments, we probably won't want to keep them up to date. To generate a diff of this

CVS commit: src/sys/arch

2017-02-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Feb 2 08:57:04 UTC 2017 Modified Files: src/sys/arch/x86/x86: cpu.c identcpu.c pmap.c src/sys/arch/xen/x86: cpu.c x86_xpmap.c Log Message: Use __read_mostly on these variables, to reduce the probability of false

CVS commit: src/sys/net

2017-01-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jan 31 17:13:36 UTC 2017 Modified Files: src/sys/net: if_ecosubr.c if_tokensubr.c Log Message: Correctly handle the return value of arpresolve, otherwise we either leak memory or use some we already freed. Sent on tech-net, ok

CVS commit: src/sys/arch/x86/x86

2017-01-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jan 31 17:38:54 UTC 2017 Modified Files: src/sys/arch/x86/x86: tprof_amdpmi.c Log Message: Update the URLs, and add the DC_refills_ flags (from the spec, not present on my cpu). To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/net

2017-02-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Feb 1 17:58:47 UTC 2017 Modified Files: src/sys/net: if_pppoe.c Log Message: Not sure what we are trying to achieve here, but there are two issues; error can be printed while it is not initialized, and if m_pulldown fails m is

CVS commit: src/sys/arch/amd64/amd64

2017-02-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 5 08:36:08 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Now that valid_user_selector only checks for LDT selectors, remove it. A user may legitimately want to have one register in the GDT, and

CVS commit: src/sys

2017-02-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 5 08:52:12 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep.c src/sys/compat/linux32/arch/amd64: linux32_machdep.c Log Message: Remove #if 0 on USER_LDT. To generate a diff of this commit: cvs

CVS commit: src/sys/compat/linux/arch/amd64

2017-02-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 5 08:42:49 UTC 2017 Modified Files: src/sys/compat/linux/arch/amd64: linux_machdep.c Log Message: Missing pmap_ldt_cleanup. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49

CVS commit: src/sys/arch/amd64/include

2017-02-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 5 08:58:39 UTC 2017 Modified Files: src/sys/arch/amd64/include: segments.h Log Message: Remove misleading comment; these macros should not be used if a user LDT is active. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/arch/amd64/amd64

2017-02-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 5 08:19:05 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: In cpu_mcontext_validate, treat %cs differently depending on whether a user LDT is set; just check the permission without checking the

CVS commit: src/sys

2017-02-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Feb 5 10:42:22 UTC 2017 Modified Files: src/sys/arch/i386/i386: gdt.c machdep.c src/sys/arch/i386/include: segments.h src/sys/arch/x86/x86: sys_machdep.c src/sys/arch/xen/x86: cpu.c xenfunc.c

CVS commit: src/sys/arch/amd64

2017-02-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Feb 6 16:02:18 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep.c src/sys/arch/amd64/include: netbsd32_machdep.h Log Message: Add the USER_LDT sysarch options in netbsd32. We don't translate 'desc',

CVS commit: src/sys/arch/amd64/amd64

2017-02-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Feb 6 16:34:37 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: netbsd32_machdep.c Log Message: In cpu_mcontext32_validate, allow the registers to have different locations if the LDT is user-set. I am intentionally not

CVS commit: src/sys/arch

2017-02-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Feb 8 10:08:26 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: gdt.c src/sys/arch/amd64/include: gdt.h src/sys/arch/i386/i386: gdt.c src/sys/arch/i386/include: gdt.h src/sys/arch/x86/x86:

CVS commit: src/sys/arch

2017-02-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Feb 8 09:39:32 UTC 2017 Modified Files: src/sys/arch/amd64/amd64: gdt.c src/sys/arch/amd64/include: gdt.h src/sys/arch/i386/i386: gdt.c src/sys/arch/i386/include: segments.h Log Message: Localify, add a

CVS commit: src/sys/arch/x86/x86

2017-02-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Feb 2 17:37:49 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: The first va should depend on the text offset, not the kernel base. Use rounddown. Note: this value is still wrong, it should be roundup. But

CVS commit: src/sys/arch/xen/x86

2017-01-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 22 19:24:52 UTC 2017 Modified Files: src/sys/arch/xen/x86: x86_xpmap.c Log Message: Export xpmap_pg_nx, and put it in the page table pages. It does not change anything, since Xen removes the X bit on these; but it is better

CVS commit: src/sys/arch/x86/x86

2017-01-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 22 20:04:35 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Put pmap_pg_nx into the dummy Xen page. While here, do some KNF and localify a bit. To generate a diff of this commit: cvs rdiff -u -r1.236

CVS commit: src/sys/arch/xen/x86

2017-01-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 22 19:42:48 UTC 2017 Modified Files: src/sys/arch/xen/x86: cpu.c Log Message: Import xpmap_pg_nx, and put it in the per-cpu recursive slot on amd64. To generate a diff of this commit: cvs rdiff -u -r1.105 -r1.106

CVS commit: src/sys/arch/i386/i386

2017-01-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 22 20:17:10 UTC 2017 Modified Files: src/sys/arch/i386/i386: machdep.c Log Message: Use xpmap_pg_nx. Not tested (due to some unrelated panic I'm getting), but obvious enough. To generate a diff of this commit: cvs rdiff

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