summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-14Pull up following revision(s) (requested by skrll in ticket #1472):martin
sys/lib/libkern/arch/hppa/Makefile.inc: revision 1.13 sys/lib/libkern/arch/hppa/milli.S: revision 1.3 sys/lib/libkern/arch/hppa/milli_extra.S: revision 1.1 Don't need $$sh_func_adrs Provide a __canonicalize_funcptr_for_compare which only needs to return the passed value as the kernel doesn't do PLABELS. PR/56878 (hppa: kernel module lua fails to load)
2022-06-14Pull up following revision(s) (requested by andvar in ticket #1471):martin
distrib/notes/common/main: revision 1.569 (via patch) distrib/notes/sparc/install: revision 1.59-1.61 (via patch) distrib/notes/sparc/contents: revision 1.27,1.28 (via patch) Remove floppy installation instructions from sparc documentation. Floppy generation was disabled before NetBSD 6.0 release due to size constraints and unlikely to be restored soon or at all. PR port-sparc/56776. ok martin. Typo and nroff fixes.
2022-06-14Pull up following revision(s) (requested by andvar in ticket #1470):martin
distrib/notes/sun3/install: revision 1.17 distrib/notes/alpha/hardware: revision 1.20 distrib/notes/mvme68k/install: revision 1.24 distrib/notes/common/postinstall: revision 1.90 (via patch) fix the title of the boot tape creation section. some srm firmware (including legacy platforms) still available at hp ftp. not sure if HPE selling firmware CDs, but it is definitely not Compaq anymore fix link to pkgsrc.tar.gz file in postinstall section.
2022-06-10Tickets #1466 - #1469martin
2022-06-10Pull up following revision(s) (requested by skrll in ticket #1469):martin
libexec/ld.elf_so/arch/hppa/hppa_reloc.c: revision 1.49 libexec/ld.elf_so/arch/hppa/rtld_start.S: revision 1.14 Set DP early so that any binary functions that override others get the right value if they're called before _start. This is true of bash where it provides its own getenv. Part of port-hppa/56118: sporadic app crashes in HPPA -current
2022-06-10Pull up following revision(s) (requested by skrll in ticket #1468):martin
sys/arch/hppa/hppa/trap.c: revision 1.120 sys/arch/hppa/include/ptrace.h: revision 1.11-1.12 (via patch) Define a PTRACE_ILLEGAL_ASM Match up PTRACE_BREAKPOINT_ASM with PTRACE_BREAKPOINT which is the gdb breakpoint instruction. Only report the SSBREAKPOINT break instruction as SIGTRAP/TRAP_TRACE. All other break instructions will be reported as SIGTRAP/TRAP_BRKPT This fixes a mistake I made back in 2008. PR/56866: hppa: kernel gets confused between actual breakpoints and single-step breakpoints
2022-06-10Pull up following revision(s) (requested by skrll in ticket #1467):martin
sys/arch/hppa/include/pmap.h: revision 1.41 sys/arch/hppa/hppa/pmap.c: revision 1.117 port-hppa/56849: Wacko kernel memory accounting in current/hppa Two fixes: - Don't include direct mapped memory in pmap statistics - Decrement pmap statistics counts in pmap_kremove
2022-06-10Pull up following revision(s) (requested by skrll in ticket #1466):martin
sys/arch/hppa/hppa/trap.c: revision 1.119 Handle 'NA' (non-access) traps for the lpa and probe instructions. The change is inspired by OpenBSD with a bunch of my own, mainly stylistic, changes. Thanks to Tom Lane for the analysis. PR/56118: sporadic app crashes in HPPA -current
2022-06-06Tickets #1464 and #1465martin
2022-06-06Pull up following revision(s) (requested by skrll in ticket #1465):martin
usr.sbin/makemandb/makemandb.c: revision 1.63 Don't index outside the mdocs array of function pointers. Analysis and suggested fixes from Tom Lane. I played it safe and went with (my variation of) the minimal fix. PR port-hppa/56118: sporadic app crashes in HPPA -current
2022-06-06Pull up following revision(s) (requested by skrll in ticket #1464):martin
lib/libc/arch/hppa/sys/ptrace.S: revision 1.8 Save and restore %r19 the "linkage table pointer register" across the call to __cerror so if the ptrace syscall fails we can call __cerror again with the correct %r19 value. Do this even though the call of __cerror doesn't go via the PLT because __cerror calls __errno which does. Analysis and fix from Tom Lane in PR port-hppa/56864: hppa: ptrace(2) dumps core when returning an error I changed the location of where %r19 is stored on the stack to follow the ABI.
2022-06-06Ticket #1463.msaitoh
2022-06-06Pull up following revision(s) (requested by martin in ticket #1463):msaitoh
crypto/external/bsd/openssh/dist/sshkey-xmss.c patch crypto/external/bsd/openssh/dist/version.h patch Apply upstream fix for CVE-2019-16905. Call this NetBSD_Secure_Shell-20220604.
2022-06-04Ticket #1462martin
2022-06-04Pull up following revision(s) (requested by tsutsui in ticket #1462):martin
sys/arch/atari/atari/stalloc.c: revision 1.17 Restore NULL pointer checks lost in rev 1.16. Fixes PR port-atari/56859, ok'ed mlelstv@, and confirmed on TT030. Should be pulled up to netbsd-9 and netbsd-8.
2022-06-03 Ticket 1461martin
2022-06-03Pull up following revision(s) (requested by gutteridge in ticket #1461):martin
usr.sbin/makemandb/apropos.1: revision 1.19 usr.sbin/makemandb/apropos.c: revision 1.25 usr.sbin/makemandb/apropos.c: revision 1.26 usr.sbin/makemandb/apropos.1: revision 1.20 usr.sbin/makemandb/apropos.1: revision 1.21 usr.sbin/makemandb/apropos.1: revision 1.22 usr.sbin/makemandb/apropos.1: revision 1.23 usr.sbin/makemandb/apropos-utils.c: revision 1.46 usr.sbin/makemandb/apropos-utils.c: revision 1.47 usr.sbin/makemandb/apropos-utils.c: revision 1.49 PR/54343: Prevent NULL pointers in callback strings; use "*?*" for now to identify them. PR bin/54343: We want the callback_args.machine to be NULL if it is not present in the DB. The previous commit fixed the problem of allowing apropos to not crash and produce output even if the database is missing values for certain mandatory fields, such as name, section etc. Normally we don't expect those values to be missing in the database but in case of parsing errors it can happen. However, the machine architecture is an optional field since not all man pages are hardware specific so that should be allowed to be set to NULL if not present in the database. apropos.c: fix pager functionality Issue reported by Rocky Hotas on NetBSD-Users, patch input from RVP on same, adjustments by me. apropos.1: document the PAGER environment variable apropos(1): use proper -width apropos(1): use proper -width for the list of options too apropos(1): Tweak the description of -1, ... -9, and -s -s is not for compatibility only, because section names can be anything. E.g. we have 3lua and 9lua in base. We have rudiments of 3f (for FORTRAN libs). Some packages in pkgsrc also use suffixed 1 and 3 sections. apropos(1): Use the official spelling for "SQLite". While here, use .Bx to refer to 3BSD. apropos(1): improve error handling in edge cases Patch from RVP on NetBSD-Users, with an additional comment tweak by me. Summary from RVP: 1. Ignore SIGPIPE so that we're not killed in the middle of some DB operation by a botched $PAGER: $ env PAGER=3D/non-existent apropos -p ... 2. Return proper exit status in case of write errors: $ apropos ... >/dev/full || echo fail
2022-06-031460snj
2022-06-03Pull up following revision(s) (requested by msaitoh in ticket #1460):snj
sys/dev/pci/ixgbe/ixgbe.c: patch Fix previous to re-enable legacy interrupt correctly. It's a part of ixgbe.c rev. 1.273.
2022-06-02Ticket #1459martin
2022-06-02Pull up the following revisions, all via patch, requested by msaitohmartin
in ticket #1459: sys/dev/pci/ixgbe/ixgbe.c 1.261,1.265-1.268,1.273,1.275-1.277, 1.312,1.316-1.319 via patch sys/dev/pci/ixgbe/ixgbe.h 1.85 via patch sys/dev/pci/ixgbe/ixgbe_type.h 1.46-1.47 sys/dev/pci/ixgbe/ixgbe_x550.c 1.26 sys/dev/pci/ixgbe/ixv.c 1.182 - Reduce code duplication between ixgbe_msix_admin() and ixgbe_legacy_irq(). - Add missing code which was not in ixgbe_msix_admin() from ixgbe_legacy_irq() and vice versa. - Reorder code. - Disable/enable the OTHER interrupts correctly. - Don't return in the middle of ixgbe_msix_admin() when an flow director reinit failed. NetBSD currently doesn't support flow director, so this is not a real bug. - Print ECC, PHY and temp error log using with ratecheck(). - Correctly re-enable queue interrupt in ixgbe_legacy_irq(). - Correctly enter the recovery mode. - No functional change: - Add some debug printf()s. - Don't use "more" flag for simplify. - Fix typos in comment. - KNF.
2022-05-31Ticket #1458martin
2022-05-31Pull up following revision(s) (requested by msaitoh in ticket #1458):martin
sys/dev/pci/ixgbe/ixv.c: revision 1.181 sys/dev/pci/ixgbe/ixgbe.c: revision 1.315 sys/dev/pci/ixgbe/ixgbe.h: revision 1.86 Fix a bug that the legacy interrupt doesn't work when MSI-X allocation failed. Fixes PR kern/56857. Remove unused adapter->msix_mem.
2022-05-30Ticket #1457martin
2022-05-30Pull up the following revisions, requested by msaitoh:martin
sys/dev/pci/ixgbe/ixgbe.c 1.270,1.280,1.307-1.311, 1.313-1.314 via patch sys/dev/pci/ixgbe/ix_txrx.c 1.96-1.97 sys/dev/pci/ixgbe/ixv.c 1.158,1.179-1.180 via patch - ixg(4): Print Printed Board Assembly (PBA) number. - ixg(4): Add IFF_RUNNING check in ixgbe_legacy_irq() again. this might fix small race but it's not so dangerous. - Add value check for {tx,rx}_process_limit sysctl to avoid setting wrong value. - Add missing num_tx_desc sysctl. - No functional change: - KNF a bit. - Simplify setting of EIAC register. - Move the definition of eicr_mask variable. - Enclose flow director stuff in ixgbe_intr_admin_common() with IXGBE_FIR which is not defined in NetBSD. - Modify comment for consistency. - Use cached rx_copy_len in ixgbe_rxeof().
2022-05-19Ticket #1456martin
2022-05-19Pull up following revision(s) (requested by buhrow in ticket #1456):martin
sys/dev/pci/if_bge.c: revision 1.353 For chips which contain an ASF/IPMI firmware, instruct the chip to shut the host ASF firmware down when attaching the device so the IPMI BMC can use the same physical port even when NetBSD doesn't have a network configuration on the device. By contrast, when the device gets a network configuration assigned to it and bge_init() is called, the host ASF firmware is brought up so both NetBSD and the IPMI BMc can use the same physical port. This now matches FreeBSD behavior, as well as behavior from NetBSD-5.2. Tested on a Sunfire X2200-M2 system with the following chip: bge1 at pci7 dev 4 function 1: Broadcom BCM5715 Gigabit Ethernet bge1: interrupting at ioapic0 pin 11 bge1: HW config 000000d4, 00000014, 00000000, 00000000 00000000 bge1: ASIC BCM5715 A3 (0x9003), Ethernet address 00:1e:68:XX:XX:XX bge1: setting short Tx thresholds brgphy1 at bge1 phy 1: BCM5714 1000BASE-T/X media interface, rev. 0 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
2022-05-17Ticket #1453martin
2022-05-17Pull up following revision(s) (requested by skrll in ticket #1453):martin
common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c: revision 1.5 Fix the copy&paste botch from previous. Spotted by Tom Lane.
2022-05-17Ticket 1455bouyer
2022-05-17Pull up following revision(s) (requested by kre in ticket #1455):bouyer
libexec/mail.local/mail.local.c: revision 1.29 fix local privilege escalation due to a race condition NetBSD-SA2016-006 included an incomplete fix for CVE-2016-6253, a local privilege escalation vulnerability in mail.local(8). mail.local(8) attempts to open(2) a user's existing mailbox file to append to it. If that call fails, mail.local(8) will then issue a second open(2) call to create the file (O_CREAT). An attacker had the opportunity to create the file in question (as a symlink, or link to some other file) in between these two open(2) calls. Fix this by using O_EXCL in the 2nd open call, if the file exists when that one happens, something is going wrong, so just abort. Also, only attempt that 2nd open if the reason the first failed was that the file did not exist (this doesn't fix the issue, but it potentially saves some cycles). Thanks to Jan Schaumann for bringing this to our attention.
2022-05-17tickets 1452, 1454bouyer
2022-05-17Pull up following revision(s) via patch (requested by msaitoh in ticket #1454):bouyer
sys/dev/ic/mfi.c: revisions 1.63, 1.66-77 sys/dev/ic/mfireg.h: revisions 1.11-1.20 via patch sys/dev/pci/mfi_pci.c: revision 1.21 sys/dev/pci/mfii.c: revisions 1.6-1.7, 1.10-1.15 share/man/man4/mfi.4: revision 1.13 Improve mfi(4) and mfii(4): - Set 'ld_sync' to NULL as part of 'again', to prevent use-after-free. - Add some code for the SKINNY variant to make Dell PERC H310 work. - Print the percentage correctly when the background initialization is running. - Clear mailbox to not to pass garbage data. - Use union mbox instead of unit8_t xxx[] to avoid unaligned access. - Set stripe size for BIOCVOL to show the size correctly in bioctl. - Add support for iBBU-09 to show BBU voltage, current and temperature correctly. - Fix typos in comments. - Sprinkle static. - Improve debug printf()s. - KNF. Remove extra semicolon. Whitespace fixes.
2022-05-17Pull up following revision(s) (requested by tnn in ticket #1452):bouyer
external/gpl2/dtc/dist/dtc-lexer.l: revision 1.5 Satisfy -fno-common
2022-05-15Tickets #1450 and #1451martin
2022-05-15Pull up following revision(s) (requested by skrll in ticket #1451):martin
common/lib/libc/atomic/atomic_c11_compare_exchange_cas_8.c: revision 1.4 common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c: revision 1.4 common/lib/libc/atomic/atomic_c11_compare_exchange_cas_16.c: revision 1.4 PR 56832: fix C implementations of __atomic_compare_exchange*
2022-05-15Pull up following revision(s) (requested by tsutsui in ticket #1450):martin
sys/arch/luna68k/conf/INSTALL: revision 1.32 sys/arch/luna68k/conf/GENERIC: revision 1.131 Use "options WS_KERNEL_FG=WSCOL_GREEN" as most ports with color support. For demonstration on nono that supports 4bpp framebuffer recently.
2022-05-14Tickets #1446 - #1449martin
2022-05-14Pull up following revision(s) (requested by msaitoh in ticket #1449):martin
sbin/bioctl/bioctl.c: revision 1.19 bioctl(8): Don't print garbage bv_seconds. This bug was added in bioctl.c rev. 1.7. Before: Volume Status Size Device/Label Level Stripe ============================================================= 0 Online 5.5T mfi0 RAID 5 64K 65535 seconds After: Volume Status Size Device/Label Level Stripe ============================================================= 0 Online 5.5T mfi0 RAID 5 64K
2022-05-14Pull up following revision(s) (requested by skrll in ticket #1448):martin
sys/arch/hppa/hppa/idle_machdep.c: revision 1.4 sys/arch/hppa/hppa/machdep.c: revision 1.17 Add some special NOPs to help qemu. thanks to Helge Deller for the heads-up.
2022-05-14Pull up following revision(s) (requested by brad in ticket #1447):martin
external/mpl/bind/bin/confgen/ddns-confgen/Makefile: revision 1.2 distrib/sets/lists/man/mi: revision 1.1739 distrib/sets/lists/base/mi: revision 1.1295 Add LINKS and MLINKS to the ddns-confgen Makefile to provide tsig-keygen. This helps to allow pkgsrc/security/acmesh to function and should be provided in all BIND >= 9.13 installs anyway.
2022-05-14Pull up following revision(s) (requested by skrll in ticket #1446):martin
sys/arch/hppa/hppa/hppa_machdep.c: revision 1.33 port-hppa/56830: RAS support is slightly incorrect on hppa When searching for RAS use tf_iioq_head without the HPPA_PC_PRIV_MASK bits set.
2022-05-13Tickets #1443 - #1445martin
2022-05-13Pull up following revision(s) (requested by bouyer in ticket #1445):martin
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.98 bus_dmamem_unmap() before bus_dmamem_free(), otherwise we may give back meomry which is still (and will stay) mapped. Fixes one instance of "panic: HYPERVISOR_mmu_update failed" on Xen. There may be others.
2022-05-13Pull up following revision(s) (requested by bouyer in ticket #1444):martin
sys/arch/xen/x86/x86_xpmap.c: revision 1.91 In bootstrap, after switching to a new page table make sure that now-unused memory is unmapped.
2022-05-13Pull up following revision(s) (requested by bouyer in ticket #1443):martin
sys/arch/x86/x86/pmap.c: revision 1.414 return after calling xen_pagezero(), don't fall back to the legacy pmap_zero_page() method. This should only affect performances.
2022-05-04Ticket #1441martin
2022-05-04Pull up following revision(s) (requested by gavan in ticket #1441):martin
sys/nfs/nfs_vfsops.c: revision 1.243 Don't pretend that files are limited to 1TB on NFSv3.
2022-05-04Ticket #1442sborrill
2022-05-04Pull up the following revisions(s) (requested by martin in ticket #1442):sborrill
sys/net/if_pppoe.c: revision 1.179 pppoe(4): fix CVE-2022-29867 - discovery phase local network mbuf corruption.