Andrey A. Chernov
61d35b6350
In arc4random_uniform() detect simple "power of two" case and
...
return just (arc4random() % upper_bound)
2008-07-22 12:43:09 +00:00
Andrey A. Chernov
c0046493c9
Add arc4random_uniform()
...
Obtained from: OpenBSD
2008-07-22 11:40:42 +00:00
Andrey A. Chernov
6e4fe40a24
Add arc4random_uniform() function (to avoid "modulo bias")
...
Obtained from: OpenBSD
2008-07-22 11:33:49 +00:00
Andrey A. Chernov
85986016ae
Increase initially dropped bytes from 512 to 768 (768 is also
...
suggested in the Ilya Mironov's article). 768 taken from another
research where it treats as default for RC4-drop(768):
http://www.users.zetnet.co.uk/hopwood/crypto/scan/cs.html#RC4-drop
Minor style tweak.
2008-07-22 10:31:29 +00:00
Marius Strobl
109c391928
For sun4v ensure there is an opt_global.h with SUN4V defined included,
...
even for the stand-alone build.
2008-07-22 09:56:45 +00:00
Olivier Houchard
7cff8ceafb
Disable SSP for the kernel on arm as well (see rev 180605).
...
I overlooked this because a SSP kernel booted for me.
Apologises to: ticso
2008-07-22 09:38:12 +00:00
Bruce A. Mah
3969be11ef
Add a sentence of credits to the KSE removal note.
...
Requested by: brooks
2008-07-22 05:02:46 +00:00
Tai-hwa Liang
df9cf830d1
Trying to fix compilation bustage:
...
- removing 'const' qualifier from an input parameter to conform to the type
required by rw_assert();
- using in_addr->s_addr to retrive 32 bits address value.
Observed by: tinderbox
2008-07-22 04:23:57 +00:00
Attilio Rao
09400d5abe
- Disallow XFS mounting in write mode. The write support never worked really
...
and there is no need to maintain it.
- Fix vn_get() in order to let it call vget(9) with a valid locking
request. vget(9) returns the vnode locked in order to prevent recycling,
but in this case internal XFS locks alredy prevent it from happening, so
it is safe to drop the vnode lock before to return by vn_get().
- Add a VNASSERT() in vget(9) in order to catch malformed locking requests.
Discussed with: kan, kib
Tested by: Lothar Braun <lothar at lobraun dot de>
2008-07-21 23:01:09 +00:00
Andrew Thompson
c7971a92ea
Change the module example to kldload since this is the resume side.
2008-07-21 22:55:40 +00:00
Marcel Moolenaar
8941d4ae1d
Remove sioX as an alias for uartX. It is believed to be
...
more confusing than helpful.
Suggested by: jhb
2008-07-21 22:38:00 +00:00
Kip Macy
9d29c635da
make new accessor functions consistent with existing style
2008-07-21 22:11:39 +00:00
John Baldwin
bf9a8c1d39
Add feature_present(3) to the FBSD 1.1 symbol map.
2008-07-21 22:07:59 +00:00
Andrey A. Chernov
a08f5d95ec
1) Use __packed attr on rdat structure to make it exact 128 bytes.
...
2) Use gettimeofday() and getpid() only if reading from /dev/urandom
fails or impossible.
3) Discard N bytes on very first initialization only (i.e. don't
discard on re-stir).
4) Reduce N from 1024 to 512 as really suggested in the
"(Not So) Random Shuffles of RC4" paper:
http://research.microsoft.com/users/mironov/papers/rc4full.pdf
2008-07-21 21:57:30 +00:00
Kip Macy
99d803b98f
remove call to unsafe tcp_twstart function
2008-07-21 21:23:43 +00:00
Kip Macy
84330faa64
- Switch to INP_WLOCK macro from inp_wlock
...
- calling sodisconnect after tcp_twstart is both gratuitous and unsafe - remove
Submitted by: rwatson
2008-07-21 21:22:56 +00:00
Robert Watson
828e07694c
If run_interrupt_driven_config_hooks() waits 360 seconds and INVARIANTS
...
is compiled into the kernel, then panic.
MFC after: 3 days
Discussed with: scottl
2008-07-21 20:50:49 +00:00
Andrey A. Chernov
860c4e582a
1) Update copyright notice.
...
2) Eliminate "struct arc4_stream *as" arg since only single arg is
possible.
3) Set rs.j = rs.i after arc4random key schedule to be more like arc4
stream cipher.
Obtained from: OpenBSD
2008-07-21 20:04:32 +00:00
John Baldwin
847bd80810
Allocate a single CCB at the start of the main loop of the RAID monitoring
...
kthread of the mpt(4) driver that hangs around for the entire lifetime of
the thread. Previously the driver would allocate a new CCB using M_WAITOK
with a lock held each time it updated its state. While here, use the
CAM API for allocating a CCB rather than raw malloc(9).
Reviewed by: scottl
MFC after: 1 week
2008-07-21 18:43:02 +00:00
Andrey A. Chernov
531ebdb7b1
Add arc4random_buf to FBSD_1.1 space
2008-07-21 18:03:31 +00:00
Marius Strobl
6ab60a4bdd
- Remove redundant inclusion of opt_global.h.
...
- Use __FBSDID in autoconf.c.
MFC after: 3 days
2008-07-21 17:15:51 +00:00
Pawel Jakub Dawidek
7f41115ef6
Implement the following macros for completeness:
...
SYSCTL_QUAD()
SYSCTL_ADD_QUAD()
TUNABLE_QUAD()
TUNABLE_QUAD_FETCH()
Now we can use 64bit tunables on 32bit systems.
2008-07-21 15:05:25 +00:00
Pawel Jakub Dawidek
37876323b1
We want to use LBOLT instead of lbolt on FreeBSD.
...
I've this already fixed in p4, but the fix was never integrated into HEAD.
Reported by: ed
2008-07-21 14:35:48 +00:00
Andrey A. Chernov
1c443b9b18
Add arc4random_buf.3 to MLINKS
2008-07-21 14:33:11 +00:00
Andrey A. Chernov
3204108bc3
Add arc4random_buf.
...
Style: remove arg names from arc4random_addrandom.
2008-07-21 14:03:04 +00:00
Andrey A. Chernov
bc6847e225
Implement arc4random_buf() function
...
Obtained from: OpenBSD
2008-07-21 13:52:06 +00:00
Andrey A. Chernov
b6634bf8d2
Decrease arc4_count only when needed and with proper bytes amount.
...
Obtained from: OpenBSD
2008-07-21 12:44:47 +00:00
Andrey A. Chernov
0761bd1fe1
1) Set stired flag after forced initialization.
...
2) Increase arc4_count to the limit OpenBSD use.
Submitted by: Thorsten Glaser <tg@mirbsd.de> (1)
Obtained from: OpenBSD (2)
2008-07-21 10:31:28 +00:00
Maxim Konovalov
dc5aa2110e
o Document "show conifhk", wording from r180610 commit log.
...
Reviewed by: rwatson
2008-07-21 10:03:02 +00:00
Pawel Jakub Dawidek
28814ddbe8
We want to check new options given, not the current ones.
...
This fixes 'zpool import -o <mntopt> <name>' not working properly.
2008-07-21 09:45:44 +00:00
Kip Macy
7038c6d2c1
remove unneeded declarations
2008-07-21 02:34:52 +00:00
Kip Macy
9a027ea9a4
remove local version of tcp_offload_* functions
2008-07-21 02:29:40 +00:00
Kip Macy
d21cb942bc
update syncache function names
2008-07-21 02:26:49 +00:00
Kip Macy
b1f8bd6464
Add versions of tcp_twstart, tcp_close, and tcp_drop that hide the acquisition the tcbinfo lock.
...
MFC after: 1 week
2008-07-21 02:23:02 +00:00
Kip Macy
83324f5cb5
remove cxgb local definition of locked syncache_expand
2008-07-21 02:17:27 +00:00
Edwin Groothuis
8bd833fff8
After the commit of SVN rev 180236, wilko@ noticed that the approach
...
doesn't work on the Alpha platform: machine/elf.h doesn't include
sys/elf32.h there.
PR: related to bin/124906
Approved by: bde@
MFC after: 1 week
2008-07-21 02:13:14 +00:00
Kip Macy
409d8ba5c7
add interface for external consumers to syncache_expand - rename syncache_add in a manner consistent with other bits intended for offload
2008-07-21 02:11:06 +00:00
Kip Macy
e331636d14
remove cxgb local definitions of socket accessor functions
2008-07-21 01:23:19 +00:00
Kip Macy
dd0e6c383a
Add accessor functions for socket fields.
...
MFC after: 1 week
2008-07-21 00:49:34 +00:00
Kip Macy
9378e4377f
add inpcb accessor functions for fields needed by TOE devices
2008-07-21 00:08:34 +00:00
Julian Elischer
44554a6de7
Add support for actually sending WCCP return packets via GRE.
...
This MAY be combined by a clever person with the 'key' code recently
added, however a cursary glance suggest that it would be safer to just keep
the patches as it is unlikely that the two modes would be used together
and the separate patch has been extensively tested.
Obtained from: here and there
MFC after: 1 week
2008-07-20 21:45:15 +00:00
Pawel Jakub Dawidek
5527ecd9a5
Clear passphrase buffer after use.
...
Submitted by: Fabian Keil <fk@fabiankeil.de> (a bit different version)
2008-07-20 19:56:13 +00:00
Giorgos Keramidas
6ae8b92a79
tcsh: fix abort in cleanup_until(), caused by internal xgetpass()
...
The xgetpass() function pushes a cleanup entry for &osa, but then
attempts to flush the stack until an entry matching &sa. The two
object pointers do not match, so the stack is popped too much,
and then cleanup_until calls abort() when it unexpectedly hits
the bottom of the cleanup stack.
Reported by: Paul B. Mahol, onemda at gmail.com,
Pietro Cerutti, gahr at gahr.ch
PR: bin/124191
Reviewed by: mp, kris
MFC after: 2 days
2008-07-20 18:05:18 +00:00
Tom Rhodes
3377c9613e
Document a few sysctls. While here, remove dead code
...
related to ip4_esp_randpad.
Reviewed by: gnn, bz (older version)
Approved by: gnn
Tested with: make universe
2008-07-20 17:51:58 +00:00
Scott Long
92130a8f2e
While spin-waiting for the mailbox semaphore to update, do flushing reads of
...
PCI bus so that we don't have to wait more than needed.
2008-07-20 16:50:14 +00:00
Tom Rhodes
41698ebf5b
Document a few sysctls.
...
Reviewed by: rwatson
2008-07-20 15:29:58 +00:00
Tom Rhodes
941b15a3e0
Document a few sysctls.
...
Reviewed by: rwatson
2008-07-20 15:25:20 +00:00
Bjoern A. Zeeb
8699ea087e
ia is a pointer thus use NULL rather then 0 for initialization and
...
in comparisons to make this more obvious.
MFC after: 5 days
2008-07-20 12:31:36 +00:00
Lars Engels
fdec4b4190
Properly underline force_depend's parameter.
...
Reviewed by: brueffer
2008-07-20 10:06:14 +00:00
Maxim Konovalov
6de078f1c0
o Add cddl, nlm and xdr to CSCOPEDIRS.
...
o Add pc98 and sun4v to CSCOPE_ARCHDIR.
PR: misc/125792
Submitted by: KOIE Hidetaka
MFC after: 1 week
2008-07-20 09:16:00 +00:00