[PATCH v2 0/2] static_call: Fix two wild-memory-access bugs in static_call_del_module()

Jinjie Ruan posted 2 patches 2 years, 4 months ago
kernel/static_call_inline.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
[PATCH v2 0/2] static_call: Fix two wild-memory-access bugs in static_call_del_module()
Posted by Jinjie Ruan 2 years, 4 months ago
In __static_call_init(), any one of the kzalloc fails will cause
wild-memory-access when traverse the site and subsequent sites in
static_call_del_module().

Changes in v2:
- Add a new patch which fix a a similar problem.
- Update the commit message and simplify error stack for the first.

Jinjie Ruan (2):
  static_call: Fix a wild-memory-access bug in static_call_del_module()
  static_call: Fix a wild-memory-access bug when
    static_call_key_sites(key) is true

 kernel/static_call_inline.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

-- 
2.34.1
Re: [PATCH v2 0/2] static_call: Fix two wild-memory-access bugs in static_call_del_module()
Posted by Ruan Jinjie 2 years, 4 months ago
Ping.

On 2023/9/15 20:36, Jinjie Ruan wrote:
> In __static_call_init(), any one of the kzalloc fails will cause
> wild-memory-access when traverse the site and subsequent sites in
> static_call_del_module().
> 
> Changes in v2:
> - Add a new patch which fix a a similar problem.
> - Update the commit message and simplify error stack for the first.
> 
> Jinjie Ruan (2):
>   static_call: Fix a wild-memory-access bug in static_call_del_module()
>   static_call: Fix a wild-memory-access bug when
>     static_call_key_sites(key) is true
> 
>  kernel/static_call_inline.c | 11 ++++++++---
>  1 file changed, 8 insertions(+), 3 deletions(-)
>