Re: [PATCHv2] fs: Handle register_shrinker failure

2017-04-01 Thread Nikolay Borisov
On 24.03.2017 10:25, Nikolay Borisov wrote: > register_shrinker allocates dynamic memory and thus is susceptible to failures > under low-memory situation. Currently,get_userns ignores the return value of > register_shrinker, potentially exposing not fully initialised object. This > can lead to a

Re: [PATCHv2] fs: Handle register_shrinker failure

2017-04-01 Thread Nikolay Borisov
On 24.03.2017 10:25, Nikolay Borisov wrote: > register_shrinker allocates dynamic memory and thus is susceptible to failures > under low-memory situation. Currently,get_userns ignores the return value of > register_shrinker, potentially exposing not fully initialised object. This > can lead to a

[PATCHv2] fs: Handle register_shrinker failure

2017-03-24 Thread Nikolay Borisov
register_shrinker allocates dynamic memory and thus is susceptible to failures under low-memory situation. Currently,get_userns ignores the return value of register_shrinker, potentially exposing not fully initialised object. This can lead to a NULL-ptr deref everytime shrinker->nr_deferred is

[PATCHv2] fs: Handle register_shrinker failure

2017-03-24 Thread Nikolay Borisov
register_shrinker allocates dynamic memory and thus is susceptible to failures under low-memory situation. Currently,get_userns ignores the return value of register_shrinker, potentially exposing not fully initialised object. This can lead to a NULL-ptr deref everytime shrinker->nr_deferred is