Re: [PATCH] kcov: don't instrument with UBSAN

2020-12-09 Thread Stephen Rothwell
Hi all, On Wed, 9 Dec 2020 10:54:39 -0800 Kees Cook wrote: > > On Wed, Dec 09, 2020 at 11:01:52AM +0100, Dmitry Vyukov wrote: > > Both KCOV and UBSAN use compiler instrumentation. If UBSAN detects a bug > > in KCOV, it may cause infinite recursion via printk and other common > > functions. We

Re: [PATCH] kcov: don't instrument with UBSAN

2020-12-09 Thread Kees Cook
On Wed, Dec 09, 2020 at 11:01:52AM +0100, Dmitry Vyukov wrote: > Both KCOV and UBSAN use compiler instrumentation. If UBSAN detects a bug > in KCOV, it may cause infinite recursion via printk and other common > functions. We already don't instrument KCOV with KASAN/KCSAN for this > reason, don't

Re: [PATCH] kcov: don't instrument with UBSAN

2020-12-09 Thread Andrey Konovalov
On Wed, Dec 9, 2020 at 11:01 AM Dmitry Vyukov wrote: > > Both KCOV and UBSAN use compiler instrumentation. If UBSAN detects a bug > in KCOV, it may cause infinite recursion via printk and other common > functions. We already don't instrument KCOV with KASAN/KCSAN for this > reason, don't

Re: [PATCH] kcov: don't instrument with UBSAN

2020-12-09 Thread Marco Elver
On Wed, 9 Dec 2020 at 11:01, Dmitry Vyukov wrote: > > Both KCOV and UBSAN use compiler instrumentation. If UBSAN detects a bug > in KCOV, it may cause infinite recursion via printk and other common > functions. We already don't instrument KCOV with KASAN/KCSAN for this > reason, don't instrument

[PATCH] kcov: don't instrument with UBSAN

2020-12-09 Thread Dmitry Vyukov
Both KCOV and UBSAN use compiler instrumentation. If UBSAN detects a bug in KCOV, it may cause infinite recursion via printk and other common functions. We already don't instrument KCOV with KASAN/KCSAN for this reason, don't instrument it with UBSAN as well. As a side effect this also resolves