Commit Graph

268782 Commits

Author SHA1 Message Date
christos
3ce1b34236 add a register validation hook for ptrace on netbsd32 to be used for
64 -> 32 debugging.
2019-07-20 18:23:05 +00:00
bouyer
10bccfac7a Add newfs_msdos to amd64 install media, proposed on port-amd64@ back in
december.
newfs_msdos is needed to make a UEFI bootable disk.
2019-07-20 15:55:40 +00:00
bouyer
8129437f91 Don't kmem_alloc()/kmem_free() with spin lock held: call can_pcbsetfilter()
without canp_mtx; take it here and check canp_state before updating the
canp_filters.
2019-07-20 15:34:41 +00:00
sevan
4b86db61e8 CACLS DIA ICACLS 2019-07-20 13:29:36 +00:00
mrg
38eac6775d update for freetype 2.10.0 2019-07-20 03:54:50 +00:00
mrg
8811cab792 updates for freetype 2.10.0 2019-07-20 02:06:12 +00:00
hkenken
64d2f95e5c Fixed compile error. 2019-07-19 12:14:15 +00:00
bouyer
7aac0383ea Don't allocate edid informations on stack, it's too large (struct edid_info is
near 3KB), and causes a stack overflow, corrupting proc0's struct pcb.
2019-07-19 10:54:26 +00:00
knakahara
b7e1580146 vmx(4) can be set IFEF_MPSAFE now.
I tested bidirectional forwarding with some ioctls.
2019-07-19 08:49:44 +00:00
knakahara
d846875160 Store IFF_ALLMULTI in ec->ec_flags instead of ifp->if_flags.
See such as if_wm.c:1.636.
2019-07-19 08:46:32 +00:00
knakahara
005f86ba70 vmx(4) enable jumbo frame.
I tested 1600 mtu to/from Linux vmxnet3.
2019-07-19 08:31:41 +00:00
mrg
498e2674f8 revert previous. meant to delete that change... 2019-07-19 04:18:49 +00:00
mrg
3011319df8 call ure_stop_locked(), not ure_stop(), from ure_init_locked() to
avoid locking botch.  fixes assert reported by sc.dying.
2019-07-19 04:17:34 +00:00
kamil
615deb79c3 Enhance locking of ptrace_update_lwp
Replace lwp_delref() + mutex_enter() with: mutex_enter() + lwp_delref2().
This avoids extra taking and exiting from a mutex.

Add missing mutex_exit() for LW_SYSTEM.

Do not switch lwp for PT_SET_SIGINFO. This operation is not needed and
avoids panic for >2 LWPs as p_lock is attempted to be entered again in a
critical section.
2019-07-18 20:10:46 +00:00
palle
101d6b7d00 sun4v: added some missing comments to the code in pcbspill 2019-07-18 18:21:45 +00:00
msaitoh
c654cc41b9 Use unsigned to fix compile error on i386. 2019-07-18 12:04:16 +00:00
hannken
823dcab2e3 Make namei() work with no root dir yet.
From David Holland with minor tweaks from me.

Should fix PR kern/54378 (panic with TLB miss when attempting to reboot)
2019-07-18 09:39:40 +00:00
msaitoh
dd462ecddb Note piixpm(4), amdsmn(4) and amdzentemp(4). 2019-07-18 09:07:59 +00:00
msaitoh
36bfd4aa4c Add support for Ryzen 2xxx and 3xxx. 2019-07-18 08:53:41 +00:00
msaitoh
13977e7ff9 Regen. 2019-07-18 08:51:49 +00:00
msaitoh
47cd7b2277 - Intel C620 Virtual Switch Port for Termal Sensor is not 0x37c6 but 0x37c7.
- Add Some AMD Ryzen 3xxx's devices.
2019-07-18 08:50:50 +00:00
msaitoh
1c73a23a90 Remove whitespace for consistency. 2019-07-18 07:49:26 +00:00
skrll
3c5d9b0040 Simplify conditionals when clearing the CONTIG flag in pmapboot_enter and
update the comments to be a little clearer.
2019-07-18 06:47:36 +00:00
ozaki-r
6a50c27e26 Show pointers of llentries on trace logs of LLE_REF_TRACE 2019-07-18 06:47:10 +00:00
ozaki-r
2f33341a03 tests: extract all kernel logs, not just a panic message, from rump_server.core 2019-07-18 04:22:22 +00:00
ozaki-r
bc1d718ff0 tests: shorten the expire time of neighbor caches to reduce the runtime of the tests 2019-07-18 04:00:09 +00:00
msaitoh
ad0059e118 The VLAN hardware filiter function was implemeted, so remove the BUGS section. 2019-07-18 03:52:26 +00:00
roy
f3d8f276b6 Note import of openresolv-3.9.1 2019-07-17 18:35:00 +00:00
roy
e37204c646 Sync 2019-07-17 18:31:43 +00:00
roy
6dab695b26 Import openresolv-3.9.1 with the following changes:
*  More strict POSIX shell support
  *  Interfaces have an implicit metric of 0 unless specified
  *  Inline comments are stripped from nameserver and domain entries
2019-07-17 18:24:23 +00:00
skrll
e1e3440e40 Remove the 'procs' from lwps and use the one from procs.
OK mrg@
2019-07-17 09:14:24 +00:00
skrll
38b361513b Add devs 2019-07-17 09:10:28 +00:00
skrll
9d860ed6ae kdump was remove some time ago 2019-07-17 09:08:57 +00:00
skrll
5184706860 Spell endianness correctly in comments 2019-07-17 08:39:03 +00:00
ozaki-r
75ffcec5e7 Avoid a race condition between SA (sav) manipulations
An sav can be removed from belonging list(s) twice resulting in an assertion
failure of pslist.  It can occur if the following two operations interleave:
(i) a deletion or a update of an SA via the API, and
(ii) a state change (key_sa_chgstate) of the same SA by the timer.
Note that even (ii) removes an sav once from its list(s) on a update.

The cause of the race condition is that the two operations are not serialized
and (i) doesn't get and remove an sav from belonging list(s) atomically.  So
(ii) can be inserted between an acquisition and a removal of (i).

Avoid the race condition by making (i) atomic.
2019-07-17 07:07:59 +00:00
msaitoh
53ce312f34 Note VLAN hardware filter. 2019-07-17 03:35:43 +00:00
msaitoh
8de541c59e Implemet VLAN hardware filter function (struct ethercom change).
Welcome to 8.99.51.
2019-07-17 03:30:31 +00:00
msaitoh
eea2ee1212 Implement VLAN hardware filter function(ETHERCAP_VLAN_HWFILTER).
First proposed by jmcneill in 2017 and modified by me.

How to use:

 - Set callback function:

	ether_set_vlan_cb(struct ethercom *, ether_vlancb_t)

 - Callback. This function is called when a vlan is attached/detached to the
   parent interface:

	int (*ether_vlancb_t)(struct ethercom *ec, uint16_t vlanid, bool set);

 - ifconfig(8)

	ifconfig ixg0 [-]vlan-hwfilter

 Note that ETHERCAP_VLAN_HWFILTER is set by default on ixg(4) because
the PF driver usually enable "all block" filter by default.
2019-07-17 03:26:24 +00:00
msaitoh
cb1ccde89c KNF. No functional change. 2019-07-17 03:09:16 +00:00
pgoyette
40a27fe72c Move the assignment of SCTP-specific function hooks/pointers.
Without this, a rumpkernel (appropriately modified) built with SCTP
enabled will try to assign the function pointers, but the targets
are only available in rumpnet.  We cannot link the rumpkernel against
rumpnet because rumpnet is already linked against rumpkernel and we
would end up with a circular dependency.

As reported in private Email by rjs@
2019-07-16 22:57:55 +00:00
christos
fbf9c51ff3 fix misplaced paren 2019-07-16 21:13:28 +00:00
jmcneill
eb8eb5dd32 Need CPU_PARTMASK for eMAG CPU ID 2019-07-16 20:29:53 +00:00
martin
653f037ebe PR misc/54382: whenever open(2) is called with O_CREAT, make sure to
pass an open mode argument.
2019-07-16 17:29:17 +00:00
skrll
7c4ccbf9a6 Add vaddr_t initarm(void *);
Missed in previous commit.
2019-07-16 16:18:56 +00:00
skrll
bee3dfab54 Consistently use vaddr_t as initarm and friends return type.
Makes no difference to binaries except for aarch64 where it's required
2019-07-16 14:41:43 +00:00
skrll
6f48d48948 Remove the _BUS_DMAMAP_COHERENT optimisation in the bus_dmamap_sync macro
as the real function performs memory barriers now.
2019-07-16 11:32:07 +00:00
jmcneill
6c6e008450 Add Ampere eMAG 8180 cpuid 2019-07-16 10:37:12 +00:00
knakahara
92af5cde61 Fix vmx(4) MTU setting.
Advised by hikaru@n.o and msaitoh@n.o, thanks.
2019-07-16 10:12:10 +00:00
knakahara
98ecbfbeac Eliminate IFF_RUNNING checking code from vmxnet3_init_locked().
Advised by hikaru@n.o, thanks.
2019-07-16 10:01:23 +00:00
jmcneill
86174f3d22 Add wm(4) 2019-07-16 09:47:41 +00:00