Re: [PATCH] module: fix memory leak on early load_module() failures

2017-02-11 Thread Rusty Russell
"Luis R. Rodriguez" writes: > While looking for early possible module loading failures I was > able to reproduce a memory leak possible with kmemleak. There > are a few rare ways to trigger a failure: > > o we've run into a failure while processing kernel parameters >

Re: [PATCH] module: fix memory leak on early load_module() failures

2017-02-11 Thread Rusty Russell
"Luis R. Rodriguez" writes: > While looking for early possible module loading failures I was > able to reproduce a memory leak possible with kmemleak. There > are a few rare ways to trigger a failure: > > o we've run into a failure while processing kernel parameters > (parse_args() returns

[PATCH] module: fix memory leak on early load_module() failures

2017-02-10 Thread Luis R. Rodriguez
While looking for early possible module loading failures I was able to reproduce a memory leak possible with kmemleak. There are a few rare ways to trigger a failure: o we've run into a failure while processing kernel parameters (parse_args() returns an error) o mod_sysfs_setup() fails

[PATCH] module: fix memory leak on early load_module() failures

2017-02-10 Thread Luis R. Rodriguez
While looking for early possible module loading failures I was able to reproduce a memory leak possible with kmemleak. There are a few rare ways to trigger a failure: o we've run into a failure while processing kernel parameters (parse_args() returns an error) o mod_sysfs_setup() fails