Commit Graph

280371 Commits

Author SHA1 Message Date
riastradh
4a9d230258 Nix trailing whitespace. 2020-08-28 14:18:29 +00:00
rillig
24afb09ffc make(1): add test for unquoted string literals 2020-08-28 14:07:51 +00:00
christos
fb880abaf0 When running the tests with atf-run the directory we are running in is
drwx------ so when we change to a different user, we can't find the socket
we created.

Make a directory and put the socket in there. Of course now atf can't
record its results as a different user, but that is not fatal.

tc-se:FATAL ERROR: Cannot create results file '/tmp/atf-run.9vOjFd/tcr': \
Permission denied
2020-08-28 13:56:29 +00:00
rillig
2556a5c35b make(1): add test for operator precedence in conditions 2020-08-28 13:50:48 +00:00
skrll
a236d6e491 Some KASAN fixes and tweaks
- don't access BSS variables when __md_early
- centralise the INIT_ARM_STACK_{SHIFT,SIZE} defines and create a new
  INIT_ARM_TOTAL_STACK
- Only create L1PT entries in kasan_md_shadow_map_page if
  arm32_kernel_vm_init hasn't created the L2PTs (and their L1PT entries)
- Add some comments to explain what's going on
2020-08-28 13:36:52 +00:00
skrll
9fc58a1d8a Use C rather than assembly 2020-08-28 13:15:05 +00:00
skrll
635474c9a0 Fix build if NBCMDMAC is zero 2020-08-28 13:13:55 +00:00
skrll
fe86e81875 Change to the KVA stack address straight after the MMU is turned on 2020-08-28 13:00:29 +00:00
rillig
4566d0c791 make(1): extend test for the exists function in conditions 2020-08-28 12:59:36 +00:00
skrll
2c31fd85e3 #ifdef -> #if defined 2020-08-28 12:56:19 +00:00
christos
ccbf09f92b Fix uninitialized, caught by llvm. Tuck variables in blocks where they are
needed.
2020-08-28 12:43:24 +00:00
skrll
590893a92f Fix typo in comment 2020-08-28 12:41:17 +00:00
skrll
63cc9a32c9 Fix typo 2020-08-28 12:31:44 +00:00
christos
4acd0e20c1 new compat_bsdos man page. 2020-08-28 12:15:05 +00:00
christos
fd1af70506 New man page from Dan Plassche. 2020-08-28 12:13:09 +00:00
christos
33a3e8378d Remove unneeded sete{u,g}id pointed out by kre.
Remove dup unlink.
2020-08-28 11:46:05 +00:00
skrll
7c7a58674c arm_cpu_topology_set only takes two arguments 2020-08-28 11:15:08 +00:00
christos
d9be629317 We already zeroed the struct, no point in zeroing things twice. 2020-08-28 10:20:14 +00:00
ozaki-r
b30645924a Bump the version for entry additions to IP_STAT and IP6_STAT
Welcome to 9.99.72
2020-08-28 07:29:12 +00:00
hannken
c1106e4a4f Another typo -- its vfs_newvnode(). 2020-08-28 07:28:59 +00:00
ozaki-r
1d675d5a3a netstat: strengthen against kernel changes
netstat uses sysctlbyname to get counter data from the kernel.
sysctlbyname fails with ENOMEM if actual counter data in the kernel is
larger than a passed buffer.  netstat just skips showing counters of a
category if sysctlbyname fails, so if we added new counters of the
category to the kernel, nestat shows nothing for the category.

Fortunately sysctlbyname fills data as much as possible even if a passed
buffer is short.  So we can allow netstat to show the filled data anyway
if sysctlbyname fails with ENOMEM.

Note that this backcompat mechanism works only if new counters are
appended, and doesn't work if new counters are inserted into the middle
or counters are moved.
2020-08-28 07:23:48 +00:00
riastradh
5307371bf3 thmap(9): Minor readability and style tweaks.
- Fix typo: hmap -> thmap

- Reduce excessive indentation.

- Specify largest entry width for flag name table.

- Include parameter names in function descriptions for easier
  reference.
2020-08-28 07:03:41 +00:00
riastradh
6bbba4e45c wg: Sort includes. 2020-08-28 07:03:08 +00:00
riastradh
a190cfde9a netinet: Include the needful so include order doesn't matter. 2020-08-28 07:01:57 +00:00
riastradh
fd6742fbe0 Just zero out struct file::f_lock when exposed to userland.
Userland has no business examining a snapshot of the lock state, even
if pseudonymized.  Should fix hppa build, where kmutex_t is somewhat
larger than anticipated by recent changes.
2020-08-28 06:47:18 +00:00
rillig
2c8df40906 make(1): fix the other assertion from Lst_FindFrom
When I migrated the Lst_FindFrom to the strict API variant, I forgot
that Lst_FindFrom requires both arguments (list and node) to be
non-null.  I had only checked that the list is non-null.

There are only very few calls to Lst_FindFrom, and they are all ok now.
2020-08-28 06:47:14 +00:00
riastradh
c371c223b0 Revert removal -- evidently the leading dash does mean something.
Specifically, it cancels out the same entry elsewhere in the set
list, and apparently it is only for twelve files in the entire tree.
Someone^TM should document this more clearly, and/or just get rid of
it because I'm at least the third person to be confused by this
according to the revision history.
2020-08-28 06:44:02 +00:00
rillig
335ef99a86 make(1): fix assertion failure in suffix handling
Found by running ./build.sh, in the very early stage.
Fixed by restoring the previous behavior of returning NULL for invalid
arguments.
2020-08-28 06:37:21 +00:00
riastradh
3579f73695 npf: Remove harmless vestiges of debugging hacks. 2020-08-28 06:35:50 +00:00
ozaki-r
fb54873b52 netstat: support new packet counters 2020-08-28 06:34:17 +00:00
ozaki-r
9e214c7fd5 inet6: reduce silent packet discards 2020-08-28 06:32:24 +00:00
ozaki-r
d511e529cc inet: reduce silent packet discards 2020-08-28 06:31:42 +00:00
ozaki-r
1595f74976 inet: pull m_get_rcvif_psref out of ip_input for simplicity
Same as ip6_input.
2020-08-28 06:30:08 +00:00
ozaki-r
4c639cc739 inet6: pass rcvif to ip6_forward to avoid extra psref_acquire 2020-08-28 06:28:58 +00:00
ozaki-r
66c98485b3 ether: count dropped packets on output 2020-08-28 06:27:49 +00:00
ozaki-r
71970c91f7 ether: count dropped packets on input 2020-08-28 06:27:16 +00:00
ozaki-r
2b8d8a416c ether: separate handling of LLC frames as ether_input_llc (NFCI) 2020-08-28 06:25:52 +00:00
ozaki-r
28929b6f6d net: introduce IFQ_ENQUEUE_ISR to assemble packet queuing routines (NFCI) 2020-08-28 06:23:42 +00:00
ozaki-r
25b1ccbabd inet: reduce indents of a normal path to improve readability (NFCI) 2020-08-28 06:22:25 +00:00
ozaki-r
b494441ddd ipsec: rename ipsec_ip_input to ipsec_ip_input_checkpolicy
Because it just checks if a packet passes security policies.
2020-08-28 06:20:44 +00:00
ozaki-r
c1e00d7df1 inet, inet6: count packets dropped by IPsec
The counters count packets dropped due to security policy checks.
2020-08-28 06:19:13 +00:00
rillig
d5d52de25e make(1): clean up Dir_AddDir
Extract the null check for path to the top level.  This has the
side-effect of only incrementing dotLast.refCount if that entry is
actually used.

Reduce the indentation of the code by returning early from the simple
branches.
2020-08-28 04:59:17 +00:00
rillig
942d06c278 make(1): remove trailing 'S' from names of Lst functions
The migration from null-passing Lst functions to argument-checking Lst
functions is completed.

There were 2 surprises: The targets list may be NULL, and in Dir_AddDir,
the path may be NULL.  The latter case is especially surprising since
that function turns into an almost-nop in that case.  This is another
case where probably 2 independent functions have been squeezed into a
single function.  This may be improved in a follow-up commit.

All other lists were fine.  They were always defined and thus didn't
need much work.
2020-08-28 04:48:56 +00:00
rillig
4acfd85d5e make(1): migrate Lst_Find to Lst_FindS 2020-08-28 04:28:45 +00:00
rillig
acebd2797e make(1): remove unused reference to Lst_Last 2020-08-28 04:16:57 +00:00
rillig
4b307a6103 make(1): migrate Lst_First to Lst_FirstS 2020-08-28 04:14:31 +00:00
rillig
21328ac495 make(1): add test for the undocumented .NULL special dependency target 2020-08-28 04:05:35 +00:00
rillig
f0fdf22f6f make(1): add tests for the special .INCLUDES and .LIBS variables 2020-08-28 03:51:06 +00:00
rillig
3b8b408b28 make(1): print suffix flags in the standard way
This changes the output (it is now SUFF_NULL instead of just NULL), and
the order of the flags in the output is reversed.
2020-08-28 03:35:45 +00:00
rillig
274dc2d0aa make(1): disable the sync-mi convenience target 2020-08-28 02:45:51 +00:00