Thread (10 messages) 10 messages, 4 authors, 2004-07-28

Re: kernel bug at sched.c:564! + linux kernel 2.4.25

From: James Morris <hidden>
Date: 2004-07-27 18:57:04

On Tue, 27 Jul 2004, Vladimir Kondratiev wrote:
quoted
The crypto functions should be safe to use in softirq context.
It should be, but:
<crypto/api.c:121>
struct crypto_tfm *crypto_alloc_tfm(const char *name, u32 flags)
{
        struct crypto_tfm *tfm = NULL;
        struct crypto_alg *alg;

        alg = crypto_alg_mod_lookup(name);
        if (alg == NULL)
                goto out;

        tfm = kmalloc(sizeof(*tfm) + alg->cra_ctxsize, GFP_KERNEL);
By crypto functions I meant encrypt() decrypt() etc, not the allocation.


- James
-- 
James Morris
[off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help