Re: [PATCH v2 08/16] objtool: Fix SEGFAULT

2022-09-02 Thread Peter Zijlstra
On Fri, Sep 02, 2022 at 08:06:28AM +, Christophe Leroy wrote: > > > Le 01/09/2022 à 21:20, Peter Zijlstra a écrit : > > On Mon, Aug 29, 2022 at 11:22:15AM +0530, Sathvika Vasireddy wrote: > >> From: Christophe Leroy > >> > >> find_insn() will return NULL in case of failure. Check insn in

Re: [PATCH v2 08/16] objtool: Fix SEGFAULT

2022-09-02 Thread Christophe Leroy
Le 01/09/2022 à 21:20, Peter Zijlstra a écrit : > On Mon, Aug 29, 2022 at 11:22:15AM +0530, Sathvika Vasireddy wrote: >> From: Christophe Leroy >> >> find_insn() will return NULL in case of failure. Check insn in order >> to avoid a kernel Oops for NULL pointer dereference. >> >> Signed-off-by:

Re: [PATCH v2 08/16] objtool: Fix SEGFAULT

2022-09-01 Thread Peter Zijlstra
On Mon, Aug 29, 2022 at 11:22:15AM +0530, Sathvika Vasireddy wrote: > From: Christophe Leroy > > find_insn() will return NULL in case of failure. Check insn in order > to avoid a kernel Oops for NULL pointer dereference. > > Signed-off-by: Christophe Leroy > --- > tools/objtool/check.c | 2 +-

[PATCH v2 08/16] objtool: Fix SEGFAULT

2022-08-28 Thread Sathvika Vasireddy
From: Christophe Leroy find_insn() will return NULL in case of failure. Check insn in order to avoid a kernel Oops for NULL pointer dereference. Signed-off-by: Christophe Leroy --- tools/objtool/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/objtool/check.c