Re: [PATCH 2/4] random: vDSO: Don't use PAGE_SIZE and PAGE_MASK

From
Jason A. Donenfeld <Jason@zx2c4.com>
Date
2024-08-27 08:23:59
Also in
linux-arch, lkml
Reply to
Christophe Leroy, 2024-08-27
On Tue, Aug 27, 2024 at 10:16:18AM +0200, Christophe Leroy wrote:
tglx or yourself suggested to put in a one of the vdso headers instead 
of directly in getrandom.c. This is too fragile because PAGE_SIZE might 
be absent in that header but arrive in getrandom.c through another header.
Oh jeeze, yea.

FYI, _PAGE_SIZE is defined on s390, so that might not be such a good
idea (from the previous version).
The best would be to have an asm-generic definition of
PAGE_SIZE and PAGE_MASK that all architectures use, but that's another
level of work.
Yea that seems far too large of an operation to do here.
quoted
I'm really not a fan of making the code less idiomatic...
Ok, I have another idea, let's give it a try.
What's the other idea?
Thread (21 messages) 21 messages, 5 authors, last reply 2024-08-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help