Re: [PATCH] ia64/err-inject: Use get_user_pages_fast()

2018-02-27 Thread Davidlohr Bueso
Andrew, if you're ok with the patch below, could it be routed your way? Thanks, Davidlohr On Mon, 22 Jan 2018, Davidlohr Bueso wrote: At the point of sysfs callback, the call to gup is done without mmap_sem (or any lock for that matter). This is racy. As such, use the get_user_pages_fast()

Re: [PATCH] ia64/err-inject: Use get_user_pages_fast()

2018-02-27 Thread Davidlohr Bueso
Andrew, if you're ok with the patch below, could it be routed your way? Thanks, Davidlohr On Mon, 22 Jan 2018, Davidlohr Bueso wrote: At the point of sysfs callback, the call to gup is done without mmap_sem (or any lock for that matter). This is racy. As such, use the get_user_pages_fast()

Re: [PATCH] ia64/err-inject: Use get_user_pages_fast()

2018-02-13 Thread Davidlohr Bueso
ping On Mon, 22 Jan 2018, Davidlohr Bueso wrote: At the point of sysfs callback, the call to gup is done without mmap_sem (or any lock for that matter). This is racy. As such, use the get_user_pages_fast() alternative and safely avoid taking the lock, if possible. Signed-off-by: Davidlohr

Re: [PATCH] ia64/err-inject: Use get_user_pages_fast()

2018-02-13 Thread Davidlohr Bueso
ping On Mon, 22 Jan 2018, Davidlohr Bueso wrote: At the point of sysfs callback, the call to gup is done without mmap_sem (or any lock for that matter). This is racy. As such, use the get_user_pages_fast() alternative and safely avoid taking the lock, if possible. Signed-off-by: Davidlohr

[PATCH] ia64/err-inject: Use get_user_pages_fast()

2018-01-22 Thread Davidlohr Bueso
At the point of sysfs callback, the call to gup is done without mmap_sem (or any lock for that matter). This is racy. As such, use the get_user_pages_fast() alternative and safely avoid taking the lock, if possible. Signed-off-by: Davidlohr Bueso ---

[PATCH] ia64/err-inject: Use get_user_pages_fast()

2018-01-22 Thread Davidlohr Bueso
At the point of sysfs callback, the call to gup is done without mmap_sem (or any lock for that matter). This is racy. As such, use the get_user_pages_fast() alternative and safely avoid taking the lock, if possible. Signed-off-by: Davidlohr Bueso --- arch/ia64/kernel/err_inject.c | 2 +- 1 file