Commit Graph

280087 Commits

Author SHA1 Message Date
rillig
c0a3672957 make(1): clean up suffix handling 2020-08-28 17:27:21 +00:00
rillig
24bce02441 make(1): add tests for :tl and :tu modifiers 2020-08-28 17:21:02 +00:00
tih
0e6edd4d77 Show the time of the latest handshake properly formatted. 2020-08-28 17:17:53 +00:00
rillig
5c2c546f89 make(1): fix manual page about the modifiers of the :C modifier 2020-08-28 17:15:04 +00:00
wiz
50aa92b7d9 Add RCS Id. Remove Pp before/after Sh. Remove port after section,
since the man page is in man8 directly (the ports are mentioned
in the text).
2020-08-28 17:13:13 +00:00
christos
573be1b963 PR/55605: Soumendra Ganguly: Wait for child to finish when stdin is not a tty 2020-08-28 17:10:15 +00:00
riastradh
d1cd546d76 usbnet: Reject buflen>MCLBYTES in usbnet_newbuf. 2020-08-28 17:05:32 +00:00
christos
a7b8699571 Don't cache the sa, because we are dealing with multiple mbufs (from ozaki-r) 2020-08-28 17:01:48 +00:00
hannken
cf59275916 Glue operation secpolicy_fs_mount() passes wrong arguments to
operation kauth_authorize_system().

KAUTH_SYSTEM_MOUNT / KAUTH_REQ_SYSTEM_MOUNT_NEW wants the to be
covered vnode and the mount flags, not the mount structure.

Fix for PR kern/55602: zpool panic on mounting zfs filesystem
2020-08-28 16:13:48 +00:00
fcambus
a3f30bc3f5 Fix a bunch of typos in various device drivers and kernel man pages. 2020-08-28 16:07:49 +00:00
rillig
24bb4aab54 make(1): add test for interrupting a command 2020-08-28 15:40:53 +00:00
uwe
a839347f7f Formatting tweaks. 2020-08-28 15:35:34 +00:00
christos
566d2c2d32 missing quote 2020-08-28 15:26:23 +00:00
christos
608106539e Restrict npf.conf fixes to "blacklistd" -> "blocklistd" 2020-08-28 15:25:16 +00:00
riastradh
f2475c4d1d Nix trailing whitespace. 2020-08-28 14:58:25 +00:00
rillig
793156de9d make(1): add tests for the &&, || and ! operators 2020-08-28 14:48:37 +00:00
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