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 (57m)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 10:28:16 UTC Now

2019-11-17 02:52:18 UTC MAIN commitmail json YAML

switch ia64 to GCC 8.  boots just as far as GCC 7 in ski.

(mrg)

2019-11-17 02:22:14 UTC MAIN commitmail json YAML

Fix pointer arithmetic for 32-bit process on LP64 kernel in
process_auxv_offset().

Now, PIOD_READ_AUXV works fine with COMPAT_NETBSD32.

XXX
pullup to netbsd-9 and netbsd-8

(rin)

2019-11-16 22:51:51 UTC MAIN commitmail json YAML

do the ignore -Wshadow dance for builtins and GCC 8, copied from ppc version.

(mrg)

2019-11-16 22:09:56 UTC MAIN commitmail json YAML

Document new functions vn_bdev_open and vn_bdev_openpath.

(mlelstv)

2019-11-16 22:06:50 UTC MAIN commitmail json YAML

Don't wait in interrupt context.

(mlelstv)

2019-11-16 21:53:38 UTC MAIN commitmail json YAML

be more verbose about errors.

(mlelstv)

2019-11-16 21:41:02 UTC MAIN commitmail json YAML

Fix always false test (typo). Note by joerg@

(christos)

2019-11-16 21:25:15 UTC MAIN commitmail json YAML

2019-11-16 20:26:59 UTC MAIN commitmail json YAML

2019-11-16 20:09:49 UTC netbsd-9 commitmail json YAML

2019-11-16 20:08:45 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #434):

sys/dev/nvmm/x86/nvmm_x86.c: revision 1.8

Don't report MWAITX by default.

(martin)

2019-11-16 19:23:56 UTC MAIN commitmail json YAML

2019-11-16 18:08:59 UTC MAIN commitmail json YAML

Make the bootblock selection menu more sane, pointed out by maxv

(martin)

2019-11-16 18:08:36 UTC MAIN commitmail json YAML

2019-11-16 17:53:46 UTC MAIN commitmail json YAML

Don't report MWAITX by default.

(maxv)

2019-11-16 17:53:02 UTC MAIN commitmail json YAML

2019-11-16 17:38:09 UTC MAIN commitmail json YAML

msg_table_add(): fix mishap in the format safety changes in r1.45

(martin)

2019-11-16 17:33:09 UTC MAIN commitmail json YAML

Document usage of KERN_ARND

(nia)

2019-11-16 17:02:38 UTC netbsd-9 commitmail json YAML

2019-11-16 17:01:45 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #432):

sys/netinet6/ip6_input.c: revision 1.215

Add more checks in ip6_pullexthdr, to prevent a panic in m_copydata. The
Rip6 entry point could see a garbage Hop6 option.

Not a big issue, since it's a clean panic only triggerable if the socket
has the IN6P_DSTOPTS/IN6P_RTHDR option.

(martin)

2019-11-16 16:59:15 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #431):

sys/arch/zaurus/conf/GENERIC: revision 1.89
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.12
sys/arch/zaurus/conf/INSTALL: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.45

Make zaurus kernels use symbol tables loaded by the bootloader.

Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).
Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:

https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.

(martin)

2019-11-16 16:55:47 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #430):

sys/arch/arm/sa11x0/sa11x0_ost.c: revision 1.33
sys/arch/zaurus/zaurus/autoconf.c: revision 1.13

Fix attach failure of zaudio(4) WM8731 (C7x0/860) and WM8750 (C1000/3x00).

The new MI iic(4) layer requires an explicit quirk info of PROBE_STRATEGY
via device properties.  Fixes PR kern/54658.

Should be pulled up to netbsd-9.

-

Fix another attach failure of zaudio(4) WM8731 on Zaurus SL-C7x0/860.

When kernels were configured for both CPU_XSCALE_PXA270 and
CPU_XSCALE_PXA250, the OST freq value was not set until tc_init(9)
then all delay(9) during configure(9) returned immediately.

While here, use proper macro with description for readability.

Should be pulled up to netbsd-8 and netbsd-9.
(though zaudio(4) won't work on netbsd-8)

(martin)

2019-11-16 16:53:13 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by hikaru in ticket #429):

sys/arch/x86/pci/msipic.c: revision 1.19

Disable MSI-X before writing the MSI-X table.

That fixes MSI-X interrupt lost on VMware ESXi 6.7 PCI passthrough devices.

ok knakahara@

(martin)

2019-11-16 16:51:45 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #428):

sys/dev/hyperv/if_hvn.c: revision 1.6
sys/dev/hyperv/hvkbd.c: revision 1.4

hvn(4), hvkbd(4): No need to call vmbus_channel_setdeferred().

These devices do not perform batch reading.

(martin)

2019-11-16 16:48:26 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #427):

sys/dev/ic/dw_hdmi_phy.c: revision 1.2
sys/dev/ic/dw_hdmi.c: revision 1.4
sys/dev/fdt/ausoc.c: revision 1.5
sys/dev/ic/dw_hdmi.h: revision 1.2
sys/dev/ic/dw_hdmi.h: revision 1.3
sys/dev/ic/dw_hdmi.h: revision 1.4
sys/conf/files: revision 1.1242
sys/dev/fdt/fdtvar.h: revision 1.57
sys/arch/arm/rockchip/rk3399_cru.c: revision 1.11
sys/arch/arm/rockchip/rk3399_cru.c: revision 1.12
sys/arch/arm/rockchip/rk3399_cru.c: revision 1.13
sys/arch/evbarm/conf/GENERIC64: revision 1.110
sys/arch/arm/rockchip/rk_drm.c: revision 1.1
sys/arch/arm/rockchip/rk_drm.c: revision 1.2
sys/arch/evbarm/conf/GENERIC64: revision 1.112
sys/arch/arm/rockchip/rk_dwhdmi.c: revision 1.1
sys/dev/fdt/fdt_clock.c: revision 1.10
sys/arch/evbarm/conf/GENERIC64: revision 1.113
sys/arch/arm/rockchip/rk_dwhdmi.c: revision 1.2
sys/arch/arm/rockchip/rk_drm.h: revision 1.1
sys/arch/arm/rockchip/rk_dwhdmi.c: revision 1.3
sys/arch/arm/rockchip/rk_fb.c: revision 1.1
sys/arch/arm/dts/rk3399-rockpro64.dts: revision 1.9
sys/arch/arm/rockchip/rk_vop.c: revision 1.1
sys/arch/arm/rockchip/rk_vop.c: revision 1.2
sys/arch/arm/rockchip/rk_i2c.c: revision 1.6
sys/arch/arm/rockchip/rk_cru.h: revision 1.6
sys/arch/arm/rockchip/rk_cru.h: revision 1.7
sys/arch/arm/rockchip/rk_cru_composite.c: revision 1.4
sys/arch/arm/rockchip/rk_cru_composite.c: revision 1.5
sys/arch/arm/rockchip/files.rockchip: revision 1.21
sys/arch/arm/rockchip/rk_i2s.c: revision 1.1
sys/arch/arm/rockchip/files.rockchip: revision 1.22
sys/dev/ic/dw_hdmi.c: revision 1.2
sys/dev/ic/dw_hdmi_phy.c: revision 1.1
sys/dev/ic/dw_hdmi.c: revision 1.3

Support reads of more than 32 bytes in a single xfer.

Add support for internal DesignWare HDMI PHYs

Add fdtbus_clock_enable and fdtbus_clock_enable_index shortcuts

Add HDMI and VOP clocks

WIP display driver for Rockchip RK3399

Add (commented out) Rockchip display support

Select the correct MPLL and PHY settings for the requested pixel clock
Force DCLK_VOP0/1 dividers to 1 and select closest match when setting PLL
rates.

Fix typo in phy config table

Fix a few swapped fields

Remove debug output

Enable Rockchip display support

Set sysclk rate at set_format time, so the link set_format callback can read the new sysclk

Add I2S audio input support.
Add software volume controls.
Add support for I2S clocks.
Add driver for Rockchip I2S/PCM controller.
Enable HDMI audio on ROCKPro64
Add rki2s
Add audio support

(martin)

2019-11-16 16:40:29 UTC netbsd-8 commitmail json YAML

2019-11-16 16:39:11 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1446):

sys/arch/zaurus/conf/GENERIC: revision 1.89
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.12
sys/arch/zaurus/conf/INSTALL: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.45
sys/arch/zaurus/conf/GENERIC: revision 1.85

Yes, we need to load symbols, but we don't need the whole DDB infrastructure
for that.

bye ddb and we fit again.

Make zaurus kernels use symbol tables loaded by the bootloader.
Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).

Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:

https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.

(martin)

2019-11-16 16:35:00 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1445):

sys/arch/arm/sa11x0/sa11x0_ost.c: revision 1.33

Fix another attach failure of zaudio(4) WM8731 on Zaurus SL-C7x0/860.

When kernels were configured for both CPU_XSCALE_PXA270 and
CPU_XSCALE_PXA250, the OST freq value was not set until tc_init(9)
then all delay(9) during configure(9) returned immediately.

While here, use proper macro with description for readability.

Should be pulled up to netbsd-8 and netbsd-9.
(though zaudio(4) won't work on netbsd-8)

(martin)

2019-11-16 16:32:23 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1444):

usr.sbin/usbdevs/usbdevs.c: revision 1.36

Print USB_SPEED_SUPER_PLUS capability if present

(martin)

2019-11-16 16:30:10 UTC netbsd-8 commitmail json YAML

Pull up the following revisions, requested by msaitoh in ticket #1443:

sys/arch/arm/nvidia/tegra_xusb.c 1.13-1.14 via patch
sys/dev/pci/xhci_pci.c 1.13
sys/dev/usb/usb.c 1.169
sys/dev/usb/usbdivar.h 1.116
sys/dev/usb/xhci.c 1.93, 1.95, 1.97
sys/dev/usb/xhcireg.h 1.11-1.12

Detect USB 3.1

(martin)

2019-11-16 16:26:17 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1442):

sys/dev/i2c/spdmem_i2c.c: revision 1.14

Use 1-byte data-buffers when writing to the "control" device for the
SPD ROMs (we do this for page-selection).  The imcsmb doesn't support
zero-byte transfers.

With this, I'm able to get the data for all 8 of my DIMMs (on two
different imcsmb busses) using the spdmem(4) driver.  And the data
decodes correctly using the decode-dimms utility (from the linux
i2ctools).

(martin)

2019-11-16 16:23:31 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #1441):

sys/dev/hyperv/if_hvn.c: revision 1.6
sys/dev/hyperv/hvkbd.c: revision 1.4

hvn(4), hvkbd(4): No need to call vmbus_channel_setdeferred().

These devices do not perform batch reading.

(martin)

2019-11-16 16:17:37 UTC netbsd-7 commitmail json YAML

2019-11-16 16:13:56 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #1713):

sys/dev/usb/usbdi.h: revision 1.97 (via patch)
sys/dev/usb/usbdi.c: revision 1.186 (via patch)
sys/dev/usb/usb_subr.c: revision 1.239 (via patch)

add new usbd_do_request_len() that can allocate a larger than
request size buffer.  reimplement usbd_do_request_flags() in
terms of this.  use this for fetching string descriptors.

fixes a very strange problem where an axe(4) attaching (either
has ugen(4) or axe(4)) would ask for 2 bytes, usb_mem.c would
allocate a 2 byte fragment, perform the operation, and sometime
shortly afterwards (usually by the time the next allocation
is made for this fragment), would become corrupted (usually
two bytes were written with 0x0304.)
(initial request of 4 bytes also avoids the problem on this
device.  it really seems like a HC problem -- host should not
allow the device to write more than req.wLength!  nor should
it allow this write to happen after completion.)

avoid an (almost) always double-log in usbd_transfer().

(martin)

2019-11-16 15:51:26 UTC MAIN commitmail json YAML

Build libclangAST with -O1 when the host compiler is GCC 7 to avoid
miscompiles.

(joerg)

2019-11-16 15:50:46 UTC MAIN commitmail json YAML

Drop unused variable.

(joerg)

2019-11-16 15:38:43 UTC MAIN commitmail json YAML

PR port-i386/54701: deal with missing pmf platform keys.

(martin)

2019-11-16 13:25:33 UTC MAIN commitmail json YAML

2019-11-16 13:24:40 UTC MAIN commitmail json YAML

2019-11-16 13:24:25 UTC MAIN commitmail json YAML

Enable HDMI audio on ROCKPro64

(jmcneill)

2019-11-16 13:24:03 UTC MAIN commitmail json YAML

2019-11-16 13:23:13 UTC MAIN commitmail json YAML

2019-11-16 13:10:07 UTC MAIN commitmail json YAML

2019-11-16 12:50:08 UTC MAIN commitmail json YAML

2019-11-16 12:47:47 UTC MAIN commitmail json YAML

Set sysclk rate at set_format time, so the link set_format callback can read the new sysclk

(jmcneill)

2019-11-16 12:26:54 UTC MAIN commitmail json YAML

autofs: Support DOLLAR for $ literal

taken-from FreeBSD and DragonFlyBSD

(tkusumi)

2019-11-16 12:21:06 UTC MAIN commitmail json YAML

autofs: Fix segfault that could occur on "automount -LL"

(tkusumi)

2019-11-16 11:56:29 UTC MAIN commitmail json YAML

autofs: Remove unneeded header include

common.c doesn't depend on autofs or its ioctls.

(tkusumi)

2019-11-16 11:50:58 UTC MAIN commitmail json YAML

note i386 and sparc* conversion.  note arm32 issues.

(mrg)

2019-11-16 10:23:36 UTC MAIN commitmail json YAML

sparc & sparc64 -> GCC 8.

(mrg)

2019-11-16 10:22:20 UTC MAIN commitmail json YAML

2019-11-16 10:19:29 UTC MAIN commitmail json YAML

Add a NULL check on the structure pointer, not to retrieve its first field
if it is NULL. The previous code was not buggy strictly speaking. This
change probably doesn't change anything, except removing assumptions in the
compiler optimization passes, which too probably doesn't change anything in
this case.

Reported-by: syzbot+110b29c1973f38a38026@syzkaller.appspotmail.com

(maxv)

2019-11-16 10:15:10 UTC MAIN commitmail json YAML

Call rtcache_unref() only when the checks succeed, instead of relying on
another NULL check in rtcache_unref().

Because, in order to resolve the address of the second argument, we do a
dereference on 'tp', which is theoretically allowed to be NULL. The five
callers of nd6_hint() never pass a NULL argument however, so by luck the
actual NULL deref never happens.

Maybe the NULL check on 'tp' in should be replaced to a KASSERT ensuring
it isn't NULL, for clarity.

Reported by kUBSan.

(maxv)

2019-11-16 10:07:53 UTC MAIN commitmail json YAML

NULL-check the structure pointer, not the address of its first field. Also
add KASSERT. For clarity, and to appease kUBSan.

(maxv)

2019-11-16 10:05:44 UTC MAIN commitmail json YAML

Add a NULL check on the structure (same logic as my previous change in this
file). For clarity, and to appease kUBSan.

(maxv)

2019-11-16 09:22:00 UTC MAIN commitmail json YAML

autofs: Fix change by r1.3 "prevent assert on unmount."

Must delete all nodes on unmount, otherwise automounts with >1 level of directories can't be deleted.
taken-from: FreeBSD and DragonFlyBSD

(tkusumi)

2019-11-16 04:10:33 UTC MAIN commitmail json YAML

Add a stub for drm_ioctl() so that compat32 links with kernels without drmkms.

(christos)

2019-11-16 03:26:19 UTC MAIN commitmail json YAML

Remove some XXX'd comments that were remnants of when I was working
on the [pgoyette-compat] code.

NFC

(pgoyette)

2019-11-16 00:16:56 UTC MAIN commitmail json YAML

fix pasto - don't limit OF_finddevice() to 32 characters
now this works again

(macallan)

2019-11-15 23:43:13 UTC MAIN commitmail json YAML

bump OF_buf(fer) since we may put extra parameters in there

(macallan)

2019-11-15 23:41:47 UTC MAIN commitmail json YAML

stuff name parameters into OF_buf before calling OF
now things like ofctl work on my TiBook with FIRMWORKSBUGS

(macallan)

2019-11-15 15:51:57 UTC MAIN commitmail json YAML

NULL-check the structure pointer, not the address of its first field. This
is clearer and also appeases syzbot.

Reported-by: syzbot+d27bc1be926b3641c0ad@syzkaller.appspotmail.com

(maxv)

2019-11-15 13:25:53 UTC MAIN commitmail json YAML

Sort RTK_HWREV_* by value.

(msaitoh)

2019-11-15 12:38:09 UTC MAIN commitmail json YAML

Make Yukon EX, FE+, SUPR stable. The code is mainly taken from FreeBSD.

At least, this change made my own Yukon EX machine (HP ProBook 4501s) much
stable than before.

(msaitoh)

2019-11-15 12:18:46 UTC MAIN commitmail json YAML

Instrument ufetch/ustore in kMSan, these were the last remaining functions.

(maxv)

2019-11-15 09:50:01 UTC MAIN commitmail json YAML

Since cpu_in_cksum.S can be built outside of the kernel, add an ugly #ifdef
_KERNEL for kMSan.

(maxv)

2019-11-15 09:44:44 UTC MAIN commitmail json YAML

Make kMSan compatible with KCOV. With kMSan we are forced to stay with the
fsanitize flag on subr_kcov.c, which means that kMSan will instrument KCOV.
We add a bunch of __nomsan attributes to reduce this instrumentation, but
it does not remove it completely. That's fine.

(maxv)

2019-11-15 09:03:26 UTC MAIN commitmail json YAML

Remove the ins* and outs* functions. Not sanitizer-friendly, and unused
anyway.

(maxv)

2019-11-15 08:51:27 UTC MAIN commitmail json YAML

hvn(4), hvkbd(4): No need to call vmbus_channel_setdeferred().

These devices do not perform batch reading.

(nonaka)

2019-11-15 08:11:37 UTC MAIN commitmail json YAML

Instrument copyout() in kCSan, for parity with kMSan.

(maxv)

2019-11-15 01:10:43 UTC MAIN commitmail json YAML

Keep SCLK high in the inactive state. (SPI modes 2 and 3 only)

(hkenken)

2019-11-14 21:23:46 UTC MAIN commitmail json YAML

document vm.ubc_direct

(jdolecek)

2019-11-14 20:40:26 UTC MAIN commitmail json YAML

Enable Rockchip display support

(jmcneill)

2019-11-14 20:39:46 UTC MAIN commitmail json YAML

2019-11-14 20:31:50 UTC MAIN commitmail json YAML

Fix a few swapped fields

(jmcneill)

2019-11-14 19:26:58 UTC MAIN commitmail json YAML

2019-11-14 18:17:19 UTC netbsd-7 commitmail json YAML

2019-11-14 17:09:23 UTC MAIN commitmail json YAML

2019-11-14 16:56:13 UTC MAIN commitmail json YAML

Don't include "opt_kcsan.h" since there's already <sys/csan.h> included.

(maxv)

2019-11-14 16:48:51 UTC MAIN commitmail json YAML

2019-11-14 16:27:26 UTC MAIN commitmail json YAML

2019-11-14 16:23:53 UTC MAIN commitmail json YAML

Add support for Kernel Memory Sanitizer (kMSan). It detects uninitialized
memory used by the kernel at run time, and just like kASan and kCSan, it
is an excellent feature. It has already detected 38 uninitialized variables
in the kernel during my testing, which I have since discreetly fixed.

We use two shadows:
- "shad", to track uninitialized memory with a bit granularity (1:1).
  Each bit set to 1 in the shad corresponds to one uninitialized bit of
  real kernel memory.
- "orig", to track the origin of the memory with a 4-byte granularity
  (1:1). Each uint32_t cell in the orig indicates the origin of the
  associated uint32_t of real kernel memory.

The memory consumption of these shadows is consequent, so at least 4GB of
RAM is recommended to run kMSan.

The compiler inserts calls to specific __msan_* functions on each memory
access, to manage both the shad and the orig and detect uninitialized
memory accesses that change the execution flow (like an "if" on an
uninitialized variable).

We mark as uninit several types of memory buffers (stack, pools, kmem,
malloc, uvm_km), and check each buffer passed to copyout, copyoutstr,
bwrite, if_transmit_lock and DMA operations, to detect uninitialized memory
that leaves the system. This allows us to detect kernel info leaks in a way
that is more efficient and also more user-friendly than KLEAK.

Contrary to kASan, kMSan requires comprehensive coverage, ie we cannot
tolerate having one non-instrumented function, because this could cause
false positives. kMSan cannot instrument ASM functions, so I converted
most of them to __asm__ inlines, which kMSan is able to instrument. Those
that remain receive special treatment.

Contrary to kASan again, kMSan uses a TLS, so we must context-switch this
TLS during interrupts. We use different contexts depending on the interrupt
level.

The orig tracks precisely the origin of a buffer. We use a special encoding
for the orig values, and pack together in each uint32_t cell of the orig:
- a code designating the type of memory (Stack, Pool, etc), and
- a compressed pointer, which points either (1) to a string containing
  the name of the variable associated with the cell, or (2) to an area
  in the kernel .text section which we resolve to a symbol name + offset.

This encoding allows us not to consume extra memory for associating
information with each cell, and produces a precise output, that can tell
for example the name of an uninitialized variable on the stack, the
function in which it was pushed on the stack, and the function where we
accessed this uninitialized variable.

kMSan is available with LLVM, but not with GCC.

The code is organized in a way that is similar to kASan and kCSan, so it
means that other architectures than amd64 can be supported.

(maxv)

2019-11-14 16:06:17 UTC netbsd-8 commitmail json YAML

2019-11-14 16:04:32 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1439):

sys/dev/sbus/sio16.c: revision 1.25
sys/dev/gpib/mt.c: revision 1.33
sys/arch/mvme68k/dev/wdsc.c: revision 1.33
sys/dev/gpib/ct.c: revision 1.31
sys/dev/isa/mcd.c: revision 1.119
sys/dev/pci/if_stge.c: revision 1.73
sys/dev/gpib/ppi.c: revision 1.25
sys/dev/pcmcia/if_tr_pcmcia.c: revision 1.29
sys/arch/amiga/dev/zssc.c: revision 1.46
sys/arch/mac68k/obio/iwm_fd.c: revision 1.57
sys/arch/amiga/dev/if_qn.c: revision 1.48
sys/dev/isa/tcic2_isa.c: revision 1.28
sys/dev/isa/uha_isa.c: revision 1.42
sys/dev/pci/neo.c: revision 1.55
sys/arch/next68k/dev/nextdisplay.c: revision 1.22
sys/dev/isa/if_iy.c: revision 1.111

Add missing initialization of sc_dev.

Initialize sc_dev correctly to avoid null pointer dereference when
bus_space_map() failed.

Add missing initialization of sc_dev.

(martin)

2019-11-14 16:00:51 UTC netbsd-8 commitmail json YAML

Pull up the following revisions, requested by msaitoh in ticket #1438:

sys/net/if_loop.c 1.108-1.109 via patch

Fix a bug that an IP broadcast packet back to myself
is dropped as bad checksum when an interface's checksum
offload is set.

(martin)

2019-11-14 15:58:06 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1437):

sys/arch/x86/x86/intr.c: revision 1.147

Fix a bug that evcnt_detach() called twice when the idt vector is full.

OK'd by knakahara.

(martin)

2019-11-14 15:55:59 UTC netbsd-8 commitmail json YAML

Pull up the following revision, requested by msaitoh in ticket #1436:

external/bsd/drm2/dist/drm/drm_fb_helper.c      1.13 via patch

Avoid null pointer dereference.

(martin)

2019-11-14 15:53:40 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1435):

sys/dev/pci/ixgbe/ixv.c: revision 1.140

ixv(4): disable RSS configuration on 82599 and X540 VFs.

Those VFs share their RSS configuration with PF and, thus,
they cannot be configured independently. From FreeBSD r354349.

(martin)

2019-11-14 15:48:07 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by hauke in ticket #1440):

sys/dev/pci/pucdata.c: revision 1.105

The 16C1054 and 16C1058 serial multi-port controllers need a clock
multiplier of 8, just like the 16C1050 controller.

Verified with an ExSys EX-41388.
ryo@ checked back with the hardware his original commit was based on,
and confirmed the change.

XXX Pull-up to netbsd-{7,8,9}

(martin)

2019-11-14 15:43:59 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by hauke in ticket #1712):

sys/dev/pci/pucdata.c: revision 1.105

The 16C1054 and 16C1058 serial multi-port controllers need a clock
multiplier of 8, just like the 16C1050 controller.

Verified with an ExSys EX-41388.
ryo@ checked back with the hardware his original commit was based on,
and confirmed the change.

XXX Pull-up to netbsd-{7,8,9}

(martin)

2019-11-14 15:42:47 UTC netbsd-9 commitmail json YAML

2019-11-14 15:41:04 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by hauke in ticket #426):

sys/dev/pci/pucdata.c: revision 1.105

The 16C1054 and 16C1058 serial multi-port controllers need a clock
multiplier of 8, just like the 16C1050 controller.

Verified with an ExSys EX-41388.
ryo@ checked back with the hardware his original commit was based on,
and confirmed the change.

XXX Pull-up to netbsd-{7,8,9}

(martin)

2019-11-14 15:38:03 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #425):

sys/dev/sbus/sio16.c: revision 1.25
sys/dev/gpib/mt.c: revision 1.33
sys/arch/mvme68k/dev/wdsc.c: revision 1.33
sys/dev/gpib/ct.c: revision 1.31
sys/dev/isa/mcd.c: revision 1.119
sys/dev/pci/if_stge.c: revision 1.73
sys/dev/gpib/ppi.c: revision 1.25
sys/dev/pcmcia/if_tr_pcmcia.c: revision 1.29
sys/arch/amiga/dev/zssc.c: revision 1.46
sys/arch/mac68k/obio/iwm_fd.c: revision 1.57
sys/arch/amiga/dev/if_qn.c: revision 1.48
sys/dev/isa/tcic2_isa.c: revision 1.28
sys/dev/isa/uha_isa.c: revision 1.42
sys/dev/pci/neo.c: revision 1.55
sys/arch/next68k/dev/nextdisplay.c: revision 1.22
sys/dev/isa/if_iy.c: revision 1.111

Add missing initialization of sc_dev.

Initialize sc_dev correctly to avoid null pointer dereference when
bus_space_map() failed.

Add missing initialization of sc_dev.

(martin)

2019-11-14 15:34:35 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #424):

sys/net/if_loop.c: revision 1.108
sys/net/if_loop.c: revision 1.109

Fix IP broadcast + checksum offload problem.

When a machine sends a IP broadcast packet to an Ethernet interface that the
checksum offload flags are set, the packet goes through ether_output() ->
looutput() and the offload flags is cleared without calculating the checksum.

And then, ip_input() calculate the packet's checksum because it's csum_flags is
zero. It regard as bad checksum and it's dropped because the packet's ifp
is s not lo0's. Fixes this bug by passing csum_flags as "calculated and good"
when IN_LOOPBACK_NEED_CHECKSUM() is false. Advised by ryo@.

This problem was seen when "routed -s" was used and the machine's interface's
offload flags were set. bad checksum field of "netstat -s" was increased every
30 seconds.

Fix comment.

(martin)

2019-11-14 15:32:32 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #423):

sys/netipsec/key.c: revision 1.268
sys/netipsec/key.c: revision 1.269

Fix SA can be expaired wrongly when there are many SPs.

When key_timehandler_spd() spent over one second, the "now" argument of
key_timehandler_sad() could be older than sav->created. That caused SA
was expired immediately.

-

Reduce load for IKE negotiations when the system has many IPv6 addresses.
e.g. the system has many vlan(4), gif(4) or ipsecif(4) with link local address.

(martin)

2019-11-14 15:30:19 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #422):

sys/dev/pci/ixgbe/ixv.c: revision 1.140

ixv(4): disable RSS configuration on 82599 and X540 VFs.

Those VFs share their RSS configuration with PF and, thus,
they cannot be configured independently. From FreeBSD r354349.

(martin)

2019-11-14 13:58:22 UTC MAIN commitmail json YAML

Make tar extraction flags depend on our usage of pax-as-tar or bsdtar.

(martin)

2019-11-14 13:16:35 UTC MAIN commitmail json YAML

For gcc < 9 disable stringop-overflow warnings - they are broken.

(martin)

2019-11-14 09:27:09 UTC MAIN commitmail json YAML

duplicate a some of Makefile.gnuhost.

should fix PR#53561.

(mrg)

2019-11-14 09:15:12 UTC MAIN commitmail json YAML

2019-11-14 09:11:36 UTC MAIN commitmail json YAML

2019-11-14 09:11:06 UTC MAIN commitmail json YAML

2019-11-14 09:10:41 UTC MAIN commitmail json YAML

Add D-Link DGE-530T C1 and TP-Link TG-3468 v2.

(msaitoh)

2019-11-14 09:06:21 UTC MAIN commitmail json YAML

- Use auto-negotiation when forcing 1000BASE-T.
- Add XXX comment for strange pause setting code. I suspect this is wrong.
- On my environments, 1000BASE-T half duplex doesn't work, so we might remove
  IFM_1000T_HDX from this device in future.

(msaitoh)

2019-11-14 09:00:23 UTC MAIN commitmail json YAML

STGE_PhyCtrl is not PHY register but MAC register, so use ukphy_status()
for IP1000A device.

(msaitoh)

2019-11-14 08:52:34 UTC MAIN commitmail json YAML

KNF. No functional change.

(msaitoh)

2019-11-14 08:49:48 UTC MAIN commitmail json YAML

The 16C1054 and 16C1058 serial multi-port controllers need a clock
multiplier of 8, just like the 16C1050 controller.

Verified with an ExSys EX-41388.

ryo@ checked back with the hardware his original commit was based on,
and confirmed the change.

XXX Pull-up to netbsd-{7,8,9}

(hauke)

2019-11-14 08:45:24 UTC MAIN commitmail json YAML

autofs: Whitespace fix

(tkusumi)

2019-11-14 06:00:16 UTC MAIN commitmail json YAML

2019-11-14 04:14:30 UTC MAIN commitmail json YAML

2019-11-14 03:17:08 UTC MAIN commitmail json YAML

Reduce load for IKE negotiations when the system has many IPv6 addresses.

e.g. the system has many vlan(4), gif(4) or ipsecif(4) with link local address.

(knakahara)

2019-11-14 02:27:18 UTC MAIN commitmail json YAML

Fix uncorrect package name in xdebug mi

(uki)

2019-11-13 22:34:50 UTC MAIN commitmail json YAML

src/external/bsd/llvm/dist/llvm-configure/autoconf/AutoRegen.sh deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/ExportMap.map deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/LICENSE.TXT deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/README.TXT deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/aclocal.m4 deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/config.guess deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/config.sub deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/configure.ac deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/install-sh deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/build_exeext.m4 deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/c_printf_a.m4 deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/check_gnu_make.m4 deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/config_makefile.m4 deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/config_project.m4 deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/cxx_flag_check.m4 deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/define_subst.m4 deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/find_std_program.m4 deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/func_mmap_file.m4 deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/header_mmap_anonymous.m4 deleted
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/huge_val.m4 deleted
      :
(more 19 files)
Mark old LLVM instance as dead.

(joerg)

2019-11-13 22:34:11 UTC LLVM commitmail json YAML

2019-11-13 22:32:16 UTC MAIN commitmail json YAML

Restore pax-as-tar.

(joerg)

2019-11-13 22:27:52 UTC LLVM commitmail json YAML

2019-11-13 22:04:10 UTC MAIN commitmail json YAML

2019-11-13 18:58:09 UTC MAIN commitmail json YAML

Drop MBR and cloning support on crunched install media.

(martin)

2019-11-13 18:57:26 UTC MAIN commitmail json YAML

2019-11-13 17:59:57 UTC MAIN commitmail json YAML

Make zaurus kernels use symbol tables loaded by the bootloader.

Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).

Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:
https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.

(tsutsui)

2019-11-13 17:52:12 UTC MAIN commitmail json YAML

Fix another attach failure of zaudio(4) WM8731 on Zaurus SL-C7x0/860.

When kernels were configured for both CPU_XSCALE_PXA270 and
CPU_XSCALE_PXA250, the OST freq value was not set until tc_init(9)
then all delay(9) during configure(9) returned immediately.
While here, use proper macro with description for readability.

Should be pulled up to netbsd-8 and netbsd-9.
(though zaudio(4) won't work on netbsd-8)

(tsutsui)

2019-11-13 17:48:03 UTC MAIN commitmail json YAML

Fix attach failure of zaudio(4) WM8731 (C7x0/860) and WM8750 (C1000/3x00).

The new MI iic(4) layer requires an explicit quirk info of PROBE_STRATEGY
via device properties.  Fixes PR kern/54658.

Should be pulled up to netbsd-9.

(tsutsui)

2019-11-13 16:11:28 UTC MAIN commitmail json YAML

2019-11-13 15:48:36 UTC MAIN commitmail json YAML

Return success if no coredump module is loaded/hooked.

(pgoyette)

2019-11-13 12:57:15 UTC netbsd-9 commitmail json YAML

2019-11-13 12:56:22 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by nakayama in ticket #421):

bin/pax/Makefile: revision 1.40

Install manual pages for tar and cpio only if ${MKBSDTAR} == "no"
PR bin/54468

(martin)

2019-11-13 12:55:10 UTC MAIN commitmail json YAML

Rename:
PP_ATTRS_M -> PP_ATTRS_D
PP_ATTRS_U -> PP_ATTRS_A
For consistency.

(maxv)

2019-11-13 12:55:06 UTC netbsd-8 commitmail json YAML

2019-11-13 12:53:35 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by yamaguchi in ticket #1434):

sys/net/if_vlan.c: revision 1.148

Fix a bug that vlan(4) fragments IPv6 packets
even the MTU > packet length.

The bug is appeared when the mtu is increased on SIOCSETVLAN.
From t-kusaba@IIJ

(martin)

2019-11-13 12:50:30 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by yamaguchi in ticket #420):

sys/net/if_vlan.c: revision 1.148
tests/net/if_vlan/t_vlan.sh: revision 1.16

Fix a bug that vlan(4) fragments IPv6 packets
even the MTU > packet length.

The bug is appeared when the mtu is increased on SIOCSETVLAN.
From t-kusaba@IIJ

atf: add test cases for MTU that is increased on SIOCSETVLAN
From t-kusaba@IIJ, thanks

(martin)

2019-11-13 10:52:40 UTC MAIN commitmail json YAML

Note import of dhcpcd-8.1.2

(roy)

2019-11-13 10:50:22 UTC MAIN commitmail json YAML

2019-11-13 10:13:41 UTC MAIN commitmail json YAML

Use x86_patch_window_{open,close}. This also fixes a bug: the CR0/PSL
reloads were inverted.

(maxv)

2019-11-13 10:06:39 UTC MAIN commitmail json YAML

Revert workarounds for clang.
In-tree clang can now handle the "r" asm constraint for 64-bit values properly.

(nakayama)

2019-11-13 09:59:02 UTC MAIN commitmail json YAML

Mention LLVM fallout

(martin)

2019-11-13 09:47:37 UTC MAIN commitmail json YAML

Switch to the new PTE naming.

(maxv)

2019-11-13 07:56:11 UTC MAIN commitmail json YAML

Add support "phy-reset-post-delay".

(hkenken)

2019-11-13 07:52:25 UTC MAIN commitmail json YAML

Add some audio drivers in SEE ALSO.

(isaki)

2019-11-13 02:55:00 UTC MAIN commitmail json YAML

Disable MSI-X before writing the MSI-X table.

That fixes MSI-X interrupt lost on VMware ESXi 6.7 PCI passthrough devices.

ok knakahara@

(hikaru)

2019-11-13 02:51:23 UTC MAIN commitmail json YAML

2019-11-13 01:31:47 UTC MAIN commitmail json YAML

put the ucode not found message under #ifdef DEBUG.  use printf()
instead of aprint_error().

there's an error returned to userland and displayed by cpuctl.

(mrg)

2019-11-13 00:19:46 UTC MAIN commitmail json YAML

Appease gcc.  Init "terminator".

It is plainly obvious that the init value cannot be used (the
var was never used uninit'd - could not be) but gcc apparently cannot
work that out.  Revert this if we ever get a compiler with a brain.

(kre)

2019-11-12 23:54:34 UTC MAIN commitmail json YAML

2019-11-12 21:03:49 UTC MAIN commitmail json YAML

2019-11-12 21:02:46 UTC MAIN commitmail json YAML

2019-11-12 21:02:28 UTC MAIN commitmail json YAML

2019-11-12 20:59:46 UTC MAIN commitmail json YAML

PR/54654: Soren Tempel: Make sure el_cursor.v < el_terminal.t_size.v when
moving around.

(christos)

2019-11-12 19:44:46 UTC MAIN commitmail json YAML

Fix whitespace. From vezhlys

(maya)

2019-11-12 19:24:08 UTC netbsd-8 commitmail json YAML

2019-11-12 18:59:52 UTC MAIN commitmail json YAML

Add a missing ("quoting") '>' in an atf_fail error message string.
Since the tests don't (usually) fail no-one ever noticed the missing char.

That is, the "received this" and "expected this" strings were supposed
to appear in the output err message as "<<string>>" but one of those
closing '>' chars was missing.

No-one should ever notice this change in normal operation, as the tests
are not intended to fail.

(kre)

2019-11-12 18:28:40 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1433):

sys/arch/x86/include/specialreg.h: revision 1.157
sys/arch/x86/x86/spectre.c: revision 1.31

Mitigation for CVE-2019-11135: TSX Asynchronous Abort (TAA).

Two sysctls are added:
machdep.taa.mitigated = {0/1} user-settable
machdep.taa.method = {string} constructed by the kernel

There are two cases:

  (1) If the CPU is affected by MDS, then the MDS mitigation will also
mitigate TAA, and we have nothing else to do. We make the 'mitigated' leaf
read-only, and force:

machdep.taa.mitigated = machdep.mds.mitigated
machdep.taa.method = [MDS]

The kernel already enables the MDS mitigation by default.

  (2) If the CPU is not affected by MDS but is affected by TAA, then we use
the new TSX_CTRL MSR to disable RTM. This MSR is provided via a microcode
update, now available on the Intel website. The kernel will automatically
enable the TAA mitigation if the updated microcode is present. If the new
microcode is not present, the user can load it via cpuctl, and set
machdep.taa.mitigated=1.

(martin)

2019-11-12 18:25:33 UTC netbsd-9 commitmail json YAML

2019-11-12 18:24:37 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #419):

sys/arch/x86/include/specialreg.h: revision 1.157
sys/arch/x86/x86/spectre.c: revision 1.31

Mitigation for CVE-2019-11135: TSX Asynchronous Abort (TAA).

Two sysctls are added:
machdep.taa.mitigated = {0/1} user-settable
machdep.taa.method = {string} constructed by the kernel

There are two cases:

  (1) If the CPU is affected by MDS, then the MDS mitigation will also
mitigate TAA, and we have nothing else to do. We make the 'mitigated' leaf
read-only, and force:

machdep.taa.mitigated = machdep.mds.mitigated
machdep.taa.method = [MDS]

The kernel already enables the MDS mitigation by default.

  (2) If the CPU is not affected by MDS but is affected by TAA, then we use
the new TSX_CTRL MSR to disable RTM. This MSR is provided via a microcode
update, now available on the Intel website. The kernel will automatically
enable the TAA mitigation if the updated microcode is present. If the new
microcode is not present, the user can load it via cpuctl, and set
machdep.taa.mitigated=1.

(martin)

2019-11-12 18:18:04 UTC MAIN commitmail json YAML

Rework thread_concurrent_signals and trace_thread_lwpcreate_and_exit

Change the code to remove the LWP id assumptions that broke after
src/sys/kern/kern_lwp.c r. 1.206.

Original code by <mgorny>, tested and tweaked by myself.

(kamil)

2019-11-12 18:04:37 UTC MAIN commitmail json YAML

PR 54467: we trust our own sets, extract them with -P to allow symlink
redirection (especially for updates and chroot services - back out
once a better solution for those is implemented)

(martin)

2019-11-12 18:00:13 UTC MAIN commitmail json YAML

Mitigation for CVE-2019-11135: TSX Asynchronous Abort (TAA).

Two sysctls are added:

machdep.taa.mitigated = {0/1} user-settable
machdep.taa.method = {string} constructed by the kernel

There are two cases:

(1) If the CPU is affected by MDS, then the MDS mitigation will also
mitigate TAA, and we have nothing else to do. We make the 'mitigated' leaf
read-only, and force:
machdep.taa.mitigated = machdep.mds.mitigated
machdep.taa.method = [MDS]
The kernel already enables the MDS mitigation by default.

(2) If the CPU is not affected by MDS but is affected by TAA, then we use
the new TSX_CTRL MSR to disable RTM. This MSR is provided via a microcode
update, now available on the Intel website. The kernel will automatically
enable the TAA mitigation if the updated microcode is present. If the new
microcode is not present, the user can load it via cpuctl, and set
machdep.taa.mitigated=1.

(maxv)

2019-11-12 17:27:59 UTC MAIN commitmail json YAML

add missing usb at ehci
thanks Romain Dolbeau for noticing

(macallan)

2019-11-12 16:33:14 UTC MAIN commitmail json YAML

2019-11-12 14:07:09 UTC MAIN commitmail json YAML

- Define IPGPHY_SCR's address.
- Whitespace fix.

(msaitoh)

2019-11-12 13:17:44 UTC MAIN commitmail json YAML

2019-11-12 13:10:51 UTC MAIN commitmail json YAML

Initialize sc_dev correctly to avoid null pointer dereference when
bus_space_map() failed.

(msaitoh)

2019-11-12 12:50:30 UTC MAIN commitmail json YAML

Remove list of audio drivers, moved to audio(4).

(wiz)

2019-11-12 12:50:04 UTC MAIN commitmail json YAML

Remove self-reference

(wiz)

2019-11-12 12:49:07 UTC MAIN commitmail json YAML

Update list of audio drivers in SEE ALSO.

Based on audioplay(1) man page, where I'll remove them shortly.

(wiz)

2019-11-12 10:14:11 UTC MAIN commitmail json YAML

Give syspkg names to lintlib packages

(uki)

2019-11-12 08:40:57 UTC MAIN commitmail json YAML

2019-11-12 08:35:57 UTC MAIN commitmail json YAML

fix the date for mos(4) import, and mention moscom(4) removal in prev.

(mrg)

2019-11-12 08:11:55 UTC MAIN commitmail json YAML

Add more checks in ip6_pullexthdr, to prevent a panic in m_copydata. The
Rip6 entry point could see a garbage Hop6 option.

Not a big issue, since it's a clean panic only triggerable if the socket
has the IN6P_DSTOPTS/IN6P_RTHDR option.

Reported-by: syzbot+3b07b3511b4ceb8bf1e2@syzkaller.appspotmail.com

(maxv)

2019-11-12 07:41:50 UTC MAIN commitmail json YAML

dynamically calculate the list of usb hubs from drvctl if available.

(mrg)

2019-11-12 07:40:04 UTC MAIN commitmail json YAML

match DIE_ID of 9 (SILERGY_DIE_ID_SYR83X), seen on some rockpro64s.

(mrg)

2019-11-12 05:13:29 UTC MAIN commitmail json YAML

Fix SA can be expaired wrongly when there are many SPs.

When key_timehandler_spd() spent over one second, the "now" argument of
key_timehandler_sad() could be older than sav->created. That caused SA
was expired immediately.

(knakahara)

2019-11-12 05:09:29 UTC MAIN commitmail json YAML

2019-11-12 04:32:36 UTC MAIN commitmail json YAML

Add imxccm_clk_set_rate_div().

+ Fixed BUG in imxccm_clk_get_rate_div().

(hkenken)

2019-11-11 22:45:32 UTC MAIN commitmail json YAML

2019-11-11 19:52:59 UTC netbsd-9 commitmail json YAML

2019-11-11 19:52:08 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by chs in ticket #418):

sys/external/bsd/ipf/netinet/ip_fil.h: revision 1.8

revert rev 1.7 (which removed the fd_local field from frdest_t).
this structure is part of the kernel/user ABI and so we would need to
version the ioctl ABI again in order to remove this field.  but that's
a big pain so let's just leave the field there.  the problem that
was being fixed in FreeBSD related to this was a failure to locate
filter rules in certain situations, but having an unused always-zero
field there won't cause that problem.

(martin)

2019-11-11 19:49:11 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by roy in ticket #417):

usr.sbin/rtadvd/rtadvd.c: revision 1.70
usr.sbin/rtadvd/rtadvd.c: revision 1.71
usr.sbin/rtadvd/rtadvd.h: revision 1.20
usr.sbin/rtadvd/config.c: revision 1.42
usr.sbin/rtadvd/config.c: revision 1.43
usr.sbin/rtadvd/rtadvd.8: revision 1.27

rtadvd: Fix reloading configuration killing interface timers

rtadvd: remove support for SIOCSIFINFO_IN6
It's been broken since we enabled dropping privs.
It's also probably the wrong place to do this, and support for
SIOCSIFINFO_IN6 will be in the next dhcpcd import.

rtadvd: Add C flag to control the zeroing of the leaving configuration
This is only intended to assist the testing of clients which consume
Router Advertisement messages, such as dhcpcd(8).

(martin)

2019-11-11 19:33:43 UTC MAIN commitmail json YAML

revert rev 1.7 (which removed the fd_local field from frdest_t).
this structure is part of the kernel/user ABI and so we would need to
version the ioctl ABI again in order to remove this field.  but that's
a big pain so let's just leave the field there.  the problem that
was being fixed in FreeBSD related to this was a failure to locate
filter rules in certain situations, but having an unused always-zero
field there won't cause that problem.

(chs)

2019-11-11 18:06:47 UTC MAIN commitmail json YAML

ski should run on i386 and amd64 with patches from http://gnats.netbsd.org/54690

(scole)

2019-11-11 17:21:11 UTC netbsd-9 commitmail json YAML

2019-11-11 17:20:00 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #416):

sys/arch/x86/x86/intr.c: revision 1.147

Fix a bug that evcnt_detach() called twice when the idt vector is full.

OK'd by knakahara.

(martin)

2019-11-11 17:18:14 UTC netbsd-8 commitmail json YAML

2019-11-11 17:17:22 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #1432):

sys/dev/ic/nvme.c: revision 1.47

nvme(4): Use the SET_FEATURES command to get the number of allocated queues.

(martin)

2019-11-11 17:15:42 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #415):

sys/dev/ic/nvme.c: revision 1.47

nvme(4): Use the SET_FEATURES command to get the number of allocated queues.

(martin)

2019-11-11 17:13:28 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by chs in ticket #414):

sys/uvm/uvm_fault.c: revision 1.208

in uvm_fault_lower_io(), fetch all the map entry values that we need
before we unlock everything.

(martin)

2019-11-11 17:11:07 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by pgoyette in ticket #413):

sys/kern/kern_core.c: revision 1.27 (patch)
sys/kern/kern_sig.c: revision 1.377 (patch)
sys/kern/kern_sig.c: revision 1.378 (patch)
sys/kern/sys_sig.c: revision 1.50
sys/kern/sys_ptrace_common.c: revision 1.70
sys/kern/compat_stub.c: revision 1.16
sys/compat/common/kern_sig_16.c: revision 1.4
sys/kern/compat_stub.c: revision 1.17
sys/sys/compat_stub.h: revision 1.20
sys/sys/signalvar.h: revision 1.98
sys/sys/compat_stub.h: revision 1.21
sys/sys/signalvar.h: revision 1.99

Convert the sendsig_sigcontext_16 function pointer to use the new
compat_hook mechanism.
XXX Despite being a kernel<-->module abi change, this should be
XXX pulled up to -9

-

Convert the coredump_vec modular function pointer to use the new
compat_hook mechanism.
XXX Should be pulled up to -9 despite the kernel <--> module ABI
XXX change.

(martin)

2019-11-11 15:40:42 UTC MAIN commitmail json YAML

Spell the largest 32bit signed value as INT32_MAX. Explicitly cast to
float, because it is not precisely representable.

(joerg)

2019-11-11 13:42:49 UTC MAIN commitmail json YAML

rtadvd: Add C flag to control the zeroing of the leaving configuration

This is only intended to assist the testing of clients which consume
Router Advertisement messages, such as dhcpcd(8).

(roy)

2019-11-11 11:06:27 UTC MAIN commitmail json YAML

Make a sentence easier to read, and fix some nits.

(wiz)

2019-11-11 11:04:15 UTC MAIN commitmail json YAML

Fix a typo. Fix some xrefs, comment out references to non-existing man pages.

(wiz)

2019-11-11 09:50:11 UTC MAIN commitmail json YAML

Remove lockless reads of 'xc_donep'. This is an uint64_t, and we cannot
expect the accesses to be MP-safe on 32bit arches.

Found by KCSAN.

(maxv)

2019-11-11 09:24:56 UTC MAIN commitmail json YAML

silence sign-conversion warning from clang

(tnn)

2019-11-11 08:12:35 UTC MAIN commitmail json YAML

Fix IP broadcast + checksum offload problem.

When a machine sends a IP broadcast packet to an Ethernet interface that the
checksum offload flags are set, the packet goes through ether_output() ->
looutput() and the offload flags is cleard without calculating the checksum.
And then, ip_input() calculate the packet's checksum because it's csum_flags is
zero. It regard as bad checksum and it's dropped because the packet's ifp
is s not lo0's. Fixes this bug by passing csum_flags as "calculated and good"
when IN_LOOPBACK_NEED_CHECKSUM() is false. Adviced by ryo@.

This problem was seen when "routed -s" was used and the machine's interface's
offload flags were set. bad checksum field of "netstat -s" was increased every
30 minutes.

(msaitoh)

2019-11-11 07:27:49 UTC MAIN commitmail json YAML

nvme(4): Use the SET_FEATURES command to get the number of allocated queues.

(nonaka)

2019-11-11 04:11:53 UTC MAIN commitmail json YAML

Add UPC - universal product code

(pgoyette)

2019-11-11 04:04:29 UTC MAIN commitmail json YAML

2019-11-11 02:40:48 UTC MAIN commitmail json YAML

atf: add test cases for MTU that is increased on SIOCSETVLAN

From t-kusaba@IIJ, thanks

(yamaguchi)

2019-11-11 02:34:46 UTC MAIN commitmail json YAML

Fix a bug that vlan(4) fragments IPv6 packets
even the MTU > packet length.

The bug is appeared when the mtu is increased on SIOCSETVLAN.

From t-kusaba@IIJ

(yamaguchi)

2019-11-10 23:39:03 UTC MAIN commitmail json YAML

Ensure that the second LWP of a new process uses a free LWP ID.
Document overflow behavior.

(joerg)

2019-11-10 23:14:16 UTC MAIN commitmail json YAML

re.4: note additional cards supported, and tweak another detail

This driver also works as-is with a D-Link DGE-530T rev. D2 and a
TP-Link TG-3468 v3, as both match pre-existing PCI vendor and device ID
values. (It should also work with a TG-3468 v2, but would need another
vendor ID match added for that variant.) While here, also note it
supports UDP checksum offload, too.

(gutteridge)