Commit Graph

279653 Commits

Author SHA1 Message Date
kre
36d40de856 For now, probably forever, prohibit unquoted $ and ` in the names of
functions being defined (they can still be included if quoted).

If we parsed the way POSIX specifies (leaving the exact input text of
$ and ` expansions unaltered, until required to be expanded) this would
not be needed, as the name of a function being defined does not underbo
parameter, command, or arith expansions, so xxx$3() { : ; } would just
work.   But for many reasons we don't do that (and are unlikely to ever,
though maintaing both forms might be an option someday) - which led to
very obscure behaviour (if sh were compiled in DEBUG mode, even an abort())
and certainly nothing useful.   So just prohibit these uses for now.
(A portable function name must be a "name" so this makes no difference
at all to posix compat applications/scripts).

A doc update is pending (the updated sh.1 also contains updates in other
areas not yet appropriate to commit).
2020-08-19 22:41:47 +00:00
chs
a8aa7072a7 in uao_get(), if we unlock the uobj to read a page from swap,
we must clear the cached page array because it is now stale.
also add a missing call to uvm_page_array_fini() if the I/O fails.
fixes PR 55493.
2020-08-19 15:36:41 +00:00
tsutsui
dd79f1e46f Make sure pmap_kenter_pa(9) handles uncached mappings properly.
Fixes "cgfour(4) is mis-probed as bwtwo(4)" problem on 3/80
that has been broken since NetBSD 1.6.
Now Xorg 1.20 based Xsun 8bpp color server is confirmed working
on the cgfour(4).

Should be pulled up to netbsd-9.

XXX: all MD PMAP_NC flags should be replaced with MI PMAP_NOCACHE flag.
2020-08-19 13:11:42 +00:00
yamaguchi
17537a36ef Make descriptor_num in ixl(4) readonly
because ixl(4) does not support reallocating related resources

pointed out by knakahara@, thanks.
2020-08-19 09:22:05 +00:00
yamaguchi
cff67cd8e8 Adjust the default descriptor sizes for ixl(4)
These decreasements has no impact for throughput
while forwarding 64-1518 byte packets.
2020-08-19 09:07:57 +00:00
yamaguchi
2544b2817b whitespace fix
From msaitoh@, thanks.
2020-08-19 09:03:50 +00:00
mrg
a2dc1f3fac merge GCC 8.4 into gcc.old. 2020-08-19 07:46:31 +00:00
simonb
bf74807839 Remove trailing \n from UVMHIST_LOG() format strings. 2020-08-19 07:29:00 +00:00
rillig
2ea44cf014 make(1): don't optimize when measuring the code coverage
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96622
2020-08-19 06:30:37 +00:00
skrll
40a6ec7f3d KNF. Add some whitespace to the TLBINV_MAP macro and tlb_invalidate_op
enum.
2020-08-19 06:11:49 +00:00
rillig
60fd66e933 make(1): fix a few inconsistencies in the manual page 2020-08-19 06:10:06 +00:00
skrll
57bc4fb9c6 Unwrap short line KASSERT 2020-08-19 06:08:27 +00:00
skrll
0c8273cd62 Fix inverted logic test in pmap_tlb_shootdown_process for if the victim
is onproc.
2020-08-19 06:07:03 +00:00
rillig
316fae6cdd make(1): add test for the .newline variable 2020-08-19 05:51:18 +00:00
rillig
57bd6e4e52 make(1): add test for the $$ expression 2020-08-19 05:40:06 +00:00
rillig
697a5bfd15 make(1): add test for the -n option 2020-08-19 05:25:26 +00:00
rillig
e2eaadf3b7 make(1): add test for the -q option 2020-08-19 05:13:18 +00:00
msaitoh
cc67c5474a s/ be be / be / 2020-08-19 02:19:06 +00:00
mrg
cef8759bd7 initial GCC 8.4 -> gcc.old import. 2020-08-18 23:31:16 +00:00
christos
0c510515ef use opendisk()/dehumanize_number 2020-08-18 19:26:29 +00:00
christos
9630bba2c9 make sure errno is always set when we return -1 (Anon Ymous) 2020-08-18 19:18:06 +00:00
maxv
82a320a02c nvmm-x86-svm: improve the CPUID emulation
Limit the hypervisor range, and properly handle each basic leaf until 0xD.
2020-08-18 17:08:05 +00:00
maxv
6d90c51498 nvmm: use relaxed atomics to read nmachines 2020-08-18 17:04:37 +00:00
maxv
49bcb63b40 nvmm: localify a variable that doesn't need to be global 2020-08-18 17:03:58 +00:00
maxv
536d725bb4 nvmm-x86: also flush the guest TLB when CR4.{PCIDE,SMEP} changes 2020-08-18 17:03:10 +00:00
riastradh
257aaf9afb Fix ugen detach after partial attach.
While here, register null pmf handler even for partially attached
devices so they don't needlessly interfere with suspend.

Reported-by: syzbot+5a091d2e62da20b77259@syzkaller.appspotmail.com
2020-08-18 14:32:34 +00:00
simonb
bc5b96679a Fix small tyop in a comment. 2020-08-18 11:48:21 +00:00
simonb
c4cbc27b38 Remove an extra word from a comment to make it more readable. 2020-08-18 11:21:25 +00:00
chs
752f40af2e fix amap_extend() to handle amaps where we previously failed to allocate
the ppref memory.
2020-08-18 10:40:20 +00:00
simonb
daaf9b06cf We don't need to call the POW and FGA bootstrap functions from the FDT
mainbus attach, the iobus attach code does this already and is called
for both iobus-only and FDT cases anyway.

After discussion with jmcneill@.
2020-08-18 10:35:51 +00:00
hannken
d117c8147b Operation union_readdirhook() stores the lower directory as un_uppervp.
This breaks the assumption that un_uppervp->v_mount is the upper mount.

Fix by storing the directory as un_lowervp and adapt union_readdir().

Should fix PR kern/55552: panic with union mount
2020-08-18 09:44:07 +00:00
maxv
17ffbcbdab Add missing cases, to prevent memory corruption.
Reported-by: syzbot+f8b8a689a3560dda27f7@syzkaller.appspotmail.com
2020-08-18 07:53:24 +00:00
skrll
ccc083321e Fix MULTIPROCESSOR build 2020-08-18 07:41:41 +00:00
skrll
3635371f3e Improve a panic message ever so slightly 2020-08-18 07:25:46 +00:00
nakayama
ffe8239bf9 Quoted from the top of the file:
# Note: don't delete entries from here - mark them as "obsolete" instead.
2020-08-18 07:13:59 +00:00
perseant
c7e481e284 Add skipped test for in-kernel roll-forward agent 2020-08-18 03:02:50 +00:00
simonb
2b428978f3 Regen. 2020-08-18 02:53:25 +00:00
simonb
6be04df69b Add Moonbase Otago OneRNG Random Number Generator. 2020-08-18 02:53:01 +00:00
mrg
e6a4ce4e30 avoid build failure on !DBB kernels.
should fix arc, emips, ews4800mips, mipsco, newsmips and pmax builds.
2020-08-17 21:50:14 +00:00
jmcneill
61ff6cfad0 Attach an iobus with octrnm even if using devicetree (there is no
corresponding node for this device in the DT).
2020-08-17 21:25:12 +00:00
jmcneill
4a584abca1 IPI_SHOOTDOWN needs to be IPL_SCHED. Spotted by nick. 2020-08-17 21:00:29 +00:00
christos
1c9f21f0f6 remove commented out MEMORY_DISK_* entries 2020-08-17 20:43:13 +00:00
christos
44fc6258f3 correct MEMORY_DISK_* option docs 2020-08-17 19:41:32 +00:00
riastradh
07c506680f Move wayward clause to where it belongs and makes sense.
Note how blowfish-cbc chooses the CBC IV.
2020-08-17 17:18:02 +00:00
christos
c47c63583c be host friendly 2020-08-17 16:26:03 +00:00
riastradh
7f7b51ca34 Make the AES and ChaCha NEON tests work in softfloat userland.
(`Softfloat' here refers to the ABI, which of course may be running
on a CPU with NEON.)
2020-08-17 16:26:02 +00:00
skrll
cc48267535 Give a hint to what the IPI numbers are, i.e. "(A/R)" meaning active and
requested respectively
2020-08-17 15:22:51 +00:00
skrll
f9d40dbbb8 Disable __HAVE_PREEMPTION. It is currently marked
#if defined(MULTIPROCESSOR) && defined(__HAVE_FAST_SOFTINTS)

but has no chance of working on OCTEON due to at least the spl functions
2020-08-17 14:17:49 +00:00
mrg
5c87c55a47 enable raidframe. 2020-08-17 09:03:03 +00:00
mrg
a152fe0b55 add pmaphist calls around seg_tab[] manipulation. hopefully will
help find what causes this:

panic: pmap_segtab_alloc: pm_segtab.seg_tab[1010] != 0 (0x980000004eeb6068): from free list
2020-08-17 08:56:27 +00:00