Commit Graph

283671 Commits

Author SHA1 Message Date
dholland
53166c520a arm bswap32: fix fatal typo in thumb code (PR 55854) 2020-12-11 09:02:33 +00:00
skrll
0188024f31 Trailing whitespace 2020-12-11 08:23:46 +00:00
nonaka
f9a11fc69d hvn(4): fix unable to ifconfig up/down. 2020-12-11 08:13:08 +00:00
knakahara
f38b032d02 Not pic->pic_addroute but pic->pic_hwunmask should enable interrupts for MSI-X.
pic->pic_addroute should not enable interrupt, because callers expect
interrupts have been disabled until they call pic->pic_hwunmask.

By the way, the old implement writes zero to Vector Control for MSI-X Table
Entries, howerver it must be read and updated.  Because, there are not only
Mask Bit but also ST lower and ST upper.
2020-12-11 07:49:39 +00:00
simonb
28c9f023c7 Add ${LIBUTIL} to DPADD. 2020-12-11 07:24:38 +00:00
martin
66e4afe8fc Fix editor mishap in r1.18 2020-12-11 07:01:27 +00:00
msaitoh
79570ba1ba Don't use EIMC_OTHER bit because it's read only other than 82598.
Documents say:

  82598:
     All of bit 31(OTHER bit) of EIxx are reserved. In reality, at least
    EIMS_OTHER and EIMC_OTHER exist and the OTHER interrupt doesn't work
    without EIMS_OTHER.

  Other than 82598:
     EIMS_OTHER is read only and EIMC_OTHER doesn't exist. If one of
    bit 29..16 is set, EIMS_OTHER is set to 1 (Note that bit 30(TCP timer
    isn't included)). Even if write bit 31 of EIMC to 1, it's ignored
    (EIMS_OTHER doesn't set).

 We introduced new spin mutex in ixgbe.c rev. 1.260, so it's OK to remove
EIMC_OTHER stuff. We already set EIMS_OTHER in if_init(), so keep it for
82598. No functional change other than 82598.

 Another solution is to control bit 30..16 directly to mask/unmask interrupt
instead of the mutex.

TODO:
  Some MSI-X interrupt(LSC, module insertion/removal etc.)'s mask/unmask
  code between ixgbe_msix_admin() and ixgbe_handle_admin() may be wrong.
  It'll be fixed later.
2020-12-11 05:01:19 +00:00
thorpej
2ef9bcafb7 Use sel{record,remove}_knote(). 2020-12-11 03:00:09 +00:00
thorpej
b56263bd4d Add sel{record,remove}_knote(), so hide some of the details surrounding
knote / kevent registration in the selinfo structure.
2020-12-11 01:25:29 +00:00
rillig
4ea80e710c make(1): document why runIgnImpl is used in jobs mode 2020-12-11 01:08:51 +00:00
rillig
428f1d7ff5 make(1): add tests for comments and non-comments in jobs mode 2020-12-11 01:06:10 +00:00
rillig
7700639ac4 make(1): rename shell flags in struct Shell
The previous name 'echo' was too unspecific, given that the other fields
in the same struct are called echoOff, echoOn, echoTmpl.
2020-12-11 00:29:01 +00:00
rillig
c3ac7df32f make(1): clean up comments for struct Shell 2020-12-11 00:22:23 +00:00
rillig
2ef0fcb76c make(1): name Shell fields consistently
They are all templates with a single %s placeholder, so embed this
unambiguously in the variable name.  The previous variable names didn't
provide any clue that echoCmd, execIgnore and errExit had a lot in
common.
2020-12-10 23:54:41 +00:00
rillig
5a661125e0 make(1): clean up JobPrintCommand
The local variable 'cmd' had been used for both the unexpanded and the
expanded command.  This in turn had required the parameter to be
non-const.
2020-12-10 23:36:20 +00:00
rillig
b49a832956 make(1): eliminate global variable numCommands
It had only been used in a very small scope.  The elimination of
Lst_ForEach made it easy to turn this global variable into a local
variable.
2020-12-10 23:12:59 +00:00
rillig
db56543590 make(1): extract JobOpenTmpFile from JobStart 2020-12-10 23:03:00 +00:00
rillig
59fc03e088 make(1): rename RunFlags to CommandFlags
Flags of similar names are also available in CmdOpts (global command
line options) and Job.  The new name CommandFlags emphasizes that these
flags apply to the smallest scope possible, which is a single command,
as opposed to the whole GNode/Job.
2020-12-10 22:45:30 +00:00
rillig
cdd16e62bf make(1): split Job.errOffOrExecIgnore into separate fields
Like errOnOrEcho, these two fields were completely unrelated.  One of
them expected a %s placeholder, the other didn't.
2020-12-10 22:34:39 +00:00
rillig
f4364e07ec make(1): split Job.errOnOrEcho into separate fields
They have never been related.  Furthermore, Job.errOn is really tricky
to reach at all.  To do that, one has to define a custom shell and set
hasErrCtl=true.  The manual page has an example for that, but it's
probably not use in practice, just like the possibility to use the C
shell for all commands.
2020-12-10 22:17:37 +00:00
rillig
ec213df12c make(1): negate Job.silent to echo
This gets rid of a few explicit negations and an implicit negation in
the variable name.
2020-12-10 21:41:35 +00:00
rillig
a6d2ec5914 make(1): unpack struct JobFlags
The job flags are only used individually.
2020-12-10 21:33:25 +00:00
rillig
e6318f0347 make(1): rename commandShell to shell
The word 'command' was not necessary for understanding the variable.
2020-12-10 21:09:58 +00:00
skrll
ed48051c9f Another leading space 2020-12-10 20:50:24 +00:00
rillig
c2147f488d make(1): split JobFlags into separate fields
Having all these flags in a single bitmask makes it harder to see where
exactly they can possibly be used since their state could also be
modified using the unsuspicious job->flags = 0.  Using individual names
just leaves the single memset, and that is only used during
initialization.
2020-12-10 20:49:11 +00:00
skrll
2d27dd3df7 Remove leading space that crept in in the last change 2020-12-10 20:48:33 +00:00
rillig
6d74c4fd10 make(1): in JobStart, negate 'noExec' to 'run' 2020-12-10 20:14:35 +00:00
rillig
8d426fd34d make(1): fix theoretical type mismatch for Job_Touch 2020-12-10 20:10:03 +00:00
rillig
13e47b6b33 make(1): fix test for command flags
The "false" is supposed to be run not only if the command has the '-'
flag, but also if the target is marked as .IGNORE or if the command line
option -i is given.

After the failed command, the remaining commands are skipped, therefore
the final echo for the empty line had to be moved up, at the beginning
of the target.
2020-12-10 17:55:30 +00:00
rillig
57bbdba1d0 make(1): test all combinations of switches for running commands
The code in JobPrintSpecials is rather complicated and contains
surprising interaction between some of the switches.

To see the exact effects of the switches, record the current state and
its output, to prevent accidental breakage during the upcoming
refactorings.
2020-12-10 17:06:13 +00:00
jdc
5b295983c9 Handle failing to acquire the iic bus.
Better handle errors when attaching sysmon sensors.
2020-12-10 17:02:51 +00:00
rillig
2e131e6594 make(1): document limitations of deferred '$' in ':?' modifier 2020-12-10 16:47:42 +00:00
rillig
a108871569 make(1): add test demonstrating how to defer evaluation in :? modifier 2020-12-10 16:36:47 +00:00
martin
52d85f7124 Avoid an unused variable (breaking the build) 2020-12-10 16:07:26 +00:00
mrg
9c9331d392 apply this change to a a couple more tests:
---
date: 2020-07-27 09:57:44 -0700;  author: gson;  state: Exp;  lines: +6 -1;  commitid: m3HouRBlhyJQVJhC;
Skip the repeated_link_addr test by default as it causes the
evbarm-aarch64 testbed to hang (PR port-evbarm/55521), and will not be
safe to run by default even after that bug is fixed, for similar
reasons as t_repeated_updown.
---

t_repeated_mtu.sh changes the MTU, which may cause NFS to fail.
if you have NFS root, this is system killing.

t_repeated_scan.sh kills and restarts both hostapd and
wpa_supplicant.
2020-12-10 08:16:59 +00:00
rin
93b94eb346 Fix armeb; CORE_ADDR is uint64_t but 2nd argument of raw_supply() is
expected to be the same size as PC. Therefore, PC was always read as
zero for big-endian.
2020-12-10 07:27:37 +00:00
rin
9e80800bb0 Fix arm, for which PT_STEP is defined but unimplemented.
XXX
Stop exposing PT_STEP to userland for arm?
2020-12-10 07:14:58 +00:00
yamaguchi
3837a34db4 Add a string literal for IAVF_VC_OP_CONFIG_RSS_LUT 2020-12-10 04:03:00 +00:00
yamaguchi
f171edc80d remove unnecessary lock acquire and release 2020-12-10 04:00:11 +00:00
yamaguchi
cdc9b0031a Fix a wrong value about HENA configuration 2020-12-10 03:58:35 +00:00
christos
33763ceda8 New OpenSSL 2020-12-10 00:36:22 +00:00
christos
4a7cf967a5 merge conflicts, regen 2020-12-10 00:33:08 +00:00
christos
f30e0929c0 Changes between 1.1.1h and 1.1.1i [08 Dec 2020]
Fixed NULL pointer deref in the GENERAL_NAME_cmp function This
function could crash if both GENERAL_NAMEs contain an EDIPARTYNAME.
If an attacker can control both items being compared then this
could lead to a possible denial of service attack. OpenSSL itself
uses the GENERAL_NAME_cmp function for two purposes:

Comparing CRL distribution point names between an available CRL
and a CRL distribution point embedded in an X509 certificate When
verifying that a timestamp response token signer matches the
timestamp authority name (exposed via the API functions
TS_RESP_verify_response and TS_RESP_verify_token) (CVE-2020-1971)
Matt Caswell

Changes between 1.1.1g and 1.1.1h [22 Sep 2020]
Certificates with explicit curve parameters are now disallowed in
verification chains if the X509_V_FLAG_X509_STRICT flag is used.

Tomas Mraz

The 'MinProtocol' and 'MaxProtocol' configuration commands now
silently ignore TLS protocol version bounds when configuring
DTLS-based contexts, and conversely, silently ignore DTLS protocol
version bounds when configuring TLS-based contexts. The commands
can be repeated to set bounds of both types. The same applies with
the corresponding "min_protocol" and "max_protocol" command-line
switches, in case some application uses both TLS and DTLS.

SSL_CTX instances that are created for a fixed protocol version
(e.g. TLSv1_server_method()) also silently ignore version bounds.
Previously attempts to apply bounds to these protocol versions
would result in an error. Now only the "version-flexible" SSL_CTX
instances are subject to limits in configuration files in command-line
options.

Viktor Dukhovni

Handshake now fails if Extended Master Secret extension is dropped
on renegotiation.

Tomas Mraz

The Oracle Developer Studio compiler will start reporting deprecated
APIs
2020-12-10 00:12:35 +00:00
martin
04ba0baf0e Remove <sys/param.h> include and assume users already include that.
Removes an include cycle when including <sys/resource.h> via:
ys/time.h, sys/timevar.h, sys/mutex.h, sys/intr.h on top of this
file, and sys/param.h, uvm/uvm_param.h, sys/resourcevar.h below.
2020-12-09 15:28:38 +00:00
jakllsch
35857d2e18 xhci_pci: avoid potential double free of interrupt handles
Found by Kouichi Hashikawa in PR 55855.
2020-12-09 14:21:09 +00:00
uwe
5c2cedda1f Add "memory" constraint on wrpsr, lost in previous. 2020-12-09 11:35:44 +00:00
skrll
20a68a6fd8 Remove unnecessary aarch64_dcache_wbinv_all now that pmapboot_enter does
dsb(ish)
2020-12-09 08:51:05 +00:00
rillig
a37bf773f6 make(1): clean up test output of opt-jobs-no-action 2020-12-09 08:20:56 +00:00
rillig
255e230425 make(1): remove noise from test output of opt-jobs-no-action 2020-12-09 08:18:35 +00:00
rillig
a98a651d79 make(1): split the -j -n test into separate targets
The manual page says that in -j mode when the shell does not have ErrCtl
(and none of the default shells has that), the command prefix '-'
"affects the entire job", but this seems to be wrong.  At least, there
is no change in the output from before, when all commands had been in
the same target.
2020-12-09 08:15:45 +00:00