Commit Graph

244174 Commits

Author SHA1 Message Date
christos
a555123007 Add some more drivers 2016-08-07 14:28:55 +00:00
christos
115328c705 Sets for new modules 2016-08-07 14:28:11 +00:00
christos
4b4b4456f8 add new modules 2016-08-07 14:27:38 +00:00
christos
89879e7d1d don't load loopback as a module as other parts of the code use it directly. 2016-08-07 11:33:38 +00:00
skrll
7abb65c058 Fix compile for PCI_NETBSD_CONFIGURE 2016-08-07 10:45:19 +00:00
christos
520827be3b rename ifmpls to mpls, so we don't have if_ifmpls... 2016-08-07 10:44:04 +00:00
christos
07f207515a Use "-no" and add more cloners. 2016-08-07 10:39:59 +00:00
christos
f138f6c50d Accept "-no" as a "no" that does not cause errors if the object deleted
does not exist.
2016-08-07 10:37:24 +00:00
maxv
06ab45be44 KNF a little. 2016-08-07 10:07:58 +00:00
maxv
d6f286364d Explicitly return syscall-specific error codes, instead of the ones given
by range_test. This fixes msync, mlock and munlock, which all return EINVAL
instead of ENOMEM if the address is not in the va space.

It should also fix the recent ATF failures.
2016-08-07 09:55:18 +00:00
maxv
bf44e39814 Explain a little. 2016-08-07 09:04:55 +00:00
skrll
7b612a75a6 Fix two bugs for tlb_invalidate_addr for (PGSHIFT & 1) == 0
- t0/t1 weren't being updated when both lo0/lo1 become invalid
- the global bit (G) needs to be preserved if the entry becomes invalid

The MIPSNN optimisation is disabled for now as it needs to be updated
appropriately
2016-08-07 07:13:57 +00:00
skrll
0ef17cc15c Restore a MFC0_HAZARD lost in r1.68 2016-08-07 06:15:49 +00:00
skrll
2d4829eeae Fix incorrect register usage in #if (PGSHIFT & 1) == 0 code 2016-08-07 06:12:24 +00:00
dholland
96374a6fa7 Remove unused <sys/tree.h> 2016-08-07 05:09:12 +00:00
dholland
23132aeaca Fix stupid thinko. 2016-08-07 02:42:32 +00:00
pgoyette
aeebcff218 Create the kern.ccd sysctl sub-tree when built as a module. Even though
the contents of the sub-tree are all structures, and thus not displayed
via sysctl(8), the info is potentially useful to programs.  (For example,
ccdconfig could use this to determine how many units are available.)

The sub-tree is already available when the module is included as built-in
module.
2016-08-07 02:40:41 +00:00
dholland
5a9be9571b comments 2016-08-07 02:31:03 +00:00
pgoyette
69aa6fadc2 For modular configurations, always build with PPPOE_TERM_UNKNOWN_SESSIONS
defined, and provide a sysctl variable for enabling/disabling the option.

Update man page accordingly.
2016-08-07 01:59:43 +00:00
kre
4cf5cc5427 If using constants from dirent.h it ought to be included.
Hopefully fixes i386 build.
2016-08-07 01:47:11 +00:00
dholland
fcea850b8b Remove unused <sys/tree.h>. 2016-08-07 01:01:59 +00:00
kre
b5b1783052 Note import of tzdata2016f 2016-08-07 00:56:02 +00:00
kre
607909a242 Merge tzdata2016f 2016-08-07 00:49:54 +00:00
kre
c93a162397 Import tzdata2016f from ftp://ftp.iana.org/tz/releases/tzdata2016f.tar.gz
Summary of changes in tzdata2016f (2016-07-05 16:26:51 +0200):
  * The Egyptian government changed its mind on short notice, and
    Africa/Cairo will not introduce DST starting 2016-07-07 after all.
  * Asia/Novosibirsk switches from +06 to +07 on 2016-07-24 at 02:00.
  * Asia/Novokuznetsk and Asia/Novosibirsk now use numeric time zone
    abbreviations instead of invented ones.
  * Europe/Minsk's 1992-03-29 spring-forward transition was at 02:00 not 00:00.

Summary of changes in tzdata2016e (2016-06-14 08:46:16 -0700):
  * Africa/Cairo observes DST in 2016 from July 7 to the end of October.
	(change obsoleted by 2016f)
  * Locations while uninhabited now use '-00', not 'zzz', as a
    placeholder time zone abbreviation.
  * Asia/Baku's 1992-09-27 transition from +04 (DST) to +04 (non-DST) was
    at 03:00, not 23:00 the previous day.
  * zic now outputs a dummy transition at time 2**31 - 1 in zones
    whose POSIX-style TZ strings contain a '<'.
  * Changes affecting documentation and commentary.
2016-08-07 00:48:59 +00:00
dholland
fbc1063cb6 use static properly 2016-08-07 00:25:22 +00:00
dholland
5251c78329 Comments 2016-08-07 00:12:48 +00:00
pgoyette
5328fd5944 Modularize the pppoe driver 2016-08-06 23:46:30 +00:00
pgoyette
abe8e5ebff Destroy the mutex when detaching ppp. Otherwise on a re-attach (ie,
module reload) we can end up with a panic "lock already initialized"
2016-08-06 22:54:34 +00:00
pgoyette
5dd5da5fa0 Catch up with the renaming of module ppp --> if_ppp and avoid warning
messages at boot (or module load) time.
2016-08-06 22:38:18 +00:00
pgoyette
c075b7e43f Modularize the sppp_subr stuff so it can be shared by pppoe and lmc
drivers as they get modularized.
2016-08-06 22:03:45 +00:00
jakllsch
5b9bdcf5e9 Disable gpio(4) attachment to ichlpcib(4) by default.
The GPIO lines on an ICH are usually connected to opaque platform-
defined functionality, and may be manipulated by the ACPI DSDT or other
mechanisms behind our backs.  In one instance, it was found this
in combiation with gpio_resume() sabotaged repeated suspend/resume cycles.

GPIO functionality can be enabled by setting ichlpcib_gpio_disable to 0,
for instance with `gdb -write`.
2016-08-06 21:57:04 +00:00
jdolecek
8e39032fbb actually pass the d_type from the on-disk directory entry to the lookup results 2016-08-06 21:39:48 +00:00
martin
76dddc0ed2 Remove unused include of sys/tree.h 2016-08-06 21:13:30 +00:00
dholland
f048ac5803 typo in comment 2016-08-06 20:42:29 +00:00
martin
7fd00f8b5a Fix debug sets for ia64 2016-08-06 20:08:00 +00:00
roy
e9c7e74884 Set RTF_CONNECTED instead of setting only RTF_CONNECTED. 2016-08-06 20:00:14 +00:00
maxv
e727235220 The way the kernel tries to prevent a userland process from allocating page
zero is hugely flawed. It is easy to demonstrate that one can trick UVM
into chosing a NULL hint after the user_va0_disable check from uvm_map.
Such a bypass allows kernel NULL pointer dereferences to be exploitable on
architectures with a shared userland<->kernel VA, like amd64.

Fix this by increasing the limit of the vm space made available for
userland processes. This way, UVM will never chose a NULL hint, since it
would be outside of the vm space.

The user_va0_disable sysctl still controls this feature.
2016-08-06 15:13:13 +00:00
maxv
333882dfd5 Use the stack to save %edx. 2016-08-06 14:54:25 +00:00
tsutsui
d2fe454405 Workaround unexpected/undocumented behaviors of makefs(8). 2016-08-06 14:51:01 +00:00
christos
28f5451da2 sets for slip and strip 2016-08-06 12:50:37 +00:00
christos
c20d3604bf make strip and slip modular, and cosmetic for ppp. 2016-08-06 12:48:23 +00:00
christos
d5f5d92177 Add modules for strip and slip 2016-08-06 12:44:03 +00:00
pgoyette
57989e45da Change the internal name of the module to match its external (file
system) name.  Otherwise "bad things" can happen, such as modload(8)
being able to load a second copy!
2016-08-06 12:42:40 +00:00
jdolecek
118d3ec761 some more inode flags 2016-08-06 09:29:28 +00:00
christos
e95690b155 rename the ppp module so that it autoloads. 2016-08-06 06:04:48 +00:00
christos
b840ae9448 Instead of listing cloners, try to create one so that the module autoloads. 2016-08-06 05:58:20 +00:00
pgoyette
e7e9717270 Modularize the ppp driver, and adjust dependencies of the compressor
modules.

For now, this is still included as a built-in module in GENERIC kernels.
2016-08-06 02:35:05 +00:00
isaki
b630381654 Modify fpu_sin()'s logic to avoid GCC's warning that has been
pointed out in the previous commit.
For fpu_cos() there is no such problem, but sync with fpu_sin().
2016-08-06 00:58:55 +00:00
pgoyette
83e4431e30 Expand discussion a bit, and provide ppp as an example way to do things. 2016-08-06 00:30:57 +00:00
jakllsch
41b57ff6a1 fix previous 2016-08-06 00:02:33 +00:00