Commit Graph

253593 Commits

Author SHA1 Message Date
snj 84de888c61 1694 2021-09-07 22:29:07 +00:00
snj 1a135b3301 Pull up following revision(s) (requested by martin in ticket #1694):
distrib/sets/makesrctars: revision 1.43
PR 56389: do not include top level .git or .hg directories
in source sets.
2021-09-07 22:28:31 +00:00
martin 7f88a77d46 Ticket #1693 2021-09-03 10:24:09 +00:00
martin 855d8d6655 Pull up following revision(s) (requested by andvar in ticket #1693):
sys/dev/pci/if_vte.c: revision 1.32

Restore original MDC speed control register value after MAC reset, if
it wasn't default. Fixes PR port-i386/53494.

ok riastradh
2021-09-03 10:23:17 +00:00
martin d3bf1c655d Ticket #1692 2021-08-20 19:35:59 +00:00
martin 4c25a0ef14 Pull up following revision(s) (requested by ozaki-r in ticket #1692):
sys/netinet6/nd6.c: revision 1.277

nd6: prevent ln from being freed while releasing held packets
2021-08-20 19:34:49 +00:00
martin 4160442696 Ticket #1691 2021-08-15 10:04:53 +00:00
martin cf64180be6 Pull up following revision(s) (requested by christos in ticket #1691):
sys/compat/common/vfs_syscalls_43.c: revision 1.67
	sys/compat/common/vfs_syscalls_50.c: revision 1.26
	sys/compat/common/vfs_syscalls_30.c: revision 1.42

- memset struct stat to avoid kernel memory disclosure of padded fields
  (thanks Trend Micro for the report)
- use do_fhstat
- consistency in argument order of compat functions
2021-08-15 10:03:46 +00:00
martin 7d22c25434 Ticket #1690 2021-08-11 17:25:54 +00:00
martin 962bbc9ad9 Pull up following revision(s) (requested by kardel in ticket #1690):
sys/netinet6/in6_src.c: revision 1.88

PR kern/56348

MTU discovery fails with IPv6 sockets bound to IPv4 mapped address
pick up the IPv4 route for IPv4 mapped IPv6 address to get the correct
MTU and not any unrelated/inappropriate MTU from IPv6 routes. IPv4 mapped
IPv6 addresses are always handled by the IPv4 stack and MTU discovery
is solely handled with the IPv4 routing table.
2021-08-11 17:24:42 +00:00
martin 22e491e826 Ticket #1689 2021-07-14 17:55:18 +00:00
martin ef2594d1e6 Pull up following revision(s) (requested by tsutsui in ticket #1689):
sys/arch/hppa/dev/sti_sgc.c: revision 1.3

Fix silent freeze on probing sti(4) framebuffer on 712/60.  PR/52162

Ok'ed by skrll@.
Should be pulled up to netbsd-9 and netbsd-8.
2021-07-14 17:53:50 +00:00
martin 84bca735ba Ticket #1686 2021-06-25 19:14:29 +00:00
martin 2d409e43e5 Pull up following revision(s) (requested by tsutsui in ticket #1686):
distrib/sun3/miniroot/Makefile: revision 1.50
	distrib/miniroot/install.sub: revision 1.61
	distrib/miniroot/install.sub: revision 1.62 (patch)
	distrib/sun2/miniroot/Makefile: revision 1.40

Replace RELEASE and VERSION strings proplery.
sun2 and sun3 don't use MI src/distrib/miniroot/list so this should
have been sync'ed with it.

http://cvsweb.netbsd.org/bsdweb.cgi/src/distrib/miniroot/list#rev1.36
> Use proper release version strings ("9.1" rather than "91") in banners.
>
> Also define and use "MACHINE" variable to describe port names
> (no uname(1) or sysctl(8) in miniroot binary list by default).

Should be pulled up to netbsd-9.

Remove netstat(1) calls to print resolver info on upgrade using miniroot.
netstat(1) was removed from miniroot 25 years ago.
 http://cvsweb.netbsd.org/bsdweb.cgi/src/distrib/miniroot/list#rev1.5

The modules and rescue sets are also required on upgrade.
Should be pulled up to netbsd-9 and netbsd-8.
2021-06-25 19:13:20 +00:00
martin bf82076a1f Tickets #1685 and #1684 2021-06-21 17:46:13 +00:00
martin 2722c7e0aa Apply patch, requested by mrg in ticket #1684 (no corresponding
change in HEAD, oabi has been removed):

	compat/arm/oabi/bsd.oabi.mk		(apply patch)

Fix PR 50192.
2021-06-21 17:43:18 +00:00
martin ed6b04ddd0 Regen for ticket #1685 2021-06-21 14:56:46 +00:00
martin c8c4555bbe Pull up following revision(s) (requested by dholland in ticket #1685):
sys/sys/namei.src: revision 1.59	(via patch)
	sys/kern/vfs_vnops.c: revision 1.215
	sys/kern/vfs_lookup.c: revision 1.226

Add a new namei flag NONEXCLHACK for open with O_CREAT and not O_EXCL.
This case needs to be distinguished from the other CREATE operations
because it is supposed to successfully return (and open) the target if
it exists. In the case where that target is the root, or a mount
point, such that there's no parent dir, "real" CREATE operations fail,
but O_CREAT without O_EXCL needs to succeed.

So (a) add the flag, (b) test for it in namei in the situation
described above, (c) set it in open under the appropriate
circumstances, and (d) because this can result in namei returning
ni_dvp of NULL, cope with that case.

Should get into -9 and maybe even -8, because it was prompted by
issues with 3rd-party code. The use of a flag (vs. adding an
additional nameiop, which would be more appropriate) was deliberate to
make the patch small and noninvasive.
2021-06-21 14:55:15 +00:00
martin d3832a94cf Ticket #1683 2021-06-08 13:01:10 +00:00
martin 0bf060350b Pull up following revision(s) (requested by hannken in ticket #1683):
sbin/dump/tape.c: revision 1.56

Bitmaps (TS_BITS and TS_CLRI) dont use the "c_addr" array as they
cannot have holes.  As bitmaps are written without TS_ADDR records
"c_count" may be larger than the "c_addr" size resulting in a
segmentation violation reading "c_addr" beyond its end.

Compute "blks" for TS_INODE and TS_ADDR only -- its used for multi
volume dumps and the bitmaps must both be on the first volume.
2021-06-08 12:59:32 +00:00
martin 8e2a468717 Tickets #1680 - #1682 2021-06-05 10:58:28 +00:00
martin f02ddff0e5 Pull up following revision(s) (requested by nia in ticket #1682):
sys/dev/pci/if_iwmreg.h: revision 1.8

Can't left shift a signed int by 31. Found by kubsan.
2021-06-05 10:57:11 +00:00
martin db935fc3ae Pull up following revision(s) (requested by tsutsui in ticket #1681):
distrib/miniroot/install.sub: revision 1.60

Handle recent ifconfig(8) outputs in the miniroot installation script.

- Remove netmask slash notation for IP addresses,
  which has been changed between NetBSD 7.x and 8.0:
  http://cvsweb.netbsd.org/bsdweb.cgi/src/sbin/ifconfig/af_inet.c#rev1.24

- Ignore inet6 entries, which miniroot scripts don't support

Should be pulled up to netbsd-9 and netbsd-8.
2021-06-05 10:41:20 +00:00
martin ab0dbf4560 Pull up following revision(s) (requested by tsutsui in ticket #1680):
sys/arch/hp300/conf/INSTALL: revision 1.67
	sys/arch/hp300/conf/INSTALL: revision 1.68

Add missed 'nhpib at intio' for internal HP-IB.  Found on testing HPDisk.
Also fix comments for HP-IB devices.
Should be pulled up to netbsd-8 and netbsd-9.

Reduce maxusers to 8 as GENERIC.
Should be pulled up to netbsd-9 and netbsd-8.
2021-06-05 10:37:10 +00:00
martin 7b5155591b Ticket #1679 2021-05-19 17:21:13 +00:00
martin b877ba26f0 Ticket #1678 2021-05-07 17:48:47 +00:00
martin 649e662bb6 Pull up following revision(s) (requested by mrg in ticket #1678):
bin/pax/options.c: revision 1.119
	usr.bin/config/scan.l: revision 1.32
	usr.bin/make/main.c: revision 1.274
	bin/pax/extern.h: revision 1.60
	usr.bin/config/defs.h: revision 1.106
	usr.bin/make/make.h: revision 1.105
	sbin/newfs_udf/udf_create.c: revision 1.27 (patch)
	sbin/newfs_udf/newfs_udf.h: revision 1.7 (patch)
	usr.bin/config/main.c: revision 1.100
	usr.sbin/installboot/Makefile:	revisions 1.53,1.54 (patch)
	usr.sbin/installboot/installboot.h: revision 1.41 (patch)
	usr.sbin/installboot/machines.c: revisisons 1.41,1.42 (patch)

Avoid depending on common symbols.
2021-05-07 17:40:31 +00:00
bouyer 888eaace83 ticket #1677 2021-05-03 09:16:00 +00:00
bouyer cbdd2bfe53 Pull up following revision(s) (requested by martin in ticket #1677):
sys/kern/kern_exec.c: revision 1.505 via patch
Fix copy&pasto in handling of POSIX_SPAWN_RESETIDS in posix_spawn(3)
2021-05-03 09:15:30 +00:00
martin 5c8f5f7f30 Tickets #1674 - #1676 2021-04-30 14:28:35 +00:00
martin 203df19754 Pull up the following, requested by kre in ticket #1676:
external/public-domain/tz/dist/Makefile         up to 1.1.1.30
	external/public-domain/tz/dist/NEWS             up to 1.1.1.34
	external/public-domain/tz/dist/TZDATA_VERSION   up to 1.24
	external/public-domain/tz/dist/africa           up to 1.1.1.25
	external/public-domain/tz/dist/asia             up to 1.1.1.28
	external/public-domain/tz/dist/australasia      up to 1.1.1.21
	external/public-domain/tz/dist/backward         up to 1.1.1.12
	external/public-domain/tz/dist/backzone         up to 1.1.1.20
	external/public-domain/tz/dist/etcetera         up to 1.1.1.5
	external/public-domain/tz/dist/europe           up to 1.1.1.30
	external/public-domain/tz/dist/leap-seconds.list up to 1.1.1.15
	external/public-domain/tz/dist/leapseconds      up to 1.1.1.18
	external/public-domain/tz/dist/leapseconds.awk  up to 1.1.1.12
	external/public-domain/tz/dist/northamerica     up to 1.1.1.27
	external/public-domain/tz/dist/theory.html      up to 1.1.1.12
	external/public-domain/tz/dist/version          up to 1.1.1.21
	external/public-domain/tz/dist/ziguard.awk      up to 1.1.1.6
	external/public-domain/tz/dist/zone.tab         up to 1.1.1.19
	external/public-domain/tz/dist/zone1970.tab     up to 1.1.1.21
	doc/3RDPARTY					(apply patch)

Update from tzdata2020d to tzdata2021a.

The significant changes are:

    Volgograd switched to Moscow time on 2020-12-27 at 02:00.   (2020e)
    South Sudan changes from +03 to +02 on 2021-02-01 at 00:00. (2021a)
2021-04-30 14:26:38 +00:00
martin 95f78bc74b Pull up following revision(s) (requested by kre in ticket #1675):
sys/arch/xen/x86/xen_ipi.c: revision 1.24 (patch)

make compile without DDB
PR port-xen/50282
2021-04-30 14:22:24 +00:00
martin c004d62f2f Pull up following revision(s) (requested by tsutsui in ticket #1674):
distrib/notes/common/netboot: revision 1.39

For netboot via DHCP, "next-server" in dhcpd.conf(5) is mandatory.
Pointed out by Anders Gustafsson on port-hp300@.

 https://mail-index.netbsd.org/port-hp300/2021/04/21/msg000201.html

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

XXX: kernel should use the dhcpd/bootp server address for nfsroot
     if the specified next-server (siaddr) is 0.0.0.0?
2021-04-30 13:59:23 +00:00
martin b8a0a5bf68 Ticket #1673 2021-04-27 19:03:02 +00:00
martin 8cc875ee0c Ticket #1672 2021-04-26 18:41:05 +00:00
martin 79e0fa0068 Pull up following revision(s) (requested by skrll in ticket #1672):
sys/arch/arm/include/lock.h: revision 1.37
	common/lib/libc/arch/arm/atomic/atomic_swap_64.S: revision 1.11
	common/lib/libc/arch/arm/atomic/atomic_swap.S: revision 1.15
	common/lib/libc/arch/arm/atomic/atomic_swap.S: revision 1.16
	sys/arch/arm/include/lock.h: revision 1.36

Fix ARMv8 instructions

Fix __sync_lock_release_4 to actually zeroise the whole 4bytes/32bits.

Trailing whitespace

Change #ifdef FOO to #if defined(FOO).  NFCI.
2021-04-26 18:39:26 +00:00
martin 90cd5c0274 Ticket #1671 2021-04-21 17:50:03 +00:00
martin 3d940f4a0b Apply patch, requested by mrg in ticket #1671:
external/bsd/file/dist/magic/magdir/python
	external/bsd/file/dist/magic/magdir/windows

Enhance regex portability (by copying over the versions from file 5.40).
2021-04-21 17:47:40 +00:00
martin 019e7b8f9a Ticket #1669 2021-04-06 18:10:43 +00:00
martin 891938fad8 Pull up following revision(s) (requested by simonb in ticket #1669):
bin/ps/print.c: revision 1.133

Fix the column width calculation for the lstart column if an empty
column header is specified.

Fixes bug pointed out by Ted Spradley in
https://mail-index.netbsd.org/netbsd-users/2021/04/05/msg026808.html .
2021-04-06 18:09:52 +00:00
martin 3d2e7281ee Tickets #1667 and #1668 2021-03-27 13:41:50 +00:00
martin 751561f1f5 Pull up the following via patch, requested by mrg in ticket #1668:
Makefile			1.30-1.31
	Makefile.boot			1.7-1.9
	auth-bozo.c			1.25-1.26
	bozohttpd.8			1.80-1.87
	bozohttpd.c			1.114-1.123,1.125-1.128
	bozohttpd.h			1.61-1.68
	cgi-bozo.c			1.49-1.53
	content-bozo.c			1.17-1.20
	daemon-bozo.c			1-.22
	dir-index-bozo.c		1.33-1.34
	main.c				1.23-1.27
	printenv.lua			1.4-1.5
	ssl-bozo.c			1.27-1.29
	libbozohttpd/libbozohttpd.3	1.5-1.6
	small/Makefile			1.4
	testsuite/Makefile		1.14
	testsuite/t16.in		1.1
	testsuite/t16.out		1.1
	testsuite/t17.in		1.1
	testsuite/t17.out		1.1
	testsuite/t18.in		1.1
	testsuite/t18.out		1.1

Update to bozohttpd 20210227.


changes in bozohttpd 20210227:
	o  new support for content types: .tar.bz2, .tar.xz, .tar.lz,
	   .tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
	   .lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar.  should fix
	   netbsd PR#56026:
	   MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid

changes in bozohttpd 20210211:
	o  fix various NULL derefs from malformed headers.  mostly from
	   <emily@ingalls.rocks>.
	o  fix memory leaks in library interface: add bozo_cleanup().

changes in bozohttpd 20201014:
	o  also set -D_GNU_SOURCE in Makefile.boot.  from
	   hadrien.lacour@posteo.net.
	o  fix array size botch (assertion, not exploitable.)  from
	   martin@netbsd.org.
	o  also match %2F as well as %2f.  from leah@vuxu.org.
	o  many manual and help fixes.  clean ups for higher lint levels,
	   consistency/style clean ups.  various option fixes including made
	   -f imply -b.  from <henrik@gulbra.net> for freebsd.

changes in bozohttpd 20200912:
	o  add .m4a and .m4v file extensions.

changes in bozohttpd 20200820:
	o  make this work on sun2 by reducing mmap window there.
	o  fix SSL shutdown sequence.  from spz@netbsd.org.
	o  add readme support to directory indexing.  from jmcneill@netbsd.org
	o  add blocklist(8) support.  from jruoho@netbsd.org.
2021-03-27 13:38:51 +00:00
martin ba5a3cd5b2 Regen for ticket #1667 (BELKIN F5D7050E fix) 2021-03-27 13:10:43 +00:00
martin f8ba5ed609 Pull up following revision(s) (requested by nia in ticket #1667):
sys/dev/usb/usbdevs: revision 1.793

correct usb device id for BELKIN F5D7050E

matches freebsd / openbsd (sources of urtw driver), various online
sources

PR kern/56056
2021-03-27 13:09:46 +00:00
martin 0644da63d7 Ticket #1665 2021-03-22 18:08:34 +00:00
martin 06a5a8e2b0 Pull up following revision(s) (requested by knakahara in ticket #1665):
sys/net/if_l2tp.h: revision 1.10

Fix l2tp(4) ioctl type. Pointed out by yamaguchi@n.o, thanks.
XXX pullup-[89]
2021-03-22 18:07:38 +00:00
martin 8903191824 Ticket #1663 2021-03-11 16:17:46 +00:00
martin 149ff4e3fc Pull up the following (all via patch), requested by msaitoh in ticket #1663:
sys/dev/pci/ixgbe/ixgbe.c			1.259, 1.278-1.279
	sys/dev/pci/ixgbe/ixgbe.h			1.75
	sys/dev/pci/ixgbe/ixgbe_netbsd.h		1.12
	sys/dev/pci/ixgbe/ixgbe_vf.c			1.24-1.26
	sys/dev/pci/ixgbe/ixgbe_x550.c			1.17
	sys/dev/pci/ixgbe/ixv.c				1.155-1.156
	sys/dev/pci/ixgbe/ix_txrx.c			1.64-67
	sys/dev/pci/files.pci				1.436
	share/man/man4/ixg.4				1.13-1.14
	share/man/man4/ixv.4				1.3, 1.6-1.7

- Fix a problem that the RX path stalled when the mbuf cluster is
  exhausted.
- Modify some parameters to reduce packet dropping. See also the
  manual's OPTIONS section for the detail.
- ixv(4): The max number of queue(pair) is not 7 but 8. Correctly
  reset the hardware.
- Add "TX " to "Queue No Descriptor Available" evcnt(9) name to make
  it more understandable.
- Fix a bug that some advertise speeds can't be set with
  hw.ixgN.advertise_speed if both 2.5G and 5G are set. Fix the error
  message, too.
- Fix typo in comment or debug message.
2021-03-11 16:04:24 +00:00
martin 12918409e0 Ticket #1662 2021-03-09 16:00:14 +00:00
martin 5d46365a91 Pull up following revision(s) (requested by christos in ticket #1662):
sys/netinet/tcp_subr.c: revision 1.286
	sys/netinet/tcp_timer.c: revision 1.96
	sys/netinet/in_var.h: revision 1.102
	sys/netinet/in_var.h: revision 1.99

Don't increment the iss sequence on each connection because it exposes
information (Amit Klein)

Add some randomness to the iss offset

Use a random IPv4 ID because the shuffling algorithm used before could expose
information (Amit Klein)

mv <sys/cprng.h> include to the kernel portion
2021-03-09 15:56:51 +00:00