Commit Graph

266299 Commits

Author SHA1 Message Date
maxv
ba0aa175c4 Remove compat_osf1, discussed on tech-kern@. 2019-03-25 19:24:29 +00:00
msaitoh
5abaa90610 Regen. 2019-03-25 11:44:10 +00:00
msaitoh
007a7cb720 Add Bankspeed Pty and NetExcell. 2019-03-25 11:43:50 +00:00
pgoyette
a706d2826c in tundetach(), error is only used #ifdef _MODULE so wrap its declaration. 2019-03-25 10:04:48 +00:00
pgoyette
9444efc680 Put the #ifdef where it belongs (after defining the out2 label which is
referenced only inside #ifdef block)
2019-03-25 09:59:59 +00:00
msaitoh
5ca80a26b1 Regen. 2019-03-25 09:47:17 +00:00
msaitoh
9661323dd3 Remove extra space. 2019-03-25 09:46:50 +00:00
msaitoh
8a41f2d3ca Fix compile error when MIIVERBOSE is set. Reported by Kurt Schreiner. 2019-03-25 09:46:24 +00:00
pgoyette
e5e1d84b3a Resequence the activities in tapdetach() so that no new units can be
created, either by opening /dev/tap or ifconfig tapx create, before
checking to see if we have any active units.
2019-03-25 09:32:25 +00:00
msaitoh
8e65e83118 KNF. No functional change. 2019-03-25 09:20:46 +00:00
pgoyette
443f361467 Resequence the stuff in tundetach() to ensure that no new device units
can be created by either 'ifconfig create' or 'open("/dev/tun0")' paths.

Note: previous efforts at fixing 'modunload if_tun' are abandoned, since
there is no bug.  Just need to ensure that the cloned interface is both
close(1)d _and_ 'ifconfig tunx destroy' before trying to unload.
2019-03-25 09:07:24 +00:00
msaitoh
0234172329 KNF. No functional change. 2019-03-25 07:34:13 +00:00
msaitoh
5c6d6dbd20 - Copy copyright messages from if_ethersubr.c rev. 1.157.
- Add missing RCS ID.
2019-03-25 07:09:54 +00:00
wiz
d774658d68 Bump date for previous. 2019-03-25 07:03:17 +00:00
msaitoh
49933a1a15 Add my name. 2019-03-25 06:17:56 +00:00
msaitoh
847f10c49c - 88E1000(S) has no page select register, so don't access it.
Note that qemu doesn't implement the register and the access fails.
  For I210, we can use the register.
- Don't set PSCR_CRS_ON_TX bit on I210.
2019-03-25 05:39:51 +00:00
msaitoh
8a8225b487 Pass error status to the upper layer in wm_gmii_{i82544,i80003}*(). 2019-03-25 05:32:01 +00:00
msaitoh
44d98e5d58 Revert rev. 1.151 and 1.152 to avoid compile error. Requested by pgoyette. 2019-03-25 04:06:36 +00:00
pgoyette
62ecb00c8f Use correct list name 2019-03-25 02:58:28 +00:00
manu
eeb96f8c80 Add -U flag to dump(8) and dump_lfs(8) to specify dumpdates entry
This address situations where dump(8) cannot figure out the device being
dumped. It also allows tracking of subvolume dumps by using virtual
device as dumpdates entry.
2019-03-25 02:13:01 +00:00
pgoyette
6b80e73dd2 This should do it!
Remove the zombie unit from the zombie list, not the regular list!
2019-03-25 01:06:34 +00:00
pgoyette
0eb6ccdec4 And revert both of the previous. It seems that the structure has
already been removed from the list in the find_zunit() code.

So now, off to really find out why the module won't unload.
2019-03-25 01:01:29 +00:00
pgoyette
8249451478 Fix previous - remove it from the list before freeing the memory. 2019-03-25 00:59:04 +00:00
pgoyette
1b628ee76c If the unit being closed was a "zombie" (ie, the interface was destroyed
previously), remove it from the zombie list after freeing all of its
resources.

This should allow the module to be unloaded even if there was a zombie
at some point.  Without this change, the zombie list never gets emptied.
2019-03-25 00:55:28 +00:00
abhinav
e09538bda2 Only quote the completion matches if we are doing filename completion
If the user supplies a value for the attempted_completion_function parameter
then we cannot be sure if the completion is for filename or something else, in such
a case don't attempt to quote the completion matches.

Reviewed by christos

This should address PR lib/54067
2019-03-24 16:42:49 +00:00
maxv
27667013cc regen 2019-03-24 16:39:46 +00:00
maxv
ddc423bf95 Remove Alpha's compat_linux dependency on compat_osf1. Each function is
copied as-is from compat_osf1 with no functional change. Discussed on
tech-kern@, ok @thorpej.
2019-03-24 16:24:19 +00:00
maxv
6300e1b8c4 Disable preemption when setting PCB_COMPAT32, to prevent a context switch
before cpu_fsgs_reload() finishes, otherwise we write garbage in the GDT.
On NetBSD-current it is harmless, however in NetBSD-8 it might cause
panics, because NetBSD-8 uses the old SegRegs model and under this model
we reload %fs and %gs during switches.
2019-03-24 15:58:32 +00:00
martin
2ee402b3d0 Make the "show" subcommand accept -b startsec to identify a partition
(very usefull for scripts and other robotic callers).
2019-03-24 13:45:35 +00:00
gson
2ebf5b677a Bump date for previous. 2019-03-24 13:31:31 +00:00
martin
f2b09ed0f6 Add support for specifying the partition to resize via -b startsec
(similar to label and other subcommands). Do not fully add gpt_find
functionality here, as resizing multiple partitions in one go does not
make sense.
2019-03-24 13:31:00 +00:00
maxv
46e1422377 Fix a tiny race in setregs and linux_setregs. Between the moment we set
pcb_flags to zero, and the moment cpu_segregs64_zero resets pcb_gs, we may
be preempted.

If this happens, and if the calling LWP was a 32bit thread, when switching
back to that LWP, the context switcher sees that PCB_COMPAT32 is not set in
pcb_flags and tries to perform a 64bit context switch; but pcb_gs contains
a 32bit GDT descriptor, and not a 64bit GS.base value. The wrmsr therefore
faults because the value is non-canonical, and this fault is fatal.

Rearrange the code so that the update of pcb_flags and pcb_gs/pcb_fs is non
interruptible. This fixes the problem, tested with a reproducer (which
therefore doesn't work anymore).

Likely fixes PR/53993.
2019-03-24 13:15:42 +00:00
gson
1fecd7570b Delete the sentence "Wired Equivalent Privacy (WEP) is the de facto
encryption standard for wireless networks", because it no longer is.
2019-03-24 11:22:06 +00:00
pgoyette
9c4fa8bcb0 Add a loadable module for tap(4).
The code was already modularized, we simply didn't build the loadable
module.

Note also that since the tap(4) device can be reasonably accessed by
either creating a  device instance (using ifconfig(8)) or by opening
/dev/tap, we need to create both if_tap.kmod and tap.kmod (similar to
what is done with tun(4)).
2019-03-24 11:20:26 +00:00
kre
531e64eefe Make "includes" depend upon uuid/uuid.h (as already did
depends, dependall, and all) rather than unconditionally
"building" it.

This avoids a "file exists" error from an update build
(where the objdir already contained the link to the file.)

ok mrg@ :
 "if it works from a clean objdir, please commit it.  we can fix more later.."
2019-03-24 10:39:45 +00:00
msaitoh
925078524d Add HAXM. 2019-03-24 04:43:54 +00:00
rin
37add47636 Fix MKCOMPAT=no build for sparc64;
Remove duplicate entry for ./usr/include/g++/bits/sparc.

Reported by K. Schreiner.
2019-03-24 01:16:43 +00:00
rin
b32c6791a1 Remove workaround for internal compiler error.
GCC 7 and 6 work fine without this for both m68k and m68010.
2019-03-24 00:47:16 +00:00
rin
1d1632b562 Fix usage of STACK_ALIGNBYTES in our local change.
Tested on amd64 and i386:
- binaries generated by "gcc -fsanitize=address" work fine
- /usr/tests/usr.bin/{cc,c++}/t_asan_* do not fail
2019-03-24 00:23:59 +00:00
wiz
de76d99fe2 Bump date for previous. 2019-03-23 23:15:11 +00:00
gson
d81be23320 The USB port of the Huawei E5573s-320s portable 4G router successfully
attaches as cdce(4) and works.
2019-03-23 18:56:50 +00:00
sevan
f73f6621c9 SOM & COM from the world of ARM 2019-03-23 17:56:23 +00:00
sevan
90512ac755 Enable Bluetooth support.
usbdevices.config includes support for USB Bluetooth.
Tested on an o2 with a PCI USB adapter and Broadcom BCM20702A0 dongle.
2019-03-23 17:44:49 +00:00
sevan
27257970b8 Reduce duplication by switching to using dev/usb/usbdevices.config 2019-03-23 17:38:29 +00:00
maxv
6023ba8629 Remove references to COMPAT_OSF1 in HPPA, it has never been supported on
this architecture.
2019-03-23 13:05:24 +00:00
maxv
24f7115afd Enable QUEUEDEBUG under DIAGNOSTIC. It has never been documented and used,
but it's very useful and costs basically nothing. I even think we could
enable it by default in the kernel (if we added __predict_false's and
removed some crap).
2019-03-23 12:01:18 +00:00
maxv
2c3f65c016 In fact, xc_broadcast also applies to offline CPUs, so we don't need to
make sure each CPU is online. Remove the checks, I suspect they weren't
totally correct by the way.
2019-03-23 10:02:05 +00:00
pgoyette
327f2c734c Replace compile-time checking for vlan code with a module hook.
Should resolve the errors reported on irc when booting a kernel which
has agr without vlan:


 [   1.0000000] WARNING: module error: built-in module if_agr can't find builtin dependency `if_vlan'
 [   1.0000000] WARNING: module error: built-in module if_agr prerequisite if_vlan failed, error 2
2019-03-23 09:48:04 +00:00
mlelstv
a7b9d4bbeb When buffers are at least page sized, explicitely request page alignment. 2019-03-23 09:33:16 +00:00
pgoyette
bf88b35785 The main compat_netbsd32 module doesn't contain any prior-version-compat
code, so we don't need these CPP_FLAGS.  The appropriate CPP_FLAGS are
included in the Makefiles for the various compat_netbsd32_xx modules.
2019-03-23 03:04:57 +00:00