Commit Graph

266683 Commits

Author SHA1 Message Date
msaitoh 72177d8165 Make it compilable with AI_DEBUG. 2019-04-09 05:25:14 +00:00
msaitoh 8195e39eb9 KNF. No functional change. 2019-04-09 05:24:07 +00:00
msaitoh 53b088d245 Fix a bug that the supported media can't passed correctly. Not tested. 2019-04-09 04:04:04 +00:00
msaitoh 0c19762a7b KNF. No functional change. 2019-04-09 03:56:08 +00:00
uwe 7a47e1eb52 Fix previous. P is the final (relocated) address not just the offset. 2019-04-09 00:36:55 +00:00
uwe a88af5f24e Support R_SH_REL32 (encountered in .eh_frame). 2019-04-09 00:16:30 +00:00
ryo a7ca22aa66 - free empty page tables pages if reach a certain usage.
- need to lock at removing an old pg (_pmap_remove_pv) in _pmap_enter()
2019-04-08 21:18:22 +00:00
sevan af228c8664 Offer a potential workaround to the caveat. 2019-04-08 20:18:14 +00:00
christos 3ef12899a4 The typecnt refers the to ttis array and the timecnt refers to the type array.
The types array can have 0 elements (i.e. timecnt == 0), but the ttis array
needs to have one element (typecnt >= 1). Need to revisit and take into
account the types array.
2019-04-08 18:50:52 +00:00
maxv 3a935efbaa Reset so_cred to NULL after freeing it, because close() may leave the PCB
in pcblist, and we don't want a future lookup (via eg netstat) to read
freed data.

Detected by KASAN, reported by Alexander Nasonov.
2019-04-08 18:38:45 +00:00
maxv 63417499e4 Switch to MODULE_CLASS_MISC, from pgoyette@. 2019-04-08 18:30:54 +00:00
maxv d2b2d5e829 Don't forget to call (*machine_destroy) when killing VMs. 2019-04-08 18:23:46 +00:00
maxv fe437e7c73 Use the fd_clone approach, to avoid losing references to the registered
VMs during fork(). We attach an nvmm_owner struct to the fd, reference it
in each VM, and identify the process' VMs by just comparing the pointer.
2019-04-08 18:21:42 +00:00
isaki 87a9681bc8 Fix minor bugs.
- sc_lock should use an adaptive lock.
- yds_round_blocksize: fix typo.
- yds_trigger_output: fix typo. SlotControlData is pbankoff.
   ptbloff points to ControlData.
- yds_halt_input: fix wrong and extra sc_rec.intr.
2019-04-08 15:35:57 +00:00
isaki b8a46fec78 White space -> TAB, fix indent, and add RCS Id.
No functional changes intended.
2019-04-08 14:48:33 +00:00
thorpej 5fd52da164 Add the R_ALPHA_BRSGP relocation type. 2019-04-08 14:08:16 +00:00
wiz 482a367e19 Remove superfluous comma. Try improving a sentence. Remove duplicate sentence. 2019-04-08 13:30:46 +00:00
maya 43375286b2 Update comment to match existing function name. 2019-04-08 13:05:23 +00:00
maya 059f51c313 Update to reference the newer (committed long ago) API.
With comments from Rocky Hotas on netbsd-docs, thanks.
2019-04-08 13:04:54 +00:00
pgoyette 47d97d2484 Improve kernel module validation. First, set a limit on how much of the
module name field to check when validation name's length.  Second, check
the module's mi_class to ensure it is valid.

Update the commenet in sys/module.h to indicate that the module classes
are now being validated.
2019-04-08 11:32:49 +00:00
pgoyette b2c9403bb3 Add a MODULE_CLASS_MAX value to the enum 2019-04-08 11:02:58 +00:00
pgoyette 15f13ab537 Split the description for EINVAL into two pieces, one for each operation
that can generate the error.
2019-04-08 10:47:16 +00:00
wiz add3cd5b0e Improve wording. 2019-04-08 07:58:45 +00:00
skrll aa01724e4a Fix a comment. 2019-04-08 07:35:32 +00:00
msaitoh 964248dfd9 Make it compilable with BNX_DEBUG. 2019-04-08 03:56:08 +00:00
thorpej c437b6482e Add some additional CPU and system types. 2019-04-08 00:47:21 +00:00
pgoyette f1af096dd8 Make explicit note that MODULE_CLASS_ANY should note be used as the
class of a MODULE().  MODULE_CLASS_ANY is intended only to indicate
a "wildcard" match when (auto)loading modules.
2019-04-07 22:32:10 +00:00
christos c807c367b6 don't print ???, requested by kre@ 2019-04-07 22:31:54 +00:00
rmind 0694a143e0 npf.conf(5): Add more info about ifaddrs(). 2019-04-07 22:23:40 +00:00
kamil 369fc07c4c Switch kcov module class to MODULE_CLASS_MISC
MODULE_CLASS_ANY is not intended to be used by modules.

Noted by <pgoyette>
2019-04-07 21:01:43 +00:00
christos 7309e53737 bump 2019-04-07 20:28:55 +00:00
maya 24282e287d Remove unused definitions.
(These appear to have existed in old-drm)
2019-04-07 20:28:41 +00:00
christos ac84be3749 Add -r so that we get the location of redefinitions 2019-04-07 19:32:24 +00:00
mrg 24f7c17e2d make trap 0x70 a TRAP() not UTRAP(). we should be able to handle
fast ECC error as a normal trap, and i saw this once a few years
ago but it never repeated so i haven't been able to test this.
2019-04-07 19:31:38 +00:00
bouyer 7e49df75bb If Command List Override is not supported by the controller, the FIS setting
the WDC_RST bit will fail if the drive already has BSY or DRQ set.
In this case, reset the channel and retry the drive reset.
With this, the drive reset will succeed after a atactl sleep command on
a controller without the CLO feature.
2019-04-07 17:46:49 +00:00
christos ecc0c6e2ca Fix stack protector build. 2019-04-07 17:31:32 +00:00
thorpej e6a987417a Exclude references to _ucas_{32,64}_mp() for _RUMPKERNEL. 2019-04-07 16:27:41 +00:00
thorpej c3061c7058 Add a test to make sure an overflowing-into-kernel-space fetch/store near
vm_max_address fails with EFAULT.
2019-04-07 15:50:12 +00:00
jdc 237e83ba45 Call com_init_regs() in eumbcnattach() to set up com port register mapping.
Fixes broken console output after changes to remove COM_REGMAP.
2019-04-07 15:44:44 +00:00
christos efd9bf2580 only need to initialize the first type. 2019-04-07 14:58:25 +00:00
christos 6dcafb68f7 Don't try to print NULL if we can't get a timezone name. First we try dst,
then we try the non-dst name and finally we just print ??? if that did not
work. This is not needed to handle the "TZ= date" case which was crashing
before because the default timezone was not consistently initialized, but
should handle any timezone now.
2019-04-07 14:51:14 +00:00
kamil 3b9e60c4b5 Add a paranoid racy lock check in child_return()
In theory a child could be detached for some reason or another during
the time window between checking for PSL_TRACED and acquiring proc_lock.

Acquire the proc_lock mutex and recheck for PSL_TRACED before emitting
SIGTRAP. sigswitch() must acquite it internally anyway so this does not
have a negative impact and adds an extra sanity check.

For !PSL_TRACED case there is no impact.
2019-04-07 14:50:41 +00:00
christos d340589347 Initialize the default timezone a bit more so that tzgetname(3) works. 2019-04-07 14:44:51 +00:00
maxv c35bc74e1d Invert the filtering priority: now the kernel-managed cpuid leaves are
overwritable by the virtualizer. This is useful to virtualizers that want
to 100% control every leaf.
2019-04-07 14:28:50 +00:00
maya 575b128d66 Claim ifunc support on a number of architectures.
(Architecture list taken from src/tests/libexec/ld.elf_so/t_ifunc.c)

This is needed for attribute target_clones to work.

Non-functional until a mknative run. Tested by doing a regular GCC build.
2019-04-07 14:26:26 +00:00
maya b5a049a897 don't append to nbsd_tm_file. This is the sole definition so fine to do.
Only done to reduce diff to upstream.
2019-04-07 14:14:05 +00:00
thorpej 392e5a53c0 ...and now I really have the list of arch versions that require the armv2
style of ufetch_16/ustore_16.  And since it's so many, just stop naming it
for the arch version, and name it for the instruction capability.
2019-04-07 14:14:03 +00:00
maxv 8fff5a9178 Sync, and fix grammar. 2019-04-07 14:13:03 +00:00
maya 518582be7b Reduce diff to upstream (in config.gcc):
Make the NETBSD_ENABLE_PTHREADS unconditional (we don't use the else case)
2019-04-07 14:11:23 +00:00
maya 2cea6cc9bf Make the post-netbsd 2.0 case the only case. NFC.
(Reducing diff to upstream)
2019-04-07 14:08:35 +00:00