NetBSD/src ORX4r0Vsys/kern vfs_subr.c

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

   Reported-by: syzbot+d27bc1be926b3641c0ad at syzkaller.appspotmail.com
VersionDeltaFile
1.473+5-3sys/kern/vfs_subr.c
+5-31 files

NetBSD/src u84081osys/dev/ic rtl81x9reg.h

Sort RTK_HWREV_* by value.
VersionDeltaFile
1.51+9-9sys/dev/ic/rtl81x9reg.h
+9-91 files

NetBSD/src YENFTaqsys/dev/pci if_msk.c if_skreg.h

    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.
VersionDeltaFile
1.94+49-15sys/dev/pci/if_msk.c
1.27+17-3sys/dev/pci/if_skreg.h
+66-182 files

NetBSD/src MCkPJOysys/kern subr_msan.c, sys/sys systm.h

   Instrument ufetch/ustore in kMSan, these were the last remaining functions.
VersionDeltaFile
1.2+187-2sys/kern/subr_msan.c
1.291+38-1sys/sys/systm.h
+225-32 files

NetBSD/src KRz85tOsys/arch/amd64/amd64 cpu_in_cksum.S

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

NetBSD/src uU9vLgoshare/mk bsd.sys.mk, sys/kern subr_kcov.c

   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.
VersionDeltaFile
1.9+13-13sys/kern/subr_kcov.c
1.296+2-2share/mk/bsd.sys.mk
+15-152 files

NetBSD/src vVwA0Nksys/arch/amd64/amd64 cpufunc.S, sys/arch/i386/i386 cpufunc.S

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

NetBSD/src 5nXv4v5sys/dev/hyperv if_hvn.c hvkbd.c

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

   These devices do not perform batch reading.
VersionDeltaFile
1.6+2-8sys/dev/hyperv/if_hvn.c
1.4+2-7sys/dev/hyperv/hvkbd.c
+4-152 files

NetBSD/src HHBJO7jsys/kern subr_csan.c, sys/sys systm.h

   Instrument copyout() in kCSan, for parity with kMSan.
VersionDeltaFile
1.5+12-2sys/kern/subr_csan.c
1.290+3-2sys/sys/systm.h
+15-42 files

NetBSD/src xdzljDXsys/arch/arm/imx imxspi.c

   Keep SCLK high in the inactive state. (SPI modes 2 and 3 only)
VersionDeltaFile
1.7+6-3sys/arch/arm/imx/imxspi.c
+6-31 files

NetBSD/src RaCnZYBshare/man/man7 sysctl.7

   document vm.ubc_direct
VersionDeltaFile
1.141+8-2share/man/man7/sysctl.7
+8-21 files

NetBSD/src OjJdd5Fsys/arch/evbarm/conf GENERIC64

   Enable Rockchip display support
VersionDeltaFile
1.112+4-4sys/arch/evbarm/conf/GENERIC64
+4-41 files

NetBSD/src MAkxfNcsys/arch/arm/rockchip rk_drm.c

   Remove debug output
VersionDeltaFile
1.2+2-4sys/arch/arm/rockchip/rk_drm.c
+2-41 files

NetBSD/src 9HZfczcsys/arch/arm/rockchip rk_vop.c

   Fix a few swapped fields
VersionDeltaFile
1.2+8-8sys/arch/arm/rockchip/rk_vop.c
+8-81 files

NetBSD/src Et7ISr2usr.sbin/sysinst/arch/i386 msg.md.de msg.md.pl, usr.sbin/sysinst/arch/playstation2 msg.md.pl msg.md.fr

   Fix missing newlines in bios match display, pointed out by maxv.

NetBSD/src vFYGqoodoc CHANGES-7.3

   Ticket #1712
VersionDeltaFile
1.1.2.67+7-1doc/CHANGES-7.3
+7-11 files

NetBSD/src z0pTYUqsys/arch/aarch64/aarch64 aarch64_machdep.c pmap.c, sys/arch/amd64/amd64 machdep.c

   Mark several kASan functions with __nothing, to avoid annoying #ifdefs.
   Same as kCSan and kMSan.

NetBSD/src navsj18sys/kern subr_csan.c

   Don't include "opt_kcsan.h" since there's already <sys/csan.h> included.
VersionDeltaFile
1.4+2-4sys/kern/subr_csan.c
+2-41 files

NetBSD/src 3lDCYknsys/arch/aarch64/aarch64 pmap.c aarch64_machdep.c, sys/arch/amd64/amd64 machdep.c

   Don't include "opt_kasan.h" when there's already <sys/asan.h> included.

NetBSD/src 1KvsVvydoc CHANGES

   Note kMSan.
VersionDeltaFile
1.2614+3-1doc/CHANGES
+3-11 files

NetBSD/src BJshPFEsys/arch/amd64/include msan.h frameasm.h, sys/kern subr_msan.c subr_pool.c

   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

    [29 lines not shown]

NetBSD/src MskLoFwdoc CHANGES-8.2

   Tickets #1435 - #1440
VersionDeltaFile
1.1.2.65+50-1doc/CHANGES-8.2
+50-11 files

NetBSD/src Co9z0sisys/arch/amiga/dev zssc.c, sys/arch/next68k/dev nextdisplay.c

   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.


    [2 lines not shown]
VersionDeltaFile
1.45.30.1+4-4sys/arch/amiga/dev/zssc.c
1.41.12.1+3-3sys/dev/isa/uha_isa.c
1.21.30.1+4-2sys/arch/next68k/dev/nextdisplay.c
1.116.10.1+3-2sys/dev/isa/mcd.c
1.100.6.2+3-2sys/dev/isa/if_iy.c
1.22.20.1+3-2sys/dev/gpib/ppi.c
+20-1510 files not shown
+50-3516 files

NetBSD/src KtIUFMJsys/net if_loop.c

   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.
VersionDeltaFile
1.94.6.5+14-4sys/net/if_loop.c
+14-41 files

NetBSD/src AzRTmmUsys/arch/x86/x86 intr.c

   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.
VersionDeltaFile
1.101.2.7+6-3sys/arch/x86/x86/intr.c
+6-31 files

NetBSD/src WgfFyuNsys/external/bsd/drm2/dist/drm drm_fb_helper.c

   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.

NetBSD/src Btdu1UXsys/dev/pci/ixgbe ixv.c

   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.
VersionDeltaFile
1.56.2.27+3-2sys/dev/pci/ixgbe/ixv.c
+3-21 files

NetBSD/src nYJZCiusys/dev/pci pucdata.c

   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}
VersionDeltaFile
1.99.8.5+14-14sys/dev/pci/pucdata.c
+14-141 files

NetBSD/src QYVTELBsys/dev/pci pucdata.c

   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}
VersionDeltaFile
1.93.4.4+14-14sys/dev/pci/pucdata.c
+14-141 files

NetBSD/src 4I50ZXsdoc CHANGES-9.0

   Tickets #422 - #426
VersionDeltaFile
1.1.2.102+46-1doc/CHANGES-9.0
+46-11 files

NetBSD/src B5l8vrQsys/dev/pci pucdata.c

   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}
VersionDeltaFile
1.104.2.1+14-14sys/dev/pci/pucdata.c
+14-141 files

NetBSD/src 7qCfs2Osys/arch/amiga/dev zssc.c, sys/arch/next68k/dev nextdisplay.c

   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.

NetBSD/src 5bcTFDKsys/net if_loop.c

   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.
VersionDeltaFile
1.107.2.1+14-4sys/net/if_loop.c
+14-41 files

NetBSD/src izSO8FEsys/netipsec key.c

   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.
VersionDeltaFile
1.265.2.2+54-26sys/netipsec/key.c
+54-261 files

NetBSD/src SBpmvXKsys/dev/pci/ixgbe ixv.c

   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.
VersionDeltaFile
1.125.2.6+3-2sys/dev/pci/ixgbe/ixv.c
+3-21 files

NetBSD/src zTCRiHsusr.sbin/sysinst defs.h Makefile.inc

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

NetBSD/src Pz8NDrAexternal/apache2/llvm Makefile.inc

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

NetBSD/src rkXQMrUexternal/gpl3/gcc/usr.bin/host-libcpp Makefile

   duplicate a some of Makefile.gnuhost.

   should fix PR#53561.

NetBSD/src oZNpjJTsys/dev/pci if_jmereg.h xhci_pci.c

Revert previous. Sorry.
VersionDeltaFile
1.5+0-19sys/dev/pci/if_jmereg.h
1.23+0-7sys/dev/pci/xhci_pci.c
+0-262 files

NetBSD/src lTQYmrAsys/dev/pci if_jmereg.h xhci_pci.c

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

NetBSD/src CFcmffNsys/dev/pci pcidevs_data.h pcidevs.h

Regen.
VersionDeltaFile
1.1378+6,639-6,633sys/dev/pci/pcidevs_data.h
1.1379+5-1sys/dev/pci/pcidevs.h
+6,644-6,6342 files

NetBSD/src yMDVtZTsys/dev/pci pcidevs

   Add D-Link DGE-530T C1 and TP-Link TG-3468 v2.
VersionDeltaFile
1.1391+5-1sys/dev/pci/pcidevs
+5-11 files

NetBSD/src K8NABkFsys/dev/mii ipgphy.c

   - 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.
VersionDeltaFile
1.4+26-33sys/dev/mii/ipgphy.c
+26-331 files

NetBSD/src VmiTpqgsys/dev/mii ipgphy.c

    STGE_PhyCtrl is not PHY register but MAC register, so use ukphy_status()
   for IP1000A device.
VersionDeltaFile
1.3+26-46sys/dev/mii/ipgphy.c
+26-461 files

NetBSD/src JHj5AIbsys/dev/mii ipgphy.c

KNF. No functional change.
VersionDeltaFile
1.2+10-22sys/dev/mii/ipgphy.c
+10-221 files

NetBSD/src IhhXRnPsys/dev/pci pucdata.c

   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}
VersionDeltaFile
1.105+14-14sys/dev/pci/pucdata.c
+14-141 files

NetBSD/src X8gs17Isys/fs/autofs autofs_vfsops.c

   autofs: Whitespace fix
VersionDeltaFile
1.5+1-2sys/fs/autofs/autofs_vfsops.c
+1-21 files

NetBSD/src JiHFmCCsys/arch/arm/imx/fdt if_enet_imx.c

   Fixed bug.

NetBSD/src r0xPygmsys/net if_loop.c

Fix comment.
VersionDeltaFile
1.109+3-3sys/net/if_loop.c
+3-31 files

NetBSD/src rEBj7Eysys/netipsec key.c

   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.
VersionDeltaFile
1.269+21-17sys/netipsec/key.c
+21-171 files