Re: [PATCH v2 1/2] mm: Add PAGE_ALIGN_DOWN macro

2022-05-29 Thread Andrew Morton
On Fri, 27 May 2022 11:55:59 -0700 David Gow wrote: > This is just the same as PAGE_ALIGN(), but rounds the address down, not > up. Acked-by: Andrew Morton Please include this in the UML tree alongside [2/2]. ___ linux-um mailing list linux-um@lists

Re: [PATCH v4] mm: Avoid unnecessary page fault retires on shared memory types

2022-05-29 Thread Heiko Carstens
On Fri, May 27, 2022 at 03:39:36PM -0400, Peter Xu wrote: > diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c > index e173b6187ad5..4608cc962ecf 100644 > --- a/arch/s390/mm/fault.c > +++ b/arch/s390/mm/fault.c > @@ -433,6 +433,17 @@ static inline vm_fault_t do_exception(struct pt_regs > *re

Re: [PATCH v2 2/2] UML: add support for KASAN under x86_64

2022-05-29 Thread Johannes Berg
On Fri, 2022-05-27 at 22:14 +0200, Johannes Berg wrote: > On Fri, 2022-05-27 at 11:56 -0700, David Gow wrote: > > > > This is v2 of the KASAN/UML port. It should be ready to go. > > Nice, thanks a lot! :) > > > It does benefit significantly from the following patches: > > - Bugfix for memory cor

Re: [PATCH v2 2/2] UML: add support for KASAN under x86_64

2022-05-29 Thread Johannes Berg
On Fri, 2022-05-27 at 11:56 -0700, David Gow wrote: > > The UML-specific KASAN initializer uses mmap to map the roughly 2.25TB You say 2.25TB here, and > +config KASAN_SHADOW_OFFSET > + hex > + depends on KASAN > + default 0x1000 > + help > + This is the offset at

Re: [PATCH 1/2] x86/lib: Optimize memchr()

2022-05-29 Thread arthur chang arthur
On Sun, May 29, 2022 at 12:40 AM Tao Zhou wrote: > > On Sat, May 28, 2022 at 04:12:35PM +0800, Yu-Jen Chang wrote: > > > The original assembly version of memchr() is implemented with > > the byte-wise comparing technique, which does not fully > > use 64-bits registers in x86_64 CPU. We use word-wi