Commit Graph

260379 Commits

Author SHA1 Message Date
maxv
ba9c330587 Merge the tprof_pmi and tprof_amdpmi modules into a single tprof_x86
module.
2018-07-24 09:47:35 +00:00
msaitoh
307b22e57b Regen. 2018-07-24 09:16:53 +00:00
msaitoh
72d5b8886a - Add Huawei HWD12, E353, E355, E392, EC156, E3272 / Softbank 203HW
- Add NetIndex RT-WJ02 and UX312NC.
- Add Siemens HC28
- Add ZTE MF112, MF119, MF190, MF228 modem / Softbank 004Z
2018-07-24 09:16:23 +00:00
msaitoh
2b40697274 - USB_VENDOR_QUALCOMM -> USB_VENDOR_LG
- USB_VENDOR_4GSYSTEMS -> USB_VENDOR_LONGCHEER
2018-07-24 08:15:57 +00:00
msaitoh
80175f07ad Regen. 2018-07-24 08:14:03 +00:00
msaitoh
0cc603febd - Vendor ID 0x0430 is not Sun Microsystems but Fujitsu Component
(it's listed in usb.if). Same as OpenBSD.
- Add Fujitsu Component Smart Power Strip FX-5204PS, Base Station FX-5251WB
  and Virtual Eth Device From OpenBSD.
- Vendor ID 0x1004 is not Qualcomm but LG Electronics (it's listed in usb.if).
- Add Cinterion
- Rename 4GSYSTEMS to LONGCHEER. Same as other OSes.
- Add Longcheer WM66 HSDPA, Emobile D21LC Mass only mode, Emobile D21LC,
  IIJmobile 510FU and IIJmobile 510FU Mass only mode.
- Add Sierra Wireless C01SW.
- Add SMSC USB 2.0 7-Port Hub.
- Add ZTE MF633 USUPA USB modem and USB MSM installer.
2018-07-24 08:13:34 +00:00
roy
62a7123cbf Note import of dhcpcd-7.0.7 2018-07-24 07:59:46 +00:00
roy
4addc59065 Import dhcpcd-7.0.7 with the following changes:
*  host routes work correctly again
  *  vlanid is also used to calculate slaac stable private addresses
2018-07-24 07:58:31 +00:00
wiz
e9f8a46eb1 Fix applyo. 2018-07-24 05:40:15 +00:00
msaitoh
62965ccdb9 On detach, print error message with aprint_error_dev() instead of printf(). 2018-07-24 03:58:36 +00:00
kamil
91b5cea292 TODO.sanitizers: Remove a finished item
New Clang/LLVM landed the sources (by Joerg).
A compiler-rt import is still pending.
2018-07-24 02:52:15 +00:00
ryo
6117e2b2e4 * fix icache invalidations.
* "ic ivau" (aarch64_icache_sync_range) with VA generates permission fault in some situations, therefore use KSEG address for now.
2018-07-23 22:51:39 +00:00
ryo
8a3f16b6b6 rather than using flags to resolve nested locks, reserve pool_cache before locking. 2018-07-23 22:32:22 +00:00
macallan
f24adce462 if the framebuffer address isn't page aligned, set fbi_fboffset appropriately 2018-07-23 00:51:40 +00:00
kre
14482abc9a Part 2 of pattern matching (glob etc) fixes.
Attempt to correctly deal with \ (both when it is a literal,
in appropriate cases, and when it appears as CTLESC when it was
detected as a quoting character during parsing).

In a pattern, in sh, no quoted character can ever be anything other
than a literal character.   This is quite different than regular
expressions, and even different than other uses of glob matching,
where shell quoting is not an issue.

In something like

	ls ?\*.c

the ? is a meta-character, the * is a literal (it was quoted).  This
is nothing new, sh has handled that properly for ever.

But the same happens with
	VAR='?\*.c'
and
	ls $VAR

which has not always been handled correctly.   Of course, in

	ls "$VAR"

nothing in VAR is a meta-character (the entire expansion is quoted)
so even the '\' must match literally (or more accurately, no matching
happens - VAR simply contains an "unusual" filename).  But if it had
been

	ls *"$VAR"

then we would be looking for filenames that end with the literal 5
characters that make up $VAR.

The same kinds of things are requires of matching patterns in case
statements, and sub-strings with the % and # operators in variable
expansions.

While here, the final remnant of the ancient !! pattern matching
hack has been removed (the code that actually implemented it was
long gone, but one small piece remained, not doing any real harm,
but potentially wasting time - if someone gave a pattern which would
once have invoked that hack.)
2018-07-22 23:07:48 +00:00
kre
d211c89f40 NFC: Whitespace cleanups 2018-07-22 21:16:58 +00:00
kre
ee4a694a18 PR bin/36532 (perhaps)
This is more or less the same patch as provided in the PR
(just 11 years later, so changed a bit) by woods@...

Since there is no known way to actually cause the reported crash,
we may never know if this change actually fixes anything.   But
even if it doesn't it certainly cannot hurt.

There is a potential race which could possibly explain the issue
(see commentary in the PR) which is not easy to avoid - if that is
the actual cause, this should provide a defence, if not really a fix.
2018-07-22 20:43:58 +00:00
kre
144cb20913 Revert previous, change has nothing to do with DEBUG mode.
COming again (correctly) in a few seconds.
2018-07-22 20:42:50 +00:00
kre
bcacfd9a45 DEBUG mode only change (ie: no effect to any normal shell).
Add tracing of pattern matching (aid in debugging various issues.)
2018-07-22 20:38:06 +00:00
kre
e442a1a054 Minor cleanups to growstackblock(). This should really change
nothing that matters, but might be slightly more robust/complete.
2018-07-22 20:37:57 +00:00
kre
57731ef9bb NFC: better protect the INTON (etc) macros ( do { } while(0) )
This is just a kind of precaution, none of the uses actually
require the extra protection.
2018-07-22 20:37:52 +00:00
maxv
2b85909210 Clean up dbregs; remove useless comments, remove arguments from prototypes,
style, add KASSERT and move x86_dbregspl into dbregs.c. No real functional
change.
2018-07-22 15:02:51 +00:00
maxv
1577172429 I realized the changes I made broke the !aslr conf, so enable aslr by
default now rather than later (and rather than adding more ifdefs).

Now the location of the direct map is randomized at boot time in GENERIC.
2018-07-21 21:26:30 +00:00
maya
afd3cd8b87 Remove comment mentioning an i386 problem from non-x86 kernel configs.
(they all say BROKEN in the next comment too)
2018-07-21 19:39:44 +00:00
ryo
32d5f8d5d1 don't depend endian. 2018-07-21 18:58:05 +00:00
snj
d55a68a4f5 add netbsd 8.0, fix whitespace 2018-07-21 18:50:22 +00:00
maya
3106ab01ca Remove unused variable. 2018-07-21 18:11:09 +00:00
maxv
e7540c4503 Forgot to commit a change in i386/cpufunc.S; add rdtsc(), so that it can be
used in cpu_rng. Restore the cpu_rng code back to how it was in my initial
commit.
2018-07-21 16:21:27 +00:00
kre
83f0420ee1 Unbreak build. Fake out (ie: remove) rdtsc() which does not
exist on XEN (or not yet anyway).

This change needs to be reverted when a proper solution ic implemented.
2018-07-21 14:46:41 +00:00
ryo
317194ee46 return correct signo and code in accordance with return value of uvm_fault. 2018-07-21 13:23:48 +00:00
ryo
cefa1be3ca * avoid deadlock. mutex_owned() works only for adaptive lock, therefore we cannot use it for spinlock...
* add more NULL check
* clear pte when pmap_enter() fails
2018-07-21 13:08:35 +00:00
kre
3528bd1063 When files are deleted, they need to be removed from the Makefile
as well ... does none of this ever get tested before it is committed?
2018-07-21 09:51:20 +00:00
maxv
b6a911a673 Create /dev/ksyms as "440 $g_kmem". This prevents unprivileged users from
reading the kernel symbols. Discussed in January 2018 on tech-kern@,
reported by maya@, tested by tih@.
2018-07-21 07:46:56 +00:00
maxv
7d28040187 Remove "no options GPROF", we don't have GPROF in the x86 kernels anymore.
By the way this caused a warning because GPROF is not defflag'ed
correctly...
2018-07-21 06:30:27 +00:00
maxv
c37505d1f5 note removal of tpfmt 2018-07-21 06:28:02 +00:00
maxv
f372490f1d Remove the tprof_amdpmi.4 and tprof_pmi.4 man pages. 2018-07-21 06:25:29 +00:00
maxv
48fadaea82 More ASLR. Randomize the location of the direct map at boot time on amd64.
This doesn't need "options KASLR" and works on GENERIC. Will soon be
enabled by default.

The location of the areas is abstracted in a slotspace structure. Ideally
we should always use this structure when touching the L4 slots, instead of
the current cocktail of global variables and constants.

machdep initializes the structure with the default values, and we then
randomize its dmap entry. Ideally machdep should randomize everything at
once, but in the case of the direct map its size is determined a little
later in the boot procedure, so we're forced to randomize its location
later too.
2018-07-21 06:09:13 +00:00
kre
c83568a7dc First pass at fixing some of the more arcane pattern matching
possibilities that we do not currently handle all that well.

This mostly means (for now) making sure that quoted pattern
magic characters (as well as quoted sh syntax magic chars)
are properly marked, so they remain known as being quoted,
and do not turn into pattern magic.   Also, make sure that an
unquoted \ in a pattern always quotes whatever comes next
(which, unlike in regular expressions, includes inside []
matches),
2018-07-20 22:47:26 +00:00
christos
da66a31a53 unbreak aarch64 2018-07-20 20:50:34 +00:00
christos
5d320fc43c flip the byte order 2018-07-20 20:49:59 +00:00
kre
fd9099727e Several improvements to this test...
In the filename expansion test, don't insist on testing cases
of [^a] anything not an a) (etc) - while almost all shells allow
^ there (as in regular expressions) this is not standard sh/glob syntax
(! is used for that, not ^).  Use of ^ as first char after '[' in a []
match has unspecified behaviour.   So, check if the shell being
tested supports ^ used this way before running the tests of ^ in [].
This makes no difference at all when testing the NetBSD sh which
does allow ^ for that use case.

Fix an obvious (in hindsight) stupidity in the case pattern tests
(a cut/paste/forget-to-fix type error).

Many cleanups, including some additional sub-tests, for the var
substring matching (just a couple of actual fixes to the tests).
(This was the last added, and least polished part - still is.)

This makes no difference to the filename expansion tests (11 of 167
still fail), the fix reduces the failing case match tests from
14 of 261 to 13 of 261.   For var substring tests, the failure
has changed from 6 of 87 to 8 of 99.   (Some) Fixes to sh will appear
soon.

For comparison, using this version of the test, dash passes all case
and var substring tests, and (aside from the [^...] tests which it
does not implement) fails 4 of the filename tests.   bash fails one
case test (a bash oddity in interpretation of the spec, which is unique
to bash amongst shells I have tested)  and one filename expansion (all
var substring tests pass).  Other shells are much worse (though the
freebsd shell results were coloured by the version of their shell I
tested still having the [[:xxx:]] always matches '[' bug, which is
fixed in later versions of their shell)
2018-07-20 18:25:56 +00:00
martin
f010b96d82 Andrius V in PR kern/53461: add support for D-Link DUB-1312 2018-07-20 16:38:42 +00:00
martin
ad4150787f Regen 2018-07-20 16:37:32 +00:00
martin
e9d8f0fa25 Andrius V in Pr kern/53461: add D-Link DUB-1312 2018-07-20 16:36:16 +00:00
kre
3ef826f570 PR bin/53458
Bring this script a little up to date - make it work with modern /bin/sh
(avoid HOSTNAME as a random variable) clean up trailing spaces on lines,
use $( ) instead of `` ...
2018-07-20 13:11:01 +00:00
ryo
ac20698df5 fix a bug. no need postincrement here. 2018-07-20 12:19:07 +00:00
wiz
994e6db959 Improve wording. 2018-07-20 08:34:24 +00:00
msaitoh
502cc4207c Add "show socket" command written by Hiroki SUENAGA. It prints usage of
system's socket buffers.
2018-07-20 08:26:25 +00:00
ryo
1b8eee7796 avoid double-fault caused by reading the instruction when panic 2018-07-20 07:12:50 +00:00
maya
46eba87012 throw in drmkms, mention riscv work by zmcgrew 2018-07-20 01:52:07 +00:00