Messages in this thread | | | From | Nick Desaulniers <> | Date | Tue, 15 Feb 2022 11:42:03 -0800 | Subject | Re: [PATCH] mctp: fix use after free |
| |
On Mon, Feb 14, 2022 at 6:16 PM Tom Rix <trix@redhat.com> wrote: > > > On 2/14/22 4:44 PM, Jeremy Kerr wrote: > > Hi Tom, > > > > Also, can you share how you're doing the clang static analysis there? > > I'll get that included in my checks too. > > build clang, then use it > > scan-build \ > --use-cc=clang \ > make CC=clang
I'm pretty sure we have a make target in Kbuild, too. It uses clang-tidy as the driver, as clang-tidy can do BOTH the static analyses AND clang-tidy checks.
$ make LLVM=1 all clang-analyzer
> > There are a couple of configs that aren't happy with clang, these you > can sed away with > > sed -e 's/CONFIG_FRAME_WARN=2048/CONFIG_FRAME_WARN=0/; > s/CONFIG_RETPOLINE=y/CONFIG_RETPOLINE=n/; > s/CONFIG_READABLE_ASM=y/CONFIG_READABLE_ASM=n/; > s/CONFIG_FORTIFY_SOURCE=y/CONFIG_FORTIFY_SOURCE=n/' > > I am using clang 14
-- Thanks, ~Nick Desaulniers
| |