Commit Graph

274771 Commits

Author SHA1 Message Date
kamil
6a8b9e4b54 Reduce diff with upstream
Remove local no longer needed modifications.
2020-03-12 15:56:44 +00:00
roy
8a456320fe curses: use perror rather than err in initscr
libhack lacks err and perror is more portable.
2020-03-12 15:50:11 +00:00
pgoyette
e135ca8390 Add new netbsd32 quota modules to sets lists 2020-03-12 15:04:13 +00:00
pgoyette
1f582b1772 regen 2020-03-12 15:03:15 +00:00
pgoyette
4b5fc12da6 Split out the quota code from the rest of compat_netbsd32 module. This
allows loading of compat_netbsd32 on kernels that don't have ``options
QUOTA'' enabled.
2020-03-12 15:02:29 +00:00
roy
62c320f6cd terminfo: truncate numeric parameters to a short
Because that is what our API demands.
We should probably change to int when we next bump the API.
2020-03-12 14:52:04 +00:00
martin
77fd0cba8e bsize_torture: skip bigger page size tests if space in the database
directory is limited (numbers pulled out of thin air).
2020-03-12 14:10:59 +00:00
martin
2fd0a933ab btree_weird_page_split: set timeout to 900s, now my landisk tests have
a chance to complete this one.
2020-03-12 14:03:42 +00:00
tnn
7fa2fb34ed vmx_vmptrst(): only used when DIAGNOSTIC 2020-03-12 13:01:59 +00:00
martin
a46096ef2b Bump timeout to 10m 2020-03-12 12:57:45 +00:00
roy
d93d20bc2b curses: normalise erase logic with clrtoeol and clrtobot
Define WA_ATTRIBUTES as 0 for the non wide case just to make our code
easier to write.
2020-03-12 12:17:15 +00:00
roy
8e383c4d06 curses: note the change in initscr in our fine man page. 2020-03-12 11:38:28 +00:00
roy
4f3ce5d8c9 Revert allowing fd == -1 at the request of Christos. 2020-03-12 11:31:23 +00:00
ad
a0dc2ed65a Put back missing set of SPCF_SHOULDYIELD. 2020-03-12 10:44:00 +00:00
yamaguchi
46c80a8520 hold the lock for struct ixl_softc during read or write to sc->sc_media_*
OKed by knakahara@n.o
2020-03-12 09:38:10 +00:00
yamaguchi
ad58ea6187 remove unnecessary code because IFM_ACTIVE is setted
in ixl_set_link_status()

OKed by knakahara@n.o
2020-03-12 09:34:41 +00:00
thorpej
c70590ecd0 Add support for MBUFTRACE. 2020-03-12 03:01:46 +00:00
roy
63d07d6408 curses: Fix werase(3) wide character support
We need to consider erasing all attributes, not just WA_ATTRIBUTES.
Fixes PR lib/23910.

While here, make the function a little more readable.
2020-03-11 23:47:40 +00:00
roy
5e81f724dc curses: application should exit if initscr(3) fails
POSIX defines this behaviour here:
https://pubs.opengroup.org/onlinepubs/7908799/xcurses/initscr.html

Partial fix for PR lib/23910
2020-03-11 21:33:38 +00:00
mrg
e913553b0b note GCC 8.4 may need some cleaning. 2020-03-11 21:07:40 +00:00
msaitoh
9dbe1673a3 Use unsigned to avoid undefined behavior. Found by kUBSan. 2020-03-11 16:20:57 +00:00
msaitoh
5a1f30c9b4 Regen. 2020-03-11 16:13:49 +00:00
msaitoh
c3097cc91e Add some GeForce devices. 2020-03-11 16:13:13 +00:00
msaitoh
d031c31410 Use unsgined more. 2020-03-11 16:05:31 +00:00
mlelstv
e43dd24750 Don't wait for data buffer. 2020-03-11 13:48:45 +00:00
thorpej
29807ee596 With DEBUG defined, it's possible to execute a TLB-vs-segmap consistency
check from a (soft) interrupt handler.  But if a platform does not otherwise
require the pmap_tlb_miss_lock, then where will be a brief window of
inconsistency that, while harmless, will still fire an assertion in the
consistency check.

Fix this with the following changes:
1- Refactor the pmap_tlb_miss_lock into MI code and rename it from
   pmap_tlb_miss_lock_{enter,exit}() to pmap_tlb_miss_lock_{enter,exit}().
   MD code can still define the "md" hooks as necessary, and if so, will
   override the common implementation.
2- Provde a pmap_bootstrap_common() function to perform common pmap bootstrap
   operations, namely initializing the pmap_tlb_miss_lock if it's needed.
   If MD code overrides the implementation, it's responsible for initializing
   its own lock.
3- Call pmap_bootstrap_common() from the mips, powerpc booke, and riscv
   pmap_bootstrap() routines.  (This required adding one for riscv.)
4- Switch powerpc booke to the common pmap_tlb_miss_lock.
5- Enable pmap_tlb_miss_lock if DEBUG is defined, even if it's not otherwise
   required.

PR port-mips/55062 (Failed assertion in pmap_md_tlb_check_entry())
2020-03-11 13:30:31 +00:00
fcambus
d26c453c14 Regen. 2020-03-11 10:57:32 +00:00
fcambus
4e4041ee21 Add device IDs of the VIA VX900 chipset. 2020-03-11 10:53:07 +00:00
mrg
3668c3c4cc regen to get right netbsd version string. 2020-03-11 10:38:36 +00:00
mrg
34cfe7b79f update GCC entry for 7.5.0 and 8.4.0. 2020-03-11 10:11:53 +00:00
mrg
64d99cf939 mknative-gcc for all platforms for GCC 8.4.0. 2020-03-11 10:08:45 +00:00
mrg
e94febb36e update date for GCC 8.4.0 import. 2020-03-11 10:07:01 +00:00
roy
17da0e5463 tests: check RTA_AUTHOR in messages 2020-03-11 08:52:13 +00:00
mrg
96d60fd484 regen for GCC 8.4.0. 2020-03-11 08:44:32 +00:00
skrll
fcbc11fb45 Fixup the evbarm PCI modules 2020-03-11 08:31:08 +00:00
mrg
83b6813952 merge GCC 8.4.0. 2020-03-11 08:29:44 +00:00
mrg
003ba354c1 import GCC 8.4. it fixes at least these 210 PRs in GCC bugzilla:
90095 93348 89906 89766 86747 87770 89588 89753 88235 89762 89684 89946
89965 90010 90026 90733 90810 90840 90842 90867 91623 92930 93073 93402
93505 93576 93744 93820 93908 85762 86429 86521 87327 87480 87513 87554
87685 87748 88183 88380 88394 88419 88690 88820 89381 89422 89576 89831
89917 90951 92003 92852 93140 80791 89358 89970 90899 89212 89419 92745
93684 93789 88273 91826 92376 84746 89497 89595 89664 89711 89725 90018
90316 90900 91108 91293 91772 92763 93054 93246 90313 92420 93434 93767
88530 89517 91838 79262 84680 85459 85711 85860 86567 87008 87651 87652
88469 89546 89827 90197 93072 93241 81800 89190 85400 91472 91854 92095
92131 92575 93704 60228 61414 65782 89405 89498 89703 89752 90187 90193
90898 91401 91450 91665 92296 92384 92438 92615 92648 92723 92732 92904
93087 93228 93515 93905 82081 92859 89712 89876 92106 82645 78552 81266
85965 89102 90165 90299 90532 91436 92059 93205 93325 93562 90359 91280
91375 92674 92704 93439 92768 80938 83361 90563 92113 92961 87833 89848
89902 89903 92022 93828 78179 79221 82920 84016 87015 88075 89077 89266
90454 90634 91226 92154 92664 92886 93065 92692 92629 80590 91944 92899
92977 93463 89601 88025 91660 91845 90498 91077 84487 86119 89174 89981
91550 92569 84135 84974 90872 93714
2020-03-11 08:15:39 +00:00
roy
3d4211e6a1 blacklist: Don't remove a ruleset if we have already added it
The noted argument is wrong - if it's already been deleted then the id we
have for it is invalid.
Because we don't track deletions to the ruleset, working it out is
problematic at best.

Instead, if we have already added the rule treat it as a non-op.

This is a valid use case because we might receive a burst of messages
in the downstream application for the same address and process them
one by one. It's not the job of the downstream application to track
blacklistd state.
2020-03-11 02:33:18 +00:00
roy
dbbcb133c0 blacklist: Allow blacklist_sa to work with an invalid fd
fd -1 is invalid, so don't query it for protocol, port or address.

fd is supposed to represent how the client is connected, but if we are
parsing route(4) messages or log files then there is no client connection
to interogate.
2020-03-11 02:12:08 +00:00
ad
8dcd5a32c9 - pmap_check_inuse() is expensive so make it DEBUG not DIAGNOSTIC.
- Put PV locking back in place with only a minor performance impact.
  pmap_enter() still needs more work - it's not easy to satisfy all the
  competing requirements so I'll do that with another change.

- Use pmap_find_ptp() (lookup only) in preference to pmap_get_ptp() (alloc).
  Make pm_ptphint indexed by VA not PA.  Replace the per-pmap radixtree for
  dynamic PV entries with a per-PTP rbtree.  Cuts system time during kernel
  build by ~10% for me.
2020-03-10 22:38:41 +00:00
christos
5a4646458a Make the db_kernelonly() macro visible to all files and re-use it.
Register access is kernel only.
2020-03-10 15:58:36 +00:00
christos
62b28cbd3f Don't provide things that don't make sense in userland. We don't provide
access to registers crash(8)...
2020-03-10 15:54:52 +00:00
roy
420d77836f Whitespace police. 2020-03-10 13:36:07 +00:00
martin
da433f6296 gcc thinks the static "led_index" could get out of range - not sure
how that should happen, but test for >= instead of == on the
array size.
2020-03-10 11:07:39 +00:00
knakahara
258ba86eac Fix ipsecif(4) SPDADD pfkey message has garbage. Pointed out by ohishi@IIJ.
"setkey -x" output is the following.

========== before ==========
sadb_msg{ version=2 type=14 errno=0 satype=0
  len=15 reserved=0 seq=0 pid=0
sadb_ext{ len=56 type=18 }
sadb_x_policy{ type=2 dir=1 id=9 }
 { len=40 proto=50 mode=1 level=3 reqid=16393
sockaddr{ len=0 family=0  }
sockaddr{ len=0 family=0  }
 }
========== before ==========

========== after ==========
sadb_msg{ version=2 type=14 errno=0 satype=0
  len=11 reserved=0 seq=0 pid=0
sadb_ext{ len=24 type=18 }
sadb_x_policy{ type=2 dir=1 id=9 }
 { len=8 proto=50 mode=1 level=3 reqid=16393
 }
========== after ==========
2020-03-10 10:35:14 +00:00
rin
880f104786 For kernel, rename ffs to __ffssi2 rather than having a weak symbol.
This enables us to load modules depended to __ffssi2.

It is difficult to deal with weak symbols consistently in in-kernel
linker. See explanation by pgoyette on tech-kern:

    http://mail-index.netbsd.org/tech-kern/2020/03/09/msg026148.html

Also, we do not currently provide ffs(9) as a kernel routine.
2020-03-10 08:15:44 +00:00
thorpej
fe3a29ce79 Comment out the diagnostic message in the TLB_MOD handler that's logged if
pmap_tlb_update_addr() indicates that the VA+ASID was not found in the TLB.
It's a harmless race condition that can happen for legitimate reasons (e.g.
a TLB miss in an interrupt handler that evicts the entry from the TLB).

See discussion:
    http://mail-index.netbsd.org/port-mips/2020/03/07/msg000927.html
2020-03-10 04:04:45 +00:00
christos
4c273c03e2 kill extra curproc/curlwp definitions that have no chance of working. 2020-03-10 03:49:56 +00:00
christos
d0132d5060 tuck curproc/curlwp under _KERNEL only (no _KMEMUSER) 2020-03-10 03:48:05 +00:00
thorpej
0325c535fc On NetBSD it's spelled "__NO_STRICT_ALIGNMENT". Adjust txp_rx_reclaim()
accordingly and structure it like other NetBSD drivers so as to re-use
the original Rx buffer rather than doing a needless free/alloc cycle.

Note this happened to work previously on my Qube2 because IP, TCP, etc.
perform their own alignment checks and react accordingly.  However, it's
not clear that ALL protocols do this yet, so it's better to just do the
safe thing for now.
2020-03-10 01:23:42 +00:00