[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20141022.175324.351857495227075331.davem@davemloft.net>
Date: Wed, 22 Oct 2014 17:53:24 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: cdleonard@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [RFC] tcp md5 use of alloc_percpu
From: Crestez Dan Leonard <cdleonard@...il.com>
Date: Wed, 22 Oct 2014 21:55:46 +0300
> static int tcp_v4_md5_hash_pseudoheader(struct tcp_md5sig_pool *hp,
> __be32 daddr, __be32 saddr, int nbytes)
> {
> - struct tcp4_pseudohdr *bp;
> + struct tcp4_pseudohdr bp;
...
> + sg_init_one(&sg, &bp, sizeof(bp));
> + return crypto_hash_update(&hp->md5_desc, &sg, sizeof(bp));
As others have mentioned, you cannot do this.
On some architectures the kernel stack comes from vmalloc()
memory too.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists