lkml.org 
[lkml]   [2023]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH v2 27/33] s390/mm: Define KMSAN metadata for vmalloc and modules
    On Tue, Nov 21, 2023 at 11:07 PM Ilya Leoshkevich <iii@linux.ibm.com> wrote:
    >
    > The pages for the KMSAN metadata associated with most kernel mappings
    > are taken from memblock by the common code. However, vmalloc and module
    > metadata needs to be defined by the architectures.
    >
    > Be a little bit more careful than x86: allocate exactly MODULES_LEN
    > for the module shadow and origins, and then take 2/3 of vmalloc for
    > the vmalloc shadow and origins. This ensures that users passing small
    > vmalloc= values on the command line do not cause module metadata
    > collisions.
    >
    > Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
    Reviewed-by: Alexander Potapenko <glider@google.com>

    (hope some s390 maintainer acks this as well)

    \
     
     \ /
      Last update: 2023-12-11 11:14    [W:4.082 / U:0.224 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site