summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-07-25Add missing entry for ticket #1476.msaitoh
2022-07-24Ticket #1481martin
2022-07-24Pull up following revision(s) (requested by nia in ticket #1481):martin
external/mit/ctwm/libexec/ctwm_app_menu: revision 1.5 (via patch) ctwm_app_menu: Work around "emacs being installed results in the generated ctwmrc containing invalid syntax" problem. Emacs installs a desktop file called "emacsclient" that contains "doublequotes" in its exec string. Pending a better solution for dumping escaped shell lines into the config file, hide or sanitize desktop entires that might mess up the internal ctwmrc quoting rules.
2022-07-17Ticket #1480martin
2022-07-17Pull up following revision(s) (requested by simonb in ticket #1480):martin
usr.bin/vmstat/vmstat.c: revision 1.255 When operating on core files or /dev/mem when using the -M option, use 64-bit math to calculate pool sizes. Fixes overflow errors for pools larger than 4GB and gives the correct output with "vmstat -m" for in use, total allocation and utilisation numbers.
2022-07-17Ticket #1479martin
2022-07-17Pull up following revision(s) (requested by simonb in ticket #1479):martin
sys/kern/subr_pool.c: revision 1.285 Use 64-bit math to calculate pool sizes. Fixes overflow errors for pools larger than 4GB and gives the correct output for kernel pool pages in "vmstat -s" output.
2022-07-15Ticket #1478martin
2022-07-11Ticket #1477martin
2022-07-11Pull up the following revisions, requested by msaitoh in ticket #1477:martin
sys/dev/pci/if_wmreg.h 1.122-1.125 sys/dev/pci/if_wmvar.h 1.48 sys/dev/pci/if_wm.c 1.719-1.720, 1.722-1.725, 1.727-1.740 via patch - wm_tick: Add missing splx(s) when not WM_MPSAFE. - Print DMA range info if the system is booting in the verbose mode. - Micro optimization: - Call m_freem(m) only if m0 == NULL. - Call wm_xxeof() only when limit > 0. - Don't set the more flag when there is no packet to process. - No functional changes: - Call txeof first, then rxeof for the consistency. - Remove duplicated break. - Remove stray semicolons from struct declaration. - Fix value return from void function. - Use macros. - Modify comment. - KNF.
2022-06-22Pull up following revision(s) (requested by martin in ticket #1476):msaitoh
usr.sbin/sysinst/label.c: revision 1.39 PR 56893: fix input validation when the user moves a new partition to a totaly different part of the disk. Fix size handling for freshly added partitions (which would previously use random stack data due to bogus error checking).
2022-06-17Ticket #1475martin
2022-06-17Pull up following revision(s) (requested by shm in ticket #1475):martin
sys/miscfs/procfs/procfs_vnops.c: revision 1.229 Add missing permission check
2022-06-16Tickets #1473 and #1474martin
2022-06-16Pull up following revision(s) (requested by skrll in ticket #1474):martin
sys/arch/hppa/hppa/pmap.c: revision 1.120 Re-reading the PA2.0 Cache Move-In rules tells me we do indeed need to purge the translations from the TLBs in pmap_procwr. PR/56867: hppa: intermittent SIGSEGV reports in t_ptrace_wait's stepN and setstepN test cases
2022-06-16Pull up following revision(s) (requested by skrll in ticket #1473):martin
sys/lib/libkern/arch/hppa/milli_extra.S: revision 1.2 Fix a dumb typo/thinko Thanks to Tom Lane for spotting it.
2022-06-14Tickets #1470 - #1472martin
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.