Commit Graph

197699 Commits

Author SHA1 Message Date
drochner 2cef52fe83 whan compressing, set the Z_FINISH flag to zlib to tell that
the data chunk is the final one, which makes that zlib issues the
proper termination marker
(KAME IPSEC does this, but doesn't check eagerly in the receive
path, so the missing termination didn't cause problems so far)
closes my PR kern/44539
being here, replace the Z_PARTIAL_FLUSH flag which is marked
deprecated by zlib by Z_SYNC_FLUSH in the decompression path
(tested with IPv4 IPCOMP on i386)
2011-02-10 21:17:49 +00:00
skrll b5b02ca20c Spell uvm_fault_lower_neighbor correctly in UVMHIST_FUNC by using
__func__
2011-02-10 21:05:52 +00:00
drochner 2e4e5505e2 Don't store temporary values in the opencrypto session data struct which
can be shared by multiple threads -- pass them on the stack instead.
Add some "const" to document this. (One _could_ use the session struct
for temporary stuff with proper locking, but it seems unnecessary here.)
Also remove the unused SW_crc member in the session struct.
From Wolfgang Stukenbrock per PR kern/44472.
2011-02-10 21:00:42 +00:00
matt 5f8868401d Make liblzf and the lvm2 libraries during the library stage. This also makes
them get built for MKCOMPAT.
2011-02-10 20:57:22 +00:00
matt fbf990df1a Fix liblua_g.a and libterminfo_g.a to be -unknown- debuglib instead of
proflibs.
2011-02-10 20:56:02 +00:00
drochner 67244067f4 in rev.1.192 of ip_output.c the semantics of ip_output() was changed:
Before, setting the IP_RAWOUTPUT flag did imply that the ip_id
(the fragmentation thing) was used as-is.
Now, a new ID is diced unless the new IP_NOIPNEWID flag is set.
The ip_id is part of the data which are used to calculate the hash
for AH, so set the IP_NOIPNEWID flag to make sure the IP header
is not modified behind AH's back. Otherwise, the recipient will detect
a checksum mismatch and discard the packet.
2011-02-10 20:42:30 +00:00
drochner 6c21d3ecdd -in opencrypto callbacks (which run in a kernel thread), pull softnet_lock
everywhere splsoftnet() was used before, to fix MP concurrency problems
-pull KERNEL_LOCK where ip(6)_output() is called, as this is what
 the network stack (unfortunately) expects, in particular to avoid
 races for packets in the interface send queues
From Wolfgang Stukenbrock per PR kern/44418, with the application
of KERNEL_LOCK to what I think are the essential points, tested
on a dual-core i386.
2011-02-10 20:24:27 +00:00
pooka 9285c5cc41 update /dev/null rump minor to make test pass again 2011-02-10 20:10:54 +00:00
jruoho 203353a166 FSCK. 2011-02-10 19:25:42 +00:00
matt 9767c9385f Add missing / 2011-02-10 19:17:35 +00:00
matt ad579a7d9b Add debugdirs for o32 and 64 2011-02-10 19:12:44 +00:00
jruoho 63debd529f ACID, BFS, CIL, DBMS, DFA, FSM, GPS, LLVM, MCC, ML, NFA, NP, NTM, OOSE, OTS,
PDA, RSS, RUP, SDL, SDT, TECO, TM, TP, UCS, XOR.
2011-02-10 17:52:18 +00:00
phx 7997b707ad Fixed typo. Added AMS150. 2011-02-10 17:11:33 +00:00
jym 32dd76bd9a For i386, include MONOLITHIC for INSTALL rather than GENERIC. While here,
remove drm drivers, we don't need them for install.

i386 GENERIC has FFS and ELF support compiled as modules, so we hit
an interesting "chicken-egg" situation when the kernel attempts to mount
a ffs ramdisk, while the module might be contained inside... the ramdisk.

Interesting scenario: my netbsd-INSTALL.gz testing involved a QEMU image
which already contained an installed system, including modules. So the
bootloader was able to get the ffs.kmod, and lead to a successful mount
of the ramdisk.

Caught off-guard by gson@ automated builds... Erf. My fondest apologies.
Lesson learnt. Hopefully, this will unbreak the floppy install.
Waiting for the release build to finish...
2011-02-10 16:49:19 +00:00
njoly 96506c0e2a Do initialise allocated file system args structures for puffs and nfs
(fix some puffs tests failures with MALLOC_OPTIONS=J).
While here, detect and report args allocation failure.

ok from pooka.
2011-02-10 16:35:01 +00:00
pooka 22c822c7f3 Make vmapbuf() return success/error and make physio deal with a
failure.
2011-02-10 14:46:44 +00:00
rmind 7d1dd86a47 - Fix man pages list for MKNPF=no case. Based on a patch from Scott Ellis.
- Fix build with MKNPF=yes and MKIPFILTER=no as well; close PR/44512.
2011-02-10 14:04:29 +00:00
nisimura 336f46057f - add D-Link EPIC defition to pci_machdep.c
- change the way to reboot/pwroff to make satmgr.c more flexible for
  a multiple byte sat protocol.
2011-02-10 13:54:45 +00:00
hannken 61ba7ebc8c Make the SMbus Send/Receive functions work.
If cmdlen = 0 and len = 1 use the XXX_HC_CMD_BYTE protocol, send
data through XXX_SMB_HCMD or receive data from XXX_SMB_HD0.

Ok: Paul Goyette
2011-02-10 13:52:36 +00:00
pooka fcae73ef09 Set b_error in vunmapbuf() if copyout_proc fails.
XXX: what if copyin fails in vmapbuf()?
2011-02-10 13:49:10 +00:00
pooka 1745060603 Explicitly zerofill some fields which are not within the boundaries
of p_start/endzero for whatever reasons.

Obviously, this fixes remote physio when running with MALLOC_OPTIONS J.
Otherwise PS_WEXIT is set in struct proc, proc_vmspace_getref() fails,
and copyout_proc() with it.

Reported by njoly
2011-02-10 13:40:35 +00:00
obache a0925f0154 remove obsolete "sieve 2000/tcp" entry. PR#42426. 2011-02-10 13:39:32 +00:00
nisimura 02a02bc0e7 - some rework for PCI device enumeration.
- allow dual IDE/SATA devices.
- fix a typo of D-Link #define.
2011-02-10 13:38:08 +00:00
pooka 75b9ae3d27 zalloc struct vmspace to avoid having one full of garbage 2011-02-10 13:31:55 +00:00
pooka 651058f246 copy parent's p_comm when forking (if it exists) 2011-02-10 13:31:30 +00:00
pooka 58a824fcb1 explicitly zero-fill the initial md backend 2011-02-10 13:29:02 +00:00
tsutsui c03550ce59 Pull support for Tigershark monochrome framebuffer from OpenBSD.
Untested (no hardware), but doesn't break existing HP425t topcat.
2011-02-10 13:04:31 +00:00
tsutsui 8ecbf43c22 Bump version to denote standalone ITE driver reorganization
pulled from OpenBSD.
2011-02-10 12:47:08 +00:00
tsutsui f6330dd725 Pull OpenBSD's standalone ITE driver reorganization:
- merge similar clear, putc, cursor, and scroll ops for all DIO framebuffers
 - rename and move hyper_windowmove() to ite_dio_windowmove1bpp()
   to use it among all dumb monochrome framebuffers
 - ditto hyper_putc() to ite_dio_putc1bpp()
 - remove unnecessary flags, macro, function args, and structure members
 - remove trailing spaces and tabs

Also misc cosmetics to reduce diffs from OpenBSD,
and some KNF that generates diffs from OpenBSD.

Tested on HP382 and HP425t.
2011-02-10 12:46:22 +00:00
kefren d2ac267049 stop processing a label mapping message if we don't have a route for it.
This way we avoid failing an assert later in mpls_add_label()
2011-02-10 12:44:41 +00:00
jmcneill 61ccff524d pcimmap: if the requested page is marked prefetchable in a child device's
BAR, pass the BUS_SPACE_MAP_PREFETCHABLE flag down to bus_space_mmap
2011-02-10 12:37:58 +00:00
jmcneill b94121255b add support for 64-bit BARs 2011-02-10 11:35:20 +00:00
tteras 1f21513187 From Mats Erik Andersson <debian@gisladisker.se>: Implement importing of
RSA keys from PEM files.
2011-02-10 11:20:08 +00:00
tsutsui 8c49816297 Remove unused deinit functions. From OpenBSD. 2011-02-10 11:17:21 +00:00
tteras 6615d57c07 From M E Andersson <debian@gisladisker.se>: Fix parsing of restricted RSA
key addresses.
2011-02-10 11:17:17 +00:00
tsutsui 36ac47ef5d Move and renamve hyper_ite_fontinit() to ite_fontinit1bpp() to share it
among all monochrome framebuffers.  Also rename ite_fontinit() to
ite_fontinit8bpp(). From OpenBSD.
2011-02-10 11:08:23 +00:00
pooka 922afc1884 support /dev/zero 2011-02-10 11:01:31 +00:00
pooka cb10f2594b Make it possible to specify a minor number for an autogenerated device node. 2011-02-10 11:00:45 +00:00
tsutsui 07c63417c7 bcopy() -> memmove()
How did this one survive several sweeps?
2011-02-10 10:52:01 +00:00
tsutsui f7bfe85d50 All framebuffer drivers use common readbyte and writeglyph functions
so no need to put them into per driver function pointers. From OpenBSD.

Tested on HP382 (serial) and HP425t (topcat).
2011-02-10 10:44:22 +00:00
jmcneill 36599bc7a4 Use BUS_SPACE_MAP_PREFETCHABLE when mapping the framebuffer. 2011-02-10 10:23:20 +00:00
jmcneill 3d49403210 Unfortunately the current MTRR code can't grow an existing WC mapping, and
since we don't know the total framebuffer size setting up an MTRR here
would prevent X from creating a larger one later.

Instead map the framebuffer with BUS_SPACE_MAP_PREFETCHABLE and hope that
PAT is supported.
2011-02-10 10:21:40 +00:00
blymn 01cc4b6151 Fix typo. 2011-02-10 08:54:12 +00:00
kefren 233a38c913 Problem was fixed, don't expect to fail anymore 2011-02-10 07:47:50 +00:00
kefren 159fa1bbe5 Allow changing route flags. Should fix PR/40455
OK'ed: dyoung@
2011-02-10 07:42:18 +00:00
matt 73f5a201e2 Default NetBSD to -msecure-plt now. 2011-02-10 07:18:29 +00:00
macallan 60fd5224f1 unbork PMAP_NOCACHE vs. PGC_NOCACHE 2011-02-10 06:42:17 +00:00
spz 03e283f07f fix for CVE-2011-0014 (OCSP stapling vulnerability in OpenSSL)
patch taken from http://www.openssl.org/news/secadv_20110208.txt
2011-02-10 06:04:54 +00:00
macallan afa90556a5 PMAP_NOCACHE -> PGC_NOCACHE where appropriate 2011-02-10 05:55:26 +00:00
enami 4a8f94fd25 Start new line before issuing IDENTIFY command since messages from
other driver may interfere during waiting for command completion.
2011-02-10 05:07:46 +00:00