CVS commit: src

2018-07-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 13 11:14:14 UTC 2018 Modified Files: src/distrib/sets/lists/base: mi src/distrib/sets/lists/debug: mi src/distrib/sets/lists/man: mi src/usr.bin: Makefile src/usr.sbin/tprof: tprof.8 Removed Fi

CVS commit: src/usr.sbin/tprof

2018-07-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 13 11:03:36 UTC 2018 Modified Files: src/usr.sbin/tprof: Makefile tprof.8 tprof.c tprof.h Added Files: src/usr.sbin/tprof: tprof_analyze.c Log Message: Merge tpfmt(1) into tprof(8). We want to have access to everythi

CVS commit: src/sys

2018-07-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 13 09:58:49 UTC 2018 Modified Files: src/sys/secmodel/suser: secmodel_suser.c src/sys/sys: kauth.h Log Message: Remove KAUTH_MACHDEP_X86PMC, now unused. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45

CVS commit: src/usr.sbin/tprof/arch

2018-07-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 13 09:53:42 UTC 2018 Modified Files: src/usr.sbin/tprof/arch: tprof_x86.c Log Message: Skylake/Kabylake are family 6, so add a check for that. While here improve the layout of "tprof list". To generate a diff of this commi

CVS commit: src

2018-07-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 13 09:37:32 UTC 2018 Modified Files: src/share/man/man4: options.4 src/share/man/man9: intro.9 src/sys/arch/amd64/conf: ALL GENERIC files.amd64 src/sys/arch/i386/conf: ALL GENERIC NET4501 files.i386

CVS commit: src

2018-07-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 13 09:15:56 UTC 2018 Modified Files: src/distrib/sets/lists/base: md.amd64 md.i386 src/distrib/sets/lists/debug: md.amd64 md.i386 src/distrib/sets/lists/man: mi Removed Files: src/usr.bin/pmc: Makefile

CVS commit: src/usr.sbin/tprof

2018-07-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 13 09:04:31 UTC 2018 Modified Files: src/usr.sbin/tprof: tprof.8 tprof.c Log Message: Change the arguments of the tprof tool, to match the behavior of pmc(1) and cpuctl(8). They become: tprof list tprof moni

CVS commit: src/usr.sbin/tprof/arch

2018-07-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 13 08:09:21 UTC 2018 Modified Files: src/usr.sbin/tprof/arch: tprof_x86.c Log Message: Inline the values in amd_f10h_names[], we're not going to use defines for each CPU model found in the wild. To generate a diff of this

CVS commit: src

2018-07-13 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 13 07:56:29 UTC 2018 Modified Files: src/sys/arch/x86/x86: tprof_amdpmi.c tprof_pmi.c src/sys/dev/tprof: tprof.c tprof.h tprof_ioctl.h tprof_types.h src/usr.sbin/tprof: Makefile tprof.8 tprof.c Added Files:

CVS commit: src/sys/arch

2018-07-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jul 12 19:48:16 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S locore.S machdep.c src/sys/arch/amd64/include: frameasm.h src/sys/arch/x86/x86: svs.c Log Message: Handle NMIs correctly when SVS is

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

2018-07-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jul 12 18:39:09 UTC 2018 Modified Files: src/sys/arch/x86/x86: cpu.c Log Message: Oh. Don't call svs_pdir_switch if SVS is disabled, that's not needed. I was playing around with PMCs, and was wondering why some cache misses wer

CVS commit: src

2018-07-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jul 12 10:46:48 UTC 2018 Modified Files: src/distrib/sets/lists/comp: ad.aarch64 ad.arm ad.hppa ad.m68k ad.mips ad.powerpc ad.riscv ad.sh3 md.algor md.alpha md.amd64 md.amiga md.amigappc md.arc md.atari md

CVS commit: src/distrib/sets/lists/comp

2018-07-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jul 12 07:06:36 UTC 2018 Modified Files: src/distrib/sets/lists/comp: mi Log Message: ...and obsolete the html of pmc.3 too... We will obsolete all the pmc* references anyway. To generate a diff of this commit: cvs rdiff -u -r

CVS commit: src/distrib/sets/lists/comp

2018-07-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jul 12 07:04:15 UTC 2018 Modified Files: src/distrib/sets/lists/comp: mi Log Message: Obsolete pmc.3, it was part of libpmc. To generate a diff of this commit: cvs rdiff -u -r1.2207 -r1.2208 src/distrib/sets/lists/comp/mi Ple

CVS commit: src

2018-07-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jul 12 06:52:49 UTC 2018 Modified Files: src/distrib/sets/lists/base: ad.arm src/distrib/sets/lists/comp: ad.arm ad.arm.shl src/distrib/sets/lists/debug: ad.arm src/lib: Makefile src/share/mk: bsd.

CVS commit: src/sys/netinet

2018-07-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jul 11 06:25:05 UTC 2018 Modified Files: src/sys/netinet: in_offload.c Log Message: Add KASSERTs in in_undefer_cksum_tcpudp. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/netinet/in_offload.c Please no

CVS commit: src/sys/netinet

2018-07-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jul 11 06:00:34 UTC 2018 Modified Files: src/sys/netinet: in_offload.c in_offload.h Log Message: Style, rename 'iph' -> 'ip', and reduce the diff between in_undefer_cksum_tcpudp and the last part of in_undefer_cksum. To genera

CVS commit: src/sys/netinet

2018-07-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jul 11 05:38:55 UTC 2018 Modified Files: src/sys/netinet: in_offload.c in_offload.h Log Message: Remove the callback, localify, and add a comment. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/netinet/in_

CVS commit: src/sys

2018-07-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jul 11 05:25:46 UTC 2018 Modified Files: src/sys/arch/powerpc/booke/dev: pq3etsec.c src/sys/dist/pf/net: pf.c pf_ioctl.c src/sys/external/bsd/ipf/netinet: fil.c ip_fil_netbsd.c src/sys/net: if_loop.c

CVS commit: src/sys/net/npf

2018-07-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jul 10 16:49:09 UTC 2018 Modified Files: src/sys/net/npf: npf_handler.c Log Message: Modify the logic in npf_reassembly. Don't call nbuf_reset, we don't need it since we don't read the IPv4 header anymore. If ip{6}_reass_packet

CVS commit: src/sys

2018-07-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jul 10 15:46:58 UTC 2018 Modified Files: src/sys/net/npf: npf_handler.c src/sys/netinet: ip_input.c ip_reass.c ip_var.h Log Message: Remove the second argument from ip_reass_packet(). We want the IP header on the mbuf, n

CVS commit: src/sys/net/npf

2018-07-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jul 10 15:25:01 UTC 2018 Modified Files: src/sys/net/npf: npf_handler.c Log Message: Simplify the pointer handling. Set *mp = NULL at the beginning of the function. In npf_reassembly, pass a simple boolean instead of a ** mbuf p

CVS commit: src/sys/net/npf

2018-07-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jul 10 14:04:07 UTC 2018 Modified Files: src/sys/net/npf: npf_handler.c Log Message: Update the pointer when fast-kicking, because it may have been freed. Before my changes the nonsensical pointer ininitialization held, but when

CVS commit: src/sys/net/npf

2018-07-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jul 10 12:31:46 UTC 2018 Modified Files: src/sys/net/npf: npf_handler.c Log Message: Set con = NULL just once, instead of doing it in each branch. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/sys/net/npf/n

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

2018-07-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jul 10 06:44:49 UTC 2018 Modified Files: src/sys/arch/x86/pci: pci_machdep.c Log Message: Fix bug, SPINOUT() is not supposed to take the value given to BACKOFF(). Here the exponential backoff is wrecked. To generate a diff of

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

2018-07-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jul 9 18:52:04 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Don't push/pop %rdx, we don't care about preserving its value. To generate a diff of this commit: cvs rdiff -u -r1.168 -r1.169 src/sys/ar

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

2018-07-09 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jul 9 18:43:05 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S Log Message: Small optimization: don't execute the Meltdown/SpectreV2 cswitch code if we're leaving a softint. We were executing the softint with the LW

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

2018-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 1 08:32:41 UTC 2018 Modified Files: src/sys/arch/x86/x86: fpu.c vm_machdep.c Log Message: Use a variable-sized memcpy, instead of copying the PCB and then adding the extra bytes. The PCB embeds the biggest static FPU state,

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

2018-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 1 07:59:30 UTC 2018 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Optimize FNSAVE. The size of its save area is 108 bytes, so don't set x86_fpu_save_size = 512, because otherwise we uselessly memset extra by

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

2018-07-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jul 1 07:18:56 UTC 2018 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Use a switch, we can (and will) optimize each case separately. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.

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

2018-06-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jun 29 19:34:35 UTC 2018 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Add more KASSERTs. Should help PR/53399. To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/sys/arch/x86/x86/fpu.c Please note

CVS commit: src/sys/arch

2018-06-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jun 29 19:21:43 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S src/sys/arch/i386/i386: locore.S Log Message: Call fpu_eagerswitch a little later, after we make sure newlwp is not pinned. Because if it is, t

CVS commit: src/sys/arch

2018-06-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jun 24 18:24:54 UTC 2018 Modified Files: src/sys/arch/amd64/conf: kern.ldscript.Xen src/sys/arch/i386/conf: kern.ldscript kern.ldscript.Xen Log Message: Sync the ld scripts: * Force a PAGE_SIZE alignment of .bss on i38

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

2018-06-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jun 23 10:06:02 UTC 2018 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Add XXX in fpuinit_mxcsr_mask. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sys/arch/x86/x86/fpu.c Please note that diffs

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

2018-06-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jun 23 10:02:39 UTC 2018 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Reorder the code a little. On Xen, return earlier, we don't need to do the XSAVE-related initialization if we don't support XSAVE. To gener

CVS commit: src/sys/arch

2018-06-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jun 23 09:51:34 UTC 2018 Modified Files: src/sys/arch/x86/x86: identcpu.c src/sys/arch/xen/x86: cpu.c Log Message: Revert the rest of jdolecek's changes. This puts us back in a clean, sensical state. To generate a diff

CVS commit: src/sys/dev

2018-06-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jun 23 06:57:24 UTC 2018 Modified Files: src/sys/dev/isa: gus.c src/sys/dev/pci: if_ep_pci.c src/sys/dev/usb: if_atu.c Log Message: constify To generate a diff of this commit: cvs rdiff -u -r1.112 -r1.113 src/s

CVS commit: src/sys/dev/pci

2018-06-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jun 23 06:45:51 UTC 2018 Modified Files: src/sys/dev/pci: ahd_pci.c auacer.c siside.c Log Message: constify To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/dev/pci/ahd_pci.c src/sys/dev/pci/siside.c cvs r

CVS commit: src/sys/dev/ic

2018-06-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jun 23 06:40:43 UTC 2018 Modified Files: src/sys/dev/ic: awi.c elinkxl.c rt2860.c wi.c Log Message: constify To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/sys/dev/ic/awi.c cvs rdiff -u -r1.122 -r1.123 src/s

CVS commit: src/sys/arch

2018-06-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jun 22 06:22:37 UTC 2018 Modified Files: src/sys/arch/x86/include: fpu.h src/sys/arch/x86/x86: cpu.c fpu.c src/sys/arch/xen/x86: cpu.c Log Message: Revert jdolecek's changes related to FXSAVE. They just didn't ma

CVS commit: src/sys/net80211

2018-06-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 21 17:03:45 UTC 2018 Modified Files: src/sys/net80211: ieee80211_input.c Log Message: remove unused arguments To generate a diff of this commit: cvs rdiff -u -r1.112 -r1.113 src/sys/net80211/ieee80211_input.c Please note

CVS commit: src/sys/net80211

2018-06-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 21 16:53:10 UTC 2018 Modified Files: src/sys/net80211: ieee80211_input.c Log Message: Fix use-after-free, m_cat can free m. To generate a diff of this commit: cvs rdiff -u -r1.111 -r1.112 src/sys/net80211/ieee80211_input.c

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

2018-06-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jun 20 11:57:22 UTC 2018 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Use PMAP_DIRECT_UNMAP. To generate a diff of this commit: cvs rdiff -u -r1.290 -r1.291 src/sys/arch/x86/x86/pmap.c Please note that diffs are

CVS commit: src/sys/arch

2018-06-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jun 20 11:49:38 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: machdep.c src/sys/arch/amd64/stand/prekern: mm.c prekern.h src/sys/arch/x86/include: pmap.h Log Message: Add and use bootspace.smodule. Initializ

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

2018-06-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jun 20 11:45:25 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: vector.S Log Message: Put these arrays in .rodata, they aren't supposed to be executable. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys

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

2018-06-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jun 19 09:25:13 UTC 2018 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: When using EagerFPU, create the fpu state in execve at IPL_HIGH. A preemption could occur in the middle, and we don't want that to happen, becaus

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

2018-06-19 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jun 19 07:23:45 UTC 2018 Modified Files: src/sys/arch/x86/x86: vm_machdep.c Log Message: Explicitly clear l2's pcb_fpcpu when forking. A context switch (preemption) could occur between fpusave_lwp(l1, true); and

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

2018-06-18 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jun 18 20:20:27 UTC 2018 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Add more KASSERTs, see if they help PR/53383. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/arch/x86/x86/fpu.c Please n

CVS commit: src/doc

2018-06-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jun 18 06:09:56 UTC 2018 Added Files: src/doc: TODO.kaslr Log Message: todo list for kaslr, with the issues I can think of right now To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/doc/TODO.kaslr Please note tha

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

2018-06-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jun 17 15:46:39 UTC 2018 Modified Files: src/sys/arch/i386/include: frameasm.h Log Message: i586 and below don't have this 3-byte nop, so use three 1-byte nops, reported by Nathanial Sloss To generate a diff of this commit: cv

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

2018-06-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jun 17 07:13:02 UTC 2018 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Enable eager fpu automatically at boot time if the cpu is affected. Intel hasn't published a list of its affected products, but it appears th

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

2018-06-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jun 17 06:03:41 UTC 2018 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: No, I meant to put the panic in fpudna not fputrap. Also appease it: panic only if the fpu already has a state. We're fine with getting a DNA, wha

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

2018-06-16 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jun 16 17:11:13 UTC 2018 Modified Files: src/sys/arch/x86/x86: fpu.c x86_machdep.c Log Message: Need IPIs when enabling eager fpu switch, to clear each fpu and get us started. Otherwise it is possible that the first context swit

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

2018-06-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jun 16 05:52:17 UTC 2018 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Actually, don't do anything if we switch to a kernel thread. When the cpu switches back to a user thread the fpu is restored, so no point calling

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

2018-06-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 14 18:00:16 UTC 2018 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Install the FPU state on the current CPU in setregs (execve). To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/arch/x86/x86

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

2018-06-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 14 17:58:22 UTC 2018 Modified Files: src/sys/arch/i386/i386: locore.S Log Message: Eager FPU on i386. To generate a diff of this commit: cvs rdiff -u -r1.156 -r1.157 src/sys/arch/i386/i386/locore.S Please note that diffs

CVS commit: src/doc

2018-06-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 14 14:48:59 UTC 2018 Modified Files: src/doc: CHANGES CHANGES.prev Log Message: SpectreV4, backports in NetBSD-8, no XSAVEOPT To generate a diff of this commit: cvs rdiff -u -r1.2397 -r1.2398 src/doc/CHANGES cvs rdiff -u -

CVS commit: src/sys/arch

2018-06-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 14 14:36:46 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: locore.S src/sys/arch/x86/include: cpu.h fpu.h src/sys/arch/x86/x86: fpu.c x86_machdep.c Log Message: Add some code to support eager fpu switch,

CVS commit: src/sys/dev/usb

2018-06-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jun 3 10:59:35 UTC 2018 Modified Files: src/sys/dev/usb: if_atu.c Log Message: Constify atu_devs[] so that it lands in .rodata (600 bytes). To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/sys/dev/usb/if_atu.

CVS commit: src/sys/dev/pci

2018-06-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jun 3 10:45:16 UTC 2018 Modified Files: src/sys/dev/pci: ahc_pci.c Log Message: Constify ahc_pci_ident_table[] so that it lands in .rodata (1488 bytes). To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/sys/de

CVS commit: src/sys/external/bsd/ipf/netinet

2018-06-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jun 3 10:37:23 UTC 2018 Modified Files: src/sys/external/bsd/ipf/netinet: fil.c ip_fil.h ip_frag.c ip_ftp_pxy.c ip_log.c ip_nat.c ip_proxy.c ip_state.c ip_tftp_pxy.c Log Message: Constify a bunch of global varialbes

CVS commit: src/sys/dev/pci/ixgbe

2018-06-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jun 3 10:24:25 UTC 2018 Modified Files: src/sys/dev/pci/ixgbe: ixgbe.c ixv.c Log Message: Constify several variables in ixgbe/ so that they land in .rodata (1038 bytes). To generate a diff of this commit: cvs rdiff -u -r1.158

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

2018-06-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jun 3 10:13:54 UTC 2018 Modified Files: src/sys/arch/x86/pci: ichlpcib.c Log Message: Constify lpcib_devices[] so that it lands in .rodata (1584 bytes). To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sys/ar

CVS commit: src/sys/dev/ic

2018-06-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jun 3 10:04:41 UTC 2018 Modified Files: src/sys/dev/ic: ug.c ugvar.h Log Message: Constify ug2_mb[], so that it lands in .rodata. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/dev/ic/ug.c cvs rdiff -u

CVS commit: src/sys/dev

2018-06-03 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jun 3 10:01:22 UTC 2018 Modified Files: src/sys/dev/microcode/bnx: bnxfw.h src/sys/dev/pci: if_bnxreg.h Log Message: Constify the microcode variables used by BNX. This moves 38 pages of kernel memory from .data to .roda

CVS commit: src/sys/netinet

2018-06-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jun 2 11:56:57 UTC 2018 Modified Files: src/sys/netinet: ip_output.c Log Message: Copy more mbuf flags. To generate a diff of this commit: cvs rdiff -u -r1.305 -r1.306 src/sys/netinet/ip_output.c Please note that diffs are n

CVS commit: src/sys/dev/pci

2018-06-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jun 1 09:34:39 UTC 2018 Modified Files: src/sys/dev/pci: if_age.c if_alc.c if_ena.c Log Message: Fix M_PKTHDR use in if_alc, if_age and if_ena. if_alc and if_age always put in _rxhead a M_PKTHDR-flagged mbuf, so the flag must

CVS commit: src/sys/dev/ic

2018-06-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jun 1 09:10:52 UTC 2018 Modified Files: src/sys/dev/ic: rtl8169.c Log Message: Use m_remove_pkthdr() instead of "&= ~M_PKTHDR", to ensure the tags get freed. Several other drivers have this problem it seems... To generate a d

CVS commit: src/sys

2018-06-01 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jun 1 08:56:01 UTC 2018 Modified Files: src/sys/arch/powerpc/booke/dev: pq3etsec.c src/sys/arch/x86/pci: if_vmx.c src/sys/dev/marvell: if_mvxpe.c src/sys/dev/pci: if_jme.c if_wm.c src/sys/netinet6

CVS commit: src/sys/compat/svr4

2018-05-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 31 15:41:11 UTC 2018 Modified Files: src/sys/compat/svr4: svr4_stream.c Log Message: Add XXX for NULL deref. Not sure how to fix it, not sure we care either... To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94

CVS commit: src/sys/netipsec

2018-05-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 31 15:34:25 UTC 2018 Modified Files: src/sys/netipsec: ipsec_mbuf.c Log Message: Clarify, remove superfluous things. To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/sys/netipsec/ipsec_mbuf.c Please note

CVS commit: src/sys/netipsec

2018-05-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 31 15:06:45 UTC 2018 Modified Files: src/sys/netipsec: ipsec_output.c Log Message: Adapt rev1.75, suggested by Alexander Bluhm. Relax the checks to allow protocols smaller than two bytes (only IPPROTO_NONE). While here style

CVS commit: src/sys/netinet

2018-05-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 31 13:51:57 UTC 2018 Modified Files: src/sys/netinet: udp_usrreq.c Log Message: Remove the non-IKE part of the computation, too. To generate a diff of this commit: cvs rdiff -u -r1.253 -r1.254 src/sys/netinet/udp_usrreq.c

CVS commit: src/lib/libipsec

2018-05-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 31 07:16:17 UTC 2018 Modified Files: src/lib/libipsec: config.h Log Message: Disable draft_00 in racoon, discussed on tech-net@ and now in PR/53334. While here clarify the comments, no #undef. No need to increase the librar

CVS commit: src

2018-05-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 31 07:03:57 UTC 2018 Modified Files: src/share/man/man4: udp.4 src/sys/netinet: in_pcb.h udp_usrreq.c src/sys/netipsec: ipsec_output.c ipsecif.c Log Message: Remove support for non-IKE markers in the kernel.

CVS commit: src/sys/netipsec

2018-05-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 31 06:25:41 UTC 2018 Modified Files: src/sys/netipsec: xform_ah.c Log Message: Constify ipseczeroes, and remove one use of it. To generate a diff of this commit: cvs rdiff -u -r1.105 -r1.106 src/sys/netipsec/xform_ah.c Pl

CVS commit: src/sys/netipsec

2018-05-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 31 06:14:18 UTC 2018 Modified Files: src/sys/netipsec: xform_esp.c Log Message: Add a comment and a KASSERT. I remember wondering whether this check was a problem, since ARC4 has a blocksize of one. Normally ARC4 can't be us

CVS commit: src/sys/netipsec

2018-05-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu May 31 05:52:09 UTC 2018 Modified Files: src/sys/netipsec: xform_esp.c Log Message: style To generate a diff of this commit: cvs rdiff -u -r1.94 -r1.95 src/sys/netipsec/xform_esp.c Please note that diffs are not public domain

CVS commit: src/sys/netipsec

2018-05-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed May 30 18:02:41 UTC 2018 Modified Files: src/sys/netipsec: xform_ah.c Log Message: Correctly handle the padding for IPv6-AH, as specified by RFC4302. Seen in a FreeBSD bug report, by Jason Mader. The RFC specifies that under IP

CVS commit: src/sys/netipsec

2018-05-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed May 30 17:17:11 UTC 2018 Modified Files: src/sys/netipsec: xform.h xform_ah.c xform_esp.c Log Message: Introduce ah_authsiz, which computes the length of the ICV only. Use it in esp_hdrsiz, and clarify. Until now we were using

CVS commit: src/sys/netipsec

2018-05-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed May 30 16:49:38 UTC 2018 Modified Files: src/sys/netipsec: xform_esp.c Log Message: Apply the previous change in esp_input too, same as esp_output. To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/sys/netipsec

CVS commit: src/sys/netipsec

2018-05-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed May 30 16:43:29 UTC 2018 Modified Files: src/sys/netipsec: xform_esp.c Log Message: Remove dead code, 'espx' is never NULL and dereferenced earlier, so no need to NULL-check all the time. To generate a diff of this commit: cvs

CVS commit: src/sys/netipsec

2018-05-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed May 30 16:32:26 UTC 2018 Modified Files: src/sys/netipsec: xform_esp.c Log Message: Simplify the padding computation. Until now 'padlen' contained the ESP Trailer (two bytes), and we were doing minus two all the time. Declare '

CVS commit: src/sys/netipsec

2018-05-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed May 30 16:15:19 UTC 2018 Modified Files: src/sys/netipsec: xform_esp.c Log Message: Rename padding -> padlen, pad -> tail, and clarify. To generate a diff of this commit: cvs rdiff -u -r1.89 -r1.90 src/sys/netipsec/xform_esp.c

CVS commit: src/sys/netinet

2018-05-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue May 29 17:21:57 UTC 2018 Modified Files: src/sys/netinet: ip_output.c Log Message: Fix an XXX of mine, be clearer about what we're doing. Basically we want to preserve the fragment offset and flags. That's necessary if the packe

CVS commit: src/sys/netipsec

2018-05-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue May 29 16:50:38 UTC 2018 Modified Files: src/sys/netipsec: xform_ah.c Log Message: Strengthen and simplify, once more. To generate a diff of this commit: cvs rdiff -u -r1.102 -r1.103 src/sys/netipsec/xform_ah.c Please note th

CVS commit: src/sys/netatalk

2018-05-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue May 29 16:29:47 UTC 2018 Modified Files: src/sys/netatalk: aarp.c at_extern.h Log Message: Remove aarp_clean, unused. By the way this function was probably buggy since it didn't reset aat_hold to NULL. To generate a diff of th

CVS commit: src/sys/net

2018-05-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue May 29 16:24:34 UTC 2018 Modified Files: src/sys/net: if_ethersubr.c Log Message: Remove an XXX of mine, actually it's fine. While here also remove a misleading printf. To generate a diff of this commit: cvs rdiff -u -r1.267 -

CVS commit: src/sys/netinet6

2018-05-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue May 29 16:21:30 UTC 2018 Modified Files: src/sys/netinet6: ip6_output.c Log Message: Remove dead code, we don't care. To generate a diff of this commit: cvs rdiff -u -r1.209 -r1.210 src/sys/netinet6/ip6_output.c Please note t

CVS commit: src/sys/net

2018-05-29 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue May 29 08:24:59 UTC 2018 Modified Files: src/sys/net: if_ethersubr.c Log Message: Replace KASSERT by m_pullup. While the ethernet header is always there when the packet was received on a physical interface, it may not be if the

CVS commit: src/crypto/dist/ipsec-tools/src/libipsec

2018-05-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon May 28 19:39:21 UTC 2018 Modified Files: src/crypto/dist/ipsec-tools/src/libipsec: key_debug.c Log Message: Remove ipsec_bindump, there is no prototype, so the function can't be used. To generate a diff of this commit: cvs rdi

CVS commit: src/crypto/dist/ipsec-tools/src/libipsec

2018-05-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon May 28 20:45:38 UTC 2018 Modified Files: src/crypto/dist/ipsec-tools/src/libipsec: ipsec_dump_policy.c ipsec_strerror.h key_debug.c libpfkey.h pfkey.c pfkey_dump.c policy_parse.y policy_token.l Log Messag

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

2018-05-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon May 28 20:18:58 UTC 2018 Modified Files: src/sys/arch/x86/x86: spectre.c Log Message: Mmh, don't automatically set enabled=1 for SpectreV4, the actual mitigation is not yet applied by default. Just so people can test. To gener

CVS commit: src/crypto/dist/ipsec-tools/src/setkey

2018-05-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon May 28 19:52:19 UTC 2018 Modified Files: src/crypto/dist/ipsec-tools/src/setkey: parse.y setkey.c token.l Log Message: fix -Wold-style-definition To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/crypto/dist/ip

CVS commit: src/crypto/dist/ipsec-tools/src/setkey

2018-05-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon May 28 20:34:45 UTC 2018 Modified Files: src/crypto/dist/ipsec-tools/src/setkey: extern.h parse.y setkey.c Log Message: drop __P, suggested by sevan To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/crypto/dist/i

CVS commit: src/crypto/dist/ipsec-tools/src/libipsec

2018-05-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon May 28 19:36:42 UTC 2018 Modified Files: src/crypto/dist/ipsec-tools/src/libipsec: pfkey_dump.c policy_parse.y Log Message: fix -Wdiscarded-qualifiers To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 \ src/cry

CVS commit: src/crypto/dist/ipsec-tools/src/libipsec

2018-05-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon May 28 19:22:40 UTC 2018 Modified Files: src/crypto/dist/ipsec-tools/src/libipsec: ipsec_dump_policy.c ipsec_get_policylen.c key_debug.c pfkey.c pfkey_dump.c policy_parse.y policy_token.l Log Message: fix

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

2018-05-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri May 25 16:01:31 UTC 2018 Modified Files: src/sys/arch/amd64/stand/prekern: locore.S Log Message: Hide a bunch of local symbols. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/amd64/stand/prekern/locor

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

2018-05-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri May 25 15:52:11 UTC 2018 Modified Files: src/sys/arch/amd64/stand/prekern: prekern.c trap.S Log Message: Rename the entry points of the prekern, rename the array and move it into .rodata. To generate a diff of this commit: cvs

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

2018-05-25 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri May 25 15:33:56 UTC 2018 Modified Files: src/sys/arch/amd64/amd64: amd64_trap.S Log Message: When the previous contrext is in kernel mode we are not guaranteed to have a 16-byte-aligned stack pointer, so align it. That's what th

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