NetBSD/src d03FoxRusr.sbin/bta2dpd/bta2dpd sbc_encode.c

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

   XXX pullup -8 and -9.

NetBSD/src Yi6RAr3external/cddl/osnet/sbin/zfs mount_zfs.8

   Use Pa macro for path
   new sentence, new line

NetBSD/src U0bYka8external/cddl/osnet/sbin/zfs mount_zfs.8


   Add a copyright to the man page and a bit of history.

NetBSD/src mdfGc4Gsys/arch/powerpc/oea cpu_subr.c

   don't enable NAP mode on 7450 CPUs - my Quicksilver has two of those and we
   hang hard shortly after boot with NAP enabled, even on UP kernels
VersionDeltaFile
1.101+7-4sys/arch/powerpc/oea/cpu_subr.c
+7-41 files

NetBSD/src onorpthsys/arch/macppc/dev snapper.c

   various minor fixes and updates:
   - add (very) basic ONYX support. Treat as 16bit codec with software volume
     control. Makes basic audio work on PCIe G5
   - correctly detect TAS3001 without 'compatible' property, now this works on
     Quicksilver
   - mute line input on TAS3001 - it's unconnected on Quicksilver and causes noise
   - make more of an effort to match codecs to i2sbus instances, needed on G5 and
     some other models with software 'modems'
VersionDeltaFile
1.53+156-50sys/arch/macppc/dev/snapper.c
+156-501 files

NetBSD/src HrMNKhrsys/arch/macppc/dev deq.c

   identify TAS3001 from i2c address if there is no 'compatible' property
VersionDeltaFile
1.17+6-3sys/arch/macppc/dev/deq.c
+6-31 files

NetBSD/src nzl8CEXsys/compat/linux/common linux_misc.c, sys/compat/linux32/common linux32_unistd.c

   Avoid signed integer overflow when convering linux timeval to timespec

   Linux accepts garbage as timeout and attempts to set it to something
   meaningful. Instead of checking for valid ranges of usec, just convert
   the type safely, regardless of what is inside it.

NetBSD/src 8YvhWmnsys/compat/netbsd32 netbsd32_select.c

   Validate usec ranges in netbsd32___select50()

   Later in the code selcommon() checks for proper timespec, check only
   correct usec of timeval before type conversions.

NetBSD/src 7MiO3zMsys/compat/netbsd32 netbsd32_compat_50.c

   Validate usec ranges in compat_50_netbsd32_select()

   Later in the code selcommon() checks for proper timespec, check only
   correct usec of timeval before type conversions.

NetBSD/src k0RUic3sys/compat/common kern_select_50.c

   Validate usec ranges in compat_50_sys_select()

   Later in the code selcommon() checks for proper timespec, check only
   correct usec of timeval before type conversions.

NetBSD/src M9NtB4Esys/kern sys_select.c

   Validate usec ranges in sys___select50()

   Later in the code selcommon() checks for proper timespec, check only
   correct usec of timeval before type conversions.
VersionDeltaFile
1.48+6-2sys/kern/sys_select.c
+6-21 files

NetBSD/src SJO64jwsys/netinet6 scope6.c

   Decorate in6_clearscope() with __noubsan

   sys/netinet6/scope6.c:480:6,
   member access within misaligned address 0xffff9457bc441286 for type
   'struct in6_addr' which requires 4 byte alignment

   This issue is caused by accessing non-__packed struct in __packed.
   This is a[always?] false-positive reported by the sanitizer and there is no
   clear non-invasive approach to handle this, without changing ABI of long
   term existing code.

   Reported-by: syzbot+b53a9bcf030288081e65 at syzkaller.appspotmail.com
VersionDeltaFile
1.21+3-2sys/netinet6/scope6.c
+3-21 files

NetBSD/src 96tQOPssys/dev/ic isp_netbsd.c isp_netbsd.h

   declare printflike functions and fix another printf format.
   also change 0x%x -> %#x.
VersionDeltaFile
1.93+16-16sys/dev/ic/isp_netbsd.c
1.76+4-3sys/dev/ic/isp_netbsd.h
+20-192 files

NetBSD/src RUY0YR3sys/kern kern_time.c

   Validate usec ranges in settimeofday1()
VersionDeltaFile
1.200+5-2sys/kern/kern_time.c
+5-21 files

NetBSD/src QMLMQoRbin/df df.1

   file system police. Fix typo. Fix macro use.
VersionDeltaFile
1.53+8-7bin/df/df.1
+8-71 files

NetBSD/src 2wObHtFshare/man/man4 mos.4

   Fix date, add comma in enumeration.
VersionDeltaFile
1.2+3-3share/man/man4/mos.4
+3-31 files

NetBSD/src BLI0uVnsys/lib/libkern libkern.h, sys/sys pslist.h

   Add ifdefs to eliminate false positives on lgtm, same as coverity.
VersionDeltaFile
1.132+2-2sys/lib/libkern/libkern.h
1.6+2-2sys/sys/pslist.h
+4-42 files

NetBSD/src dSW8UPrsys/kern vfs_syscalls.c

   Validate usec ranges in do_sys_utimes()

   sys/kern/vfs_syscalls.c:3939:4, signed integer overflow: 503923632 * 1000 cannot be 
represented in type 'int'

   Reported-by: syzbot+4cfc86ffd30e8678f68d at syzkaller.appspotmail.com
VersionDeltaFile
1.535+12-4sys/kern/vfs_syscalls.c
+12-41 files

NetBSD/src QWN8oZZsys/external/bsd/drm2/dist/drm/i915 intel_display.c intel_runtime_pm.c

   Switch CTASSERT() to DRMCTASSERT() in two i915 functions

   Fixes build with disabled optimization.

NetBSD/src Y4xrEvmsys/external/bsd/drm2/include/asm bug.h

   Define DRMCTASSERT() for Compile-Time DRMKMS asserts

   Switch CTASSERT() to DRMCTASSERT() in BUILD_BUG_ON().

   This fixes build issues with disabled compieler optimization.

NetBSD/src 6PFTz10sys/dev/ic an.c

   Don't use the same iterator in a nested loop. (How could this work?)

   Found by the lgtm bot.
VersionDeltaFile
1.71+5-4sys/dev/ic/an.c
+5-41 files

NetBSD/src jHNCWNasys/uvm uvm_page.c uvm_physseg.c

   Fix programming mistake: 'paddrp' is a pointer given as argument, setting
   it to NULL in the called function does not set it to NULL in the caller.

   Actually, the callers of these functions do not do anything with the
   special error handling, so drop the unused checks and the NULL assignments
   altogether.

   Found by the lgtm bot.
VersionDeltaFile
1.200+4-10sys/uvm/uvm_page.c
1.10+1-5sys/uvm/uvm_physseg.c
+5-152 files

NetBSD/src 9CNy60Psys/external/bsd/drm2/include/asm bug.h

   Adapt DRMKMS BUILD_BUG_ON_MSG() to static_assert semantics

   static_assert is violated with runtime-only compiler semantics in a few
   places. Instead of breaking the build, stop asserting these corner cases.

NetBSD/src 81zJBQIdistrib/sets/lists/man mi, share/man/man4 mos.4 Makefile

   add mos(4) driver for Moschip MCS7730/MCS7830/MCS7832 usb ethernet.
   ported from openbsd.  usbnet version loses about 40% of code.

NetBSD/src zI3u1wtsys/dev/pci pci_subr.c

    Print some DPC register values not with %04x but with %08x because those
   are 32bit.
VersionDeltaFile
1.217+7-7sys/dev/pci/pci_subr.c
+7-71 files

NetBSD/src H4jeoO3sys/dev/pci/ixgbe ixv.c ixgbe_vf.c

   - Make ixv_set_multi() work correctly (especially for PROMISC) when the
     function is called from if_init().
   - If a multicast entry has range, use ALLMULTI like others.
   - Remove ixv_set_promisc() and use ixv_set_multi(). And then, rename
     *_set_multi() to *_set_rxfilter(). Same as ixgbe.c.
   - The promisc mode can't be enabled if the PF is not in promisc mode.
     Identify that state and report it as "the PF may not in promisc mode"
     (though it might not be perfect).

NetBSD/src T64LVxRsys/dev/ic isp_netbsd.c

   Fix argument.

   Found by the lgtm bot.
VersionDeltaFile
1.92+3-3sys/dev/ic/isp_netbsd.c
+3-31 files

NetBSD/src FwCsgQIsys/dev/ic i82557.c

   Fix direction of the loop.

   Found by the lgtm bot.
VersionDeltaFile
1.155+3-3sys/dev/ic/i82557.c
+3-31 files

NetBSD/src FERolBVsys/dev/pci if_age.c

   Fix direction of the loop.

   Found by the lgtm bot.
VersionDeltaFile
1.61+3-3sys/dev/pci/if_age.c
+3-31 files

NetBSD/src V2Z93YNsys/arch/arm/imx if_enet.c

   Use M_BUFADDR.
VersionDeltaFile
1.27+3-10sys/arch/arm/imx/if_enet.c
+3-101 files

NetBSD/src tp0iPnOsys/net ppp_tty.c if_ppp.c

   dedup
VersionDeltaFile
1.66+5-18sys/net/ppp_tty.c
1.166+3-16sys/net/if_ppp.c
+8-342 files

NetBSD/src jI7Bdcpsys/arch/aarch64/aarch64 pmap.c

   ref/mod bit should be set according to 'flags' argument, not 'prot'.  r1.44 was 
incomplete.
VersionDeltaFile
1.46+5-3sys/arch/aarch64/aarch64/pmap.c
+5-31 files

NetBSD/src 6HMyiVdsys/dev/ic nvme.c

   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.
VersionDeltaFile
1.45+3-3sys/dev/ic/nvme.c
+3-31 files

NetBSD/src LjAfYUHsys/crypto/nist_hash_drbg nist_hash_drbg.c

   Use an explicit run-time assertion where compile-time doesn't work.

NetBSD/src i0uOBXysys/dev/mii rlphy.c

   - ICPLUS -> xxICPLUS
   - Print model name if it's ICPLUS IP101 to avoid "Realtek internal PHY".
VersionDeltaFile
1.37+6-3sys/dev/mii/rlphy.c
+6-31 files

NetBSD/src VFKUEDZsys/dev/mii miidevs.h miidevs_data.h

   Regen.
VersionDeltaFile
1.155+10-10sys/dev/mii/miidevs.h
1.143+5-5sys/dev/mii/miidevs_data.h
+15-152 files

NetBSD/src TvmfQkisys/dev/mii miidevs

Change ICPLUS(0x0090c3) to xxICPLUS(0x0009c3)
VersionDeltaFile
1.157+6-6sys/dev/mii/miidevs
+6-61 files

NetBSD/src qwVS8Zcsys/crypto/nist_hash_drbg nist_hash_drbg.c

   Use CTASSERT where possible, run-time assertion where not.

   Should fix negative-length variable-length array found by kamil.

NetBSD/src GCPO9bgtests/lib/libcurses testframe.txt, tests/lib/libcurses/director testlang_parse.y returns.h

   Rototill to add complex character support:

   - Add cchar command to director test language to allow a complex character
     to be defined and passed to the slave.
   - Removed the distinction between args and returns internally to prevent
     confusing the two which leads to errors and/or crashes.
   - Converted mutt_test to use the new cchar definition and fixed the
     check files for the test.

NetBSD/src 4ZeY93gsys/net if_l2tp.c

   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@
VersionDeltaFile
1.39+37-13sys/net/if_l2tp.c
+37-131 files

NetBSD/src qJJI3j4sys/net if.c if_gif.c, sys/netinet in_gif.c

   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@
VersionDeltaFile
1.461+59-2sys/net/if.c
1.17+21-35sys/netipsec/ipsecif.c
1.94+21-25sys/netinet6/in6_gif.c
1.149+4-35sys/net/if_gif.c
1.95+14-19sys/netinet/in_gif.c
1.38+4-27sys/net/if_l2tp.c
+123-1437 files not shown
+192-23013 files

NetBSD/src qkJVt5xsys/netinet ip_input.c, sys/netinet6 ip6_input.c

   Apply some missing changes lost on the previous commit
VersionDeltaFile
1.211+5-5sys/netinet6/ip6_input.c
1.392+4-4sys/netinet/ip_input.c
+9-92 files

NetBSD/src 8L8pomCsys/net if_l2tp.c if_l2tp.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).
VersionDeltaFile
1.37+141-72sys/net/if_l2tp.c
1.7+4-1sys/net/if_l2tp.h
+145-732 files

NetBSD/src 5tOqQyOsys/net route.c

   Add missing #include <sys/kmem.h>
VersionDeltaFile
1.221+3-2sys/net/route.c
+3-21 files

NetBSD/src kFp1Gh9sys/netinet wqinput.c

   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@
VersionDeltaFile
1.6+31-7sys/netinet/wqinput.c
+31-71 files

NetBSD/src MxGB0TCsys/net route.c route.h, sys/netinet ip_input.c

   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@

NetBSD/src wqd3Ieysys/dev/scsipi scsipi_base.c

    Use unsigned to avoid undefined behavior in scsipi_{get,put}_tag().
   Found by kUBSan.
VersionDeltaFile
1.183+4-4sys/dev/scsipi/scsipi_base.c
+4-41 files

NetBSD/src 5Jrw2OPetc MAKEDEV.tmpl

   Create the character device for spiflash, in addition to the block device.
   This is needed for getdiskrawname() to DTRT (for installboot(8)).

   XXX pullup-9
VersionDeltaFile
1.208+2-1etc/MAKEDEV.tmpl
+2-11 files

NetBSD/src qEHbJkCusr.sbin/installboot evboards.c evboards.h

   Add support for additional install step directives to enable using
   installboot(8) to write u-boot images to SPI NOR and other types of
   raw flash devices: input-block-size, input-pad-size, output-size, and
   output-block-size.

   Add the ability to create aliases for install objects, useful for when
   e.g. sdmmc and emmc share the same steps.

   Tested on an A20-OLinuXino-LIME2-e16Gs16M by bouyer@.

   XXX pullup netbsd-9

NetBSD/src Iu7JA5lbin/df df.1

   It is not just root, it is device read access (kre)
VersionDeltaFile
1.52+11-3bin/df/df.1
+11-31 files