Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (1h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (177d) 

2024-05-10 00:36:02 UTC Now

2018-01-23 07:02:57 UTC MAIN commitmail json YAML

Style, and four fixes:

* Remove the (disabled) IPPROTO_ESP check. If the packet was decrypted it
  will have M_DECRYPTED, and this is already checked.

* Memory leaks in icmp6_error2. They seem hardly triggerable.

* Fix miscomputation in _icmp6_input, the ICMP6 header is not guaranteed
  to be located right after the IP6 header. ok mlelstv@

* Memory leak in _icmp6_input. This one seems to be impossible to trigger.

(maxv)

2018-01-23 06:57:49 UTC MAIN commitmail json YAML

if 0 out unused code which is currently breaking my local builds

(maya)

2018-01-23 03:12:11 UTC perseant-stdc-iso10646 commitmail json YAML

2018-01-23 02:21:49 UTC MAIN commitmail json YAML

Add missing NULL-checking for m_pullup (CID 1427770: Null pointer dereferences (NULL_RETURNS))

(ozaki-r)

2018-01-23 02:18:57 UTC MAIN commitmail json YAML

KNF: replace soft tabs with hard tabs

(ozaki-r)

2018-01-23 02:17:32 UTC MAIN commitmail json YAML

Fix late NULL-checking (CID 1427782: Null pointer dereferences (REVERSE_INULL))

(ozaki-r)

2018-01-22 23:20:26 UTC MAIN commitmail json YAML

Don't attempt to dereference cpu_infos if ncpus == 0.
Instead use the already initialized cpu_info_store.

(Also, now we assume all ncpus have cpu_infos initialized. seems to work.)

fixes PR port-mips/52940: ERLITE multiprocessor hangs early

(maya)

2018-01-22 22:36:11 UTC MAIN commitmail json YAML

xen has separate list, update here also for x86/pmap_tlb.c -> x86/x86_tlb.c

(jdolecek)

2018-01-22 21:56:47 UTC MAIN commitmail json YAML

2018-01-22 20:09:58 UTC netbsd-7 commitmail json YAML

2018-01-22 20:03:06 UTC netbsd-7-1 commitmail json YAML

2018-01-22 19:59:50 UTC netbsd-7-0 commitmail json YAML

2018-01-22 19:59:06 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #1554):
bin/ksh/history.c: revision 1.18 via patch
Use 0600 as the mode for histfile here too.
pointed out by John D. Baker in PR bin/52480

(snj)

2018-01-22 19:58:38 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #1554):
bin/ksh/history.c: revision 1.18 via patch
Use 0600 as the mode for histfile here too.
pointed out by John D. Baker in PR bin/52480

(snj)

2018-01-22 19:57:17 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #1554):
bin/ksh/history.c: revision 1.18 via patch
Use 0600 as the mode for histfile here too.
pointed out by John D. Baker in PR bin/52480

(snj)

2018-01-22 19:41:08 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1550):
sys/arch/amd64/amd64/machdep.c: revision 1.280 via patch
sys/arch/amd64/include/segments.h: revision 1.34 via patch
sys/arch/i386/i386/machdep.c: revision 1.800 via patch
sys/arch/i386/include/segments.h: revision 1.64 via patch
sys/arch/x86/x86/vm_machdep.c: revision 1.30 via patch
Fix a huge privilege separation vulnerability in Xen-amd64.
On amd64 the kernel runs in ring3, like userland, and therefore SEL_KPL
equals SEL_UPL. While Xen can make a distinction between usermode and
kernelmode in %cs, it can't when it comes to iopl. Since we set SEL_KPL
in iopl, Xen sees SEL_UPL, and allows (unprivileged) userland processes
to read and write to the CPU ports.
It is easy, then, to completely escalate privileges; by reprogramming the
PIC, by reading the ATA disks, by intercepting the keyboard interrupts
(keylogger), etc.
Declare IOPL_KPL, set to 1 on Xen-amd64, which allows the kernel to use
the ports but not userland. I didn't test this change on i386, but it
seems fine enough.

(snj)

2018-01-22 19:40:59 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1550):
sys/arch/amd64/amd64/machdep.c: revision 1.280 via patch
sys/arch/amd64/include/segments.h: revision 1.34 via patch
sys/arch/i386/i386/machdep.c: revision 1.800 via patch
sys/arch/i386/include/segments.h: revision 1.64 via patch
sys/arch/x86/x86/vm_machdep.c: revision 1.30 via patch
Fix a huge privilege separation vulnerability in Xen-amd64.
On amd64 the kernel runs in ring3, like userland, and therefore SEL_KPL
equals SEL_UPL. While Xen can make a distinction between usermode and
kernelmode in %cs, it can't when it comes to iopl. Since we set SEL_KPL
in iopl, Xen sees SEL_UPL, and allows (unprivileged) userland processes
to read and write to the CPU ports.
It is easy, then, to completely escalate privileges; by reprogramming the
PIC, by reading the ATA disks, by intercepting the keyboard interrupts
(keylogger), etc.
Declare IOPL_KPL, set to 1 on Xen-amd64, which allows the kernel to use
the ports but not userland. I didn't test this change on i386, but it
seems fine enough.

(snj)

2018-01-22 19:40:25 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1550):
sys/arch/amd64/amd64/machdep.c: revision 1.280 via patch
sys/arch/amd64/include/segments.h: revision 1.34 via patch
sys/arch/i386/i386/machdep.c: revision 1.800 via patch
sys/arch/i386/include/segments.h: revision 1.64 via patch
sys/arch/x86/x86/vm_machdep.c: revision 1.30 via patch
Fix a huge privilege separation vulnerability in Xen-amd64.
On amd64 the kernel runs in ring3, like userland, and therefore SEL_KPL
equals SEL_UPL. While Xen can make a distinction between usermode and
kernelmode in %cs, it can't when it comes to iopl. Since we set SEL_KPL
in iopl, Xen sees SEL_UPL, and allows (unprivileged) userland processes
to read and write to the CPU ports.
It is easy, then, to completely escalate privileges; by reprogramming the
PIC, by reading the ATA disks, by intercepting the keyboard interrupts
(keylogger), etc.
Declare IOPL_KPL, set to 1 on Xen-amd64, which allows the kernel to use
the ports but not userland. I didn't test this change on i386, but it
seems fine enough.

(snj)

2018-01-22 19:37:45 UTC MAIN commitmail json YAML

rename sys/arch/x86/x86/pmap_tlb.c to sys/arch/x86/x86/x86_tlb.c, so that
x86 can eventually use uvm/pmap/pmap_tlb.c; step to future PCID support

(jdolecek)

2018-01-22 18:15:57 UTC MAIN commitmail json YAML

Use right variable as revealed by previous typo...

(flxd)

2018-01-22 17:38:46 UTC MAIN commitmail json YAML

- Coverity does not like -std=gnu99
- Another lose is that you need to manually edit the compiler XML to add
  all the kernel options because cov-configure barfs because it tries to
  test the compilation environment thinking that we are userland even
  when options like -ffreestanding are present.

(christos)

2018-01-22 17:34:01 UTC MAIN commitmail json YAML

white space for readability.

(christos)

2018-01-22 17:33:01 UTC MAIN commitmail json YAML

Disgusting and evil hack to elide coverity options that break production
of coverity output when present [userland portion]

    - --sysroot
    - -fstack-protector
    - -std=gnu99
    - --nostdinc
    - -fPIE

The critical one here being --sysroot because this means that we need to
use the actual system headers while building (or chroot/sandbox appropriately)

(christos)

2018-01-22 15:05:28 UTC MAIN commitmail json YAML

Style and clarify.

(maxv)

2018-01-22 14:40:53 UTC MAIN commitmail json YAML

Fix memory leak, looks like there is still something wrong here.

(maxv)

2018-01-22 13:29:29 UTC MAIN commitmail json YAML

Pass PMAP_WRITE_COMBINE as appropriate in armv7_generic_bs_map, i.e.
same fix as bcm283x_bs_map just got.

(skrll)

2018-01-22 13:28:00 UTC MAIN commitmail json YAML

2018-01-22 13:23:56 UTC MAIN commitmail json YAML

Pass PMAP_WRITE_COMBINE as appropriate in bcm283x_bs_map.

RPI2 FB console now updates properly again

(skrll)

2018-01-22 13:22:40 UTC MAIN commitmail json YAML

Add PMAP_WRITE_COMBINE: to the list of flags supported by pmap_kenter_pa

(skrll)

2018-01-22 13:21:35 UTC MAIN commitmail json YAML

2018-01-22 12:36:02 UTC netbsd-8 commitmail json YAML

2018-01-22 12:34:25 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by mlelstv in ticket #508):
sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.129
relax sanity check. It's ok to have more FAT sectors than needed.

(martin)

2018-01-22 12:32:38 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #507):
sys/arch/arm/arm/cpufunc_asm_arm11x6.S: revision 1.10
PR/52934: Yasushi Oshima: Apply the erratum fix that was applied to wbinv_range
to isync_range so that we don't hang when we try to sync from execcmd_readvn().
XXX: pullup 8

(martin)

2018-01-22 12:30:20 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jdolecek in ticket #506):
sys/kern/kern_softint.c: revision 1.45
sys/rump/librump/rumpkern/rump.c: revision 1.331
sys/kern/subr_pserialize.c: revision 1.10
sys/kern/subr_psref.c: revision 1.10
Prevent panic or hangup in softint_disestablish(), pserialize_perform() or
psref_target_destroy() while mp_online == false.
See http://mail-index.netbsd.org/tech-kern/2017/12/25/msg022829.html
Set mp_online = true. This change might fix PR#52886.

(martin)

2018-01-22 12:13:15 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #505):
bin/ksh/history.c: revision 1.18
Use 0600 as the mode for histfile here too.
pointed out by John D. Baker in PR bin/52480

(martin)

2018-01-22 10:41:18 UTC MAIN commitmail json YAML

2018-01-22 10:40:36 UTC MAIN commitmail json YAML

m_split does not 'attempt' to restore the chain, it just restores it plain
and simple.

(maxv)

2018-01-22 10:40:22 UTC MAIN commitmail json YAML

Add RCS Id, simplify wording, sort.

The option arguments need to be properly described.

(wiz)

2018-01-22 10:34:20 UTC MAIN commitmail json YAML

Improve the mount_autofs(8) stub documentation

Improve DESCRIPTION and NAME.

(kamil)

2018-01-22 10:26:38 UTC MAIN commitmail json YAML

m_prepend does not tolerate being given len > MHLEN, so add a panic, and
document this behavior.

(maxv)

2018-01-22 09:51:06 UTC MAIN commitmail json YAML

Fix null deref, m could be NULL if M_PREPEND fails.

(maxv)

2018-01-22 09:45:32 UTC MAIN commitmail json YAML

2018-01-22 09:06:40 UTC MAIN commitmail json YAML

Style, no functional change.

(maxv)

2018-01-22 08:14:09 UTC MAIN commitmail json YAML

Ah, remove duplicate SVS_LEAVE. Fixes 32bit binaries. While here remove
duplicate 'cli', but that's harmless.

(maxv)

2018-01-22 07:22:52 UTC MAIN commitmail json YAML

Fix m_prepend(). If 'm' is not a pkthdr, it doesn't make sense to use
MH_ALIGN, it should rather be M_ALIGN.

I'm wondering whether there should not be a KASSERT to make sure 'm' is
always a pkthdr.

(maxv)

2018-01-22 07:11:45 UTC MAIN commitmail json YAML

Add KASSERTs in *_ALIGN: ensure the mbuf is of the correct type, and
also make sure m->m_data points at the beginning of the mbuf.

(maxv)

2018-01-22 06:56:25 UTC MAIN commitmail json YAML

Adapt previous, reintroduce MH_ALIGN. It's used as an optimization - we
can later prepend something to the current mbuf without having to allocate
a new mbuf.

(maxv)

2018-01-22 01:34:42 UTC MAIN commitmail json YAML

Ignore pragma warnings with clang for the zfs code.

(joerg)

2018-01-21 21:49:51 UTC MAIN commitmail json YAML

2018-01-21 21:48:54 UTC MAIN commitmail json YAML

use __typeof__ instead of typeof.

(christos)

2018-01-21 20:36:50 UTC MAIN commitmail json YAML

PR/40491: From Tobias Ulmer in tech-kern@:
1. Protect the nfs request queue with its own mutex
2. make the nfs_receive queue check for signals so that intr mounts
  can be interrupted.
XXX: pullup-8

(christos)

2018-01-21 19:35:10 UTC perseant-stdc-iso10646 commitmail json YAML

2018-01-21 18:37:34 UTC MAIN commitmail json YAML

2018-01-21 18:33:56 UTC MAIN commitmail json YAML

Add the GeForce4 MX440 Go, as found on the 17" flat panel G4 iMac (PowerMac4,5).

Thanks to Jasper Wallace <jasper AT pointless DOT net> for the loan of the hardware.

(sevan)

2018-01-21 18:12:37 UTC MAIN commitmail json YAML

CID-1427736: Appease coverity using KASSERT

(christos)

2018-01-21 17:58:43 UTC MAIN commitmail json YAML

CID-1427737: Pacify coverity using KASSERT

(christos)

2018-01-21 17:34:33 UTC MAIN commitmail json YAML

CID-1427745: kill possible buffer overflows.

(christos)

2018-01-21 17:22:56 UTC MAIN commitmail json YAML

CID-1427760: While overrun can't happen, make it obvious that it can't

(christos)

2018-01-21 16:55:25 UTC MAIN commitmail json YAML

CID-1427768: Off by one

(christos)

2018-01-21 16:51:15 UTC MAIN commitmail json YAML

CID-1364351: Fix uninitialized warnings.

(christos)

2018-01-21 16:38:25 UTC MAIN commitmail json YAML

2018-01-21 14:18:21 UTC MAIN commitmail json YAML

Switch sp_timoff to u_int16_t, to prevent possible overflow in
ieee80211_recv_mgmt_beacon(). Actually this field is unused.

(maxv)

2018-01-21 14:13:49 UTC MAIN commitmail json YAML

Appease the overflow check, 4 is enough.

(maxv)

2018-01-21 14:01:55 UTC MAIN commitmail json YAML

2018-01-21 13:57:12 UTC MAIN commitmail json YAML

2018-01-21 11:21:40 UTC MAIN commitmail json YAML

Unmap the kernel from userland in SVS, and leave only the needed
trampolines. As explained below, SVS should now completely mitigate
Meltdown on GENERIC kernels, even though it needs some more tweaking
for GENERIC_KASLR.

Until now the kernel entry points looked like:

FUNC(intr)
pushq $ERR
pushq $TRAPNO
INTRENTRY
... handle interrupt ...
INTRFASTEXIT
END(intr)

With this change they are split and become:

FUNC(handle)
... handle interrupt ...
INTRFASTEXIT
END(handle)

TEXT_USER_BEGIN
FUNC(intr)
pushq $ERR
pushq $TRAPNO
INTRENTRY
jmp handle
END(intr)
TEXT_USER_END

A new section is introduced, .text.user, that contains minimal kernel
entry/exit points. In order to choose what to put in this section, two
macros are introduced, TEXT_USER_BEGIN and TEXT_USER_END.

The section is mapped in userland with normal 4K pages.

In GENERIC, the section is 4K-page-aligned and embedded in .text, which
is mapped with large pages. That is to say, when an interrupt comes in,
the CPU has the user page tables loaded and executes the 'intr' functions
on 4K pages; after calling SVS_ENTER (in INTRENTRY) these 4K pages become
2MB large pages, and remain so when executing in kernel mode.

In GENERIC_KASLR, the section is 4K-page-aligned and independent from the
other kernel texts. The prekern just picks it up and maps it at a random
address.

In GENERIC, SVS should now completely mitigate Meltdown: what we put in
.text.user is not secret.

In GENERIC_KASLR, SVS would have to be improved a bit more: the
'jmp handle' instruction is actually secret, since it leaks the address
of the section we are jumping into. By exploiting Meltdown on Intel, this
theoretically allows a local user to reconstruct the address of the first
text section. But given that our KASLR produces several texts, and that
each section is not correlated with the others, the level of protection
KASLR provides is still good.

(maxv)

2018-01-21 10:59:21 UTC MAIN commitmail json YAML

Increase the size of the initial mapping of the kernel. KASLR kernels are
bigger than their GENERIC counterparts, and the limit will soon be hit on
them.

(maxv)

2018-01-21 10:30:51 UTC MAIN commitmail json YAML

Try to fix previous to make it compile.

(martin)

2018-01-21 09:25:45 UTC MAIN commitmail json YAML

fix some logic errors in the previous and fix non-kernel builds.

(mrg)

2018-01-21 08:46:49 UTC MAIN commitmail json YAML

fix ofppc/pegasosII (and maybe others).

don't assume PPC_OEA64_BRIDGE means we have a 64 bit cpu (code
for 64 bit in bridge and normal 32 bit can co-exist due to
fixups the early boot code does has, and ofppc builds GENERIC
this way):
- fix mtmsr()/mfmsr() to use the right method based upon the
  actually cpu booted on.
- fix cpu_setup() to have 32 bit and 64 bit hid0 variables
  and operate on the right one based upon the current cpu.
  restore a minor optimisation of not writing hid0 if it
  didn't change.

in set_timebase() check if OF_finddevice("/cpus/@0") failed
and returned -1 before using it for OF_getprop().

(mrg)

2018-01-21 08:33:46 UTC MAIN commitmail json YAML

Fix the build, on Xen too amd64_trap.S needs to be compiled independently.

(maxv)

2018-01-21 08:20:31 UTC MAIN commitmail json YAML

Make it possible for SVS to map in the user page tables a 4K kernel page
contained in a 2MB large page. Will be used soon.

(maxv)

2018-01-21 04:20:10 UTC MAIN commitmail json YAML

CID-1427771: Remove incorrect pre-condition (index cannot be 256!)

(christos)

2018-01-21 04:07:49 UTC MAIN commitmail json YAML

CID-1427779: Fix uninitialized variables

(christos)

2018-01-21 01:18:48 UTC MAIN commitmail json YAML

make check cleaner, and simplify the code.

(christos)

2018-01-20 23:27:06 UTC MAIN commitmail json YAML

Correct wrong assertion code introduced by rev 1.41:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/wscons/wsemul_vt100.c#rev1.41

Fix kernel panic reported in PR kern/52935.

(rin)

2018-01-20 19:36:47 UTC MAIN commitmail json YAML

Ack EOI for IRQ_SLAVE of the master PIC after ack for IRQ of the slave PIC.

I'm not sure if there are possible races in the original code, but
this is what i8259_asm_ack2() in sys/arch/x86/include/i8259.h does
and it looks this change makes a Milan kernel a bit stable.

(tsutsui)

2018-01-20 19:36:29 UTC perseant-stdc-iso10646 commitmail json YAML

Use multilevel tables (tries) to convert kuten <-> unicode.
Get rid of dchains, replace with chain/rchain conversions through keys
allocated from the PUA.

(perseant)

2018-01-20 19:33:53 UTC MAIN commitmail json YAML

Skip NVRAM checksum check and re-initialization on Milan.

Milan's firmware seems to use different check method.

(tsutsui)

2018-01-20 19:26:38 UTC MAIN commitmail json YAML

Regen from MILAN.in rev 1.28.

> Restore piixide(4) for Milan and disable other pciide devices.

(tsutsui)

2018-01-20 19:24:27 UTC MAIN commitmail json YAML

Restore piixide(4) for Milan and disable other pciide devices.

piixide was removed in rev 1.18 and the log message said
"because Intel IDE disk controllers only exist as part of
Intel chipsets for x86 systems" but the Milan actually has
the Intel 82371FB southbridge on its board.
Other pciide devices are unlikely necessary for the default
kernel for such a rare machine.
Also fix pasto in comment.

(tsutsui)

2018-01-20 18:33:09 UTC MAIN commitmail json YAML

Use a proper PSL value to be passed to splx(9) functions.

This should have been changed on yamt-splraiseipl branch merge
back in 2006, which made MI IPL_xxx values independent from
m68k MD PSL values for the %sr register.

(tsutsui)

2018-01-20 18:18:02 UTC MAIN commitmail json YAML

Handle yet another atari specific quirk in the MI ISA fdc(4)/fd(4) driver.

This makes fd(4) drive(s) (which is necessary for installation)
properly attached on Milan.

atari uses "fdcisa" and "fdisa" for ISA fdc to co-exist other fd(4)
drivers, on-board (atari/dev/fd.c) one and Hades (atari/dev/hdfd.c) one.

(tsutsui)

2018-01-20 18:04:28 UTC MAIN commitmail json YAML

Fix silent hang after isa_intr_establish() on Milan.

The problems (wrong macro replacements) were slipped in rev 1.107:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/atari/atari/locore.s#rev1.107

(tsutsui)

2018-01-20 18:01:53 UTC MAIN commitmail json YAML

Fix silent hang during config_console() (before consinit()) on Milan.

config_console() was a dirty hack used by ancient m68k ports
to probe and initialize console devices before "real" configure(9),
using subset of configure(9) functions.

In that case, most device specific data (except I/O access method)
are not initialized so we must not access device specific device_t and
softc structures in config_console() cases.

(tsutsui)

2018-01-20 17:37:15 UTC MAIN commitmail json YAML

Fix I/O access failures for regions allocated by bus_space_map(9) on Milan.

Passing to PMAP_WIRED against I/O spaces seems problematic,
probably after yamt-km branch merge, which was committed
between NetBSD 3.0 and NetBSD 4.0.
(i.e. ISA and PCI devices on Milan didn't work after 4.0 release)

XXX:
According to pmap(9) man page, the "flags" arg for pmap_enter(9)
doesn't take VM_PROT_READ and VM_PROT_WRITE, but pmap_enter()
implementation in sys/arch/m68k/m68k/pmap_motolora.c historically
checks them.

(tsutsui)

2018-01-20 16:30:57 UTC MAIN commitmail json YAML

2018-01-20 14:43:25 UTC MAIN commitmail json YAML

PR/52934: Yasushi Oshima: Apply the erratum fix that was applied to wbinv_range
to isync_range so that we don't hang when we try to sync from execcmd_readvn().
XXX: pullup 8

(christos)

2018-01-20 14:39:21 UTC MAIN commitmail json YAML

Use .pushsection/.popsection, we will soon embed macros in several layers
of nested sections.

(maxv)

2018-01-20 14:27:15 UTC MAIN commitmail json YAML

2018-01-20 14:08:08 UTC MAIN commitmail json YAML

Start with .text not to inherit the last section of amd64_trap.S, and
remove outdated #define.

(maxv)

2018-01-20 13:56:09 UTC MAIN commitmail json YAML

2018-01-20 13:45:15 UTC MAIN commitmail json YAML

2018-01-20 13:42:07 UTC MAIN commitmail json YAML

Don't declare exceptions[] with IDTVEC, it's an array, not a function.
Rename it to x86_exceptions[], and move it to .rodata.

(maxv)

2018-01-20 08:45:28 UTC MAIN commitmail json YAML

Mmh, restore PG_G on the direct map, we still want that in the non-SVS
case.

(maxv)

2018-01-20 08:30:53 UTC MAIN commitmail json YAML

Fix the double-fault handler. We're executing on ist1 and must not jump
out of it, so don't enable interrupts. And use the SVS_*_ALTSTACK macros.

While here, fix the NMI handler too: it should use SVS_LEAVE_ALTSTACK.

(maxv)

2018-01-20 07:43:28 UTC MAIN commitmail json YAML

Improve two comments and a KASSERT.

(maxv)

2018-01-20 03:50:29 UTC MAIN commitmail json YAML

Add a copyright (approx 16.5 years later).

(simonb)

2018-01-20 01:32:45 UTC MAIN commitmail json YAML

fixes for the previous, noted by nakayama@.

- RAIDFRAME_CONFIGURE needs to be versioned as the rows was removed,
  adding RAIDFRAME_CONFIGURE80, rf_config80() etc.
- RAIDFRAME_CONFIGURE32 changes to match
- rf_get_info80() passed the wrong source to copyout()

some fixes to my original change were independantly made by nakayama@
who confirmed the changes work properly now.

(mrg)

2018-01-19 23:38:56 UTC MAIN commitmail json YAML

add conversion goop for WSDISPLAYIO_LDFONT and _SFONT
tested on mips64

(macallan)

2018-01-19 23:37:36 UTC MAIN commitmail json YAML

2018-01-19 23:17:41 UTC MAIN commitmail json YAML

don't forget to eat the high bits.

(christos)

2018-01-19 15:04:29 UTC MAIN commitmail json YAML

Several changes:

* Declare TRIM_LABEL as a function.

* In mpls_unlabel_inet, copy the label locally. It's not incorrect to
  keep a pointer on the mbuf, but it's bug-friendly.

* In mpls_label_inetX, fix the length check. Meanwhile add an XXX: we
  just want to make sure that m_copydata won't fail, but if we were
  guaranteed that m has M_PKTHDR set, we could simply check the length
  against m->m_pkthdr.len.

(maxv)

2018-01-19 14:30:09 UTC MAIN commitmail json YAML

Fix build failure, the structure is already defined now.

(maxv)

2018-01-19 14:15:35 UTC MAIN commitmail json YAML

2018-01-19 13:17:29 UTC MAIN commitmail json YAML

Fix a buffer overflow in icmp_error. We create in 'm' a packet that must
contain:

  IPv4 header | Fixed part of ICMP header | Variable part of ICMP header

But we perform length checks on 'totlen', which does not count the IPv4
header.

So now, add sizeof(struct ip) in totlen, and stop doing this m_data
nonsense, just get the pointers as usual.

(maxv)

2018-01-19 12:50:27 UTC MAIN commitmail json YAML

Clarify icmp_error:

* Rename (and constify) oiplen -> oiphlen.

* Rename icmplen -> datalen, it's the size of the variable part of
  the ICMP header, not the total size of the ICMP header itself.

* Introduce totlen, this is the total size of the ICMP header (icmp_ip
  included).

No real functional change.

(maxv)

2018-01-19 12:47:42 UTC MAIN commitmail json YAML

sun4v doesn't have %ver register.

(nakayama)

2018-01-19 12:31:28 UTC MAIN commitmail json YAML

2018-01-19 10:54:31 UTC MAIN commitmail json YAML

Move the ICMP Extension structures from mpls_ttl.c to ip_icmp.h; that's
part of the ICMP protocol (per RFC4884), and not specific to MPLS. Also
add ih_exthdr in struct icmp, the 'length' field appeared.

While here, style in MPLS.

(maxv)

2018-01-19 10:21:24 UTC MAIN commitmail json YAML

Style, explain a bit, and fix icmp_radv, it should be icmp_dun.id_radv.

(maxv)

2018-01-19 09:04:24 UTC MAIN commitmail json YAML

Fix some ARM kernel builds.  ARM abuses compat32 for ABI compatibility and
this means some ioctls overlap.

(skrll)

2018-01-19 08:01:05 UTC MAIN commitmail json YAML

Suppress noisy debugging outputs

Even if DEBUG they are too noisy under load.

(ozaki-r)

2018-01-19 07:58:25 UTC MAIN commitmail json YAML

Style, no functional change.

(maxv)

2018-01-19 07:57:50 UTC MAIN commitmail json YAML

Style, and check the return value of m_append.

(maxv)

2018-01-19 07:54:34 UTC MAIN commitmail json YAML

Style, no functional change.

(maxv)

2018-01-19 07:53:46 UTC MAIN commitmail json YAML

Style, no functional change.

(maxv)

2018-01-19 07:53:01 UTC MAIN commitmail json YAML

Run tcp_slowtimo in workqueue if NET_MPSAFE

If NET_MPSAFE is enabled, we have to avoid taking softnet_lock in softint as
much as possible to prevent any softint handlers including callout handlers
such as tcp_slowtimo from sticking on softnet_lock because it results in
undesired delays of executing subsequent softint handlers.

NFCI for !NET_MPSAFE

(ozaki-r)

2018-01-19 07:52:37 UTC MAIN commitmail json YAML

Style, and make sure that there is a header+trailer included in the
packet. The crypto functions can touch the trailer, but they don't check
whether it's there in the first place.

(maxv)

2018-01-19 05:19:29 UTC MAIN commitmail json YAML

Release rt_so_mtx on updating a rtentry to avoid a deadlock with route_intr

The deadlock happened only if NET_MPSAFE on.

(ozaki-r)

2018-01-18 23:17:09 UTC MAIN commitmail json YAML

Use usbdevices. add midi needed to build umidi.
Remove now redundant USB entries.

So we will stop missing random USB drivers.

(maya)

2018-01-18 17:59:29 UTC MAIN commitmail json YAML

Style, no functional change.

(maxv)

2018-01-18 17:57:49 UTC MAIN commitmail json YAML

Style, and zero out 'ns' entirely, otherwise some bytes get leaked to
userland (eg ns_rsvd0).

(maxv)

2018-01-18 16:23:43 UTC MAIN commitmail json YAML

Several changes:

* Make the code more readable.

* Add a panic in ieee80211_compute_duration(). I'm not sure there's
  a bug here - I don't have the hardware -, but looking at the code, it
  may be possible for 'paylen' to go negative. Obviously that's not the
  correct way to fix it, but at least we'll see if it happens.

(maxv)

2018-01-18 14:18:23 UTC MAIN commitmail json YAML

Fix test for SMI_IMB{,range} that was broken in 1.46

From Ramakrishna Rao Desetti

(skrll)

2018-01-18 13:31:21 UTC MAIN commitmail json YAML

Don't return the address of the kernel modules if the user is not
privileged. Discussed on tech-kern@.

(maxv)

2018-01-18 13:24:01 UTC MAIN commitmail json YAML

Several changes:

* Make the code more readable. In particular, declare variables as const
  along the way.

* Explain what we're doing in ieee80211_send_mgmt(). The
  IEEE80211_FC0_SUBTYPE_PROBE_RESP case has some inconsistencies, but
  they are not inherently wrong so I'm not changing that.

* When sending IEEE80211_FC0_SUBTYPE_REASSOC_RESP frames, make sure to
  zero out the 'association ID', otherwise two bytes are leaked.

* Fix a possible memory leak in ieee80211_send_probereq().

(maxv)

2018-01-18 12:49:09 UTC MAIN commitmail json YAML

Use r0 in the tlbiall instruction to avoid confusion.

From Ramakrishna Rao Desetti

(skrll)

2018-01-18 09:54:52 UTC MAIN commitmail json YAML

2018-01-18 09:38:15 UTC MAIN commitmail json YAML

add WM_TX_PROCESS_LIMIT_DEFAULT and WM_TX_INTR_PROCESS_LIMIT_DEFAULT man.

(knakahara)

2018-01-18 09:36:26 UTC MAIN commitmail json YAML

wm_txeof() can limit the loop count the same as wm_rxeof() now.

(knakahara)

2018-01-18 08:40:56 UTC MAIN commitmail json YAML

2018-01-18 07:25:34 UTC MAIN commitmail json YAML

Unmap the kernel heap from the user page tables (SVS).

This implementation is optimized and organized in such a way that we
don't need to copy the kernel stack to a safe place during user<->kernel
transitions. We create two VAs that point to the same physical page; one
will be mapped in userland and is offset in order to contain only the
trapframe, the other is mapped in the kernel and maps the entire stack.

Sent on tech-kern@ a week ago.

(maxv)

2018-01-18 00:34:05 UTC MAIN commitmail json YAML

note netbsd32 support for raid(4).

(mrg)

2018-01-18 00:32:49 UTC MAIN commitmail json YAML

implement 32-bit compat support for raidframe.

convert several raidframe ioctls to be bitsize idempotent so that
they work the same in 32 and 64 bit worlds, allowing netbsd32 to
configure and query raid properly.  remove useless 'row' in a few
places.  add COMPAT_80 and put the old ioctls there.

raidframeio.h:
  RAIDFRAME_TEST_ACC
  - remove, unused
  RAIDFRAME_GET_COMPONENT_LABEL
  - convert to label not pointer to label
  RAIDFRAME_CHECK_RECON_STATUS_EXT
  RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT
  RAIDFRAME_CHECK_COPYBACK_STATUS_EXT
  - convert to progress info not pointer to info
  RAIDFRAME_GET_INFO
  - version entirely.
raidframevar.h:
  - rf_recon_req{} has row, flags and raidPtr removed (they're
    not a useful part of this interface.)
  - RF_Config_s{} and RF_DeviceConfig_s{} have numRow/rows removed.
  - RF_RaidDisk_s{} is re-ordered slightly to fix alignment
    padding - the actual data was already OK.
  - InstallSpareTable() loses row argument

rf_compat32.c has code for RF_Config_s{} in 32 bit mode, used
by RAIDFRAME_CONFIGURE and RAIDFRAME_GET_INFO32.

rf_compat80.c has code for rf_recon_req{}, RF_RaidDisk_s{} and
RF_DeviceConfig_s{} to handle RAIDFRAME_FAIL_DISK,
RAIDFRAME_GET_COMPONENT_LABEL, RAIDFRAME_CHECK_RECON_STATUS_EXT,
RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT,
RAIDFRAME_CHECK_COPYBACK_STATUS_EXT, RAIDFRAME_GET_INFO.

move several of the per-ioctl code blocks into separate functions.

add rf_recon_req_internal{} to replace old usage of global
rf_recon_req{} that had unused void * in the structure, ruining
it's 32/64 bit ABI.

add missing case for RAIDFRAME_GET_INFO50.

adjust raid tests to use the new .conf format, and add a case to
test the old method as well.

raidctl:
deal with lack of 'row' members in a couple of places.
fail request no longer takes row.
handle "START array" sections with just "numCol numSpare", ie
no "numRow" specified.  for now, generate old-style configuration
but update raidctl.8 to specify the new style (keeping reference
to the old style.)

note that: RF_ComponentLabel_s::{row,num_rows} and
RF_SingleComponent_s::row are obsolete but not removed yet.

(mrg)

2018-01-18 00:31:22 UTC MAIN commitmail json YAML

merge the ebus@pci attach output to be like most PCI drivers:

ebus0 at pci1 dev 1 function 0
ebus0: Sun Microsystems PCIO Ebus2, revision 0x01

becomes:

ebus0 at pci1 dev 1 function 0: Sun Microsystems PCIO Ebus2, revision 0x01

(mrg)

2018-01-17 20:30:17 UTC MAIN commitmail json YAML

2018-01-17 17:41:38 UTC MAIN commitmail json YAML

Style, and fix two pretty bad mistakes in the crypto functions:

* They call M_PREPEND, but don't pass the updated pointer back to the
  caller.

* They use memmove on the mbuf data, but they don't ensure that the
  area they touch is contiguous.

This fix is not complete, ieee80211_crypto_encap too needs to pass back
the updated pointer. This will be done in another commit.

(maxv)

2018-01-17 17:22:14 UTC MAIN commitmail json YAML

Track 3rd party firmware in our tree.

(mlelstv)

2018-01-17 16:03:16 UTC MAIN commitmail json YAML

Several changes:

* Style in several places, to make the code more readable or easier to
  understand.

* Instead of checking m->m_pkthdr.len, check m->m_len. m_pkthdr.len is
  the total size of the packet, not the size of the current mbuf (which
  may be smaller).

* Add a missing length check when handling QoS frames.

* Cast the lengths passed in IEEE80211_VERIFY_LENGTH to size_t.

* Remove the length check on scan.sp_xrates, that I added yesterday.
  xrates gets silently truncated in ieee80211_setup_rates().

* Fix several buffer overflows in the parsers of the MANAGEMENT frames.

(maxv)

2018-01-17 13:52:12 UTC MAIN commitmail json YAML

Note veriexec being enabed by default on macppc port

(sevan)

2018-01-17 12:49:06 UTC MAIN commitmail json YAML

Note fileassoc(9) support is a dependency Veriexec.

Resolves PR kern/52909

(sevan)

2018-01-17 12:41:48 UTC MAIN commitmail json YAML

Enable veriexec(4) support by default on the macppc port and update the manual to mention it.

Closes PR port-powerpc/52908

(sevan)

2018-01-17 08:34:15 UTC MAIN commitmail json YAML

Use more semantic markup.

(uwe)

2018-01-17 07:38:20 UTC MAIN commitmail json YAML

fix previous:
CPUFLG_SUN4CACHEBUG was renamed to CACHE_TRAPPAGEBUG and moved
into the cacheinfo.  don't revive the no longer used value, but
fix the non-sun4m code to match cpu.c 1.251.

(mrg)

2018-01-17 06:10:28 UTC MAIN commitmail json YAML

2018-01-17 04:31:59 UTC MAIN commitmail json YAML

Avoid applying .Dv to the left parenthesis, since it is not applied to
the closing right parenthesis.

(pgoyette)

2018-01-17 03:16:10 UTC MAIN commitmail json YAML

PR/47615: Dr. W. Stukenbrock: Always zero out the result structs in the
svc procs to avoid returning stale request data to the client.
XXX: pullup-6,7,8

(christos)

2018-01-17 03:03:59 UTC MAIN commitmail json YAML

Don't skip the superfluous "is" argument if it's not superfluous!

This allows us to use `wtf is` and get information for the acronym "is"
and produces the same output as `wtf is is` withough requiring the extra
typing by the user.

(pgoyette)

2018-01-17 02:45:38 UTC MAIN commitmail json YAML

document pfil_{add,remove}_ihook, pfil_run_{addr,if}hooks

from ryo shimizu in PR bin/51941

changes by myself: fix mdoc -Tlint, add missing set lists, adjust date
to today, reword history addition.

(maya)

2018-01-17 02:39:16 UTC MAIN commitmail json YAML

2018-01-17 02:37:33 UTC MAIN commitmail json YAML

rename DCACHE_SIZE to XSCALE_DCACHE_SIZE to avoid conflict with genassym
field offset with the same name.

(christos)

2018-01-17 02:16:07 UTC MAIN commitmail json YAML

Fix duplicated "rxintr" evcnt counting. Pointed out by ozaki-r@n.o, thanks.

(knakahara)

2018-01-17 01:38:37 UTC MAIN commitmail json YAML

Bring eawk up to date, it's had no real love since 2013.

1. Don't use bison, just use standard yacc to build
2. Use pure-parser directive, rather than %pure_parser
3. libarchive has changed its API since 2013 - adapt
4. netpgpverify has also changed its API since 2013 - adapt also
5. There is no sqlite3 sub-directory, so don't descend into it

With thanks to yukonbob for the nudge.

(agc)

2018-01-17 01:24:30 UTC MAIN commitmail json YAML

Revert to commits as they broke few rump tests

"Include namespace.h in a few of libc source files
[...]
    This change finishes elimination of usage of the global name of the
    following symbols:
      - close -> _close
      - execve -> _execve
      - fcntl -> _fcntl
      - setcontext -> _setcontext
      - wait6 -> _wait6
      - write -> _write
      - writev -> _writev"

"Register more syscalls in namespace.h (of libc)

    Add weak symbols for:
    - fcntl
    - close
    - execve
    - setcontext
    - wait6
    - write
    - writev"

These changes broke:

    fs/nfs/t_rquotad:get_nfs_be_1_both
    fs/nfs/t_rquotad:get_nfs_be_1_group
    fs/nfs/t_rquotad:get_nfs_be_1_user
    fs/nfs/t_rquotad:get_nfs_le_1_both
    fs/nfs/t_rquotad:get_nfs_le_1_group
    fs/nfs/t_rquotad:get_nfs_le_1_user
    lib/librumphijack/t_config:fdoff
    lib/librumphijack/t_tcpip:http
    lib/librumphijack/t_tcpip:nfs
    lib/librumphijack/t_vfs:cpcopy
    lib/librumphijack/t_vfs:mv_x
    lib/librumphijack/t_vfs:paxcopy
    net/net/t_forwarding:ipforwarding_fastforward_v4
    net/net/t_forwarding:ipforwarding_fastforward_v6
    net/net/t_forwarding:ipforwarding_fragment_v4
    net/net/t_forwarding:ipforwarding_misc
    net/net/t_mtudisc6:mtudisc6_basic

This revert fixes the failures, except lib/librumphijack/t_vfs.

The original changes were added in order to facilitate a usage of
sanitizers against programs linked with NetBSD's libc. It is no longer
needed, so abandon these changes.

Sponsored by <The NetBSD Foundation>

(kamil)

2018-01-17 00:29:22 UTC MAIN commitmail json YAML

Use 0600 as the mode for histfile here too.

pointed out by John D. Baker in PR bin/52480

(maya)

2018-01-17 00:23:17 UTC MAIN commitmail json YAML

2018-01-17 00:22:29 UTC MAIN commitmail json YAML

- Add inttypes.h #include for PR* macros.
- close fd when done to prevent leak.
- use correct socket length when calling bind(2).

From Ngie Cooper in PR bin/51870

(maya)

2018-01-17 00:16:43 UTC MAIN commitmail json YAML

Improve portability of headers and sort them.

From Ngie Cooper in PR bin/51833

(maya)

2018-01-16 18:53:32 UTC MAIN commitmail json YAML

Various fixes: style, remove tiring XXXs, and prevent integer overflow in
ieee80211_setup_rates (normally it already can't happen, because I added a
length check on xrates in ieee80211_recv_mgmt_beacon).

(maxv)

2018-01-16 18:42:43 UTC MAIN commitmail json YAML

Prepend 'sp_' to the name of the fields, so that they can easily be found
via NXR or grep.

(maxv)

2018-01-16 16:54:54 UTC MAIN commitmail json YAML

Add comments about the length checks, and check xrates.

(maxv)

2018-01-16 16:31:38 UTC MAIN commitmail json YAML

2018-01-16 16:24:23 UTC MAIN commitmail json YAML

Attempt to complete previous and allow XEN to compile (as well as link)

(kre)

2018-01-16 16:20:57 UTC MAIN commitmail json YAML

Style on the new functions.

(maxv)

2018-01-16 16:09:30 UTC MAIN commitmail json YAML

Introduce ieee80211_recv_mgmt_disassoc.

(maxv)

2018-01-16 16:04:17 UTC MAIN commitmail json YAML

Introduce ieee80211_recv_mgmt_deauth.

(maxv)

2018-01-16 16:00:17 UTC MAIN commitmail json YAML

Introduce ieee80211_recv_mgmt_assoc_resp.

(maxv)

2018-01-16 15:55:14 UTC MAIN commitmail json YAML

Introduce ieee80211_recv_mgmt_assoc_req.

(maxv)

2018-01-16 15:48:32 UTC MAIN commitmail json YAML

Introduce ieee80211_recv_mgmt_auth.

(maxv)

2018-01-16 15:42:52 UTC MAIN commitmail json YAML

Start splitting ieee80211_recv_mgmt.

(maxv)

2018-01-16 15:18:37 UTC MAIN commitmail json YAML

2018-01-16 14:37:24 UTC MAIN commitmail json YAML

2018-01-16 14:23:15 UTC MAIN commitmail json YAML

Mmh refix previous, we also need to make sure frm[1] is there.

(maxv)

2018-01-16 14:21:10 UTC netbsd-8 commitmail json YAML

Pull up the following revisions, requested by skrll in #408:

sys/arch/arm/broadcom/bcm2835_space.c          1.12-1.13

Sync with armv7_generic_space.c
- big endian support (probably not needed)
- a4x subreagion/mmap support
- fix some a4x stream methods
- add UVM_KMF_COLORMATCH in bs_map when allocating KVA
- support BUS_SPACE_MAP_PREFETCHABLE

(martin)

2018-01-16 14:15:50 UTC netbsd-8 commitmail json YAML

Pull up the following, requested by maya in #411:

lib/libc/gen/vis.c                              1.74

Use 16x instead of 4x the amount of space since each wint_t
can result in 4 bytes of 4 characters ("\ooo") each.

(martin)

2018-01-16 14:08:56 UTC netbsd-8 commitmail json YAML

2018-01-16 14:01:13 UTC MAIN commitmail json YAML

Fix memory leak. If m1 == m, m = NULL, so it's safe to just call m_freem.

(maxv)

2018-01-16 13:48:21 UTC MAIN commitmail json YAML

Fix overflow, noted by Maya.

(maxv)

2018-01-16 13:26:12 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by christos in ticket #501):
sys/kern/kern_event.c: revision 1.103
Set EV_ONESHOT to prevent rescheduling
XXX: pullup-8

(martin)

2018-01-16 13:09:59 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nat in ticket #500):
usr.sbin/bta2dpd/bta2dpd/bta2dpd.c: revision 1.5
Set size of mtusize before calling getsockopt to obtain mtu size.

(martin)

2018-01-16 13:04:34 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #498):
sys/kern/uipc_domain.c: revision 1.101
sys/sys/domain.h: revision 1.34
sys/rump/librump/rumpnet/rump_net.c: revision 1.21
Don't start callouts for domains before attaching domains on rump kernels
On rump kernels, the callouts for domains, pffasttimo and pfslowtimo, started
before domains were attached. Normally the callouts were dispatched after
domain attaches (initializations) finished, however, under load the callouts
could be executed prior to the attaches, resulting in that the callouts accessed
unallocated or uninitialized resources.

(martin)

2018-01-16 13:01:11 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #497):
tests/rump/rumpkern/Makefile: revision 1.16
tests/rump/kernspace/Makefile: revision 1.6
tests/rump/kernspace/workqueue.c: revision 1.1
tests/rump/kernspace/workqueue.c: revision 1.2
tests/rump/kernspace/workqueue.c: revision 1.3
tests/rump/kernspace/workqueue.c: revision 1.4
tests/rump/kernspace/workqueue.c: revision 1.5
tests/rump/kernspace/workqueue.c: revision 1.6
tests/rump/rumpkern/t_workqueue.c: revision 1.1
sys/sys/workqueue.h: revision 1.10
tests/rump/rumpkern/t_workqueue.c: revision 1.2
tests/rump/kernspace/kernspace.h: revision 1.5
tests/rump/kernspace/kernspace.h: revision 1.6
sys/net/if_bridge.c: revision 1.147
distrib/sets/lists/debug/mi: revision 1.225
sys/kern/subr_workqueue.c: revision 1.34
share/man/man9/workqueue.9: revision 1.12
sys/net/if_spppsubr.c: revision 1.178
distrib/sets/lists/tests/mi: revision 1.763
Add simple test for workqueue(9)
Add declaration. build fix
sorry, I forgot to commit this file.
Tweak use of cv_timedwait
- Handle its return value
- Specify more appropriate time-out periods (2 ticks is too short)
Fix a race condition on taking the mutex
The workqueue worker can take the mutex before the tester tries to take it after
calling workqueue_enqueue. If it happens, the worker calls cv_broadcast before
the tester calls cv_timedwait and the tester will wait until the cv timed out
Take the mutex before calling workqueue_enqueue so that the tester surely calls
cv_timedwait before the worker calls cv_broadcast.
The fix stabilizes the test, t_workqueue/workqueue1.
Add workqueue_wait that waits for a specific work to finish
The caller must ensure that no new work is enqueued before calling
workqueue_wait. Note that Note that if the workqueue is WQ_PERCPU, the caller
can enqueue a new work to another queue other than the waiting queue.
Discussed on tech-kern@
Ensure the timer isn't running by using workqueue_wait
Functionalize some routines to add new tests easily (NFC)
Add a test case for workqueue_wait
Fix build

(martin)

2018-01-16 12:03:44 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #474):
lib/libc/locale/wcstod.c: revision 1.16
lib/libc/locale/wcstold.c: revision 1.5
lib/libc/locale/wcstof.c: revision 1.5
PR/52801: Kamil Rytarowski: Add missing weak aliases for wcsto{f,d,ld}_l
XXX: pullup-8

(martin)

2018-01-16 11:52:10 UTC MAIN commitmail json YAML

2018-01-16 09:59:37 UTC MAIN commitmail json YAML

Make MDSET_NOGZIP behave as documented also if MDSET_SUFFIX is set

MDSET_NOGZIP is documented as intended to apply for all kernels, even if
MDSET_NOGZIP.filename is not set.

From Harold Gutch in PR toolchain/52836

(maya)

2018-01-16 09:42:11 UTC MAIN commitmail json YAML

Style, remove pointless XXXs, and add a comment about LLC.

(maxv)

2018-01-16 09:04:30 UTC MAIN commitmail json YAML

Update the mbuf pointer when m_pullup succeeds, I forgot this in my last
revision (I only fixed the UAF in one branch). Meanwhile, style.

(maxv)

2018-01-16 08:53:51 UTC MAIN commitmail json YAML

Do not use HOST_CFLAGS and others.  build.sh calls configure with
CFLAGS set to HOST_CFLAGS, etc - so HOST_* environment variables are
already taken into account if set.

OTOH, if configure were to add anything to CFLAGS etc, the old code
would happily ignore those changes, picking up original environment
variables instead.

(uwe)

2018-01-16 08:39:29 UTC MAIN commitmail json YAML

Split ieee80211_input into three sub-functions, that parse received
packets depending on their type:

DATA      -> ieee80211_input_data
MANAGEMENT -> ieee80211_input_management
CONTROL    -> ieee80211_input_control

No real functional change, but makes the code much clearer.

(maxv)

2018-01-16 08:37:43 UTC MAIN commitmail json YAML

note sparc* cpuctl identify support.

(mrg)

2018-01-16 08:23:18 UTC MAIN commitmail json YAML

implement cpuctl identify for sparc and sparc64.

sparc:
- move enum vactype and struct cacheinfo into cpu.h
- move the cache flags from cpuinfo.flags into CACHEINFO.c_flags
  (this allows the new cache_printf_backend() to see them.)
  remove unused CPUFLG_CACHEIOMMUTABLES and CPUFLG_CACHEDVMA.
- align xmpsg to 64 bytes
- move cache_print() into cache_print.h so it can be shared with
  cpuctl.  it only depends upon a working printf().
- if found, store the CPU node's "name" into cpu_longname.  this
  changes the default output to show the local CPU not the
  generic CPU family.  eg:
  cpu0 at mainbus0: mid 8: Ross,RT625 @ 90 MHz, on-chip FPU
  vs the generic "RT620/625" previously shown.
- for each CPU export these things:
  - name
  - fpuname
  - mid
  - cloc
  - freq
  - psr impl and version
  - mmu impl, version, and number of contexts
  - cacheinfo structure (which changed for the first time ever
    with this commit.)

sparc64:
- add a minimal "cacheinfo" structure to export the i/d/e-cache
  size and linesize.
- store %ver, cpu node "name" and cacheinfo in cpu_info.
- set cpu_info ver, name and cacheinfo in cpu_attach(), and
  export them via sysctl, as well as CPU ID and clock freq

cpuctl:
- add identifycpu_bind() that returns false on !x86 as their
  identify routines do not need to run on a particular CPU to
  obtain its information, and use it to avoid trying to set
  affinity when not needed.
- add sparc and sparc64 cpu identify support using the newly
  exported values.

(mrg)

2018-01-16 08:15:29 UTC MAIN commitmail json YAML

Sanity-check if interlock is held when it's passed

(ozaki-r)

2018-01-16 08:13:47 UTC MAIN commitmail json YAML

Make DAD destructions (MP-)safe with callout_stop

arp_dad_stoptimer and nd6_dad_stoptimer can be called with or without
softnet_lock held and unfortunately we have no easy way to statically know which.
So it is hard to use callout_halt there.

To address the situation, we use callout_stop to make the code safe. The new
approach copes with the issue by delegating the destruction of a callout to
callout itself, which allows us to not wait the callout to finish. This can be
done thanks to that DAD objects are separated from other data such as ifa.

The approach is suggested by riastradh@
Proposed on tech-kern@ and tech-net@

(ozaki-r)

2018-01-16 07:57:58 UTC MAIN commitmail json YAML

2018-01-16 07:56:55 UTC MAIN commitmail json YAML

Revert "Work around softnet_lock handling" as per pgoyette@'s request

We should avoid if (mutex_owned(softnet_lock)).

(ozaki-r)

2018-01-16 07:53:02 UTC MAIN commitmail json YAML

2018-01-16 07:34:12 UTC MAIN commitmail json YAML

Fix agr(4) module build. Reviewed by pgoyette@n.o, thanks.

(knakahara)

2018-01-16 07:23:13 UTC MAIN commitmail json YAML

Fix wm_watchdog_txq() lock region.

Not only wm_txeof() but also wm_watchdog_txq() itself requires txq_lock
as it reads Tx descriptor management variables such as "txq_free".

There is almost no influence on performance.

(knakahara)

2018-01-16 07:05:25 UTC MAIN commitmail json YAML