Commit Graph

280049 Commits

Author SHA1 Message Date
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
rjs
aaf1e01132 Use wrapper name for call to setsockopt(2), NFC for non-rump builds. 2020-08-28 00:19:37 +00:00
tih
846a89460f Summary: let wg interfaces carry multicast traffic
Once a wg interface is up and running, it is useful to be able to run
a routing protocol over it.  Marking the interface multicast capable
enables this.  (One must also use the wgconfig --allowed-ips option to
explicitly permit the group one needs, e.g. 224.0.0.5/32 for OSPF.)
2020-08-27 19:21:14 +00:00
rillig
74fd7ff4cd make(1): migrate Lst_IsEmpty to Lst_IsEmptyS 2020-08-27 19:15:35 +00:00
rillig
5be8116c2e make(1): pass the command-line variables to the subdir make 2020-08-27 19:09:37 +00:00
rillig
2e8adea593 make(1): add test for the -dg1 option 2020-08-27 19:00:17 +00:00
riastradh
b13ab56848 npftest: Wait at least one tick in each gc busy wait iteration.
Otherwise the busy wait loop runs a little too fast for the gc about
half the times I run the test.

XXX We should really arrange mstohz to round up!
2020-08-27 18:51:20 +00:00
riastradh
fdedb3494c npf: Make sure to initialize portmap_lock only once.
PR kern/55586
2020-08-27 18:50:25 +00:00
riastradh
82242297a7 npf: Don't stop early after sleeping and before processing instances.
We already check winfo->exit below, after processing instances and
before sleeping again.

Candidate fix for:

panic: kernel diagnostic assertion "LIST_EMPTY(&winfo->instances)" failed: file "/home/riastradh/netbsd/current/src/sys/rump/net/lib/libnpf/../../../..//net/npf/npf_worker.c", line 300 NPF instances must be discharged before the npfk_sysfini() call
2020-08-27 18:49:36 +00:00
skrll
7f9d4e51bf Avoid undefined behaviour as detected by KUBSAN 2020-08-27 16:35:13 +00:00
riastradh
64605abad9 Remove bogus Atffile and Kyuafile entries for if_wg tests. 2020-08-27 15:32:37 +00:00
riastradh
0d3faa6162 Sort and deduplicate set lists. 2020-08-27 15:31:59 +00:00
riastradh
af24ffc1cc Omit spurious leading dash in debug/ad.mips set list entries.
(if this actually means something feel free to revert and document
what it means somewhere obvious!)
2020-08-27 15:30:04 +00:00
riastradh
4ab307ac4c Fix obsolete entry for /usr/lib/libcdk.so.
This was broken in rev. 1.1230.
2020-08-27 15:28:53 +00:00
fcambus
aa9ad6b429 Fix a bunch of typos in various kernel man pages. 2020-08-27 14:14:00 +00:00
riastradh
adaf68a3d1 Sort includes, nix trailing whitespace, fix comment. 2020-08-27 14:11:57 +00:00
riastradh
261d3f19e6 Move address hashing from init_main.c to kern_sysctl.c.
This way rump gets it automatically.  Make sure blake2s is in
librumpkern.so, not just in librumpkern_crypto.so, for this to work.
2020-08-27 14:01:36 +00:00
christos
52d4f80613 - when running as root, create the socket under a different uid/gid to verify
that it works properly with different users opening the socket.
- verify that linux works the same for both getpeereid() and fstat()
2020-08-27 14:00:01 +00:00
riastradh
4a294d459c wg: Assert MCLBYTES is enough for requested length in wg_get_mbuf. 2020-08-27 13:44:41 +00:00
kardel
f33b2e8145 Move mii_phy_statusmsg(sc) back to its original position. Fixes
deafness bug on macppc reported and tested by martin@
Thanks !
2020-08-27 10:10:23 +00:00
hannken
381048869c Enable NCLOOKUP for ZFS. 2020-08-27 09:57:33 +00:00
rillig
8dde8e9642 make(1): migrate Lst_Last to Lst_LastS 2020-08-27 07:03:48 +00:00
rillig
b855b10134 make(1): migrate Lst_Succ to Lst_SuccS 2020-08-27 07:00:29 +00:00