CVS log for src/sys/opencrypto/crypto.c
Up to [cvs.NetBSD.org] / src / sys / opencrypto
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.131.10.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:28:01 2026 UTC (11 days, 14 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.131: preferred, colored; next MAIN 1.132: preferred, colored
Changes since revision 1.131: +52 -50
lines
Sync with HEAD
Revision 1.135: download - view: text, markup, annotated - select for diffs
Sun Jul 5 15:34:13 2026 UTC (4 months, 1 week ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102,
HEAD
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +16 -15
lines
opencrypto(9): Sprinkle SET_ERROR dtrace probes.
Revision 1.134: download - view: text, markup, annotated - select for diffs
Sun Jul 5 15:33:44 2026 UTC (4 months, 1 week ago) by riastradh
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +14 -13
lines
opencrypto(9): Sort includes and nix trailing whitespace.
No functional change intended.
Revision 1.131.4.1: download - view: text, markup, annotated - select for diffs
Thu May 7 14:43:24 2026 UTC (6 months, 1 week ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-2-RELEASE
Diff to: previous 1.131: preferred, colored; next MAIN 1.132: preferred, colored
Changes since revision 1.131: +26 -26
lines
Pull up following revision(s) (requested by christos in ticket #1262):
sys/opencrypto/crypto.c: revision 1.132
sys/opencrypto/crypto.c: revision 1.133
sys/opencrypto/cryptosoft.h: revision 1.8
sys/opencrypto/xform.c: revision 1.32
sys/opencrypto/deflate.h: revision 1.10
sys/opencrypto/cryptodev.h: revision 1.52
sys/opencrypto/cryptosoft.c: revision 1.66
sys/opencrypto/cryptodev.h: revision 1.53
sys/opencrypto/ocryptodev.c: revision 1.18
sys/opencrypto/cryptodev_internal.h: revision 1.4
sys/opencrypto/aesxcbcmac.c: revision 1.4
sys/opencrypto/cryptodev.c: revision 1.127
sys/opencrypto/aesxcbcmac.h: revision 1.3
sys/opencrypto/cryptodev.c: revision 1.128
sys/opencrypto/cryptosoft_xform.c: revision 1.31
sys/opencrypto/deflate.c: revision 1.24
sys/opencrypto/deflate.c: revision 1.25
sys/opencrypto/xform.h: revision 1.22
sys/opencrypto/ocryptodev.h: revision 1.5
sys/opencrypto/ocryptodev.h: revision 1.6
u_intXX_t -> uintXX_t
Fix:
An integer wraparound bug that could cause a NULL pointer exception.
Data sharing issues that could cause data corruption.
Locking issues that could cause double freeing or using free memory.
Issues discovered by nasm and coordinated by VulnCheck
Thank you!
Revision 1.131.12.1: download - view: text, markup, annotated - select for diffs
Thu May 7 14:40:13 2026 UTC (6 months, 1 week ago) by martin
Branches: netbsd-11
CVS tags: netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4
Diff to: previous 1.131: preferred, colored; next MAIN 1.132: preferred, colored
Changes since revision 1.131: +26 -26
lines
Pull up following revision(s) (requested by christos in ticket #262):
sys/opencrypto/crypto.c: revision 1.132
sys/opencrypto/crypto.c: revision 1.133
sys/opencrypto/cryptosoft.h: revision 1.8
sys/opencrypto/xform.c: revision 1.32
sys/opencrypto/deflate.h: revision 1.10
sys/opencrypto/cryptodev.h: revision 1.52
sys/opencrypto/cryptosoft.c: revision 1.66
sys/opencrypto/cryptodev.h: revision 1.53
sys/opencrypto/ocryptodev.c: revision 1.18
sys/opencrypto/cryptodev_internal.h: revision 1.4
sys/opencrypto/aesxcbcmac.c: revision 1.4
sys/opencrypto/cryptodev.c: revision 1.127
sys/opencrypto/aesxcbcmac.h: revision 1.3
sys/opencrypto/cryptodev.c: revision 1.128
sys/opencrypto/cryptosoft_xform.c: revision 1.31
sys/opencrypto/deflate.c: revision 1.24
sys/opencrypto/deflate.c: revision 1.25
sys/opencrypto/xform.h: revision 1.22
sys/opencrypto/ocryptodev.h: revision 1.5
sys/opencrypto/ocryptodev.h: revision 1.6
u_intXX_t -> uintXX_t
Fix:
An integer wraparound bug that could cause a NULL pointer exception.
Data sharing issues that could cause data corruption.
Locking issues that could cause double freeing or using free memory.
Issues discovered by nasm and coordinated by VulnCheck
Thank you!
Revision 1.133: download - view: text, markup, annotated - select for diffs
Wed Apr 29 14:51:58 2026 UTC (6 months, 2 weeks ago) by christos
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +26 -26
lines
u_intXX_t -> uintXX_t
Revision 1.132: download - view: text, markup, annotated - select for diffs
Wed Apr 29 14:49:51 2026 UTC (6 months, 2 weeks ago) by christos
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +4 -4
lines
Fix:
An integer wraparound bug that could cause a NULL pointer exception.
Data sharing issues that could cause data corruption.
Locking issues that could cause double freeing or using free memory.
Issues discovered by nasm and coordinated by VulnCheck
Thank you!
Revision 1.131: download - view: text, markup, annotated - select for diffs
Sun Jun 26 22:52:30 2022 UTC (4 years, 4 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20250801,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
netbsd-11-base,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-10-base,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Branch point for: perseant-exfatfs,
netbsd-11,
netbsd-10
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +3 -2
lines
opencrypto(9): Fix missing initialization in error branch.
Reported-by: syzbot+8c519140cac567be1ee1@syzkaller.appspotmail.com
Revision 1.130: download - view: text, markup, annotated - select for diffs
Sun May 22 11:40:54 2022 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +5 -6
lines
opencrypto: Assert session id is valid in crypto_freesession.
This gives us the opportunity to detect usage mistakes like
use-after-free.
Exception: Continue to silently ignore sid=0.
Revision 1.129: download - view: text, markup, annotated - select for diffs
Sun May 22 11:40:29 2022 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +5 -7
lines
opencrypto: crypto_dispatch never fails now. Make it return void.
Same with crypto_kdispatch.
Revision 1.128: download - view: text, markup, annotated - select for diffs
Sun May 22 11:40:15 2022 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +20 -30
lines
opencrypto: Assert driver process routine returns 0 or ERESTART.
No other errors are allowed -- other errors must be transmitted by
crypto_done. All drivers in tree (sun8i_crypto, glxsb, via_padlock,
mvcesa, mvxpsec, hifn, qat, ubsec, cryptosoft) have been audited for
this.
Revision 1.127: download - view: text, markup, annotated - select for diffs
Sun May 22 11:40:03 2022 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +6 -21
lines
opencrypto: Rip out EAGAIN logic when unregistering crypto drivers.
I'm pretty sure this never worked reliably based on code inspection,
and it's unlikely to have ever been tested because it only applies
when unregistering a driver -- but we have no crypto drivers for
removable devices, so it would only apply if we went out of our way
to trigger detach with drvctl.
Instead, just make the operation fail with ENODEV, and remove all the
callback logic to resubmit the request on EAGAIN. (Maybe this should
be ENXIO, but crypto_kdispatch already does ENODEV.)
Revision 1.126: download - view: text, markup, annotated - select for diffs
Sun May 22 11:39:54 2022 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +7 -18
lines
opencrypto: Assert nonnull callback up front in crypto_dispatch.
Same with crypto_kdispatch.
Convert some dead branches downstream to assertions too.
Revision 1.125: download - view: text, markup, annotated - select for diffs
Sun May 22 11:39:37 2022 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +5 -7
lines
opencrypto: Make crypto_freesession return void.
No callers use the return value. It is not sensible to allow this to
fail.
Revision 1.124: download - view: text, markup, annotated - select for diffs
Sun May 22 11:39:27 2022 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +4 -6
lines
opencrypto: Make freesession callback return void.
No functional change intended: all drivers already return zero
unconditionally.
Revision 1.123: download - view: text, markup, annotated - select for diffs
Sun May 22 11:34:40 2022 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +4 -2
lines
opencrypto: Assert crp_desc and crp_buf are nonnull.
- crypto_getreq ensures crp_desc is nonnull.
- Caller is responsible for setting crp_buf.
Revision 1.122: download - view: text, markup, annotated - select for diffs
Sun May 22 11:34:17 2022 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +7 -3
lines
opencrypto: Assert num>0 in crypto_getreq, num=1 in crypto_kgetreq.
- For crypto_getreq this makes downstream reasoning easier: on
success, crp_desc is guaranteed to be nonnull.
- For crypto_kgetreq, this was already assumed, just silently
ignored and not checked by anything.
Revision 1.121: download - view: text, markup, annotated - select for diffs
Sun May 22 11:30:05 2022 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +2 -6
lines
opencrypto: Nix CRYPTO_F_DONE.
Nothing uses it any more.
Revision 1.120: download - view: text, markup, annotated - select for diffs
Sun May 22 11:25:14 2022 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +27 -4
lines
opencrypto: Make sid=0 always invalid, but OK to free.
Previously, crypto_newsession could sometimes return 0 as the
driver-specific part of the session id, and 0 as the hid, for sid=0.
But netipsec assumes that it is always safe to free sid=0 from
zero-initialized memory even if crypto_newsession has never
succeeded. So it was up to every driver in tree to gracefully handle
sid=0, if it happened to get assigned hid=0. And, as long as the
freesession callback was expected to just return an error code when
given a bogus session id, that worked out fine...because nothing ever
used the error code.
That was a terrible fragile system that should never have been
invented. Instead, let's just ensure that valid session ids are
nonzero, and make crypto_freesession with sid=0 be a no-op.
Revision 1.119: download - view: text, markup, annotated - select for diffs
Thu May 19 20:51:59 2022 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +6 -2
lines
opencrypto: Assert !cpu_intr_p() on dispatch and invoke.
These should only ever have been potentially called from hard
interrupt context by CRYPTO_F_CBIMM callbacks (CBIMM = call back
immediately). CRYPTO_F_CBIMM is no more, so there is no more need to
allow this case of call from hard interrupt context.
Revision 1.118: download - view: text, markup, annotated - select for diffs
Thu May 19 20:51:46 2022 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +30 -89
lines
opencrypto: Nix CRYPTO_F_USER, CRYPTO_F_CBIMM, CRYPTO_F_CBIFSYNC.
CRYPTO_F_USER is no longer needed. It was introduced in 2008 by
darran@ in crypto.c 1.30, cryptodev.c 1.45 in an attempt to avoid
double-free between the issuing thread and asynchronous callback.
But the `fix' didn't work. In 2017, knakahara@ fixed it properly in
cryptodev.c 1.87 by distinguishing `the crypto operation has
completed' (CRYPTO_F_DONE) from `the callback is done touching the
crp object' (CRYPTO_F_DQRETQ, now renamed to CRYPTODEV_F_RET).
CRYPTO_F_CBIMM formerly served to invoke the callback synchronously
from the driver's interrupt completion routine, to reduce contention
on what was once a single cryptoret thread. Now, there is a per-CPU
queue and softint for much cheaper processing, so there is less
motivation for this in the first place. So let's remove the
complicated logic. This means the callbacks never run in hard
interrupt context, which means we don't need to worry about recursion
into crypto_dispatch in hard interrupt context.
Revision 1.117: download - view: text, markup, annotated - select for diffs
Tue May 17 10:32:58 2022 UTC (4 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +4 -5
lines
opencrypto: Factor setting CRYPTO_F_DONE out of branches.
This had been done in 1.30 when the locking was different. No need
any more. No functional change intended.
Revision 1.116: download - view: text, markup, annotated - select for diffs
Sat Aug 14 20:43:05 2021 UTC (5 years, 3 months ago) by andvar
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +3 -3
lines
fix typo in CRK_ALGORITHM_MIN definition to match CRK_ALGORITHM_MAX one.
while here fix few typos in comments.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Mon Aug 9 19:57:58 2021 UTC (5 years, 3 months ago) by andvar
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +4 -4
lines
fix typos in asymmetry, asymmetric(al), symmetrical.
Revision 1.106.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:17 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.106: preferred, colored; next MAIN 1.107: preferred, colored
Changes since revision 1.106: +23 -51
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.114: download - view: text, markup, annotated - select for diffs
Wed Apr 8 15:27:18 2020 UTC (6 years, 7 months ago) by pgoyette
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-futex,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
phil-wifi-20200421,
phil-wifi-20200411,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +9 -1
lines
Revert previous change to use SYSCTL_SETUP since it breaks on macppc.
For some reason, the crypto module fails to link, and this results in
opencrypto sysctl failures.
Should resolve PR kern/55154
Revision 1.113: download - view: text, markup, annotated - select for diffs
Mon Mar 16 21:20:12 2020 UTC (6 years, 8 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20200406
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -11
lines
Use the module subsystem's ability to process SYSCTL_SETUP() entries to
automate installation of sysctl nodes.
Note that there are still a number of device and pseudo-device modules
that create entries tied to individual device units, rather than to the
module itself. These are not changed.
Revision 1.110.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:21:08 2020 UTC (6 years, 8 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110: +5 -9
lines
Sync with head.
Revision 1.112: download - view: text, markup, annotated - select for diffs
Sat Feb 1 13:48:08 2020 UTC (6 years, 9 months ago) by riastradh
Branches: MAIN
CVS tags: is-mlppp-base,
is-mlppp,
ad-namecache-base3
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +3 -7
lines
softint_disestablish does xc_barrier(0) for us already.
Revision 1.111: download - view: text, markup, annotated - select for diffs
Sat Feb 1 12:54:30 2020 UTC (6 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +4 -4
lines
Switch opencrypto to percpu_create.
Can't sleep for allocation in percpu_foreach.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Sun Oct 6 15:11:17 2019 UTC (7 years, 1 month ago) by uwe
Branches: MAIN
CVS tags: phil-wifi-20191119,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +3 -5
lines
xc_barrier - convenience function to xc_broadcast() a nop.
Make the intent more clear and also avoid a bunch of (xcfunc_t)nullop
casts that gcc 8 -Wcast-function-type is not happy about.
Revision 1.109: download - view: text, markup, annotated - select for diffs
Tue Oct 1 18:00:09 2019 UTC (7 years, 1 month ago) by chs
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +9 -42
lines
in many device attach paths, allocate memory with KM_SLEEP instead of KM_NOSLEEP
and remove code to handle failures that can no longer happen.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Thu Jul 11 23:28:17 2019 UTC (7 years, 4 months ago) by christos
Branches: MAIN
CVS tags: netbsd-9-base,
netbsd-9-5-RELEASE,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +4 -2
lines
relinguish our lock while we are autoloading.
Revision 1.107: download - view: text, markup, annotated - select for diffs
Thu Jun 13 02:07:31 2019 UTC (7 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +11 -2
lines
Try to load swcrypto if we we did not find any software drivers.
Revision 1.105.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:26:07 2018 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.105: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105: +6 -6
lines
Sync with HEAD
Revision 1.106: download - view: text, markup, annotated - select for diffs
Wed Jun 6 01:49:09 2018 UTC (8 years, 5 months ago) by maya
Branches: MAIN
CVS tags: phil-wifi-base,
phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
isaki-audio2-base,
isaki-audio2
Branch point for: phil-wifi
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +6 -6
lines
Remove duplicate ;
Revision 1.78.2.5: download - view: text, markup, annotated - select for diffs
Tue Feb 27 09:07:32 2018 UTC (8 years, 8 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1
Diff to: previous 1.78.2.4: preferred, colored; branchpoint 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.2.4: +4 -4
lines
Pull up following revision(s) (requested by mrg in ticket #593):
sys/dev/marvell/mvxpsec.c: revision 1.2
sys/arch/m68k/m68k/pmap_motorola.c: revision 1.70
sys/opencrypto/crypto.c: revision 1.102
sys/arch/sparc64/sparc64/pmap.c: revision 1.308
sys/ufs/chfs/chfs_malloc.c: revision 1.5
sys/arch/powerpc/oea/pmap.c: revision 1.95
sys/sys/pool.h: revision 1.80,1.82
sys/kern/subr_pool.c: revision 1.209-1.216,1.219-1.220
sys/arch/alpha/alpha/pmap.c: revision 1.262
sys/kern/uipc_mbuf.c: revision 1.173
sys/uvm/uvm_fault.c: revision 1.202
sys/sys/mbuf.h: revision 1.172
sys/kern/subr_extent.c: revision 1.86
sys/arch/x86/x86/pmap.c: revision 1.266 (via patch)
sys/dev/dtv/dtv_scatter.c: revision 1.4
Allow only one pending call to a pool's backing allocator at a time.
Candidate fix for problems with hanging after kva fragmentation related
to PR kern/45718.
Proposed on tech-kern:
https://mail-index.NetBSD.org/tech-kern/2017/10/23/msg022472.html
Tested by bouyer@ on i386.
This makes one small change to the semantics of pool_prime and
pool_setlowat: they may fail with EWOULDBLOCK instead of ENOMEM, if
there is a pending call to the backing allocator in another thread but
we are not actually out of memory. That is unlikely because nearly
always these are used during initialization, when the pool is not in
use.
Define the new flag too for previous commit.
pool_grow can now fail even when sleeping is ok. Catch this case in pool_get
and retry.
Assert that pool_get failure happens only with PR_NOWAIT.
This would have caught the mistake I made last week leading to null
pointer dereferences all over the place, a mistake which I evidently
poorly scheduled alongside maxv's change to the panic message on x86
for null pointer dereferences.
Since pr_lock is now used to wait for two things now (PR_GROWING and
PR_WANTED) we need to loop for the condition we wanted.
make the KASSERTMSG/panic strings consistent as '%s: [%s], __func__, wchan'
Handle the ERESTART case from pool_grow()
don't pass 0 to the pool flags
Guess pool_cache_get(pc, 0) means PR_WAITOK here.
Earlier on in the same context we use kmem_alloc(sz, KM_SLEEP).
use PR_WAITOK everywhere.
use PR_NOWAIT.
Don't use 0 for PR_NOWAIT
use PR_NOWAIT instead of 0
panic ex nihilo -- PR_NOWAITing for zerot
Add assertions that either PR_WAITOK or PR_NOWAIT are set.
- fix an assert; we can reach there if we are nowait or limitfail.
- when priming the pool and failing with ERESTART, don't decrement the number
of pages; this avoids the issue of returning an ERESTART when we get to 0,
and is more correct.
- simplify the pool_grow code, and don't wakeup things if we ENOMEM.
In pmap_enter_ma(), only try to allocate pves if we might need them,
and even if that fails, only fail the operation if we later discover
that we really do need them. This implements the requirement that
pmap_enter(PMAP_CANFAIL) must not fail when replacing an existing
mapping with the first mapping of a new page, which is an unintended
consequence of the changes from the rmind-uvmplock branch in 2011.
The problem arises when pmap_enter(PMAP_CANFAIL) is used to replace an existing
pmap mapping with a mapping of a different page (eg. to resolve a copy-on-write).
If that fails and leaves the old pmap entry in place, then UVM won't hold
the right locks when it eventually retries. This entanglement of the UVM and
pmap locking was done in rmind-uvmplock in order to improve performance,
but it also means that the UVM state and pmap state need to be kept in sync
more than they did before. It would be possible to handle this in the UVM code
instead of in the pmap code, but these pmap changes improve the handling of
low memory situations in general, and handling this in UVM would be clunky,
so this seemed like the better way to go.
This somewhat indirectly fixes PR 52706, as well as the failing assertion
about "uvm_page_locked_p(old_pg)". (but only on x86, various other platforms
will need their own changes to handle this issue.)
In uvm_fault_upper_enter(), if pmap_enter(PMAP_CANFAIL) fails, assert that
the pmap did not leave around a now-stale pmap mapping for an old page.
If such a pmap mapping still existed after we unlocked the vm_map,
the UVM code would not know later that it would need to lock the
lower layer object while calling the pmap to remove or replace that
stale pmap mapping. See PR 52706 for further details.
hopefully workaround the irregularly "fork fails in init" problem.
if a pool is growing, and the grower is PR_NOWAIT, mark this.
if another caller wants to grow the pool and is also PR_NOWAIT,
busy-wait for the original caller, which should either succeed
or hard-fail fairly quickly.
implement the busy-wait by unlocking and relocking this pools
mutex and returning ERESTART. other methods (such as having
the caller do this) were significantly more code and this hack
is fairly localised.
ok chs@ riastradh@
Don't release the lock in the PR_NOWAIT allocation. Move flags setting
after the acquiring the mutex. (from Tobias Nygren)
apply the change from arch/x86/x86/pmap.c rev. 1.266 commitid vZRjvmxG7YTHLOfA:
In pmap_enter_ma(), only try to allocate pves if we might need them,
and even if that fails, only fail the operation if we later discover
that we really do need them. If we are replacing an existing mapping,
reuse the pv structure where possible.
This implements the requirement that pmap_enter(PMAP_CANFAIL) must not fail
when replacing an existing mapping with the first mapping of a new page,
which is an unintended consequence of the changes from the rmind-uvmplock
branch in 2011.
The problem arises when pmap_enter(PMAP_CANFAIL) is used to replace an existing
pmap mapping with a mapping of a different page (eg. to resolve a copy-on-write).
If that fails and leaves the old pmap entry in place, then UVM won't hold
the right locks when it eventually retries. This entanglement of the UVM and
pmap locking was done in rmind-uvmplock in order to improve performance,
but it also means that the UVM state and pmap state need to be kept in sync
more than they did before. It would be possible to handle this in the UVM code
instead of in the pmap code, but these pmap changes improve the handling of
low memory situations in general, and handling this in UVM would be clunky,
so this seemed like the better way to go.
This somewhat indirectly fixes PR 52706 on the remaining platforms where
this problem existed.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Mon Jan 8 23:34:56 2018 UTC (8 years, 10 months ago) by knakahara
Branches: MAIN
CVS tags: pgoyette-compat-base,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +3 -3
lines
Fix PR kern/52910. Reported and implemented a patch by Sevan Janiyan, thanks.
Revision 1.104: download - view: text, markup, annotated - select for diffs
Mon Jan 8 23:33:40 2018 UTC (8 years, 10 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +3 -3
lines
Committed debugging logs by mistake, sorry. Revert cryoto.c:r.1.103 and ip6_flow.c:r.1.37.
Revision 1.103: download - view: text, markup, annotated - select for diffs
Mon Jan 8 23:23:25 2018 UTC (8 years, 10 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +3 -3
lines
Fix PR kern/52910. Reported and implemented a patch by Sevan Janiyan, thanks.
Revision 1.78.2.4: download - view: text, markup, annotated - select for diffs
Tue Jan 2 10:38:36 2018 UTC (8 years, 10 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.78.2.3: preferred, colored; branchpoint 1.78: preferred, colored
Changes since revision 1.78.2.3: +15 -12
lines
Pull up following revision(s) (requested by knakahara in ticket #460):
sys/opencrypto/crypto.c: revision 1.101
fix opencrypto(9) part of PR kern/52515
percpu data use pointers to TAILQ instead of TAILQ itself.
Revision 1.41.12.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:06 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.41.12.1: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.12.1: +1251 -485
lines
update from HEAD
Revision 1.102: download - view: text, markup, annotated - select for diffs
Thu Nov 9 22:20:25 2017 UTC (9 years ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +4 -4
lines
use PR_NOWAIT.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Fri Sep 22 03:04:06 2017 UTC (9 years, 1 month ago) by knakahara
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +15 -12
lines
fix opencrypto(9) part of PR kern/52515
percpu data use pointers to TAILQ instead of TAILQ itself.
Revision 1.45.6.3: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:13 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.45.6.2: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.6.2: +1215 -507
lines
Sync with HEAD
Revision 1.78.2.3: download - view: text, markup, annotated - select for diffs
Sat Aug 5 03:59:21 2017 UTC (9 years, 3 months ago) by snj
Branches: netbsd-8
CVS tags: matt-nb8-mediatek-base,
matt-nb8-mediatek
Diff to: previous 1.78.2.2: preferred, colored; branchpoint 1.78: preferred, colored
Changes since revision 1.78.2.2: +480 -240
lines
Pull up following revision(s) (requested by knakahara in ticket #178):
sys/opencrypto/crypto.c: 1.92-1.100
sys/opencrypto/cryptodev.h: 1.38-1.39
sys/opencrypto/ocryptodev.c: 1.9-1.11
sys/opencrypto/xform.c: revision 1.29
sys/opencrypto/xform.h: revision 1.20
KNF
--
Apply C99-style struct initialization to enc_xform, auth_hash and comp_algo
--
make cryptoret() context softint to balance dequeuing crypto_ret_q with enqueuing it.
--
fix panic when using ecryption devices attached earlier than ipi_sysinit().
pointed out and tested by martin@n.o, thanks.
--
fix typo
--
make crp_{,k}q percpu to scale crypto_dispatch().
update locking note later.
--
divide crp_ret_{,k}q by CPU to avoid reordering.
update locking note later.
--
update locking notes of opencrypto(9)
--
Don't disclose uninitialized 32-bit word if cryptodev_session fails.
From Ilja Van Sprundel.
--
Avert userland-controlled integer overflow.
From Ilja Van Sprundel.
--
Avoid another userland-controlled integer overflow.
From Ilja Van Sprundel.
--
refactor: remove glue macros for FreeBSD code.
--
pack crypto_drivers variables to struct and add cacheline_aligned qualifier.
--
use kmem_alloc KPI instead of malloc KPI.
--
use pool_cache(9) instead of pool(9) as they can be called concurrently.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Mon Jul 31 04:25:45 2017 UTC (9 years, 3 months ago) by knakahara
Branches: MAIN
CVS tags: nick-nhusb-base-20170825
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +20 -20
lines
use pool_cache(9) instead of pool(9) as they can be called concurrently.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Mon Jul 31 04:23:48 2017 UTC (9 years, 3 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +10 -12
lines
use kmem_alloc KPI instead of malloc KPI.
Revision 1.98: download - view: text, markup, annotated - select for diffs
Mon Jul 31 04:21:59 2017 UTC (9 years, 3 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +11 -5
lines
pack crypto_drivers variables to struct and add cacheline_aligned qualifier.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Mon Jul 31 04:19:26 2017 UTC (9 years, 3 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +19 -28
lines
refactor: remove glue macros for FreeBSD code.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Wed Jul 26 06:44:01 2017 UTC (9 years, 3 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +282 -107
lines
divide crp_ret_{,k}q by CPU to avoid reordering.
update locking note later.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Wed Jul 26 06:40:42 2017 UTC (9 years, 3 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +98 -41
lines
make crp_{,k}q percpu to scale crypto_dispatch().
update locking note later.
Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Jul 20 23:07:12 2017 UTC (9 years, 3 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +4 -4
lines
fix typo
Revision 1.93: download - view: text, markup, annotated - select for diffs
Thu Jul 20 09:31:36 2017 UTC (9 years, 3 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +23 -6
lines
fix panic when using ecryption devices attached earlier than ipi_sysinit().
pointed out and tested by martin@n.o, thanks.
Revision 1.92.2.2: download - view: text, markup, annotated - select for diffs
Tue Jul 18 06:01:37 2017 UTC (9 years, 4 months ago) by knakahara
Branches: perseant-stdc-iso10646
Diff to: previous 1.92.2.1: preferred, colored; branchpoint 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92.2.1: +1882 -0
lines
3212654
Revision 1.92.2.1
Tue Jul 18 06:01:36 2017 UTC (9 years, 4 months ago) by knakahara
Branches: perseant-stdc-iso10646
FILE REMOVED
Changes since revision 1.92: +0 -1882
lines
file crypto.c was added on branch perseant-stdc-iso10646 on 2017-07-18 06:01:37 +0000
Revision 1.92: download - view: text, markup, annotated - select for diffs
Tue Jul 18 06:01:36 2017 UTC (9 years, 4 months ago) by knakahara
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base
Branch point for: perseant-stdc-iso10646
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +42 -46
lines
make cryptoret() context softint to balance dequeuing crypto_ret_q with enqueuing it.
Revision 1.78.2.2: download - view: text, markup, annotated - select for diffs
Wed Jul 5 20:19:21 2017 UTC (9 years, 4 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.78.2.1: preferred, colored; branchpoint 1.78: preferred, colored
Changes since revision 1.78.2.1: +119 -63
lines
Pull up following revision(s) (requested by knakahara in ticket #97):
sys/opencrypto/crypto.c: 1.87-1.91
sys/opencrypto/cryptodev.c: 1.93-1.95
sys/opencrypto/cryptodev.h: 1.37
sys/opencrypto/cryptosoft.c: 1.52
sys/rump/dev/lib/libopencrypto/opencrypto_component.c: 1.5
sanitize count used for kmem_alloc size.
Hmm, who uses CIOCNGSESSION, CIOCNFSESSION, CIOCNCRYPTM or CIOCNFKEYM?
--
sanitize in CIOCNCRYPTM and initialize comp_alg in CIOCNGSESSION
--
must release cap->cc_lock before calling cap->cc_newsession() because of spinlock.
--
refactor crypto_newsession() like FreeBSD.
--
support multiple encryption drivers (port from FreeBSD).
--
Divide crp_devflags from crp_flags to write exclusively.
CRYPTO_F_DQRETQ(new name is CRYPTODEV_F_RET) is used by cryptodev.c only.
It should be divided to other member.
--
Reduce crypto_ret_q_mtx lock regions.
crypto.c does not access the members of crp when the crp is in crp_q or
crp_ret_q. Furthermore, crp_q and crp_ret_q are protected by each mutex,
so the members of crp is not shared. That means crp_flags is not required
mutex in crypto.c.
--
fix cryptosoft.c:r1.51 mistake. swcrypto_attach() must not be called from module_init_class().
swcrypto_attach() will call softint_establish(), it must be called after cpus
attached. module_init_class() is too early to call softint_establish().
--
simplify mutex_enter/exit(crypto_q_mtx), and fix missing exit.
--
reduce rump waring message. pointed out by ozaki-r@n.o, thanks.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Mon Jun 26 05:34:48 2017 UTC (9 years, 4 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +13 -11
lines
simplify mutex_enter/exit(crypto_q_mtx), and fix missing exit.
Revision 1.78.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 05:36:41 2017 UTC (9 years, 4 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +243 -110
lines
Pull up following revision(s) (requested by christos/knakahara in ticket #37):
sys/opencrypto/crypto.c: 1.79-1.86
sys/opencrypto/cryptodev.h: 1.35, 1.36
use crypto_checkdriver_uninit() when it may touch uninitialized crypto_drivers.
--
fix reading crp_q without holding crypto_q_mtx
--
restructure locks(1/2): make relation between lock and data explicit.
+ crypto_drv_mtx protects
- whole crypto_drivers
+ crypto_drivers[i].cc_lock (new) protects
- crypto_drivers[i] itself
- member of crypto_drivers[i]
+ crypto_q_mtx protects
- crp_q
- crp_kq
+ crypto_ret_q_mtx protects
- crp_ret_q
- crp_ret_kq
- crypto_exit_flag
I will add locking note later.
--
restructure locks(2/2): crypto_q_mtx can be adaptive now.
--
add locking notes.
--
avoid crp_q reordering as hardware interrupts.
crypto_{,k}invoke() can be called with holding crp_q_mtx now.
--
apply the same fix as crypto.c:r1.83 for crypto_dispatch to crypto_kdispatch.
--
- acquire lock
- use c99 loop indexes
- initialize featp
--
Put back crypto_checkdriver(); use it when we need to make sure that we
get back a cryptocap that has been initialized.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Thu Jun 15 12:45:10 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +8 -8
lines
Reduce crypto_ret_q_mtx lock regions.
crypto.c does not access the members of crp when the crp is in crp_q or
crp_ret_q. Furthermore, crp_q and crp_ret_q are protected by each mutex,
so the members of crp is not shared. That means crp_flags is not required
mutex in crypto.c.
Revision 1.89: download - view: text, markup, annotated - select for diffs
Wed Jun 14 07:38:24 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +41 -8
lines
support multiple encryption drivers (port from FreeBSD).
Revision 1.88: download - view: text, markup, annotated - select for diffs
Wed Jun 14 07:36:24 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +70 -51
lines
refactor crypto_newsession() like FreeBSD.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Wed Jun 14 07:32:19 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +4 -2
lines
must release cap->cc_lock before calling cap->cc_newsession() because of spinlock.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Thu Jun 8 00:17:02 2017 UTC (9 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +37 -11
lines
Put back crypto_checkdriver(); use it when we need to make sure that we
get back a cryptocap that has been initialized.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Tue Jun 6 18:08:23 2017 UTC (9 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +17 -15
lines
- acquire lock
- use c99 loop indexes
- initialize featp
Revision 1.84: download - view: text, markup, annotated - select for diffs
Tue Jun 6 04:11:41 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +3 -7
lines
apply the same fix as crypto.c:r1.83 for crypto_dispatch to crypto_kdispatch.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Tue Jun 6 01:51:39 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +6 -12
lines
avoid crp_q reordering as hardware interrupts.
crypto_{,k}invoke() can be called with holding crp_q_mtx now.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Tue Jun 6 01:47:23 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +26 -26
lines
restructure locks(2/2): crypto_q_mtx can be adaptive now.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Tue Jun 6 01:45:57 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +174 -78
lines
restructure locks(1/2): make relation between lock and data explicit.
+ crypto_drv_mtx protects
- whole crypto_drivers
+ crypto_drivers[i].cc_lock (new) protects
- crypto_drivers[i] itself
- member of crypto_drivers[i]
+ crypto_q_mtx protects
- crp_q
- crp_kq
+ crypto_ret_q_mtx protects
- crp_ret_q
- crp_ret_kq
- crypto_exit_flag
I will add locking note later.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Mon Jun 5 09:09:13 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +4 -3
lines
fix reading crp_q without holding crypto_q_mtx
Revision 1.79: download - view: text, markup, annotated - select for diffs
Mon Jun 5 09:07:46 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +26 -8
lines
use crypto_checkdriver_uninit() when it may touch uninitialized crypto_drivers.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Wed May 31 02:17:49 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
CVS tags: netbsd-8-base
Branch point for: netbsd-8
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -3
lines
fix: crypto_unregister didn't work.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Mon May 29 09:02:46 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +96 -72
lines
strictly use crypto_checkdriver(i) instead of using crypto_drivers[i] directly.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Thu May 25 05:24:57 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +51 -3
lines
add cryptkop alloc/free KPI instead of manipulating cryptkop_pool directly.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Wed May 24 10:05:09 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +12 -7
lines
make the default values of q_maxlen build parameters.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Wed May 24 09:57:36 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +20 -2
lines
implement crypto_ret_q limitation. original code is implemented by hsuenaga@IIJ.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Wed May 24 09:54:35 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +157 -2
lines
add crypto_ret_{,k}q length sysctl entries and statistics codes.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed May 24 05:11:29 2017 UTC (9 years, 5 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +5 -9
lines
initialize sysctl in the same way regardless of module or not.
Revision 1.58.2.2: download - view: text, markup, annotated - select for diffs
Fri May 19 00:22:58 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.58.2.1: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.2.1: +143 -104
lines
Resolve conflicts from previous merge (all resulting from $NetBSD
keywork expansion)
Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed May 17 12:11:41 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
CVS tags: prg-localcount2-base3
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +25 -19
lines
decrease the priority of batch crp even if there are more than one batch crp.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Wed May 17 11:04:38 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +25 -21
lines
refactor cryptointr(), no functional changes.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed May 17 11:03:42 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -4
lines
fix cryptointr() can process unexpected request.
If migrate crp is linked after batch crp, "submit" is already set to
the batch crp. So, cryptointr() can process the batch crp instead of
the target migrate crp.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed May 17 07:12:50 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +37 -24
lines
refactor crypto_kdispatch() in a similar way as crypto_dispatch().
Revision 1.67: download - view: text, markup, annotated - select for diffs
Wed May 17 06:53:02 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +33 -29
lines
refactor crypto_dispatch (3/3): do "blocked" operation previously
Revision 1.66: download - view: text, markup, annotated - select for diffs
Wed May 17 06:52:08 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +20 -4
lines
refactor crypto_dispatch (2/3): divide migrate operation
Revision 1.65: download - view: text, markup, annotated - select for diffs
Wed May 17 06:50:12 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +45 -45
lines
refactor crypto_dispatch (1/3): divide batch operation
Processing batch operation at first, crypto_q_mtx's lock region is reduced
because crp does not require crypto_q_mtx.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Wed May 17 06:33:04 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +15 -18
lines
opencrypto: cleanup debug messages.
Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Thu May 11 02:58:41 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +75 -66
lines
Sync with HEAD
Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed May 10 09:45:51 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
CVS tags: prg-localcount2-base2
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +5 -5
lines
fix: crypto_drivers[hid].cc_process() could be called even if it was null.
If a crypto driver is unregistered before calling cyrptointr(),
the crypto_drivers[hid].cc_process is null in spite of the hid
is less than crypto_drivers_num.
reffered to FreeBSD code.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed May 10 03:26:33 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +22 -37
lines
unify implementation of crypto_unregister() and crypto_unregister_all()
Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed May 10 03:23:26 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +47 -33
lines
refactor crypto_unregister()
- separate logic to crypto_unregister_locked()
- refactor cryptocap cleanup condition
Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed May 10 03:15:32 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3
lines
use macro instead of immediate value
Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue May 2 03:17:43 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +17 -7
lines
add some assertion. tested by ATF net/ipsec/ and crypto/.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Apr 26 03:29:36 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
CVS tags: prg-localcount2-base1,
prg-localcount2-base
Branch point for: prg-localcount2
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +16 -2
lines
When crypto request is deferred processing, opencrypto should not return error.
When the crypto device blocks a crypto request, opnecrypto enqueues the request,
that is, the request is just deferred and no error occurs.
The pseudo error causes problems, e.g. ipsec can send wrong ICMP host unreach.
contributed by hsuenaga@IIJ, thanks.
Revision 1.48.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:30 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.48.2.1: preferred, colored; branchpoint 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.1: +75 -101
lines
Sync with HEAD
Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Apr 24 03:29:37 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
CVS tags: pgoyette-localcount-20170426
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +33 -31
lines
separate crypto_drv_mtx from crypto_mtx.
crypto_mtx is used only for cryptodev.c and ocryptodev.c now.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Apr 24 02:04:55 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +10 -5
lines
reduce crypto_q_mtx lock regions.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Apr 24 01:42:00 2017 UTC (9 years, 6 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +18 -20
lines
refactor crypto_unblock(). No functional change.
Revision 1.48.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:07 2017 UTC (9 years, 6 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +25 -59
lines
Sync with HEAD
Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Apr 7 12:17:57 2017 UTC (9 years, 7 months ago) by knakahara
Branches: MAIN
CVS tags: jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -41
lines
the processing said "ghastly hacks" is unnecessary now.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Apr 6 09:39:12 2017 UTC (9 years, 7 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3
lines
fix build failure ALL
Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Apr 5 08:51:04 2017 UTC (9 years, 7 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +15 -11
lines
fix processes accessing /dev/crypto stall when over three processes run with a hardware encryption driver
The process has stalled at cv_wait(&crp->crp_cv) because cryptodev_cb()
is not called as cryptoret() kthread keep waiting at cv_wait(&cryptoret_cv).
Previous opencrypto implementation assumes the thread from cryptodev.c
does all processing in the same context, so skips enqueueing and sending
cryptoret_cv. However, the context can be switched, e.g. when we use
a hardware encryption driver.
And add debug messages.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Mar 29 23:02:43 2017 UTC (9 years, 7 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +8 -4
lines
fix missing mutex_exit() in crypto_destroy().
crypto_destroy() is called only in error case or unloading module.
Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:52 2017 UTC (9 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +6 -9
lines
Sync with HEAD
Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Mar 16 05:23:56 2017 UTC (9 years, 8 months ago) by knakahara
Branches: MAIN
CVS tags: pgoyette-localcount-20170320
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -6
lines
fix: remove unmatched mutex_exit/enter. must be forgetting to remove at crypto.c:r1.41
Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Feb 9 06:03:29 2017 UTC (9 years, 9 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +5 -5
lines
make some locks and condvar static
Revision 1.45.6.2: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:23 2016 UTC (10 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.45.6.1: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.6.1: +4 -4
lines
Sync with HEAD
Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Jul 7 06:55:43 2016 UTC (10 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
localcount-20160914,
bouyer-socketcan-base
Branch point for: pgoyette-localcount,
bouyer-socketcan
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -4
lines
KNF. Remove extra spaces. No functional change.
Revision 1.45.6.1: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:10:08 2015 UTC (10 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +73 -18
lines
Sync with HEAD (as of 26th Dec)
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Nov 28 03:40:43 2015 UTC (10 years, 11 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -3
lines
fix the build
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Nov 28 03:06:45 2015 UTC (10 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +70 -17
lines
Re-work the module init and destroy code to allow it to be unloaded and
then reloaded.
Should fix PR kern/49842
Revision 1.41.12.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:36 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +39 -7
lines
Rebase to HEAD as of a few days ago.
Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:11 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +39 -7
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.41.16.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:14 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +39 -7
lines
sync with head
Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:12 2014 UTC (12 years, 8 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Branch point for: nick-nhusb
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -7
lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.
Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Jan 14 14:16:47 2014 UTC (12 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +10 -6
lines
Clean-up module initialization
Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Jan 13 21:15:36 2014 UTC (12 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +11 -2
lines
When using modular opencrypto, make sure the sysctl variables get
created.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Jan 1 16:06:01 2014 UTC (12 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +25 -2
lines
Modularize the opencrypto components and link to the build
Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:20:28 2011 UTC (15 years, 4 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +4 -10
lines
Catchup with rmind-uvmplock merge.
Revision 1.34.4.3: download - view: text, markup, annotated - select for diffs
Sun Jun 12 00:24:31 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.34.4.2: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.4.2: +2 -8
lines
sync with head
Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Jun 9 14:41:24 2011 UTC (15 years, 5 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pagecache-tag8,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
khorben-n900,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base10,
jmcneill-usbmp-base,
jmcneill-usbmp,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
agc-symver-base,
agc-symver
Branch point for: yamt-pagecache,
tls-maxphys,
rmind-smpnet
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -10
lines
-if an opencrypto(9) session is allocated, the driver is refcounted
and can not disappear -- no need to hold crypto_mtx to check the
driver list
(the whole check is questionable)
-crp->crp_cv (the condition variable) is used by userland cryptodev
exclusively -- move its initialization there, no need to waste
cycles of in-kernel callers
-add a comment which members of "struct cryptop" are used
by opencrypto(9) and which by crypto(4)
(this should be split, no need to waste memory for in-kernel callers)
Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:10:03 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +90 -74
lines
Sync with HEAD.
Revision 1.34.4.2: download - view: text, markup, annotated - select for diffs
Tue May 31 03:05:10 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.34.4.1: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.4.1: +64 -54
lines
sync with head
Revision 1.29.4.1.4.1: download - view: text, markup, annotated - select for diffs
Fri May 20 08:11:31 2011 UTC (15 years, 6 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.29.4.1: preferred, colored; next MAIN 1.29.4.2: preferred, colored
Changes since revision 1.29.4.1: +20 -6
lines
bring matt-nb5-mips64 up to date with netbsd-5-1-RELEASE (except compat).
Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon May 16 10:27:49 2011 UTC (15 years, 6 months ago) by drochner
Branches: MAIN
CVS tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +66 -58
lines
split the "crypto_mtx" spinlock into 3: one spinlock each for
the incoming and outgoing request queues (which can be dealt with
by hardware accelerators) and an adaptive lock for "all the rest"
(mostly driver configuration, but also some unrelated stuff in
cryptodev.c which should be revisited)
The latter one seems to be uneeded at many places, but for now I've
done simple replacements only, except minor fixes (where
softint_schedule() was called without the lock held)
Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri May 6 21:48:46 2011 UTC (15 years, 6 months ago) by drochner
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +6 -4
lines
As a first step towards more fine-grained locking, don't require
crypto_{new.free}session() to be called with the "crypto_mtx"
spinlock held.
This doesn't change much for now because these functions acquire
the said mutex first on entry now, but at least it keeps the nasty
locks local to the opencrypto core.
Revision 1.34.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:56:04 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +51 -48
lines
sync with head
Revision 1.36.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 15:10:48 2011 UTC (15 years, 8 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.36.4.1: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.4.1: +3 -3
lines
Sync with HEAD
Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Feb 24 19:35:46 2011 UTC (15 years, 8 months ago) by drochner
Branches: MAIN
CVS tags: bouyer-quota2-nbase
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3
lines
make the crypto softint MPSAFE -- I see no reason not to do it, and
it didn't cause trouble for me. (It doesn't give additional parallelization
as things look now, just saves the acquisition of KERNEL_LOCK.)
Revision 1.36.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:20:03 2011 UTC (15 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +30 -24
lines
Sync with HEAD
Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Jan 26 19:52:16 2011 UTC (15 years, 9 months ago) by christos
Branches: MAIN
CVS tags: bouyer-quota2-base
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +30 -24
lines
PR/44470: Dr. Wolfgang Stukenbrock: opencrypto kernel implementation may pass
outdated argument to worker
Revision 1.27.4.4: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:40 2010 UTC (16 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.27.4.3: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.4.3: +3 -3
lines
sync with head
Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:52 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +24 -27
lines
Sync with HEAD.
Revision 1.27.4.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:59 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.27.4.2: preferred, colored; branchpoint 1.27: preferred, colored
Changes since revision 1.27.4.2: +23 -26
lines
sync with head.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Aug 11 11:49:09 2010 UTC (16 years, 3 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
matt-mips64-premerge-20101231,
jruoho-x86intr-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3
lines
Keep condvar wmesg within 8 char limit.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Aug 2 19:59:35 2010 UTC (16 years, 3 months ago) by jakllsch
Branches: MAIN
CVS tags: yamt-nfs-mp-base10
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +23 -26
lines
Consistently use a single CRYPTO_SESID2HID-like macro.
Improve CRYPTO_DEBUG printing a bit:
print pointers with %p
print unsigned with %u rather than %d
use CRYPTO_SESID2LID instead of just casting to uint32_t
Revision 1.30.4.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:22:56 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +26 -12
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.27.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:24 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.27.4.1: preferred, colored; branchpoint 1.27: preferred, colored
Changes since revision 1.27.4.1: +69 -33
lines
sync with head.
Revision 1.29.4.2: download - view: text, markup, annotated - select for diffs
Sun May 3 17:24:45 2009 UTC (17 years, 6 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
matt-nb5-pq3-base,
matt-nb5-pq3
Diff to: previous 1.29.4.1: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.4.1: +20 -6
lines
Pull up following revision(s) (requested by tls in ticket #611):
sys/lib/libkern/Makefile: patch
sys/lib/libkern/crc32.c: revision 1.1
sys/lib/libkern/crc32.h: revision 1.1
sys/lib/libkern/libkern.h: revision 1.89
sys/lib/libkern/arch/i386/Makefile.inc: revision 1.28
sys/net/zlib.h: revision 1.14 via patch
sys/opencrypto/crypto.c: revision 1.33
sys/opencrypto/cryptodev.c: revision 1.46
sys/opencrypto/cryptodev.h: revision 1.16
sys/opencrypto/cryptosoft.c: revision 1.24
sys/opencrypto/cryptosoft.h: revision 1.6
sys/opencrypto/deflate.h: revision 1.6
sys/opencrypto/cryptosoft_xform.c: revision 1.12
sys/opencrypto/deflate.c: revision 1.13
sys/opencrypto/files.opencrypto: revision 1.20
sys/opencrypto/ocryptodev.c: revision 1.1
sys/opencrypto/ocryptodev.h: revision 1.1
sys/opencrypto/xform.c: revision 1.18
sys/opencrypto/xform.h: revision 1.10
Fixes PR kern/41069 and PR kern/41070.
Extends the Opencrypto API to allow the destination buffer size to be
specified when its not the same size as the input buffer (i.e. for
operations like compress and decompress).
The crypto_op and crypt_n_op structures gain a u_int dst_len field.
The session_op structure gains a comp_alg field to specify a compression
algorithm.
Moved four ioctls to new ids; CIOCGSESSION, CIOCNGSESSION, CIOCCRYPT,
and CIOCNCRYPTM.
Added four backward compatible ioctls; OCIOCGSESSION, OCIOCNGSESSION,
OCIOCCRYPT, and OCIOCNCRYPTM.
Backward compatibility is maintained in ocryptodev.h and ocryptodev.c which
implement the original ioctls and set dst_len and comp_alg to 0.
Adds user-space access to compression features.
Adds software gzip support (CRYPTO_GZIP_COMP).
Adds the fast version of crc32 from zlib to libkern. This should be generally
useful and provide a place to start normalizing the various crc32 routines
in the kernel. The crc32 routine is used in this patch to support GZIP.
With input and support from tls@NetBSD.org.
Revision 1.29.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:50 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.29.2.1: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.2.1: +26 -12
lines
Sync with HEAD.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Apr 18 14:58:07 2009 UTC (17 years, 7 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
uebayasi-xip-base1,
uebayasi-xip-base,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
matt-premerge-20091211,
jymxensuspend-base,
jym-xensuspend-nbase,
jym-xensuspend-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -3
lines
Remove extra whitespace added by a stupid tool.
XXX: more in src/sys/arch
Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Mar 25 01:26:13 2009 UTC (17 years, 7 months ago) by darran
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +20 -6
lines
Fixes PR kern/41069 and PR kern/41070.
Extends the Opencrypto API to allow the destination buffer size to be
specified when its not the same size as the input buffer (i.e. for
operations like compress and decompress).
The crypto_op and crypt_n_op structures gain a u_int dst_len field.
The session_op structure gains a comp_alg field to specify a compression
algorithm.
Moved four ioctls to new ids; CIOCGSESSION, CIOCNGSESSION, CIOCCRYPT,
and CIOCNCRYPTM.
Added four backward compatible ioctls; OCIOCGSESSION, OCIOCNGSESSION,
OCIOCCRYPT, and OCIOCNCRYPTM.
Backward compatibility is maintained in ocryptodev.h and ocryptodev.c which
implement the original ioctls and set dst_len and comp_alg to 0.
Adds user-space access to compression features.
Adds software gzip support (CRYPTO_GZIP_COMP).
Adds the fast version of crc32 from zlib to libkern. This should be generally
useful and provide a place to start normalizing the various crc32 routines
in the kernel. The crc32 routine is used in this patch to support GZIP.
With input and support from tls@NetBSD.org.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Mar 18 17:06:53 2009 UTC (17 years, 8 months ago) by cegger
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3
lines
bcopy -> memcpy
Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Mar 18 16:00:24 2009 UTC (17 years, 8 months ago) by cegger
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +7 -7
lines
bzero -> memset
Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:20:20 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +47 -26
lines
Sync with HEAD.
Revision 1.26.6.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:34 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.26.6.2: preferred, colored; branchpoint 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.6.2: +45 -24
lines
Sync with HEAD.
Revision 1.28.6.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:33 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.28.6.1: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.6.1: +47 -26
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.29.4.1: download - view: text, markup, annotated - select for diffs
Thu Nov 20 03:22:38 2008 UTC (18 years ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +47 -26
lines
Pull up following revision(s) (requested by darran in ticket #92):
sys/opencrypto/cryptodev.c: revision 1.45
sys/sys/queue.h: revision 1.50
sys/opencrypto/cryptodev.h: revision 1.15
sys/opencrypto/crypto.c: revision 1.30
Fix a race condition in opencrypto where the crypto request could be
completed by the crypto device, queued on the retq, but freed by the
ioctl lwp. The problem manifests as various panics relating to the
condvar inside the request. The problem can occur whenever the crypto
device completes the request immediately and the ioctl skips the
cv_wait().
The problem can be reproduced by enabling cryptosoft and running an
openssl
speed test. E.g.
sysctl -w kern.cryptodevallowsoft=-1
openssl speed -engine cryptodev -evp des-ede3-cbc -multi 64
Add a macro for TAILQ_FOREACH_REVERSE_SAFE() to queue.h, since this
was missing and the opencrypto code removes requests from a list while
iterating with TAILQ_FOREACH_REVERSE().
Add missing cv_destroy() calls for the key request cleanup.
Reviewed by Thor Lancelot Simon.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Nov 18 12:59:58 2008 UTC (18 years ago) by darran
Branches: MAIN
CVS tags: nick-hppapmap-base2,
mjf-devfs2-base,
haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Branch point for: jym-xensuspend
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +47 -26
lines
Fix a race condition in opencrypto where the crypto request could be
completed by the crypto device, queued on the retq, but freed by the
ioctl lwp. The problem manifests as various panics relating to the
condvar inside the request. The problem can occur whenever the crypto
device completes the request immediately and the ioctl skips the cv_wait().
The problem can be reproduced by enabling cryptosoft and running an openssl
speed test. E.g.
sysctl -w kern.cryptodevallowsoft=-1
openssl speed -engine cryptodev -evp des-ede3-cbc -multi 64
Add a macro for TAILQ_FOREACH_REVERSE_SAFE() to queue.h, since this
was missing and the opencrypto code removes requests from a list while
iterating with TAILQ_FOREACH_REVERSE().
Add missing cv_destroy() calls for the key request cleanup.
Reviewed by Thor Lancelot Simon.
Revision 1.28.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:59 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -2
lines
Sync with HEAD.
Revision 1.26.6.2: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:41:00 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.26.6.1: preferred, colored; branchpoint 1.26: preferred, colored
Changes since revision 1.26.6.1: +1 -0
lines
Sync with HEAD.
Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:37:02 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +3 -2
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Aug 3 10:18:12 2008 UTC (18 years, 3 months ago) by degroote
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
netbsd-5-base,
matt-mips64-base2,
haad-dm-base1
Branch point for: nick-hppapmap,
netbsd-5
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -2
lines
In crypto_freereq, destroy explicitly the condvar
ok by tls@
Revision 1.26.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:31 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +80 -19
lines
Sync with HEAD.
Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:45 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +2 -9
lines
sync with head.
Revision 1.27.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:50 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -9
lines
sync with head.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:10 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa,
haad-dm
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Apr 10 22:48:42 2008 UTC (18 years, 7 months ago) by tls
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base
Branch point for: yamt-pf42,
yamt-nfs-mp
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +87 -19
lines
Extend crypto.4 interface:
* Asynchronous operation with result retrieval via select/poll
* Mutliple-request submit/retrieve ioctls
* Mutliple-session create-destroy ioctls
Revise/rewrite crypto.4 manual page. It should now be much easier to write
new applications to this API.
Measured performance for trivial requests: 84,000 very short modular math
operations/sec, 120,000 very short md5 hashes per sec (with a hardware
accellerator of moderate performance but very low latency, whose driver
will be contributed at a later date).
Contributed to TNF by Coyote Point Systems, Inc.
Revision 1.20.8.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:09 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.20.8.1: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.8.1: +204 -232
lines
sync with HEAD
Revision 1.21.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:07:18 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +204 -232
lines
Sync with HEAD.
Revision 1.10.4.7: download - view: text, markup, annotated - select for diffs
Mon Feb 11 15:00:09 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.4.6: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.4.6: +39 -36
lines
sync with head.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Feb 5 12:26:13 2008 UTC (18 years, 9 months ago) by ad
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base,
ad-socklock-base1
Branch point for: mjf-devfs2
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +28 -27
lines
cryptoret: avoid a sleep/wakeup race.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Feb 5 01:43:22 2008 UTC (18 years, 9 months ago) by tls
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3
lines
The kthread is now MPSAFE.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Feb 4 14:46:26 2008 UTC (18 years, 9 months ago) by tls
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +13 -11
lines
Some locking fixes (double-release mutex in softintr wakeup case, which I
hadn't tested) and an uninitialized field in cse which Darran Hunt
found. Some more debugging printfs.
Turn on MPSAFE for the kthread. We're not sure it's safe for the softint
yet. Gives a little performance kick for swcrypto with many requests on
MP systems.
Revision 1.10.4.6: download - view: text, markup, annotated - select for diffs
Mon Feb 4 09:24:46 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.4.5: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.5: +178 -209
lines
sync with head.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Feb 4 00:35:34 2008 UTC (18 years, 9 months ago) by tls
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +178 -116
lines
Rework opencrypto to use a spin mutex (crypto_mtx) instead of "splcrypto"
(actually splnet) and condvars instead of tsleep/wakeup. Fix a few
miscellaneous problems and add some debugging printfs while there.
Restore set of CRYPTO_F_DONE in crypto_done() which was lost at some
point after this code came from FreeBSD -- it made it impossible to wait
properly for a condition.
Add flags analogous to the "crp" flags to the key operation's krp struct.
Add a new flag, CRYPTO_F_ONRETQ which tells us a request finished before
the kthread had a chance to dequeue it and call its callback -- this was
letting requests stick on the queues before even though done and copied
out.
Callers of crypto_newsession() or crypto_freesession() must now take the
mutex. Change netipsec to do so. Dispatch takes the mutex itself as
needed.
This was tested fairly extensively with the cryptosoft backend and lightly
with a new hardware driver. It has not been tested with FAST_IPSEC; I am
unable to ascertain whether FAST_IPSEC currently works at all in our tree.
pjd@FreeBSD.ORG, ad@NetBSD.ORG, and darran@snark.us pointed me in the
right direction several times in the course of this. Remaining bugs
are mine alone.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Feb 1 04:52:35 2008 UTC (18 years, 9 months ago) by tls
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -95
lines
This code never worked on a released version of FreeBSD in the form it's
been in in our tree, and certainly does not work on any version of FreeBSD
now. Run through unifdef -D__NetBSD__ -U__FreeBSD__ yielding a small
reduction of size and a dramatic improvement in readability.
No, this does not yield any meaningful decrease in patchability (unlike
mechanical changes that touch live source lines) -- try it and see.
Revision 1.20.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:34:26 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +7 -6
lines
sync with HEAD
Revision 1.10.4.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:36:18 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.4.4: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.4: +7 -6
lines
sync with head.
Revision 1.20.6.1: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:49:15 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +7 -6
lines
Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
Revision 1.20.10.1: download - view: text, markup, annotated - select for diffs
Sun Oct 14 11:49:04 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +7 -6
lines
sync with head.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Oct 8 16:18:05 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
vmlocking2-base2,
vmlocking2-base1,
vmlocking2,
vmlocking-nbase,
vmlocking-base,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
matt-armv6-base,
jmcneill-pm-base,
jmcneill-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xeni386-nbase,
bouyer-xeni386-merge1,
bouyer-xeni386-base,
bouyer-xeni386,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64
Branch point for: mjf-devfs
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +7 -6
lines
Use the softint API.
Revision 1.10.4.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:44:23 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.4.3: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.3: +12 -28
lines
sync with head.
Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:12:17 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +10 -26
lines
Sync with head.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:11:31 2007 UTC (19 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base2,
yamt-x86pmap-base,
nick-csl-alignment-base5,
nick-csl-alignment-base,
nick-csl-alignment,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: yamt-x86pmap,
matt-armv6,
jmcneill-pm
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +10 -26
lines
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
Revision 1.18.6.5: download - view: text, markup, annotated - select for diffs
Sun Jun 17 21:31:58 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.18.6.4: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.6.4: +7 -6
lines
- Increase the number of thread priorities from 128 to 256. How the space
is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
is provided, with hooks for fast-path MD code that can run the interrupt
threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.
Revision 1.18.6.4: download - view: text, markup, annotated - select for diffs
Sun May 13 17:36:39 2007 UTC (19 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.18.6.3: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.6.3: +3 -3
lines
- Pass the error number and residual count to biodone(), and let it handle
setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.
Revision 1.18.6.3: download - view: text, markup, annotated - select for diffs
Tue Apr 10 12:07:14 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.18.6.2: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.6.2: +8 -24
lines
Nuke the deferred kthread creation stuff, as it's no longer needed.
Pointed out by thorpej@.
Revision 1.18.6.2: download - view: text, markup, annotated - select for diffs
Mon Apr 9 22:10:05 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.18.6.1: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.6.1: +6 -6
lines
- Add two new arguments to kthread_create1: pri_t pri, bool mpsafe.
- Fork kthreads off proc0 as new LWPs, not new processes.
Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 24 14:56:15 2007 UTC (19 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +4 -4
lines
sync with head.
Revision 1.18.6.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 16:52:04 2007 UTC (19 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -4
lines
Sync with head.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Mar 12 18:18:37 2007 UTC (19 years, 8 months ago) by ad
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -4
lines
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
Revision 1.10.4.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:12:08 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.4.2: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.2: +3 -3
lines
sync with head.
Revision 1.14.6.2: download - view: text, markup, annotated - select for diffs
Thu Feb 1 08:48:47 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.14.6.1: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.6.1: +3 -3
lines
Sync with head.
Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 20 17:13:00 2007 UTC (19 years, 10 months ago) by bouyer
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
matt-nb4-arm-base,
matt-nb4-arm
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +3 -3
lines
Pull up following revision(s) (requested by daniel in ticket #367):
sys/opencrypto/crypto.c: revision 1.18
Make the opencrypto framework work with more than one driver again.
Fixes PR/35412.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Jan 12 12:00:27 2007 UTC (19 years, 10 months ago) by daniel
Branches: MAIN
CVS tags: post-newlock2-merge,
newlock2-nbase,
newlock2-base,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp,
vmlocking
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3
lines
crypto_init does not call crypto_init0 only once, because the marker
created with ONCE_DECL() is local. This results in reinitializing
the driver list when crypto_get_driverid() (and leaks memory). Fix
this by making the marker static.
Fixes PR/35412.
Ack freza@.
Revision 1.10.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:54 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.4.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.1: +3 -3
lines
sync with head.
Revision 1.14.8.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:19:28 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.14.8.1: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.8.1: +3 -3
lines
sync with head.
Revision 1.14.6.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:44 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3
lines
Sync with head.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:51 2006 UTC (20 years ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
netbsd-4-base
Branch point for: netbsd-4
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3
lines
__unused removal on arguments; approved by core.
Revision 1.14.8.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:47 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -4
lines
sync with head
Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Oct 20 21:50:41 2006 UTC (20 years, 1 month ago) by mrg
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3
lines
avoid yet another GCC uninitialised warning error that only comes
up with -O3.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:47 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:59:41 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +34 -12
lines
sync with head
Revision 1.12.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:54:29 2006 UTC (20 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.12.6.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.6.1: +2 -12
lines
sync with head.
Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:12:02 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +63 -49
lines
sync with head.
Revision 1.13.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 04:11:12 2006 UTC (20 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +2 -12
lines
Sync with head.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Jun 7 22:34:18 2006 UTC (20 years, 5 months ago) by kardel
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
rpaulo-netinet-merge-pcb-base,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -12
lines
merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
time.tv_sec -> time_second
- struct timeval mono_time is gone
mono_time.tv_sec -> time_uptime
- access to time via
{get,}{micro,nano,bin}time()
get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
Revision 1.12.4.2: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:40:18 2006 UTC (20 years, 7 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.12.4.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.4.1: +34 -2
lines
Sync with head.
Revision 1.12.6.1: download - view: text, markup, annotated - select for diffs
Mon Mar 13 09:07:43 2006 UTC (20 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +34 -2
lines
sync with head.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Mar 6 00:49:42 2006 UTC (20 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
simonb-timecounters-base,
peter-altq-base,
peter-altq,
elad-kernelauth-base,
elad-kernelauth
Branch point for: chap-midi
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +34 -2
lines
Add the 3 missing sysctl we are supposed to export.
Revision 1.12.4.1: download - view: text, markup, annotated - select for diffs
Sat Feb 4 14:26:06 2006 UTC (20 years, 9 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -12
lines
We have nanouptime() now.
Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 1 14:52:48 2006 UTC (20 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +5 -4
lines
sync with head.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Jan 16 21:45:38 2006 UTC (20 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-pdpolicy-base
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -4
lines
- tweak RUN_ONCE api to allow init_func returns an error.
- physio: handle failure of workqueue_create.
Revision 1.9.2.6: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:29:36 2005 UTC (20 years, 11 months ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.9.2.5: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.5: +30 -39
lines
Sync with head.
Revision 1.10.10.1: download - view: text, markup, annotated - select for diffs
Tue Nov 29 21:23:33 2005 UTC (20 years, 11 months ago) by yamt
Branches: yamt-readahead
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +30 -39
lines
sync with head.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Nov 25 16:16:46 2005 UTC (20 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-readahead-base3,
ktrace-lwp-base
Branch point for: yamt-uio_vmspace
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +30 -39
lines
- De-couple the software crypto implementation from the rest of the
framework. There is no need to waste the space if you are only using
algoritms provided by hardware accelerators. To get the software
implementations, add "pseudo-device swcr" to your kernel config.
- Lazily initialize the opencrypto framework when crypto drivers
(either hardware or swcr) register themselves with the framework.
Revision 1.9.6.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:37 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +6 -6
lines
sync with -current
Revision 1.9.8.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:52 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +6 -6
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.9.2.5: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:54:22 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.2.4: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.2.4: +6 -6
lines
Sync with HEAD.
Hi Perry!
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Feb 26 22:39:52 2005 UTC (21 years, 8 months ago) by perry
Branches: MAIN
CVS tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base2,
yamt-readahead-base,
yamt-km-base4,
yamt-km-base3,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
kent-audio2-base
Branch point for: yamt-readahead,
yamt-lazymbuf
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -6
lines
nuke trailing whitespace
Revision 1.9.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:38:44 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.2.3: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.2.3: +2 -2
lines
Fix the sync with head I botched.
Revision 1.9.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:56:20 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.2.2: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.2.2: +2 -2
lines
Sync with HEAD.
Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:56:25 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.2.1: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.2.1: +1256 -0
lines
Sync with HEAD
Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 03:53:18 2004 UTC (22 years, 6 months ago) by jmc
Branches: netbsd-2-0
CVS tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +3 -3
lines
Pullup rev 1.9 (requested by jonathan in ticket #234)
Change control knob for /dev/crypto to only allow requests which
will be hardware-accelerated. Avoids copyin()/copyout() overhead and
spending exceessive tie inside the kernel.
Revision 1.9.2.1
Thu Apr 29 02:17:36 2004 UTC (22 years, 6 months ago) by skrll
Branches: ktrace-lwp
FILE REMOVED
Changes since revision 1.9: +0 -1256
lines
file crypto.c was added on branch ktrace-lwp on 2004-08-03 10:56:25 +0000
Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Apr 29 02:17:36 2004 UTC (22 years, 6 months ago) by jonathan
Branches: MAIN
CVS tags: yamt-km-base2,
yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
ktrace-lwp,
kent-audio2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3
lines
Change control knob for /dev/crypto to only allow requests which
will be hardware-accelerated. Avoids copyin()/copyout() overhead and
spending exceessive tie inside the kernel.
Pullup after: 24 hours, or confirmation by Jason Thorpe that this is the
consensus tech-kern agreed upon last summer.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Dec 31 16:44:26 2003 UTC (22 years, 10 months ago) by jonathan
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +14 -10
lines
Split opencrypto configuration into an attribute, usable by inkernel
clients, and a pseudo-device for userspace access.
The attribute is named `opencrypto'. The pseudo-device is renamed to
"crypto", which has a dependency on "opencrypto". The sys/conf/majors
entry and pseudo-device attach entrypoint are updated to match the
new pseudo-device name.
Fast IPsec (sys/netipsec/files.ipsec) now lists a dependency on the
"opencrypto" attribute. Drivers for crypto accelerators (ubsec,
hifn775x) also pull in opencrypto, as providers of opencrypto transforms.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Nov 19 03:24:20 2003 UTC (23 years ago) by jonathan
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3
lines
Fix typo.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Nov 19 03:18:33 2003 UTC (23 years ago) by jonathan
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +17 -4
lines
Clean up userlevel access to software kernel transforms, in preparation
for using /dev/crypto for OpenSSL:
1. Add comments explaining crypto_devallowsoft, explaining the
OpenBSD-style three-way logic actully implemented in crypto_newsession().
2. Pass crypto_devallowsoft as the final argument to crypto_newsession(),
instead of a constant 0 value.
3. Set the default value of crypto_devallowsoft to 1, to allow
/dev/crypto access only for hardware-supported transforms.
Items 1-3 may be revised to match the FreeBSD two-way logic, if the
consensus is that there's no point to forcing software transforms.
But as a first step, let the description match what the code actually does.
GC unused variables usercrypto, userasmcrypto, cryptodevallowsoft from
cryptodev.c, in favour of variables crypto_usercrypto, crypto_userasmcrypto,
crypto_devallowsoft, which are used as well as defined in crypto.c.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Nov 9 11:09:11 2003 UTC (23 years ago) by scw
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -2
lines
Fix a genuine uninitialised variable.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Sep 21 20:56:01 2003 UTC (23 years, 2 months ago) by lha
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +14 -5
lines
Implement nanouptime as a function to avoid 'dereferencing type-punned pointer'.
No token after #endif
Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Jul 31 23:47:07 2003 UTC (23 years, 3 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -3
lines
Remove bogus include which snuck into previous commit (from comparison
to Quentin Garnier's suggested patch).
Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Jul 30 18:45:31 2003 UTC (23 years, 3 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -6
lines
Move the initialization of the crypto framework from the userland
pseudo-device to init_main(), so the framework is ready for
registration requests at autoconfiguration time.
Thanks to Quentin Garnier for confirming the change was required, and
for testing a similar fix.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Jul 25 21:12:43 2003 UTC (23 years, 3 months ago) by jonathan
Branches: MAIN
Commit initial NetBSD port of the OpenCrypto Framework (OCF). This
code is derived from Sam Leffler's FreeBSD port of OCF, which is in
turn a port of Angelos Keromytis's OpenBSD work.
Credit to Sam and Angelos, any blame for the NetBSD port to me.
CVSweb <webmaster@jp.NetBSD.org>