Commit Graph

115116 Commits

Author SHA1 Message Date
martin
ef2efed249 Adjust to rfc6056 rename to portalgo 2012-06-25 19:25:07 +00:00
abs
e14333f8c1 Some fun in trying to work out what was broken with gcc-4.1 to
trigger the following warning when gcc-4.5 was silent:
  nd6_rtr.c: In function 'nd6_ra_input':
  nd6_rtr.c:788: warning: 'ext' may be used uninitialized in this function
Eventually determined that it was not unreasonable for gcc-4.1 to
bleat in this case as there is a nasty 'goto insert' which could
indeed have resulted in an uninitialised variable use. Yay gcc 4.1.
2012-06-25 17:25:29 +00:00
christos
84f52095ad rename rfc6056 -> portalgo, requested by yamt 2012-06-25 15:28:38 +00:00
reinoud
67d81114c7 Implement dummy `cpu_mcontext_validate' to make it compile again. This
function needs to be implemented in the target secton one day for extra
security.
2012-06-25 14:43:54 +00:00
isaki
9cdd524924 Rewrite fpu_int().
Especially, remove the special treatment when |x| < 1
because it forgets to consider FPCR round mode.
See PR/46627 for the detail.  Thanks Y.Sugahara for advice.
2012-06-25 04:52:23 +00:00
jym
23a2531c0e Enable the map/unmap recursive mapping functions for all Xen ports for
save/restore.

For an unknown reason (to me) Xen refuses to update VM translations
when the entry is pointing back to itself (which is precisely
what our recursive VM model does). So enable the functions that take
care of this, which will avoid all sort of memory corruption upon restore
leading domU to trample upon itself.

Save/restore works again for amd64. The occasional domU frontend corruption is
still present, but is harmless to dom0. Now we have a working shell and
ddb inside domU, that helps debugging a tiny bit.

XXX pull-up to -6.
2012-06-24 18:31:52 +00:00
alnsn
2db61b9b19 Add missing $NetBSD$. 2012-06-24 17:28:09 +00:00
mlelstv
da501d22d0 Add more debugging, fix filehandle usage, login negotiation and session
shutdown.
Add #ifdef'd code to send negotiation parameters in hex instead of base64,
so it works against older Linux targets.
2012-06-24 17:01:35 +00:00
jym
39b8d4bd9a Update comment: we stopped using xcall to sync PTP between CPUs.
pmap_kpm_sync_xcall => xen_kpm_sync
2012-06-24 13:56:10 +00:00
drochner
2c8471c744 stopgap fix for recursive locking on suspend/resume
(This can be simplified imo because interrupts should be disabled
at this point.)
2012-06-24 10:06:34 +00:00
jdc
b67baf6e3e PR kern/46424
Revert the part of revision 1.77 that altered the PHY attachment order.
2012-06-24 09:37:28 +00:00
kiyohara
41f4d38cf3 Flush current empty descriptor in emac_rxeob_intr(). 2012-06-24 08:39:39 +00:00
riastradh
3c457d56bb Take the kernel lock in atapibusdetach just like atapibuschilddet.
Fixes kassert in scsipi_lookup_periph when I press the power button
on one of my laptops (and maybe another one) to power it off.

ok mrg
2012-06-24 07:48:01 +00:00
jdc
e6facd19bf Fix multicast filter set up: we need to byte-swap the hash before writing to
the chip.  While here, remove open-coded copy of ether_crc32_le().
2012-06-23 17:21:12 +00:00
minoura
37abe35e51 Change to the 2-clauses license. 2012-06-23 08:48:15 +00:00
christos
443eb0a284 4 new sysctls to avoid ipv6 DoS attacks from OpenBSD 2012-06-23 03:13:41 +00:00
khorben
f4b7eefb95 Disable azalia(4) now that hdaudio(4) was switched on
ok bouyer@
2012-06-22 22:38:39 +00:00
abs
351c7b5d8f - Add racd* devices for MSCP based CD-ROM drives (RRD40s), as opposed
to mixing them in with the ra* disks, modelled loosely on how MSCP
  rx* floppies are handled
- racd* defaults to the same single iso9660 partition as cd*
- Cleanup config option handling slightly so any combination of ra*,
  rx* (and now raccd*) can be defined without build errors.
- Avoid ugly printf when disks have all zero disklabel magic number
2012-06-22 20:42:22 +00:00
christos
e77423410d regen 2012-06-22 18:27:25 +00:00
christos
7bee3146e4 Add {send,recv}mmsg from Linux 2012-06-22 18:26:35 +00:00
christos
bda667f3a1 remove unintended commit (this was to avoid a bug in the hme driver which
I have not been able to reproduce)
2012-06-22 15:09:36 +00:00
christos
40114b997c PR/46602: Move the rfc6056 port randomization to the IP layer. 2012-06-22 14:54:34 +00:00
rmind
53e5b8cc71 NPF:
- Rename some functions for consistency and de-inline them.
- Fix few invalid asserts (add regressoin test).
- Use pserialize(9) for ALG interface.
- Minor fixes, sprinkle many comments.
2012-06-22 13:43:17 +00:00
rmind
a02bd039dc rumpkern:
- Add subr_kcpuset.c and subr_pserialize.c modules.
- Add kcpuset_{running,attached} for RUMP env.
2012-06-22 12:45:43 +00:00
jdc
f81d0349d6 Fix fallout from revision 1.46, and call ether_ioctl() in the default path.
Patch from John D. Baker in PR port-sparc/46572.
2012-06-22 11:03:57 +00:00
martin
de489d0684 From the "parse errors that you just do not see as a human" department:
build fix.
2012-06-22 08:47:47 +00:00
mrg
6b7316a46a fix locking for isoc transfers, as reported (and the fix tested) by prlw1. 2012-06-22 00:12:23 +00:00
christos
23ccd40d8e fix token pasting. 2012-06-21 17:55:15 +00:00
yamt
365b42c39d for the default "bsd" algorithm, restore the pre rfc6056 changes behaviour.
fix anonportmin/max.

probably other algorithms need similar fixes.
2012-06-21 10:35:28 +00:00
yamt
3ded02d5cb constify, comments.
no functional changes.
2012-06-21 10:31:45 +00:00
yamt
50b5f975ae whitespace and cosmetics. no functional changes. 2012-06-21 10:30:47 +00:00
sjg
7b6d7531a8 Install filemon.h 2012-06-20 21:38:26 +00:00
christos
9c85d0acc9 print proper ktruser names depending on the emulation. 2012-06-20 15:03:18 +00:00
hans
10b3ec2c0b Add support for the watchdog timer in mvsoctmr.
Tested on DreamPlug system.
2012-06-19 16:50:44 +00:00
martin
e564894ae9 assemble_login_parameters() has a strange error reporting convention:
errors are positive numbers, so <= 0 is good, not >= ...
This makes CHAP authenticated iscsi logins work.
2012-06-19 14:19:46 +00:00
minoura
418201125e Descend to xxboot. 2012-06-19 12:59:51 +00:00
minoura
be47570cfb Fix CD support (again!). 2012-06-19 12:59:17 +00:00
skrll
0aaa8eb417 Typos in comments. 2012-06-19 07:15:41 +00:00
martin
3183166c6c When issuing a non-dma command, make sure to set the "remaining length of
command to be transfered via dma" (sc_cmdlen) to zero upfront, otherwise we
might get confused on command completition interrupt (no dma active but still
data left to transfer).
2012-06-18 21:23:56 +00:00
dsl
bc1656d830 Missed one of the (void *) casts on the args to sysctl_createv(). 2012-06-18 06:21:11 +00:00
kiyohara
9aa0a3c613 Fix build failed. s/consinit()/consinit(void)/. 2012-06-18 01:40:55 +00:00
chs
bb833a1164 when freeing the DRM_SHM kernel memory that can be mapped by a user process,
remove any user mappings before freeing the memory, so that a user process
doesn't have still have access to that physical memory after it's reused.
this really shouldn't be using kernel malloc'd memory at all,
but changing that would be much more involved.
2012-06-17 15:15:34 +00:00
dsl
c72955ee27 memseg_baseaddr() is only called from valid_user_selector() and
both only locally.
Make static, remove one of the functions, and remove the never-set args.
Code is still very dubious.
2012-06-16 20:47:04 +00:00
dsl
a25c7cabfc Add explicit (void *) casts for when sysctl_createv() is passed
CTLTYPE_INT but the address of a structure (and a function).
2012-06-16 19:54:01 +00:00
chs
4eb0eda427 rename the global variable "cpu" to "cputype" to avoid conflicting with
dtrace, which wants to use "cpu" as a local variable.
2012-06-16 17:30:18 +00:00
joerg
80d74bd7f8 Annotate tautological if, so that clang doesn't warn about the dt usage
later on.
2012-06-16 16:42:26 +00:00
kiyohara
fbd7a1ab43 Add '\n' to revision string. 2012-06-16 05:58:03 +00:00
rmind
7a3e0c216a - Rework NPF NAT syntax to be more structured and support future additions
of different types and configurations of NAT.
- npfctl: improve disassemble and show-config command functionality.
- Fix custom ICMP code and type filtering.
2012-06-15 23:24:08 +00:00
joerg
56f9c3c6bd Don't use an empty body on the same line for the for loop. 2012-06-15 23:01:16 +00:00
joerg
4b586f4e8b Assert that out_hr is not NULL in hfslib_read_header_node 2012-06-15 21:59:39 +00:00