lkml.org 
[lkml]   [2020]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] lib: Reduce user_access_begin() boundaries in strncpy_from_user() and strnlen_user()
    On Thu, Jan 23, 2020 at 12:34 AM Christophe Leroy
    <christophe.leroy@c-s.fr> wrote:
    >
    > The range passed to user_access_begin() by strncpy_from_user() and
    > strnlen_user() starts at 'src' and goes up to the limit of userspace
    > allthough reads will be limited by the 'count' param.
    >
    > On 32 bits powerpc (book3s/32) access has to be granted for each 256Mbytes
    > segment and the cost increases with the number of segments to unlock.
    >
    > Limit the range with 'count' param.

    Ack. I'm tempted to take this for 5.5 too, just so that the
    unquestionably trivial fixes are in that baseline, and the
    infrastructure is ready for any architecture that has issues like
    this.

    Adding 'linux-arch' to the participants, to see if other architectures
    are at all looking at actually implementing the whole
    user_access_begin/end() dance too..

    Linus

    \
     
     \ /
      Last update: 2020-01-23 19:48    [W:3.520 / U:0.088 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site