Commit Graph

187271 Commits

Author SHA1 Message Date
jmmv
1797e17014 Document the new package-related maintenance options and security checks
in daily.conf and security.conf.
2010-01-19 22:08:52 +00:00
pooka
b014350f7f Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client.  This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached.  However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff.  ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
2010-01-19 22:08:16 +00:00
jmmv
497b5f8044 Add the fetch_pkg_vulnerabilities option to the daily script to keep the
packages vulnerability database up to date.  This will only fetch the
file from the server if it has changed since the last run.

Add the check_pkg_vulnerabilities and check_pkg_signatures options to the
security script to check that the installed packages are sane.

All of these options are enabled by default but they will only run if
there is, at least, one installed package.
2010-01-19 22:08:11 +00:00
pooka
10fe49d72c Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client.  This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached.  However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff.  ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
2010-01-19 22:06:18 +00:00
dyoung
71080992ef A new survey of the code indicates that the very highest interrupt
priority level where the kernel accesses alldevs is IPL_VM, where
some hardware interrupt handlers call config_deactivate(9).  Lower
the IPL of alldevs_mtx from IPL_HIGH to IPL_VM, accordingly.
2010-01-19 21:54:53 +00:00
dyoung
2905b5fc8d Refactor: as suggested by rmind@, extract duplicate code into
subroutines config_alldevs_enter() and config_alldevs_exit().  This
change amounts to textual substitution.  No functional change intended.

We do not collect garbage in device_lookup(), so there is no use dumping
it: get rid of the garbage list.  Do not call config_dump_garbage().

In device_lookup_private(), call device_lookup() instead of duplicating
the code from device_lookup().
2010-01-19 21:24:36 +00:00
bouyer
3ccd2d9884 bio(4) is MP-safe but mfi(4) is not. So get the kernel_lock at
mfi_ioctl() entry and release it on exit.
2010-01-19 20:54:32 +00:00
pooka
23a987d2a2 Make build with PF_INET-is-the-"NIC" support again. 2010-01-19 17:51:03 +00:00
pooka
9c403c2e0c Specify bpf_filter attribute only when the device uses the filter engine. 2010-01-19 16:24:44 +00:00
tsutsui
e8b9338c3b Use -DLIBSA_PRINTF_LONGLONG_SUPPORT -DLIBSA_PRINTF_WIDTH_SUPPORT
in debug printf()s.
2010-01-19 15:28:51 +00:00
tsutsui
1aa1df4953 Add long long (%lld etc.) support and width (%02x etc.) support
in libsa printf(3).  Disabled by default but enabled by
-DLIBSA_PRINTF_LONGLONG_SUPPORT and -DLIBSA_PRINTF_WIDTH_SUPPORT.
Provided by tnozaki@ for my libsa debugging. Thanks!
2010-01-19 15:26:45 +00:00
pooka
27d8901688 Update comment: unloaded modules which were pumped up by the
bootloader are not freed at the end of bootstrap (there should be
none, although this is not asserted.  maybe it should be?).
2010-01-19 15:23:14 +00:00
yamt
5a779e86cd nfs_request: fix races which break congestion window and make nfs client stuck. 2010-01-19 13:39:04 +00:00
yamt
b92b080272 remove unused r_timer member. 2010-01-19 13:29:40 +00:00
pooka
58247e10a2 hp@isa was marked non-compiling and broken 14 years ago. I'm sure
the tens of well-tested changes since then have been necessary,
but now i'll just spoil the fun for everyone by sending the driver
to the attic.
2010-01-19 12:41:41 +00:00
mbalmer
73f895a875 Add the IBM 481033H SCC 2010-01-19 12:11:21 +00:00
mbalmer
0592b54dfc regenerate 2010-01-19 12:00:51 +00:00
mbalmer
ee9ebce313 Add two IBM RSS devices. 2010-01-19 11:43:33 +00:00
dyoung
c217bc3b1d If the device does not exist, return ENXIO, as is customary, instead of
ENODEV.  Ok jmcneill@.
2010-01-18 23:57:14 +00:00
jmmv
a46e62d4b0 Document the addition of new-style kernel modules support in macppc and shark. 2010-01-18 23:41:47 +00:00
jmmv
098e7f45cb Enable 'options MODULAR' in macppc and shark GENERIC kernels now that the
modules work.
2010-01-18 23:40:06 +00:00
jmmv
874cd0d0c1 Generate long calls in modules for arm32 and powerpc to avoid unsupported
relocations by the module loader in the kernel.  This makes modules work
in, at least, shark and macppc respectively.

This is obviously a workaround that results in slower code, but at least
makes modules work.  I'm adding a comment detailing what the real solution
would be so that the whole thing can be revisited in the future.  (Read:
I don't have time now to dig the details of how to implement trampoline
generation.)

(Based on the old bsd.kmod.mk file, I understand that hppa needs this
workaround too, but I can't check this platform.)
2010-01-18 23:39:07 +00:00
jmmv
a762eed1dd Define kobj_machdep and module_init_md empty functions so that powerpc
kernels (at least macppc) with 'options MODULAR' can be built.
2010-01-18 23:35:51 +00:00
jmmv
c3bed4804d Define an empty module_init_md function so that kernels with 'options
MODULAR' can be built (at least in shark).  Still not working due to
some relocations resolving to too far away symbols though.
2010-01-18 23:04:30 +00:00
rmind
df63e73c6a Reduce the difference between i386 and amd64 procfs MD code.
Prepare for the merge, no functional changes intended.
2010-01-18 22:31:14 +00:00
njoly
0c51147662 Do not check more than 32 bits against ci_feature_flags, to avoid printing
bogus data on /proc/cpuinfo flags line.
2010-01-18 21:55:40 +00:00
pgoyette
299ee01345 If no limits are exceeded, make sure we set state to SVALID 2010-01-18 21:48:15 +00:00
martin
9e839480f0 Add two CTI rs485 dongles 2010-01-18 20:57:13 +00:00
martin
86b7d7433b regen 2010-01-18 20:55:37 +00:00
joerg
5591cac167 Keep arc4_i and arc4_j synchronised after a rekeying. This prevents
accidentally ending up in a short ARC4 cycle.
2010-01-18 20:54:54 +00:00
martin
f0b282446a Add two CTI usb-rs485 adapters 2010-01-18 20:54:22 +00:00
pooka
63ee3d24ed Remove unused macro definition (the NetBSD version would just not go
through a compiler).
2010-01-18 20:45:12 +00:00
christos
081c24c702 PR/42637: Joachim Kuebart: Shell tab completion crashes due to libedit stack
smashing
2010-01-18 19:17:42 +00:00
pooka
d305920d2d nuke unused bpf inclusions 2010-01-18 19:00:58 +00:00
pooka
8052f8db95 Remove conditional inclusion of unused bpf.h 2010-01-18 18:52:35 +00:00
jruoho
f4cdb6678e Fix and improve several comments. 2010-01-18 18:49:27 +00:00
jruoho
e5a9d901c0 Use acpi_eval_reference_handle() to simplify code. No functional change.
ok jmcneill@, pgoyette@
2010-01-18 18:36:49 +00:00
pooka
c109162bd9 Pass correct pointer to bpf_mtap() and most likely avoid a crash
if bpf is activated.

not even compile-tested, since i can't find any config in the tree
which uses this(?)
2010-01-18 18:23:53 +00:00
pooka
4be5171ee2 Fix bpf. compile-tested only. 2010-01-18 18:14:43 +00:00
jdc
8427f80fba Add definitions for CAS_INTR_REG and CAS_INTR_PCI. 2010-01-18 18:09:22 +00:00
jruoho
81e1657ee2 Introduce acpi_eval_reference_handle() --
an utility function to evaluate reference handles from package elements.

ok jmcneill@, pgoyette@
2010-01-18 18:06:31 +00:00
pooka
431bb6c50c if_ade doesn't build, suggesting nobody has tried to do anything
else than rototill it for the past n+1 years.  The comments at the
top note a number of clauses after which it can be removed.  I'm
sure that in the past 10+ years those have either been met or become
irrelevant, so remove this.
2010-01-18 17:53:35 +00:00
jruoho
8391833e8a Ensure that the return string is NUL-terminated in acpi_eval_string().
ok jmcneill@, pgoyette@
2010-01-18 17:34:37 +00:00
jruoho
91262361ae Add definitions for volume keys.
ok jmcneill@
2010-01-18 17:11:00 +00:00
ahoka
f582d2426d Add examples to make switching wscons to ISO 8859-2 as easy as removing
some hashmarks.
2010-01-18 17:10:29 +00:00
jruoho
517e16fb9b Fix a minor bug where a reference handle is used for error reporting even
though it may not be present. While here, convert few lines to aprint_*().

ok pgoyette@
2010-01-18 17:09:17 +00:00
ahoka
a764af8493 Add the new latin2 fonts for wscons to the file list. 2010-01-18 16:57:39 +00:00
ahoka
3e4bec4b5a Add font files for latin-2 (ISO 8859-2) encoding. Loading these fonts will
enable wscons to read texts in central european languages, eg. HU or CZ.

From FreeBSD.
2010-01-18 16:55:36 +00:00
jruoho
25608cae55 regen. 2010-01-18 16:50:08 +00:00
pooka
aeedd94c9a include ISDN support 2010-01-18 16:43:15 +00:00