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-10 (6d)  netbsd-9 (6d)  netbsd-8 (11d) 

2024-05-23 04:19:02 UTC Now

2019-12-05 16:47:17 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1462):
        sys/dev/pci/if_age.c: revision 1.61, 1.63-1.64 via patch

- Fix direction of the loop in age_get_macaddr().
- Fix multicast handling. All Atheros controllers use big-endian form
  when computing multicast hash.
- Fix a bug that IFF_ALLMULTI is almost always set.

(bouyer)

2019-12-05 16:44:32 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1462):
sys/dev/pci/if_bge.c: revision 1.340
sys/dev/pci/if_bge.c: revision 1.341
sys/dev/pci/if_bge.c: revision 1.336
- Avoid undefined behavior in bge_setmulti(). found by kUBSan.
- Avoid undefined behavior when setting the MAC address in bge_init().
  found by kUBSan.
Fix a bug that SK-9D41 can't detect fiber media. Check the subsystem ID
correctly. This bug was added in if_bge.c rev. 1.161.
- Use *_FLUSH() more. The main purpose is to wait following delay() correctly.
- Add missing DELAY(80) after writing BGE_MI_MODE register.

(bouyer)

2019-11-26 09:00:55 UTC netbsd-8 commitmail json YAML

2019-11-26 08:59:41 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1461):

share/tmac/doc2html: revision 1.68

PR toolchain/54715

Remove duplicate (incorrect) version of the .Lk macro, so the
earlier (fancier and functional) definition survives.

For now simply comment it out.  Sometime later this one should be
removed - but the two have been present since these macros were
first imported (1999) so leaving this visible (but removed) a
little longer shouldn't hurt.

I (believe) this one is the only duplicate of this form.
With this change the Lk macro in doc2html should work as it is designed
(but does not call other macros, and can only have punctuation following
the URL and (optional) anchor args (2nd arg is the anchor if it isn't
punctuation).

Tested by martin@

(martin)

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

2019-11-26 08:25:28 UTC netbsd-8 commitmail json YAML

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

sys/dev/hyperv/if_hvn.c: revision 1.11

hvn(4): Fix incorrect ident when waiting for NVS command response.

(martin)

2019-11-25 16:04:46 UTC netbsd-8 commitmail json YAML

2019-11-25 16:03:08 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1459):

sys/kern/subr_cprng.c: revision 1.33

Use cprng_strong, not cprng_fast, for sysctl kern.arnd.

(martin)

2019-11-25 16:01:25 UTC netbsd-8 commitmail json YAML

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

sys/dev/hyperv/hvs.c: revision 1.3
sys/dev/hyperv/if_hvn.c: revision 1.10

hvs(4), hvn(4): Set correct size for bus_dmamap_sync(9).

(martin)

2019-11-25 15:57:50 UTC netbsd-8 commitmail json YAML

2019-11-25 15:57:23 UTC netbsd-8 commitmail json YAML

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

sys/dev/mii/miidevs 1.155-1.157, 1.159-1.160
sys/dev/mii/rlphy.c 1.37 via patch

- miidevs update:
- Add Teranetics, Aquantia and Renesas.
- Change ICPLUS(0x0090c3) to xxICPLUS(0x0009c3).
- Fix typo. from vezhlys.
- Rename JMICRON 0x0021 from JMC250 to JMP211
- Rename JMICRON 0x0022 from JMC260 to JMP202
- rlphy(4): Print model name if it's ICPLUS IP101 to avoid printing
  "Realtek internal PHY".

(martin)

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

2019-11-24 08:15:17 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #1456):

sys/kern/sys_ptrace_common.c: revision 1.73

Fix regression introduced to ptrace_regs() in rev 1.27:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/sys_ptrace_common.c#rev1.27

Size of registers should be determined from tracer, NOT tracee.

Now, 64-bit tracer can manipulate registers of 32-bit tracee again.
gdb for amd64 works for i386 binaries to some extent.

XXX
pullup to netbsd-9 and -8.

(martin)

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

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

sys/dev/hyperv/if_hvn.c: revision 1.8
sys/dev/hyperv/if_hvn.c: revision 1.9
sys/dev/hyperv/hvkbd.c: revision 1.5
sys/dev/hyperv/hvkbd.c: revision 1.6
sys/dev/hyperv/vmbus.c: revision 1.5

vmbus(4), hvn(4), hvkbd(4): Fixed wait time for tsleep(9).
hvn(4), hvkbd(4): Only need to poll when cold.

(martin)

2019-11-21 14:07:52 UTC netbsd-8 commitmail json YAML

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

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

sys/dev/mii/atphy.c 1.22-1.23, 1.25 via patch
sys/dev/mii/mii_physubr.c 1.88 via patch
sys/dev/mii/miivar.h 1.69 via patch

- Fix a bug that atphy(4) can't negotiate correctly when the media
  setting is neither auto nor 1000baseT.
- Code cleanup.

(martin)

2019-11-20 16:37:46 UTC netbsd-8 commitmail json YAML

2019-11-20 16:36:47 UTC netbsd-8 commitmail json YAML

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

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-19 10:51:52 UTC netbsd-8 commitmail json YAML

2019-11-19 10:50:26 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #1452):

sys/kern/sys_ptrace_common.c: revision 1.72

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

(martin)

2019-11-19 10:48:15 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe.c: revision 1.216
sys/dev/pci/ixgbe/ixv.c: revision 1.141

Print MAC address.

XXX Should we move such type of printf() to ether_ifattach?

(martin)

2019-11-19 10:45:11 UTC netbsd-8 commitmail json YAML

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

usr.sbin/cpuctl/arch/i386.c: revision 1.108
sys/arch/x86/include/specialreg.h: revision 1.158

Add the following bit definitions from the latest Intel SDM:
- CET shadow stack
- Fast Short REP MOV
- Hybrid part
- CET Indirect Branch Tracking

0x7d and 0x7e are for 10th generation Core (Ice Lake).

(martin)

2019-11-19 10:40:40 UTC netbsd-8 commitmail json YAML

2019-11-19 10:36:48 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/pcidevs 1.1384-1.1391

- Add micron/crucial SM2263 NVMe.
- Add some device found on ASUS X570-P with Ryzen 3200G CPU.
- Spell it "PCIe' when using the name.
- Add Mellanox ConnectX-4, ConnectX-4 Lx, ConnectX-5, and ConnectX-5 Ex
- Modify Attansic Ethernet devices' description to clarify.
- Add Killer E2400 and E2500.
- Spell "controller" correctly.
- Add Realtek RTL8125.
- Update Intel's NVMe SSDs.
- Add Intel Apollo Lake TXE HECI.
- Add D-Link DGE-530T C1 and TP-Link TG-3468 v2.

(martin)

2019-11-19 10:21:34 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_re_pci.c 1.50
share/man/man4/re.4 1.17-1.18

Add D-Link DGE-530T Rev. C,D and TP-Link TG-3468 v2,v3.
Add note about UDP checksum offload feature to the document.

(martin)

2019-11-18 19:29:27 UTC netbsd-8 commitmail json YAML

2019-11-18 19:27:56 UTC netbsd-8 commitmail json YAML

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

sys/dev/hyperv/if_hvn.c: revision 1.7

Fixed incorrect m_defrag return value check.

(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-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-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-12 19:24:08 UTC netbsd-8 commitmail json YAML

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-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-10 13:37:22 UTC netbsd-8 commitmail json YAML

2019-11-10 13:36:29 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/ixgbe/ix_txrx.c: revision 1.56

Fix missing kpreempt_disable() before softint_schedule() like if_vmx.c:r1.51.

(martin)

2019-11-10 13:34:46 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_jme.c: revision 1.46

A * is missing here. This could cause a use-after-free.
Found by the lgtm bot.

(martin)

2019-11-06 10:27:05 UTC netbsd-8 commitmail json YAML

2019-11-06 10:25:27 UTC netbsd-8 commitmail json YAML

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

sys/dev/usb/ubt.c: revision 1.61
sys/dev/sdmmc/sbt.c: revision 1.6

m_free -> m_freem, m_copyback could have added mbufs in the chain

(martin)

2019-11-06 10:23:07 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_wm.c 1.647, 1.649 via patch

- Use device_printf() instead of printf().
- Fix typo in comment.

(martin)

2019-11-06 10:04:47 UTC netbsd-8 commitmail json YAML

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

sys/arch/arm/broadcom/bcm53xx_eth.c: revision 1.39
sys/dev/pcmcia/if_xi.c: revision 1.91
sys/dev/ic/aic6915.c: revision 1.40
sys/dev/pci/if_tl.c: revision 1.117
sys/arch/arm/gemini/gemini_gmac.c: revision 1.18
sys/dev/ic/elinkxl.c: revision 1.133
sys/dev/pci/if_ste.c: revision 1.57
sys/dev/pci/if_alc.c: revision 1.43
sys/dev/pci/if_stge.c: revision 1.72
sys/dev/pci/if_ale.c: revision 1.34
sys/dev/pci/if_age.c: revision 1.62
sys/dev/pci/if_txp.c: revision 1.60
sys/dev/ic/i82557.c: revision 1.156
sys/dev/pci/if_vte.c: revision 1.27
sys/arch/powerpc/booke/dev/pq3etsec.c: revision 1.47
sys/arch/arm/gemini/if_gpn.c: revision 1.13

if_percpuq(9) and ether_input() automatically increment if_ipackets, so don't add number of
RX frames from device's statistics counter to if_ipackets to avoid double
count.

(martin)

2019-11-06 09:55:15 UTC netbsd-8 commitmail json YAML

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

sys/dev/mii/ukphy_subr.c: revision 1.16

Fix a bug that ukphy_status() misunderstand master mode.

(martin)

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

2019-11-04 14:44:47 UTC netbsd-8 commitmail json YAML

2019-11-04 14:39:59 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #398):

sys/compat/netbsd32/syscalls.master: revision 1.129

For netbsd32_readlinkat(2), bufsize is netbsd_size_t, not size_t.

Since bufsize is the last argument, this affects only LP64EB.

XXX
pullup to netbsd-9, -8, and -7

(martin)

2019-11-04 14:37:42 UTC netbsd-8 commitmail json YAML

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

etc/MAKEDEV.awk: revision 1.28

PR port-arm/54640: hack to work around conditional RAW_PART definition in
arm/include/disklabel.h.

Recognize this special case and skip lines between #ifndef RAW_PART and
the next #endif.

(martin)

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

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

sys/arch/zaurus/dev/zrc.c: revision 1.10

Fix build errors with options WSDISPLAY_COMPAT_RAWKBD.

- Add missing RAWKEY_* macro definitions (taken from OpenBSD)
- Explicitly include "opt_wsdisplay_compat.h" for
  #ifdef WSDISPLAY_COMPAT_RAWKBD conditionals.
  (it is not properly pulled at least in netbsd-8)
https://mail-index.netbsd.org/port-zaurus/2019/11/02/msg000083.html

Should be pulled up to netbsd-8 and netbsd-9.

(martin)

2019-11-04 14:23:28 UTC netbsd-8 commitmail json YAML

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

sys/dev/rasops/rasops.h: revision 1.49

Fix "Alignment Fault 3" kernel failure of NetBSD/zaurus 8.1 GENERIC.
structure in header files could be problematic.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/31/msg000079.html

Should be pulled up to netbsd-8 and netbsd-9.

(martin)

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

Pull up following revision(s) (requested by jnemeth in ticket #1421):

sys/dev/scsipi/st.c: revision 1.238

Add simple position recovery when positioning to EOM by reading
the position with READ_POSITION.
this allows for

        mt eom
        mt st

to return the correct file position.

(martin)

2019-11-03 11:39:47 UTC netbsd-8 commitmail json YAML

2019-11-03 11:38:51 UTC netbsd-8 commitmail json YAML

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

sys/arch/zaurus/stand/zbsdmod/Makefile: revision 1.12
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.10
sys/arch/zaurus/conf/Makefile.zaurus.inc: revision 1.10
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.11
sys/arch/zaurus/stand/zbsdmod/compat_linux.h: revision 1.7

Explicitly set empty LINKENTRY to keep ENTRY address specified in ldscript.

This fixes kernel boot failures of NetBSD/zaurus 8.x and later.
While here, also set empty TEXTADDR also specified in ldscript.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Fix another boot failure issue of NetBSD/zaurus 8.x and later.

It looks some cacheline alignment restriction so that zbsdmod.o in
NetBSD/zaurus 8.x release cannot jump to a loaded kernel properly.

Adding an explicit alingment pseudo op to put all instructions
between I-cache flush and jumping to the loaded kernel into the
same cacheline solves the issue.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Misc cleanup to avoid future confusion.
- Remove more unnecessary debug sections
- Use DBG instead of COPTS to specify -Os as defined in bsd.prog.mk
- Use CFLAGS and CPPFLAGS correctly
- Explicitly set -ffreestanding

-

Make sure to clear bss before jumping to a kernel copied from load buffer.
This will fix yet another boot failure issue
"screen white-out after loading a kernel"
https://mail-index.netbsd.org/port-zaurus/2019/10/26/msg000072.html

Should be pulled up to netbsd-8 and netbsd-9.

(martin)

2019-11-01 09:30:36 UTC netbsd-8 commitmail json YAML

2019-11-01 09:29:25 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by cnst in ticket #1397):

sys/kern/subr_disk.c: revision 1.129

kern/subr_disk: bounds_check_with_label: really protect against div by zero

Solves kernel panic in NetBSD 8.1 amd64 on VirtualBox 6.0.12 r133076.

Triggered with an NVMe controller without any actual discs behind it:

nvme0 at pci0 dev 14 function 0: vendor 80ee product 4e56 (rev. 0x00)
nvme0: NVMe 1.2
nvme0: interrupting at ioapic0 pin 22
nvme0: ORCL-VBOX-NVME-VER12, firmware 1.0, serial VB1234-56789
ld0 at nvme0 nsid 1
ld0: 0, 0 cyl, 16 head, 63 sec, 1 bytes/sect x 0 sectors

Code path is reached 4 times during normal boot, each time after wd0a
is already mounted; this patch avoids a crash with a dirty filesystem.

(martin)

2019-10-28 19:15:51 UTC netbsd-8 commitmail json YAML

2019-10-28 19:12:18 UTC netbsd-8 commitmail json YAML

Apply patch, requested by nat in ticket #1419:

PR kern/54547:
do not allow mmap() of audio devices that have not been opened for r/w.

(martin)

2019-10-28 18:40:31 UTC netbsd-8 commitmail json YAML

2019-10-28 18:27:47 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by mlelstv in ticket #1417):

sys/dev/ic/ld_nvme.c: revision 1.23

Don't attach an ld device if the format descriptor is unsupported/unused.

(martin)

2019-10-28 18:01:00 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #1418):

distrib/sets/lists/modules/mi: revision 1.127
sys/modules/Makefile: revision 1.230
sys/modules/filemon/Makefile: revision 1.4 (manually adjusted)
sys/modules/Makefile: revision 1.229

Disable filemon.

It isn't suited for general use (that is, it poses security risks),
but the existence of the module means it is auto-loaded when /dev/filemon
is opened, which can be done by any user.

Thanks Ilja van Sprundel for the heads up.

-

Continue to build the filemon module, but don't install it.  Hopefully
this will help us detect any additional bit-rot that might occur.

XXX It might be a good idea to modify the file permissions on /dev/filemon
XXX to prevent auto-loading of the driver module by non-privileged users.

(martin)

2019-10-24 17:43:43 UTC netbsd-8 commitmail json YAML

2019-10-24 16:06:09 UTC netbsd-8 commitmail json YAML

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

sys/dev/ic/i82586.c: revision 1.86
sys/arch/arm/ep93xx/epe.c: revision 1.45
sys/dev/pcmcia/if_cnw.c: revision 1.66
sys/arch/mac68k/nubus/if_netdock_nubus.c: revision 1.31
sys/dev/qbus/if_il.c: revision 1.36
sys/dev/pcmcia/if_ray.c: revision 1.95
sys/dev/qbus/if_qt.c: revision 1.24

if_percpuq(9) automatically increments if_ipackets, so don't increment it in
the driver itself to prevent double count.

(martin)

2019-10-24 16:03:38 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_bce.c: revision 1.55
sys/dev/pci/if_bce.c: revision 1.56
sys/dev/pci/if_bcereg.h: revision 1.5

- Add missing splnet()/splx() around mii_tick(). Same as OpenBSD rev. 1.23
- Use device_printf() instead of aprint_error_dev)() in bce_watchdog().
- Remove unnecessary inclusion.

-

From OpenBSD:
- Mark ETHERCAP_VLAN_MTU.
- Clear the powerdown mode. Fixes PR kern/24911 reported by Werner Backes.
- Set proper LED modes.

(martin)

2019-10-24 15:59:13 UTC netbsd-8 commitmail json YAML

2019-10-24 15:58:45 UTC netbsd-8 commitmail json YAML

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

sys/dev/mii/ciphy.c 1.34-1.37 via patch
sys/dev/mii/miidevs 1.158

- Indicate master mode if the negotiated result say so.
- Call mii_phy_flowstatus() to show the flow setting.
- Match a lot of Cicada and Vitesse devices correctly.
- Add support for VSC8221, VSC8234 and VSC8641.
- KNF

(martin)

2019-10-24 15:54:46 UTC netbsd-8 commitmail json YAML

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

sys/dev/mii/rgephy.c 1.43, 1.47, 1.49, 1.54-1.57
sys/dev/mii/rgephyreg.h 1.10, 1.12
(both via patch)

- It seems EEE support is not only on 8211F but on 8211D and newer.
- Indicate master mode if the negotiated result say so.
- Use symbolic names for chip revision.
- Cosmetic changes.
- KNF.

(martin)

2019-10-24 15:51:28 UTC netbsd-8 commitmail json YAML

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

sys/dev/hpc/hpcapm.c: revision 1.21

spl leak, found by Mootja

(martin)

2019-10-24 15:48:37 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #1411):

sys/net/if_vlan.c: revision 1.147

vlan: get rid of unnecessary if_ipackets++ in vlan_input

It's done by if_input() below now.
Pointed out by msaitoh@

(martin)

2019-10-21 17:03:01 UTC netbsd-8 commitmail json YAML

2019-10-21 17:01:57 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1410):

sys/fs/ntfs/ntfs_vfsops.c: revision 1.108
sys/fs/ntfs/ntfs_subr.c: revision 1.62

It is not possible to call vflush() from xxx_mount().
Replace with a vnode iterator and use vrecycle().

-

When the MFT record size is lower than the cluster size we have
to read consecutive clusters to fill the MFT record.
Should fix PR kern/54598: mount ntfs panic

(martin)

2019-10-21 16:57:40 UTC netbsd-8 commitmail json YAML

Pull up the following revisions, requested by joerg in ticket #1409:

external/bsd/pkg_install/dist/add/perform.c    up to 1.6
external/bsd/pkg_install/dist/add/pkg_add.1    up to 1.3
external/bsd/pkg_install/dist/admin/audit.c    up to 1.3
external/bsd/pkg_install/dist/admin/main.c      up to 1.4
external/bsd/pkg_install/dist/admin/pkg_admin.1 up to 1.5
external/bsd/pkg_install/dist/create/util.c    up to 1.2
external/bsd/pkg_install/dist/delete/pkg_delete.c up to 1.3
external/bsd/pkg_install/dist/info/main.c      up to 1.3
external/bsd/pkg_install/dist/lib/lib.h        up to 1.9
external/bsd/pkg_install/dist/lib/license.c    up to 1.9
external/bsd/pkg_install/dist/lib/parse-config.c up to 1.3
external/bsd/pkg_install/dist/lib/pkcs7.c      up to 1.4
external/bsd/pkg_install/dist/lib/pkg_io.c      up to 1.3
external/bsd/pkg_install/dist/lib/version.h    up to 1.15
external/bsd/pkg_install/dist/lib/vulnerabilities-file.c up to 1.3

Merge pkg_install-20191008 from pkgsrc.

(martin)

2019-10-17 18:41:27 UTC netbsd-8 commitmail json YAML

2019-10-17 18:39:42 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe.c: revision 1.214

Apply FreeBSD r353599:
> ixgbe: Disable EEE for backplane X550EM_X
>
> From Zach:
> Intel documentation indicates that backplane X550EM_X KR devices do not
> support Energy Efficient Ethernet. Prior to this patch, X552 devices
> (device ID 0x15AB) will crash the system when transitioning EEE state
> via sysctl.
>
> Signed-off-by: Zach Vargas <zvargas@xes-inc.com>
>
> PR: 240320
> Submitted by: Zach Vargas <zvargas@xes-inc.com>
> Reviewed by: erj@
> MFC after: 3 days
> Differential Revision: https://reviews.freebsd.org/D21673

(martin)

2019-10-17 18:36:44 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_et.c 1.27 via patch

Fix a bug that multicast address filter doesn't work correctly.

(martin)

2019-10-17 18:27:36 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_vgereg.h: revision 1.5
sys/dev/pci/if_vge.c: revision 1.75

Copy vge_clrwol() from FreeBSD and call it in vge_attach() to recover from
powerdown mode. Fixes PR kern/41525 reported by Aran Clauson.

(martin)

2019-10-15 04:24:16 UTC netbsd-8 commitmail json YAML

2019-10-14 19:20:14 UTC netbsd-8 commitmail json YAML

2019-10-14 17:43:58 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1405):

sys/kern/vnode_if.sh: revision 1.67
sys/kern/vnode_if.src: revision 1.78

As VOP_STRATEGY() usually calls itself on the file system holding "/dev"
it may deadlock on suspension of this file system.

Add fstrans type LAZY and use it for VOP_STRATEGY().

Adress PR kern/53624 (dom0 freeze on domU exit) is still there

(martin)

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

2019-10-11 18:15:39 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by uwe in ticket #1404):

external/bsd/ipf/dist/man/ipf.5: revision 1.6

Typo.

(martin)

2019-10-08 18:18:30 UTC netbsd-8 commitmail json YAML

2019-10-08 18:16:50 UTC netbsd-8 commitmail json YAML

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

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

Set MTU correctly if mtu > 1500.

(martin)

2019-10-08 18:12:44 UTC netbsd-8 commitmail json YAML

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

sys/net/if_ethersubr.c: revision 1.277

Increment if_iqdrops when dropping an oversized frame.

(martin)

2019-10-08 18:09:41 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #1401):

sys/net/if_ethersubr.c: revision 1.255

Fix two bugs in altq_etherclassify. When scanning the mbuf chain we need
to make sure that m_next is not NULL, otherwise NULL deref. After that,
we must not touch m->m_pkthdr, given that 'm' may not be the first mbuf
of the chain anymore.

Declare mtop, and add a KASSERT to make sure it has M_PKTHDR set.

(martin)

2019-10-04 11:35:44 UTC netbsd-8 commitmail json YAML

2019-10-04 11:34:18 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1400):

sys/arch/i386/stand/pxeboot/start_pxe.S: revision 1.7
sys/arch/i386/stand/pxeboot/Makefile: revision 1.28

Incrase pxeboot code size limit from 64k to 128k.  Fixes PR kern/54560.
The start_pxe.S part was suggested by mlelstv.

(martin)

2019-10-04 11:28:49 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #1399):

sys/external/bsd/ipf/netinet/fil.c: revision 1.31
sys/external/bsd/ipf/netinet/ip_fil_netbsd.c: revision 1.32
sys/external/bsd/ipf/netinet/ip_fil_netbsd.c: revision 1.33

Fix 2 bugs, reported by Edgar Fuss on tech-net@
- pfil_run_hooks() can be called recursively, so we have to
  #define FASTROUTE_RECURSION in fil.c
- ip6_if_output()/nd6_output() will free the mbuf on error, to make sure
  to set *mpp to NULL so the caller won't try to free it again.

fix double space in comment

(martin)

2019-10-04 11:26:35 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #1398):

sys/net/route.c: revision 1.222

Stop passing a large const structure by value, in order to avoid
possible kernel stack overflow; const pointer is suffice here.

Pointed out by the lgtm bot and kamil.
OK ozaki-r

XXX
pullup to netbsd-9

(martin)

2019-09-30 15:50:49 UTC netbsd-8 commitmail json YAML

2019-09-30 15:48:45 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #1396):

sys/netinet6/nd6.h: revision 1.88
sys/netinet6/nd6_nbr.c: revision 1.174
sys/netinet6/nd6.c: revision 1.264
sys/netinet/if_arp.c: revision 1.288 (patch)

Initialize DAD components properly

The original code initialized each component in non-init functions such as
arp_dad_start and nd6_dad_find, conditionally based on a global flag for each.
However, it was racy because the flag and the code around it were not
protected by a lock and could cause a kernel panic at worst.

Fix the issue by initializing the components in bootup as usual.

(martin)

2019-09-28 07:48:30 UTC netbsd-8 commitmail json YAML

2019-09-28 07:47:07 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by plunky in ticket #1395):

sys/netbt/hci_event.c: revision 1.26
sys/netbt/hci.h: revision 1.46

When encrypted connections are configured, verify that the encryption
key length has a minimum size when the adaptor supports that.

This addresses the 'Key Negotiation of Bluetooth' attack, CVE-2019-9506
https://www.bluetooth.com/security/statement-key-negotiation-of-bluetooth/

(martin)

2019-09-28 07:45:25 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #1394):

external/mit/expat/lib/libexpat/Makefile: revision 1.3
external/mit/expat/lib/libexpat/Makefile: revision 1.4

Now that expat_config.h uses a header that is OS-specific, using the HOST_CC
breaks for some setups which lack it (netbsd<8, possibly other things).

Use the compiler targetting netbsd that uses netbsd headers to figure out
PACKAGE_VERSION to avoid this problem.

Unless we add --sysroot, the netbsd src tree headers won't be used.
Do so, so we don't rely on the build machine to have <endian.h> for
this macro check.

Using ${CPPFLAGS} rather than my own encoding of --sysroot, since it
already includes it.

Tested by agc, thanks.

(martin)

2019-09-27 09:49:45 UTC netbsd-8 commitmail json YAML

2019-09-27 09:48:23 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nat in ticket #1393):

usr.sbin/bta2dpd/bta2dpd/sbc_encode.c: revision 1.10

Fix off by one in sbc encoder.  Test mode transmission and reception
works again.

XXX pullup -8 and -9.

(martin)

2019-09-27 09:40:08 UTC netbsd-8 commitmail json YAML

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

sys/arch/i386/stand/efiboot/conf.c: revision 1.3
sys/arch/i386/stand/efiboot/devopen.h: revision 1.5
sys/arch/i386/stand/efiboot/devopen.c: revision 1.8
sys/arch/i386/stand/efiboot/boot.c: revision 1.17
sys/arch/i386/stand/efiboot/dev_net.c: revision 1.3

x86 efiboot: pass a filename to BOOTP and parse a DHCP server provided filename.

(martin)

2019-09-27 09:38:07 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1391):

sys/arch/i386/stand/efiboot/bootia32/multiboot32.S: revision 1.2

Fix multiboot32 argument usage

(martin)

2019-09-26 18:25:17 UTC netbsd-8 commitmail json YAML

2019-09-26 18:23:13 UTC netbsd-8 commitmail json YAML

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

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

nvme(4): Don't attach the device, if namespace not found.

(martin)

2019-09-26 18:19:27 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe_type.h 1.42-1.43
sys/dev/pci/ixgbe/ixgbe.c 1.209-1.213 via patch
sys/dev/pci/ixgbe/ixv.c 1.131-1.138 via patch
sys/dev/pci/ixgbe/ixgbe_vf.c 1.19-1.22
sys/dev/pci/ixgbe/ixgbe_vf.h 1.14
sys/dev/pci/ixgbe/ixgbe.h 1.57-1.58 via patch
share/man/man4/ixv.4 1.5 via patch

- Fix a bug that MBSDC (Bad SFD Count) isn't counted on X550EM_X and
  X550EM_A. The register is for X550 and newer.
- ixv(4): Make SIOCADDMULTI returns ENOSPC and print error message
  when the Ethernet multicast address list exceeds the limit(30) and
  can't be ALLMULTI.
- ixv(4): SIOCZIFDATA clear the event counters as ixgbe.c.
- Reduce ixv(4)'s multicast table array size in ixv_set_multi from
  MAX_NUM_MULTICAST_ADDRESSES(128) to IXGBE_MAX_VF_MC(30).
- ixv(4): Add support ALLMULTI and PROMISC.
- if_flags is neither int nor short. It's unsigned short.
- Fix a bug that the multicast filter isn't correctly initialized when
  the total number of the Ethernet multicast addresses is just 128.
- Make ixv_set_multi() work correctly (especially for PROMISC) when the
  function is called from if_init().
- Remove *_set_promisc() and use *_set_multi(). And then, rename
  *_set_multi() to *_set_rxfilter().
- ixv(4): If a multicast entry has range, use ALLMULTI like others.

(martin)

2019-09-26 18:14:54 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/pcireg.h 1.147 via patch
sys/dev/pci/pci_subr.c 1.212, 1.215-1.217 via patch

- Change fast back-to-back "capable" to "enable" in pci_subr.c.
- Print Primary Discard Timer, Secondary Discard Timer, Discard
  Timer Status and Discard Timer SERR# Enable bit in pci_subr.c.
- Print some DPC register values not with %04x but with %08x because
  those are 32bit.
- Remove whitespace for consistency.
- Use macro.
- Whitespace fixes.

(martin)

2019-09-26 18:11:02 UTC netbsd-8 commitmail json YAML

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

sys/arch/sparc/include/ctlreg.h: revision 1.30
sys/dev/pci/if_xgereg.h: revision 1.3

Add missing NUL to prevent buffer overrun.

(martin)

2019-09-25 15:49:45 UTC netbsd-8 commitmail json YAML

2019-09-25 15:49:17 UTC netbsd-8 commitmail json YAML

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

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

Don't set Phase Tag bit of Completion Queue entry at nvme_poll_done().

A new completion queue entry check incorrectly determined that there was
a Completion Queue entry for a command that was not submitted.

Fix PR kern/54275, PR kern/54503, PR kern/54532.

(martin)

2019-09-24 18:28:19 UTC netbsd-8 commitmail json YAML

2019-09-24 18:27:10 UTC netbsd-8 commitmail json YAML

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

sys/net/if.c 1.461
sys/net/if.h 1.277
sys/net/if_gif.c 1.149
sys/net/if_gif.h 1.33
sys/net/if_ipsec.c 1.19,1.20,1.24
sys/net/if_ipsec.h 1.5
sys/net/if_l2tp.c 1.33,1.36-1.39
sys/net/if_l2tp.h 1.7,1.8
sys/net/route.c 1.220,1.221
sys/net/route.h 1.125
sys/netinet/in_gif.c 1.95
sys/netinet/in_l2tp.c 1.17
sys/netinet/ip_input.c 1.391,1.392
sys/netinet/wqinput.c 1.6
sys/netinet6/in6_gif.c 1.94
sys/netinet6/in6_l2tp.c 1.18
sys/netinet6/ip6_forward.c 1.97
sys/netinet6/ip6_input.c 1.210,1.211
sys/netipsec/ipsec_output.c 1.82,1.83 (patched)
sys/netipsec/ipsecif.c 1.12,1.13,1.15,1.17 (patched)
sys/netipsec/key.c 1.259,1.260

ipsecif(4) support input drop packet counter.

ipsecif(4) should not increment drop counter by errors not related to if_snd. Pointed out by ozaki-r@n.o, thanks.
Remove unnecessary addresses in PF_KEY message.

MOBIKE Extensions for PF_KEY draft-schilcher-mobike-pfkey-extension-01.txt says
====================
5.  SPD Update
// snip
  SADB_X_SPDADD:
// snip
      sadb_x_ipsecrequest_reqid:
        An ID for that SA can be passed to the kernel in the
        sadb_x_ipsecrequest_reqid field.
      If tunnel mode is specified, the sadb_x_ipsecrequest structure is
      followed by two sockaddr structures that define the tunnel
      endpoint addresses.  In the case that transport mode is used, no
      additional addresses are specified.
====================
see: <a  rel="nofollow" href="https://tools.ietf.org/html/draft-schilcher-mobike-pfkey-extension-01">https://tools.ietf.org/html/draft-schilcher-mobike-pfkey-extension-01</a>

ipsecif(4) uses transport mode, so it should not add addresses.

ipsecif(4) supports multiple peers in the same NAPT.

E.g. ipsec0 connects between NetBSD_A and NetBSD_B, ipsec1 connects
NetBSD_A and NetBSD_C at the following figure.
                                        +----------+
                                  +----| NetBSD_B |
+----------+          +------+  |    +----------+
| NetBSD_A |--- ... ---| NAPT |---+
+----------+          +------+  |    +----------+
                                  +----| NetBSD_C |
                                        +----------+

Add ATF later.

l2tp(4): fix output bytes counter. Pointed by k-goda@IIJ, thanks.
remove a variable which is no longer used.

l2tp: initialize mowner variables for MBUFTRACE

Avoid having a rtcache directly in a percpu storage
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users.  If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.
A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.

Using rtcache, i.e., packet processing, typically involves sleepable operations
such as rwlock so we must avoid dereferencing a rtcache that is directly stored
in a percpu storage during packet processing.  Address this situation by having
just a pointer to a rtcache in a percpu storage instead.

Reviewed by knakahara@ and yamaguchi@

wqinput: avoid having struct wqinput_worklist directly in a percpu storage
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users.  If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.

A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.

Input handlers of wqinput normally involves sleepable operations so we must
avoid dereferencing a percpu data (struct wqinput_worklist) after executing
an input handler.  Address this situation by having just a pointer to the data
in a percpu storage instead.

Reviewed by knakahara@ and yamaguchi@

Add missing #include <sys/kmem.h>

Divide Tx context of l2tp(4) to improve performance.
It seems l2tp(4) call path is too long for instruction cache. So, dividing
l2tp(4) Tx context improves CPU use efficiency.

After this commit, l2tp(4) throughput gains 10% on my machine(Atom C3000).

Apply some missing changes lost on the previous commit

Avoid having a rtcache directly in a percpu storage for tunnel protocols.
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users.  If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.
A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.

Using rtcache, i.e., packet processing, typically involves sleepable operations
such as rwlock so we must avoid dereferencing a rtcache that is directly stored
in a percpu storage during packet processing.  Address this situation by having
just a pointer to a rtcache in a percpu storage instead.

Reviewed by ozaki-r@ and yamaguchi@

l2tp(4): avoid having struct ifqueue directly in a percpu storage.

percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users.  If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.

A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.

Tx processing of l2tp(4) uses normally involves sleepable operations so we
must avoid dereferencing a percpu data (struct ifqueue) after executing Tx
processing.  Address this situation by having just a pointer to the data in
a percpu storage instead.

Reviewed by ozaki-r@ and yamaguchi@

(martin)

2019-09-23 14:37:34 UTC netbsd-8 commitmail json YAML

2019-09-23 14:36:17 UTC netbsd-8 commitmail json YAML

Apply patch, requested by manu in ticket #1380: add EFI specific guids
here locally for XEN (solved differently in HEAD by including more efi
support code in XEN kernels for PVHVM).

(martin)

2019-09-23 13:51:12 UTC netbsd-8 commitmail json YAML

Backout previous try to fix ticket #1380, this causes more build fallout,
will be fixed differently.

(martin)

2019-09-23 08:17:24 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #1383):

sys/netinet6/nd6_nbr.c: revision 1.173

nd6: remove extra pserialize_read_exit

(martin)

2019-09-23 06:57:53 UTC netbsd-8 commitmail json YAML

2019-09-23 06:56:57 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #1384):

external/mit/expat/lib/libexpat/expat_config.h: revision 1.7

Actually define BYTEORDER since it is used.

(martin)

2019-09-23 06:52:22 UTC netbsd-8 commitmail json YAML

Cherry pick a small part of rev1.178 to get efi UUIDs for ticket #1380.

(martin)

2019-09-21 18:38:19 UTC netbsd-8 commitmail json YAML

Ammend ticket #1380 for additional changes

(martin)

2019-09-21 18:36:53 UTC netbsd-8 commitmail json YAML

Apply patch, requested by manu in ticket #1380: add definitions to query
the ACI RSDP table.

(martin)

2019-09-18 17:32:34 UTC netbsd-8 commitmail json YAML

2019-09-18 17:30:06 UTC netbsd-8 commitmail json YAML

src/distrib/sets/lists/comp/md.amd64@1.243.4.2 / diff / nxr@1.243.4.2
src/distrib/sets/lists/comp/md.i386@1.167.4.2 / diff / nxr@1.167.4.2
src/share/man/man8/man8.x86/boot.8@1.11.4.4 / diff / nxr@1.11.4.4
src/sys/arch/i386/include/Makefile@1.44.10.1 / diff / nxr@1.44.10.1
src/sys/arch/i386/include/multiboot2.h@1.1.4.2 / diff / nxr@1.1.4.2
src/sys/arch/i386/stand/boot/Makefile.boot@1.70.6.1 / diff / nxr@1.70.6.1
src/sys/arch/i386/stand/dosboot/Makefile@1.30.10.1 / diff / nxr@1.30.10.1
src/sys/arch/i386/stand/efiboot/Makefile.efiboot@1.9.2.5 / diff / nxr@1.9.2.5
src/sys/arch/i386/stand/efiboot/boot.c@1.5.2.8 / diff / nxr@1.5.2.8
src/sys/arch/i386/stand/efiboot/bootia32/Makefile@1.2.10.1 / diff / nxr@1.2.10.1
src/sys/arch/i386/stand/efiboot/bootia32/efibootia32.c@1.3.2.2 / diff / nxr@1.3.2.2
src/sys/arch/i386/stand/efiboot/bootia32/multiboot32.S@1.1.4.2 / diff / nxr@1.1.4.2
src/sys/arch/i386/stand/efiboot/bootx64/Makefile@1.1.12.1 / diff / nxr@1.1.12.1
src/sys/arch/i386/stand/efiboot/bootx64/efibootx64.c@1.3.2.2 / diff / nxr@1.3.2.2
src/sys/arch/i386/stand/efiboot/bootx64/multiboot64.S@1.1.4.2 / diff / nxr@1.1.4.2
src/sys/arch/i386/stand/efiboot/efiboot.c@1.4.10.5 / diff / nxr@1.4.10.5
src/sys/arch/i386/stand/efiboot/efiboot.h@1.5.2.5 / diff / nxr@1.5.2.5
src/sys/arch/i386/stand/efiboot/eficons.c@1.4.2.3 / diff / nxr@1.4.2.3
src/sys/arch/i386/stand/efiboot/efimemory.c@1.4.10.3 / diff / nxr@1.4.10.3
src/sys/arch/i386/stand/lib/Makefile@1.44.10.2 / diff / nxr@1.44.10.2
      :
(more 12 files)
Pull up following revision(s) [adapted, via patch]
(requested by manu in ticket #1382):

sys/arch/i386/include/multiboot2.h: revision 1.1
sys/arch/i386/stand/lib/exec.c: revision 1.74
sys/arch/i386/stand/efiboot/efiboot.c: revision 1.11
sys/arch/i386/stand/efiboot/bootia32/multiboot32.S: revision 1.1
sys/arch/i386/stand/lib/biosdisk.c: revision 1.52
sys/arch/i386/stand/efiboot/bootx64/efibootx64.c: revision 1.5
distrib/sets/lists/comp/md.amd64: revision 1.273
sys/arch/i386/stand/efiboot/eficons.c: revision 1.7
sys/arch/i386/stand/efiboot/bootia32/efibootia32.c: revision 1.5
distrib/sets/lists/comp/md.i386: revision 1.191
sys/arch/i386/stand/lib/libi386.h: revision 1.45
sys/arch/i386/stand/lib/bootinfo_memmap.c: revision 1.6
sys/arch/i386/stand/lib/pread.c: revision 1.8
sys/arch/i386/stand/efiboot/efiboot.h: revision 1.10
sys/arch/i386/stand/efiboot/bootia32/Makefile: revision 1.3
sys/arch/i386/stand/lib/Makefile: revision 1.47
sys/arch/i386/stand/efiboot/bootx64/Makefile: revision 1.2
sys/arch/i386/stand/lib/multiboot.S: revision 1.3
sys/arch/i386/stand/efiboot/bootx64/multiboot64.S: revision 1.1
sys/arch/i386/stand/efiboot/efimemory.c: revision 1.9
sys/arch/i386/stand/efiboot/boot.c: revision 1.16
sys/arch/i386/include/Makefile: revision 1.50
sys/arch/i386/stand/efiboot/Makefile.efiboot: revision 1.16
share/man/man8/man8.x86/boot.8: revision 1.20
sys/arch/i386/stand/boot/Makefile.boot: revision 1.73
sys/arch/i386/stand/pxeboot/Makefile: revision 1.26
sys/arch/i386/stand/lib/exec_multiboot1.c: revision 1.1
sys/arch/i386/stand/netboot/Makefile.netboot: revision 1.11
sys/arch/i386/stand/lib/exec_multiboot2.c: revision 1.1
sys/arch/i386/stand/lib/biosdisk.h: revision 1.12
sys/arch/i386/stand/lib/exec_multiboot2.c: revision 1.2
sys/arch/i386/stand/dosboot/Makefile: revision 1.32
sys/external/bsd/gnu-efi/dist/inc/efiapi.h (apply patch)

Add multiboot 2 support to x86 bootloaders

multiboot 2 is required to boot Xen on an EFI system.

This also require a kernel patch for properly discovering
the ACPI RSDP, which is available after 20190912, in
src/sys/arch/x86/acpi/acpi_machdep.c 1.26-1.28

There are a few missing bit in this multiboot 2 implementation
(which are unused by Xen):
- Header tags Address, Freambuffer, and Relocatable are ignored
- Tags APM and Network are not provided
- Tags ACPI old and ACP new are only provided for ACPI boot
- Tag boot device does not provides the subpart (BSD disklabel partition)

Notes:
- multiboot2 is disabled in dosboot, otherwise the binary
  gets too big and build fails.
- in src/sys/arch/i386/stand/efiboot, consinit() is renamed
  as efi_consinit() to avoid prototype conflicts in src/sys/sys/systm.h

Remove debug define.

It remained there unseen because it was misspelled!

Remove obsoeolete BUGS note that UEFI bootloader does not support multiboot

Add new multiboot2.h header.

(martin)

2019-09-18 17:22:32 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1381):

share/man/man8/man8.x86/boot.8: revision 1.18
sys/kern/kern_subr.c: revision 1.227

Accept root device specification as NAME=label
Document that bootdev option accepts device specification as NAME=label

(martin)

2019-09-18 16:30:33 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1380):

sys/arch/x86/acpi/acpi_machdep.c: revision 1.27,1.28 (patch)

Attempt to obtain ACPI RSDP from the hypervisor for Xen PV
There are three possible way of obtaining the ACPI RSDP

- From Extended BIOS Data Area (EBDA) when kernel or Xen was booted from
  BIOS bootstrap
- From EFI SystemTable when kernel is booted from EFI bootstrap
- When Xen is booted from EFI bootstrap, EBDA is not mapped, and EFI
  SystemTable is not passed to the kernel. The only way to go is to
  obtain ACPI RSDP trhough an hypercall.

Note: EFI bootstrap support for booting Xen has not yet been committed.

Cast physical addresses via uintptr_t to ACPI_PHYSICAL_ADDRESS to deal
with all size variants of the types used here in different builds.

(martin)

2019-09-17 18:59:49 UTC netbsd-8 commitmail json YAML

2019-09-17 18:57:23 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #1378):

sys/netinet6/ip6_input.c: revision 1.209 (patch)
sys/netinet/ip_input.c: revision 1.390 (patch)

Packet filters can return an mbuf chain with fragmented headers, so
m_pullup() it if needed and remove the KASSERT()s.

(martin)

2019-09-17 18:53:52 UTC netbsd-8 commitmail json YAML

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

sys/dev/usb/xhci.c: revision 1.113
sys/dev/usb/xhci.c: revision 1.109

match xhci version 3.10.  allows properly finding all the USB
busses on new ryzen 3 based systems.

unfortunately, the USB busses are still non-functional.

-

fix ryzen usb issue: we set TD size to '1', where has xhci spec 4.11.2.4
says final TRB for a TD should have this set to '0'.  since we currently
only generate sinel TRB TDs, set this to 0.

XXX: pullup-all
from sc.dying

(martin)

2019-09-17 18:50:07 UTC netbsd-8 commitmail json YAML

src/doc/3RDPARTY@1.1444.2.22 / diff / nxr@1.1444.2.22
src/external/mit/expat/dist/CMake.README@1.1.1.3.4.2 / diff / nxr@1.1.1.3.4.2
src/external/mit/expat/dist/CMakeLists.txt@1.1.1.3.4.2 / diff / nxr@1.1.1.3.4.2
src/external/mit/expat/dist/Changes@1.1.1.4.4.2 / diff / nxr@1.1.1.4.4.2
src/external/mit/expat/dist/ConfigureChecks.cmake@1.1.1.1.32.1 / diff / nxr@1.1.1.1.32.1
src/external/mit/expat/dist/MANIFEST deleted
src/external/mit/expat/dist/Makefile.am@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
src/external/mit/expat/dist/Makefile.in@1.1.1.4.4.2 / diff / nxr@1.1.1.4.4.2
src/external/mit/expat/dist/README deleted
src/external/mit/expat/dist/README.md@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
src/external/mit/expat/dist/acinclude.m4@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
src/external/mit/expat/dist/aclocal.m4@1.1.1.3.4.1 / diff / nxr@1.1.1.3.4.1
src/external/mit/expat/dist/cmake/expat-config.cmake.in@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
src/external/mit/expat/dist/cmake/mingw-toolchain.cmake@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
src/external/mit/expat/dist/configure@1.1.1.4.4.2 / diff / nxr@1.1.1.4.4.2
src/external/mit/expat/dist/configure.ac@1.1.1.2.4.2 / diff / nxr@1.1.1.2.4.2
src/external/mit/expat/dist/conftools/ac_c_bigendian_cross.m4 deleted
src/external/mit/expat/dist/conftools/ar-lib@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
src/external/mit/expat/dist/conftools/ax-append-compile-flags.m4@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
src/external/mit/expat/dist/conftools/ax-append-flag.m4@1.1.1.1.2.2 / diff / nxr@1.1.1.1.2.2
      :
(more 93 files)
Sync external/mit/expat to current and pull up the following revisions,
requested by maya in ticket #1376:

external/mit/expat/dist/conftools/test-driver up to 1.1.1.1
external/mit/expat/dist/conftools/ar-lib up to 1.1.1.1
external/mit/expat/dist/conftools/ax-append-compile-flags.m4 up to 1.1.1.1
external/mit/expat/dist/conftools/ax-append-flag.m4 up to 1.1.1.1
external/mit/expat/dist/conftools/ax-append-link-flags.m4 up to 1.1.1.1
external/mit/expat/dist/conftools/ax-check-compile-flag.m4 up to 1.1.1.1
external/mit/expat/dist/conftools/ax-check-link-flag.m4 up to 1.1.1.1
external/mit/expat/dist/conftools/ax-require-defined.m4 up to 1.1.1.1
external/mit/expat/dist/conftools/compile up to 1.1.1.1
external/mit/expat/dist/conftools/depcomp up to 1.1.1.1
external/mit/expat/dist/conftools/missing up to 1.1.1.1
external/mit/expat/dist/conftools/expatcfg-compiler-supports-visibility.m4 up to 1.1.1.1
external/mit/expat/dist/doc/Makefile.am up to 1.1.1.1
external/mit/expat/dist/doc/Makefile.in up to 1.1.1.1
external/mit/expat/dist/examples/Makefile.am up to 1.1.1.1
external/mit/expat/dist/examples/Makefile.in up to 1.1.1.1
external/mit/expat/dist/lib/Makefile.am up to 1.1.1.1
external/mit/expat/dist/lib/Makefile.in up to 1.1.1.1
external/mit/expat/dist/tests/benchmark/Makefile.am up to 1.1.1.1
external/mit/expat/dist/tests/benchmark/Makefile.in up to 1.1.1.1
external/mit/expat/dist/tests/Makefile.am up to 1.1.1.1
external/mit/expat/dist/tests/Makefile.in up to 1.1.1.1
external/mit/expat/dist/tests/structdata.c up to 1.1.1.1
external/mit/expat/dist/tests/structdata.h up to 1.1.1.1
external/mit/expat/dist/tests/udiffer.py up to 1.1.1.1
external/mit/expat/dist/tests/xmltest.log.expected up to 1.1.1.1
external/mit/expat/dist/win32/build_expat_iss.bat up to 1.1.1.1
external/mit/expat/dist/xmlwf/Makefile.am up to 1.1.1.1
external/mit/expat/dist/xmlwf/Makefile.in up to 1.1.1.1
external/mit/expat/dist/xmlwf/xmlwf_helpgen.py up to 1.1.1.1
external/mit/expat/dist/xmlwf/xmlwf_helpgen.sh up to 1.1.1.1
external/mit/expat/dist/Makefile.am up to 1.1.1.1
external/mit/expat/dist/README.md up to 1.1.1.1
external/mit/expat/dist/cmake/expat-config.cmake.in up to 1.1.1.1
external/mit/expat/dist/cmake/mingw-toolchain.cmake up to 1.1.1.1
external/mit/expat/dist/acinclude.m4 up to 1.1.1.1
external/mit/expat/dist/fix-xmltest-log.sh up to 1.1.1.1
external/mit/expat/dist/test-driver-wrapper.sh up to 1.1.1.1
external/mit/expat/dist/MANIFEST delete
external/mit/expat/dist/README delete
external/mit/expat/dist/conftools/ac_c_bigendian_cross.m4 delete
external/mit/expat/dist/conftools/mkinstalldirs delete
external/mit/expat/dist/xmlwf/xmlurl.h delete
external/mit/expat/dist/xmlwf/xmlwin32url.cxx delete
external/mit/expat/dist/CMake.README up to 1.1.1.5
external/mit/expat/dist/CMakeLists.txt up to 1.1.1.5
external/mit/expat/dist/Changes up to 1.1.1.6
external/mit/expat/dist/ConfigureChecks.cmake up to 1.1.1.2
external/mit/expat/dist/Makefile.in up to 1.1.1.6
external/mit/expat/dist/aclocal.m4 up to 1.1.1.4
external/mit/expat/dist/configure up to 1.1.1.6
external/mit/expat/dist/configure.ac up to 1.1.1.4
external/mit/expat/dist/expat_config.h.cmake up to 1.1.1.2
external/mit/expat/dist/expat_config.h.in up to 1.1.1.6
external/mit/expat/dist/conftools/config.guess up to 1.4
external/mit/expat/dist/conftools/config.sub up to 1.4
external/mit/expat/dist/conftools/get-version.sh up to 1.1.1.2
external/mit/expat/dist/conftools/install-sh up to 1.1.1.5
external/mit/expat/dist/conftools/ltmain.sh up to 1.1.1.5
external/mit/expat/dist/doc/reference.html up to 1.1.1.5
external/mit/expat/dist/doc/xmlwf.1 up to 1.1.1.4
external/mit/expat/dist/doc/xmlwf.xml up to 1.1.1.2
external/mit/expat/dist/examples/elements.c up to 1.1.1.5
external/mit/expat/dist/examples/outline.c up to 1.1.1.4
external/mit/expat/dist/lib/ascii.h up to 1.1.1.2
external/mit/expat/dist/lib/asciitab.h up to 1.1.1.2
external/mit/expat/dist/lib/expat.h up to 1.1.1.6
external/mit/expat/dist/lib/expat_external.h up to 1.1.1.4
external/mit/expat/dist/lib/iasciitab.h up to 1.1.1.2
external/mit/expat/dist/lib/internal.h up to 1.1.1.3
external/mit/expat/dist/lib/latin1tab.h up to 1.1.1.2
external/mit/expat/dist/lib/libexpat.def up to 1.1.1.3
external/mit/expat/dist/lib/libexpatw.def up to 1.1.1.3
external/mit/expat/dist/lib/nametab.h up to 1.1.1.2
external/mit/expat/dist/lib/siphash.h up to 1.1.1.2
external/mit/expat/dist/lib/utf8tab.h up to 1.1.1.2
external/mit/expat/dist/lib/winconfig.h up to 1.1.1.3
external/mit/expat/dist/lib/xmlparse.c up to 1.8
external/mit/expat/dist/lib/xmlrole.c up to 1.1.1.5
external/mit/expat/dist/lib/xmlrole.h up to 1.1.1.2
external/mit/expat/dist/lib/xmltok.c up to 1.5
external/mit/expat/dist/lib/xmltok.h up to 1.3
external/mit/expat/dist/lib/xmltok_impl.c up to 1.6
external/mit/expat/dist/lib/xmltok_impl.h up to 1.1.1.2
external/mit/expat/dist/lib/xmltok_ns.c up to 1.1.1.2
external/mit/expat/dist/tests/chardata.c up to 1.1.1.4
external/mit/expat/dist/tests/chardata.h up to 1.1.1.2
external/mit/expat/dist/tests/memcheck.c up to 1.1.1.2
external/mit/expat/dist/tests/memcheck.h up to 1.1.1.2
external/mit/expat/dist/tests/minicheck.c up to 1.1.1.4
external/mit/expat/dist/tests/minicheck.h up to 1.1.1.5
external/mit/expat/dist/tests/runtests.c up to 1.1.1.5
external/mit/expat/dist/tests/runtestspp.cpp up to 1.1.1.2
external/mit/expat/dist/tests/xmltest.sh up to 1.4
external/mit/expat/dist/tests/benchmark/benchmark.c up to 1.1.1.3
external/mit/expat/dist/win32/README.txt up to 1.1.1.5
external/mit/expat/dist/win32/expat.iss up to 1.1.1.6
external/mit/expat/dist/xmlwf/codepage.c up to 1.1.1.4
external/mit/expat/dist/xmlwf/codepage.h up to 1.1.1.2
external/mit/expat/dist/xmlwf/ct.c up to 1.1.1.2
external/mit/expat/dist/xmlwf/filemap.h up to 1.1.1.3
external/mit/expat/dist/xmlwf/readfilemap.c up to 1.1.1.5
external/mit/expat/dist/xmlwf/unixfilemap.c up to 1.1.1.4
external/mit/expat/dist/xmlwf/win32filemap.c up to 1.1.1.3
external/mit/expat/dist/xmlwf/xmlfile.c up to 1.1.1.4
external/mit/expat/dist/xmlwf/xmlfile.h up to 1.1.1.2
external/mit/expat/dist/xmlwf/xmlmime.c up to 1.1.1.2
external/mit/expat/dist/xmlwf/xmlmime.h        up to 1.1.1.2
external/mit/expat/dist/xmlwf/xmltchar.h        up to 1.1.1.2
external/mit/expat/dist/xmlwf/xmlwf.c          up to 1.1.1.6
external/mit/expat/lib/libexpat/expat_config.h  up to 1.6
doc/3RDPARTY 1.1649 (patch)
external/mit/xorg/tools/fc-cache/Makefile 1.18 (patch)

Update expat to 2.2.8.
Define XML_POOR_ENTROPY for the tool version of fc-cache
(we can not assume anything about the build host).

(martin)

2019-09-17 18:33:38 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #1375):

common/lib/libc/arch/arm/atomic/atomic_xor_64.S: revision 1.4
common/lib/libc/arch/arm/atomic/atomic_or_64.S: revision 1.11

__sync_{,x}or_and_fetch_8 should return new value... make it so.

(martin)

2019-09-17 18:26:53 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1373):

sys/arch/i386/stand/boot/boot2.c: revision 1.72 (patch)
sys/arch/i386/stand/lib/biosdisk.c: revision 1.50
sys/arch/i386/stand/lib/biosdisk.c: revision 1.51
sys/arch/i386/stand/efiboot/devopen.c: revision 1.6
sys/arch/i386/stand/efiboot/devopen.h: revision 1.4
sys/arch/i386/stand/efiboot/devopen.c: revision 1.7
sys/arch/i386/stand/efiboot/efidisk.c: revision 1.8
share/man/man8/man8.x86/boot.8: revision 1.16
share/man/man8/man8.x86/boot.8: revision 1.17
sys/arch/i386/stand/lib/Makefile: revision 1.46
sys/arch/i386/stand/boot/devopen.h: revision 1.5
sys/arch/i386/stand/boot/devopen.c: revision 1.9
sys/arch/i386/stand/efiboot/boot.c: revision 1.14 (patch)
sys/arch/i386/stand/efiboot/boot.c: revision 1.15
sys/arch/i386/stand/lib/biosdisk.h: revision 1.11
sys/arch/i386/stand/boot/boot2.c: revision 1.71

Add GPT and RAIDframe support to bootloaders

Classic BIOS (/boot) and EFI bootloaders can now name devices
using the NAME=gpt_label syntax, or using raid partitions. Here
are examples:

boot NAME=root:/netbsd
boot raid0e:/netbsd

Correct the memset(3)'s third argument in i386 biosdisk.c

The size of allocation is the size of the structure biosdisk, not the size
of a pointer.

Document new GPT and RAIDframe capacity of bootstrap code
While there, also document EFI setup and some bugs

Typo fixes, 'file system'; new sentence, new line; expand IA-32.

Bump date for previous.

Make sure devices names are copied including last byte
Fix from M. Levinson.

(martin)

2019-09-10 16:04:59 UTC netbsd-8 commitmail json YAML

2019-09-10 16:03:53 UTC netbsd-8 commitmail json YAML

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

sys/netipsec/key.c: revision 1.266

Fix info leaks.

(martin)

2019-09-10 16:02:22 UTC netbsd-8 commitmail json YAML

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

sys/dev/sysmon/sysmon_power.c: revision 1.61

Fix info leak, not all of 'pev' is initialized.

(martin)

2019-09-10 16:00:19 UTC netbsd-8 commitmail json YAML

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

sys/miscfs/procfs/procfs_linux.c: revision 1.76

have procfs_do_pid_stat() pass the proc's map to get_proc_size_info(),
rather than having the latter look up the map again and not check
for an error.

(martin)

2019-09-06 13:48:43 UTC netbsd-8 commitmail json YAML

2019-09-06 13:46:49 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #1368):

lib/libc/nameser/ns_name.c: revision 1.12

Since we advance cp after the bounds check, we need to test for bounds
again before using it. Discovered via fuzzing, reported by enh at google, via:

    https://android-review.googlesource.com/c/platform/bionic/+/1093130

(martin)

2019-09-06 13:44:36 UTC netbsd-8 commitmail json YAML

Apply patch, requested by msaitoh in ticket #1367:

fix mistake in previous.

(martin)

2019-09-05 09:07:43 UTC netbsd-8 commitmail json YAML

2019-09-05 09:06:08 UTC netbsd-8 commitmail json YAML

Apply patch, requested by msaitoh in ticket #1367, to pull up the following
revisions:

sys/dev/pci/ixgbe/ixgbe_x550.c                  1.16
sys/dev/pci/ixgbe/ixgbe.c                      1.180,1.203-1.204,
1.207-1.208 via patch
sys/dev/pci/ixgbe/ix_txrx.c                    1.55
sys/dev/pci/ixgbe/ixgbe_netbsd.c                1.10
sys/dev/pci/ixgbe/ixgbe_common.c                1.25
sys/dev/pci/ixgbe/ixv.c                        1.129-1.130

- X550EM supports QSFP, so check ixgbe_media_type_fiber_qsfp too.
- An interrupt might not arrive when a module is inserted. When an link
  status change interrupt occurred and the driver still regard SFP as
  unplugged, issue the module softint before issuing LSC softint.
- Add 10000BASE-LX media if it's 1000BASE-BX.
- printf -> device_printf
- Avoid undefined behavior of VLAN filter setting.
- Simplify code.
- Fix typo in unused code.
- Fix typo in comment. Found by Wataru Ashihara.

(martin)

2019-09-04 08:33:39 UTC netbsd-8 commitmail json YAML

The gcc on this branch is not smart enough and the build breaks due to
a bogus "may be used uninitialized" warning. Initialize to zero with
XXX gcc comment (suggested by msaitoh).

(martin)

2019-09-03 12:21:15 UTC netbsd-8 commitmail json YAML

2019-09-03 12:08:22 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1365):

sys/crypto/nist_hash_drbg/nist_hash_drbg.c: revision 1.1
sys/crypto/nist_hash_drbg/nist_hash_drbg.h: revision 1.1
sys/rump/kern/lib/libcrypto/Makefile: revision 1.5
sys/crypto/nist_hash_drbg/files.nist_hash_drbg: revision 1.1
sys/rump/librump/rumpkern/Makefile.rumpkern: revision 1.176
sys/crypto/nist_ctr_drbg/nist_ctr_drbg_aes256.h: file removal
sys/crypto/nist_ctr_drbg/nist_ctr_drbg_config.h: file removal
sys/conf/files: revision 1.1238
sys/dev/rndpseudo.c: revision 1.38
sys/crypto/nist_ctr_drbg/nist_ctr_drbg.c: file removal
sys/sys/cprng.h: revision 1.13 - 1.15
sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h: file removal
sys/crypto/nist_ctr_drbg/nist_ctr_aes_rijndael.h: file removal
sys/crypto/nist_ctr_drbg/files.nist_ctr_drbg: file removal
sys/kern/subr_cprng.c: revision 1.31
sys/crypto/nist_ctr_drbg/nist_ctr_drbg_aes128.h: file removal

cprng.h: use static __inline for consistency with other include
headers and remove an unused function.

-

Switch from NIST CTR_DRBG with AES to NIST Hash_DRBG with SHA-256.

Benefits:
- larger seeds -- a 128-bit key alone is not enough for `128-bit security'
- better resistance to timing side channels than AES
- a better-understood security story (<a  rel="nofollow" href="https://eprint.iacr.org/2018/349">https://eprint.iacr.org/2018/349</a>)
- no loss in compliance with US government standards that nobody ever
  got fired for choosing, at least in the US-dominated western world
- no dirty endianness tricks
- self-tests

Drawbacks:
- performance hit: throughput is reduced to about 1/3 in naive measurements
  => possible to mitigate by using hardware SHA-256 instructions
  => all you really need is 32 bytes to seed a userland PRNG anyway
  => if we just used ChaCha this would go away...

(martin)

2019-09-02 17:20:47 UTC netbsd-8 commitmail json YAML

2019-09-02 17:09:44 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by sevan in tickets
#1352 - #1364):

share/man/man1/man1.x68k/tvctrl.1: revision 1.6
share/man/man1/man1.x68k/aout2hux.1: revision 1.6
share/man/man1/man1.x68k/palette.1: revision 1.7
share/man/man9/arp.9: revision 1.27
share/man/man1/man1.atari/edahdi.1: revision 1.12
share/man/man1/man1.x68k/loadkmap.1: revision 1.7
share/man/man1/man1.atari/msconfig.1: revision 1.9
share/man/man1/man1.x68k/bellctrl.1: revision 1.16
share/man/man1/man1.x68k/bellctrl.1: revision 1.17
share/man/man4/null.4: revision 1.5
share/man/man4/null.4: revision 1.6
share/man/man1/man1.x68k/loadfont.1: revision 1.10
share/man/man8/man8.next68k/boot.8: revision 1.5

Provide history.
Improve grammar and readability. Minor cosmetics.
Update arpresolve arguments

(martin)

2019-09-02 16:39:25 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by sevan in ticket #1351):

share/man/man4/man4.amiga/grf.4: revision 1.7
share/man/man4/si.4: revision 1.11
share/man/man8/man8.sparc/boot.8: revision 1.32
share/man/man5/nsswitch.conf.5: revision 1.29
share/man/man5/mixerctl.conf.5: revision 1.7
share/man/man8/man8.vax/boot.8: revision 1.14
share/man/man4/man4.vax/dn.4: revision 1.12
share/man/man8/man8.vax/drtest.8: revision 1.16
share/man/man8/sysinst.8: revision 1.6
share/man/man4/ip.4: revision 1.37
share/man/man5/boot.cfg.5: revision 1.28
share/man/man1/cd.1: revision 1.10
share/man/man4/usb.4: revision 1.106
share/man/man4/man4.vax/ix.4: revision 1.17
share/man/man7/security.7: revision 1.15
share/man/man7/hier.7: revision 1.123
share/man/man8/afterboot.8: revision 1.58
share/man/man1/man1.x68k/bellctrl.1: revision 1.14
share/man/man4/se.4: revision 1.6
share/man/man4/utoppy.4: revision 1.7
share/man/man4/midi.4: revision 1.32
share/man/man4/cfb.4: revision 1.5
share/man/man4/man4.sparc/magma.4: revision 1.12
share/man/man4/audio.4: revision 1.80
share/man/man4/isic.4: revision 1.18
share/man/man1/cd.1: revision 1.7
share/man/man4/envsys.4: revision 1.51
share/man/man1/cd.1: revision 1.8
share/man/man1/cd.1: revision 1.9
share/man/man3/fast_divide32.3: revision 1.9
share/man/man4/pci.4: revision 1.97
share/man/man5/ranlib.5: revision 1.7
share/man/man3/__arraycount.3: revision 1.7
share/man/man4/isa.4: revision 1.46
share/man/man8/man8.atari/ahdilabel.8: revision 1.14
share/man/man4/chipsfb.4: revision 1.6
share/man/man8/man8.macppc/boot.8: revision 1.8
share/man/man5/passwd.5: revision 1.33
share/man/man8/man8.macppc/ofwboot.8: revision 1.14
share/man/man8/compat_linux.8: revision 1.38
share/man/man4/iop.4: revision 1.22
share/man/man4/ddb.4: revision 1.167
share/man/man4/termios.4: revision 1.37
share/man/man8/compat_freebsd.8: revision 1.18
share/man/man5/ar.5: revision 1.9
share/man/man7/release.7: revision 1.37
share/man/man5/core.5: revision 1.31
share/man/man4/ahd.4: revision 1.6
share/man/man4/man4.vax/ad.4: revision 1.12
share/man/man4/pppoe.4: revision 1.39
share/man/man5/locale.alias.5: revision 1.3
share/man/man8/man8.amiga/installboot.8: revision 1.23
share/man/man4/etherip.4: revision 1.8
share/man/man3/queue.3: revision 1.57
share/man/man5/genassym.cf.5: revision 1.13
share/man/man4/mpls.4: revision 1.10
share/man/man1/wait.1: revision 1.5
share/man/man5/capfile.5: revision 1.4
share/man/man4/man4.alpha/ttwopci.4: revision 1.6
share/man/man4/man4.atari/rtc.4: revision 1.8
share/man/man4/gpiosim.4: revision 1.6
share/man/man3/bitstring.3: revision 1.18
share/man/man4/isdntel.4: revision 1.8
share/man/man4/ai.4: revision 1.9
share/man/man8/man8.hppa/boot.8: revision 1.2
share/man/man4/uyurex.4: revision 1.6
share/man/man8/man8.alpha/mkbootimage.8: revision 1.9
share/man/man4/bpf.4: revision 1.56
share/man/man4/man4.amiga/mfcs.4: revision 1.8
share/man/man4/cmpci.4: revision 1.9
share/man/man8/man8.vax/format.8: revision 1.14
share/man/man8/compat_svr4.8: revision 1.27
share/man/man4/crypto.4: revision 1.26
share/man/man4/userconf.4: revision 1.13
share/man/man4/agp.4: revision 1.17
share/man/man9/man9.i386/bioscall.9: revision 1.10
share/man/man4/uftdi.4: revision 1.20
share/man/man4/radio.4: revision 1.13
share/man/man4/mfb.4: revision 1.5
share/man/man7/ascii.7: revision 1.8
share/man/man4/man4.vax/dl.4: revision 1.13
share/man/man4/ral.4: revision 1.12
share/man/man4/unix.4: revision 1.26
share/man/man4/edc.4: revision 1.12
share/man/man4/pim.4: revision 1.5
share/man/man8/compat_ultrix.8: revision 1.21
share/man/man4/dge.4: revision 1.11
share/man/man8/diskless.8: revision 1.32
share/man/man5/passwd.conf.5: revision 1.11
share/man/man8/man8.acorn26/boot26.8: revision 1.8
share/man/man4/man4.vax/hy.4: revision 1.12
share/man/man4/plip.4: revision 1.4
share/man/man4/sc.4: revision 1.8
share/man/man4/ec.4: revision 1.14
share/man/man4/man4.sgimips/giopci.4: revision 1.9
share/man/man7/sysctl.7: revision 1.114
share/man/man3/bits.3: revision 1.18
share/man/man4/we.4: revision 1.19
share/man/man8/compat_sunos.8: revision 1.21
share/man/man4/ip6.4: revision 1.31
share/man/man4/acpilid.4: revision 1.8
share/man/man4/man4.dreamcast/aica.4: revision 1.6
share/man/man4/mfi.4: revision 1.12
share/man/man4/ugen.4: revision 1.32
share/man/man4/jme.4: revision 1.7
share/man/man4/man4.sparc64/intro.4: revision 1.5
share/man/man4/zyd.4: revision 1.5
share/man/man4/gre.4: revision 1.45
share/man/man3/bitmap.3: revision 1.10
share/man/man4/man4.vax/cons.4: revision 1.12
share/man/man3/gcq.3: revision 1.4
share/man/man4/man4.hppa/pdc.4: revision 1.3
share/man/man4/multicast.4: revision 1.8
share/man/man4/man4.sparc/intro.4: revision 1.27
share/man/man4/ath.4: revision 1.32
share/man/man4/ym.4: revision 1.19
share/man/man3/iso646.3: revision 1.6
share/man/man4/btsco.4: revision 1.13
share/man/man4/man4.i386/ndis.4: revision 1.6
share/man/man4/pad.4: revision 1.6
share/man/man4/strip.4: revision 1.16
share/man/man8/man8.x86/boot.8: revision 1.12
share/man/man4/amr.4: revision 1.15
share/man/man4/ieee80211.4: revision 1.5
share/man/man4/options.4: revision 1.467
share/man/man5/link.5: revision 1.24
share/man/man8/man8.cobalt/boot.8: revision 1.10
share/man/man5/stab.5: revision 1.15
share/man/man3/tree.3: revision 1.12
share/man/man4/route.4: revision 1.31
share/man/man4/man4.sun3/leds.4: revision 1.13
share/man/man4/bluetooth.4: revision 1.20
share/man/man4/man4.i386/pcibios.4: revision 1.19
share/man/man5/veriexec.5: revision 1.8
share/man/man7/operator.7: revision 1.12
share/man/man4/man4.hp300/dcl.4: revision 1.13
share/man/man4/man4.i386/intro.4: revision 1.31
share/man/man5/ld.so.conf.5: revision 1.21
share/man/man8/man8.alpha/boot.8: revision 1.16
share/man/man4/bio.4: revision 1.13
share/man/man4/man4.sun2/leds.4: revision 1.10
share/man/man8/man8.x86/mbr.8: revision 1.4
share/man/man8/man8.mvme68k/boot.8: revision 1.9
share/man/man4/man4.alpha/ttwoga.4: revision 1.6
share/man/man4/ahc.4: revision 1.34

Direct reader to shell documentation generally, rather than csh(1)
specifically.

Mention variables OLDPWD and PWD.

Move the text that explains that cd(1) is a shell built-in to the very
beginning of the description where it can be seen prominently.

Improve formatting.

-

Remove workaround for ancient HTML generation code.
Use EXIT STATUS and .Ex.

(martin)

2019-09-01 17:15:34 UTC netbsd-8 commitmail json YAML

2019-09-01 10:19:04 UTC netbsd-8 commitmail json YAML

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

sys/dev/mii/ciphy.c 1.27-1.28, 1.30, 1.32
via patch
sys/dev/mii/ciphyreg.h 1.6

- The register bit definitions from register 0 to 15 in ciphyreg.h
  conform to the 802.3 spec, so remove them and use mii.h's definition.
  No functional change.
- Add CS8204, CS8244 VSC8211 and VSC8601 support from {Free,Open}BSD.
- KNF.

(martin)

2019-09-01 10:14:20 UTC netbsd-8 commitmail json YAML

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

sys/dev/mii/micphy.c 1.6 via patch

Add KSZ8081 support from FreeBSD.

(martin)

2019-09-01 10:08:01 UTC netbsd-8 commitmail json YAML

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

sys/dev/isa/itesio_isavar.h: revision 1.12
sys/dev/isa/itesio_isa.c: revision 1.28

Add IT8655 support.

(martin)

2019-08-29 16:33:56 UTC netbsd-8 commitmail json YAML

2019-08-29 16:31:53 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe.c: revision 1.205
sys/dev/pci/ixgbe/ixgbe.c: revision 1.206

fix typo in error handling of ixgbe_allocate_legacy().
ok by msaitoh@n.o
pullup-8, pullup-9

-

Fix panic when ncpu == 1 && sysctl -w hw.ixg0.txrx_workqueue=1. Reported by nonaka@n.o.

ok by msaitoh@n.o and nonaka@n.o
pullup-8, pullup-9

(martin)

2019-08-29 16:28:47 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1346):

sys/miscfs/kernfs/kernfs_vnops.c: revision 1.161
sys/miscfs/procfs/procfs_vnops.c: revision 1.207

Add missing operation VOP_GETPAGES() returning EFAULT.

Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED)
would leave the v_interlock held.

Observed by maxv@

(martin)

2019-08-29 16:26:46 UTC netbsd-8 commitmail json YAML

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

sys/fs/tmpfs/tmpfs_rename.c: revision 1.9

Fix uninitialized variable: if 'tvp' is NULL, '*tdep' is not initialized.

This could have caused the KASSERT to wrongfully fire.

ok riastradh@

(martin)

2019-08-26 13:17:02 UTC netbsd-8 commitmail json YAML

2019-08-26 13:15:38 UTC netbsd-8 commitmail json YAML

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

sys/dev/sysmon/sysmon.c: revision 1.30

Module class of sysmon_envsys, sysmon_wdog and sysmon_power is
MODULE_CLASS_DRIVER, not MODULE_CLASS_MISC.

Fix that invoking envsys without sysmon_envsys kernel module failes with:
WARNING: module error: incompatible module class for `sysmon_envsys' (1 != 3)

(martin)

2019-08-21 14:33:26 UTC netbsd-8 commitmail json YAML

2019-08-21 14:32:11 UTC netbsd-8 commitmail json YAML

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

sys/uvm/uvm_aobj.c: revision 1.128

Avoid undefined behavior in uao_pagein_page(). Found by kUBSan. OK'd by
riastradh. I think this is a real bug on amd64 at least.

(martin)

2019-08-21 14:28:34 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by sevan in ticket #1341):

distrib/hpcsh/miniroot/list: revision 1.11
distrib/hpcarm/miniroot/list: revision 1.11
distrib/hpcmips/miniroot/list: revision 1.19

sysctl(8) is useful to have in the install env when debugging

(martin)

2019-08-19 14:32:14 UTC netbsd-8 commitmail json YAML

2019-08-19 14:28:13 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #1340):

sys/netinet6/nd6.c: revision 1.257

Add missing IFNET_LOCK for regen_tmpaddr
Reported by ryo@

(martin)

2019-08-19 14:27:16 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #1339):

sys/net/if.c: revision 1.458
tests/net/if/t_ifconfig.sh: revision 1.21

Restore if_ioctl on error of ifc_destroy

Otherwise subsequence ioctls won't work.

Patch from Harold Gutch on PR kern/54434 (tweaked a bit by me)
tests: check if ifconfig (ioctl) works after a failure of ifconfig destroy

This is a test for PR kern/54434.

(martin)

2019-08-16 15:40:00 UTC netbsd-8 commitmail json YAML

2019-08-16 15:36:17 UTC netbsd-8 commitmail json YAML

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

usr.sbin/cpuctl/arch/i386.c: revision 1.104
sys/arch/x86/x86/identcpu.c: revision 1.93
sys/arch/x86/include/cacheinfo.h: revision 1.28
sys/arch/x86/include/specialreg.h: revision 1.150

- AMD CPUID Fn8000_0001d Cache Topology Information leaf is almost the same as
  Intel Deterministic Cache Parameter Leaf(0x04), so make new
  cpu_dcp_cacheinfo() and share it.
- AMD's L2 and L3's cache descriptor's definition is the same, so use one
  common definition.
- KNF.

XXX Split some common functions to new identcpu_subr.c or use #ifdef _KERNEK
... #endif in identcpu.c to share from both kernel and cpuctl?

(martin)

2019-08-16 15:28:38 UTC netbsd-8 commitmail json YAML

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

sys/arch/x86/include/cacheinfo.h: revision 1.27
sys/arch/x86/x86/identcpu.c: revision 1.74

Handle more Vortex CPU's from Andrius V.
While here refactor the code to make it smaller.

-

It seems that AMD zen2's CPUID 0x80000006 leaf's spec has changed.
The EDX register's acsociativity field has 9. In the latest available document,
it's a reserved value. I have no access to zen2's document, but many websites
say that the acsociativity is 16. Add it.

-

- AMD CPUID Fn8000_0001d Cache Topology Information leaf is almost the same as
  Intel Deterministic Cache Parameter Leaf(0x04), so make new
  cpu_dcp_cacheinfo() and share it.
- AMD's L2 and L3's cache descriptor's definition is the same, so use one
  common definition.
- KNF.

XXX Split some common functions to new identcpu_subr.c or use #ifdef _KERNEK
... #endif in identcpu.c to share from both kernel and cpuctl?

(martin)

2019-08-16 15:24:41 UTC netbsd-8 commitmail json YAML

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

sys/dev/acpi/acpi_ec.c: revision 1.76
sys/dev/acpi/acpi_ec.c: revision 1.77

- Fix a bug that acpiec_space_handler() doesn't access more than 64bit
  correctly. Found by kUBSan on Thinkpad X220. acpiec0 accessed 128bits from
  address 0xa0. The error message was:
UBSan: Undefined Behavior in ../../../../dev/acpi/acpi_ec.c:672:32, shift exponent 64 is too large for 64-bit type 'long unsigned int'
- KNF.
- Make the case that width < 8 behave as the same as before. Pointed out by
  Joerg.
- Change "switch" to "if" for simplify.

(martin)

2019-08-13 14:30:50 UTC netbsd-8 commitmail json YAML

2019-08-13 14:29:57 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1336):

sys/arch/i386/stand/lib/bootinfo_biosgeom.c: revision 1.24

Fix buffer overflow in BIOS disk geometry collect for bootinfo

This spares a boot-time panic on iMac with fusion drive, which
feature both a hard drive and a solid-state drive.

(martin)

2019-08-13 14:27:22 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1335):

lib/libperfuse/ops.c: revision 1.87

Rollback directory filehandle screening for FUSE lock operations
libfuse has a different usage of filehandles for files and directories.

A directory filehandle is valid only for directory operations such
as OPENDIR, READDIR, RELEASEDIR, FSYNCDIR. Change of src/lib/libperfuse/ops.c
1.85-1.86 made sure filehandles of directories were only sent for that
operations.

However, the status of lock operations GETLK, SETLK, SETLKW was overlooked.
The only FUSE filesystem I found using locks is GlusterFS, and it needs
directory filehandles to be provided on lock operations, otherwise locking
crashes the filesystem. Hence this change brings back filehandles for
lock operations on directories.

(martin)

2019-08-12 17:20:03 UTC netbsd-8 commitmail json YAML

2019-08-12 17:19:02 UTC netbsd-8 commitmail json YAML

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

sys/dev/usb/ohci.c: revision 1.289
sys/dev/usb/ohci.c: revision 1.290

adjust KASSERT() for sc_lock to handle polling case.
should fix usb kdb in ddb.  reported by martin.

-

relax an assert to be mutex_owned || polling.

half of the patch i sent for netbsd-8 in PR#54331.
the other half is already applied.

(martin)

2019-08-11 10:05:06 UTC netbsd-8 commitmail json YAML

2019-08-11 10:04:03 UTC netbsd-8 commitmail json YAML

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

sys/kern/sys_lwp.c: revision 1.69 (patch)

Fix info leak: instead of using SS_INIT as a literal compound, use a global
variable from rodata. The compound gets pushed on the stack, the padding
of the structure was therefore not initialized, and was getting leaked to
userland in sys___sigaltstack14().

(martin)

2019-08-11 10:01:15 UTC netbsd-8 commitmail json YAML

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

sys/uvm/uvm_mmap.c: revision 1.173

Change 'npgs' from int to size_t. Otherwise the 64bit->32bit conversion
could lead to npgs=0, which is not expected. It later triggers a panic
in uvm_vsunlock().

Found by TriforceAFL (Akul Pillai).

(martin)

2019-08-09 19:22:51 UTC netbsd-8 commitmail json YAML

2019-08-09 19:21:05 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by christos in ticket #1331):

sys/external/bsd/ipf/netinet/fil.c: revision 1.30

PR/54443: Edgar Fu�: ipf mistakenly regards UDP packet with checksum field
0xffff as bad

(martin)

2019-08-07 08:22:41 UTC netbsd-8 commitmail json YAML

2019-08-07 08:21:55 UTC netbsd-8 commitmail json YAML

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

sys/kern/uipc_socket2.c: revision 1.134

Fix info leaks: the alignment of the structures causes uninitialized heap
memory to be copied to userland in sys_recvmsg().

(martin)

2019-08-06 18:22:57 UTC netbsd-8 commitmail json YAML

2019-08-06 16:10:17 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_etreg.h 1.2-1.3
sys/dev/pci/if_et.c 1.23,1.25 and 1.26
via patch

Make et(4) work:
- Add missing ifioctl_common() for SIOCSIFFLAGS to make if_flags
  controllable.
- Enabling TX/RX in et_init() will always fail when cable is not
  plugged in. If this happens, we delay TX/RX enablement until link is
  up.
- Modify flow control stuff a little. It still doesn't work.
- Avoid undefined behavior when reset the chip.
- Code cleanup.

(martin)

2019-08-06 16:05:11 UTC netbsd-8 commitmail json YAML

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

sys/arch/x86/pci/amdsmn.c: revision 1.4
sys/arch/x86/pci/amdsmn.c: revision 1.5
sys/arch/x86/pci/amdsmn.c: revision 1.6

Add support for Ryzen 2xxx and 3xxx.

Use unsigned to fix compile error on i386.

Whitespace fix.

(martin)

2019-08-06 16:02:54 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/piixpmreg.h: revision 1.8
sys/dev/pci/piixpm.c: revision 1.53
sys/dev/pci/piixpm.c: revision 1.54

Sync with OpenBSD's piixpm.c up to rev. 1.35:
- Print "polling" correctly when in the attach function. Same as OpenBSD
rev. 1.22-23.
- Improve debug printf()'s. Part of OpenBSD 1.24.
- Do not bus_space_map devices which are at address 0 (it's uninitialized).
  Same as OpenBSD rev. 1.25.
- Add ServerWorks HT1100 device from OpenBSD. Same as OpenBSD rev. 1.32
- Use unique wait channel. From OpenBSD rev. 1.35

Improve SB800 and newer chipsets support:
- Add newer chipset (e.g. X370/X399 and newer) support that the PCI device id
  is 0x790b. The register definitions are mainly taken from FreeBSD.
- Rename PIIXPM_INDIRECTIO_* to SB800_INDIRECTIO_* because those are only
  for SB800 and newer chipsets.
- SB800 also support 4 ports.
- SB800's interrupt configuration bit is different from others.
  Use SB800_SMB_HOSTC's bit 0.
- Do not bus_space_map devices which are at address 0 (it's uninitialized)
  in piixpm_attach().
- Add the port number to the dmesg output.
- Avoid uninitiliazed use of ctl and corresponding warnings. From OpenBSD rev.
  1.38

(martin)

2019-08-06 15:52:52 UTC netbsd-8 commitmail json YAML

2019-08-06 15:51:07 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/pcidevs: revision 1.1381
sys/dev/pci/pcidevs: revision 1.1382
sys/dev/pci/pcidevs: revision 1.1383

- Intel C620 Virtual Switch Port for Termal Sensor is not 0x37c6 but 0x37c7.
- Add Some AMD Ryzen 3xxx's devices.
- Add some AMD devices mainly taken from OpenBSD.
- Rename some device names for consistency.
- Use _HDA for HD Audio.
Add BCM2711 PCIe Host bridge for RPI4

(martin)

2019-08-05 14:48:29 UTC netbsd-8 commitmail json YAML

2019-08-05 14:47:49 UTC netbsd-8 commitmail json YAML

Fix editor mistake in previous

(martin)

2019-08-05 14:43:54 UTC netbsd-8 commitmail json YAML

Backout the pullup of r1.476:

remove offs initialization and XXX gcc comment.

While actually the "offs" variable is always initialized when used, the
gcc version on this branch is not smart enough to recognize that.

(martin)

2019-08-04 14:55:46 UTC netbsd-8 commitmail json YAML

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

sys/arch/i386/stand/efiboot/version: revision 1.2

x86 efiboot: version 1.1.

(martin)

2019-08-04 11:30:39 UTC netbsd-8 commitmail json YAML

2019-08-04 11:25:44 UTC netbsd-8 commitmail json YAML

Pull up the following revisions, requested by maxv in ticket #1324:

sys/kern/kern_exec.c 1.469-1.478 (via patch)

Fix off-by-one and info leak.

(martin)

2019-08-04 11:19:03 UTC netbsd-8 commitmail json YAML

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

sys/net/bpf.c: revision 1.229

Fix info leak: use kmem_zalloc, because we align the buffers, and the
otherwise uninitialized padding bytes get copied to userland in bpf_read().

(martin)

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

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

sys/fs/cd9660/cd9660_vnops.c: revision 1.55

Fix info leak: zero out the buffer, because it is not entirely filled, and
the uninitialized bytes get copied to userland in sys___getdens30(). Remove
unneeded cast while here.

(martin)

2019-08-04 11:12:10 UTC netbsd-8 commitmail json YAML

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

sys/fs/tmpfs/tmpfs_mem.c: revision 1.10

Remove the roundups, they are incorrect and cause memcmp to wrongfully fail
because of uninitialized bytes at the end of the buffers.

ok rmind@

(martin)

2019-08-04 11:08:51 UTC netbsd-8 commitmail json YAML

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

sys/uvm/uvm_map.c: revision 1.361

Fix info leak: 'map_attrib' is not used in UVM, and contains uninitialized
heap garbage. Return zero. Maybe we should remove the field completely.

(martin)

2019-08-04 11:05:29 UTC netbsd-8 commitmail json YAML

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

sys/kern/sys_ptrace_common.c: revision 1.57

Fix bug, don't release the reflock if we didn't take it in the first place.
Looks like there are other locking issues in here.

(martin)