On Thu, May 29, 2025 at 12:36:55PM +0200, Alessandro Carminati wrote:
>
> > > Like I said before; you need to do this on the report_bug() size of
> > > things.
> > >
> > I fully understand your concerns, and I truly appreciate both yours
> > and Josh’s fee
Hi Peter,
Thank you for your follow-up and for reiterating your point.
On Thu, May 29, 2025 at 11:01 AM Peter Zijlstra wrote:
>
> On Mon, May 26, 2025 at 01:27:51PM +, Alessandro Carminati wrote:
>
> > #define __WARN() __WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN
Rebased to v6.15-rc7
- Dropped all code in __report_bug()
- Moved all checks in WARN*() macros.
- Dropped all architecture specific code.
- Made __kunit_is_suppressed_warning nice to noinstr functions.
Alessandro Carminati (2):
bug/kunit: Core support for suppressing warning backtraces
bug/kunit:
clogging the
kernel log and distraction from real problems.
Tested-by: Linux Kernel Functional Testing
Acked-by: Dan Carpenter
Acked-by: Maíra Canal
Cc: Maarten Lankhorst
Cc: David Airlie
Cc: Daniel Vetter
Signed-off-by: Guenter Roeck
Signed-off-by: Alessandro Carminati
---
drivers/gpu/drm
e the runtime impact of this patch.
To that end, this patch introduces a counter for the number of
suppressed symbols and skips execution of __kunit_is_suppressed_warning()
entirely when no symbols are currently being suppressed.
Signed-off-by: Alessandro Carminati
---
include/asm-generic/bug.h
From: Guenter Roeck
Document API functions for suppressing warning backtraces.
Tested-by: Linux Kernel Functional Testing
Acked-by: Dan Carpenter
Reviewed-by: Kees Cook
Signed-off-by: Guenter Roeck
Reviewed-by: David Gow
Signed-off-by: Alessandro Carminati
---
Documentation/dev-tools
Functional Testing
Acked-by: Dan Carpenter
Reviewed-by: Kees Cook
Signed-off-by: Guenter Roeck
Signed-off-by: Alessandro Carminati
---
lib/kunit/Makefile | 3 +
lib/kunit/backtrace-suppression-test.c | 105 +
2 files changed, 108 insertions
optimizations to preserve portability. Since this mechanism compares
function names and is intended for test usage only, performance is not a
primary concern.
Signed-off-by: Guenter Roeck
Signed-off-by: Alessandro Carminati
---
include/asm-generic/bug.h | 41 --
include/kunit
Adds module description to the backtrace suppression test
Fixes: ("19f3496") kunit: add test cases for backtrace warning suppression
Signed-off-by: Alessandro Carminati
---
lib/kunit/backtrace-suppression-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/kunit
d for compilation, and support
for this scenario is available in GCC 11 and later.
Fixes: d8b14a2 ("bug/kunit: core support for suppressing warning backtraces")
Signed-off-by: Alessandro Carminati
---
lib/kunit/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/kunit/Kcon
Hello Guenter,
Sorry for being late to the party.
On Fri, Mar 21, 2025 at 6:06 PM Guenter Roeck wrote:
>
> On 3/13/25 04:43, Alessandro Carminati wrote:
> > From: Guenter Roeck
> >
> > Add name of functions triggering warning backtraces to the __bug_table
> > ob
Hello Will,
On Thu, Mar 13, 2025 at 1:25 PM Will Deacon wrote:
>
> On Thu, Mar 13, 2025 at 11:43:22AM +, Alessandro Carminati wrote:
> > diff --git a/arch/arm64/include/asm/bug.h b/arch/arm64/include/asm/bug.h
> > index 28be048db3f6..044c5e24a17d 100644
> > --- a/arch
integer
for now.
Acked-by: Dan Carpenter
Reviewed-by: Kees Cook
Tested-by: Linux Kernel Functional Testing
Signed-off-by: Guenter Roeck
Reviewed-by: David Gow
Signed-off-by: Alessandro Carminati
---
include/kunit/bug.h | 7 ++-
lib/kunit/bug.c | 4 +++-
2 files changed, 9 insertions
Functional Testing
Acked-by: Dan Carpenter
Cc: Yoshinori Sato
Cc: Rich Felker
Cc: John Paul Adrian Glaubitz
Signed-off-by: Guenter Roeck
Signed-off-by: Alessandro Carminati
---
arch/sh/include/asm/bug.h | 26 ++
1 file changed, 22 insertions(+), 4 deletions(-)
diff
above the kerneldoc entry for _EMIT_BUG_ENTRY
to make kerneldoc happy.
Reported-by: Simon Horman
Cc: Simon Horman
Cc: Yoshinori Sato
Cc: Rich Felker
Cc: John Paul Adrian Glaubitz
Signed-off-by: Guenter Roeck
Signed-off-by: Alessandro Carminati
---
arch/sh/include/asm/bug.h | 16 +-
Functional Testing
Acked-by: Dan Carpenter
Cc: Huacai Chen
Signed-off-by: Guenter Roeck
Signed-off-by: Alessandro Carminati
---
arch/loongarch/include/asm/bug.h | 42 ++--
1 file changed, 29 insertions(+), 13 deletions(-)
diff --git a/arch/loongarch/include/asm/bug.h
Functional Testing
Acked-by: Dan Carpenter
Reviewed-by: Kees Cook
Signed-off-by: Guenter Roeck
Signed-off-by: Alessandro Carminati
---
lib/kunit/Makefile | 7 +-
lib/kunit/backtrace-suppression-test.c | 104 +
2 files changed, 109 insertions(+), 2
-by: Guenter Roeck
Reviewed-by: Charlie Jenkins
Signed-off-by: Alessandro Carminati
---
arch/riscv/include/asm/bug.h | 38
1 file changed, 26 insertions(+), 12 deletions(-)
diff --git a/arch/riscv/include/asm/bug.h b/arch/riscv/include/asm/bug.h
index
Functional Testing
Acked-by: Dan Carpenter
Cc: Michael Ellerman
Signed-off-by: Guenter Roeck
Acked-by: Michael Ellerman
Signed-off-by: Alessandro Carminati
---
arch/powerpc/include/asm/bug.h | 37 +-
1 file changed, 28 insertions(+), 9 deletions(-)
diff --git a
Functional Testing
Acked-by: Dan Carpenter
Cc: Heiko Carstens
Cc: Vasily Gorbik
Cc: Alexander Gordeev
Signed-off-by: Guenter Roeck
Signed-off-by: Alessandro Carminati
---
arch/s390/include/asm/bug.h | 17 ++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/arch
assembler parameters as constants where possible.
Refine .blockz instructions to calculate the necessary padding instead
of using fixed values.
Tested-by: Linux Kernel Functional Testing
Acked-by: Dan Carpenter
Acked-by: Helge Deller
Signed-off-by: Guenter Roeck
Signed-off-by: Alessandro Carminati
Functional Testing
Acked-by: Dan Carpenter
Cc: Catalin Marinas
Cc: Will Deacon
Signed-off-by: Guenter Roeck
Signed-off-by: Alessandro Carminati
---
arch/arm64/include/asm/asm-bug.h | 27 ++-
arch/arm64/include/asm/bug.h | 8 +++-
2 files changed, 25 insertions
clogging the
kernel log and distraction from real problems.
Tested-by: Linux Kernel Functional Testing
Acked-by: Dan Carpenter
Acked-by: MaÃra Canal
Cc: Maarten Lankhorst
Cc: David Airlie
Cc: Daniel Vetter
Signed-off-by: Guenter Roeck
Signed-off-by: Alessandro Carminati
---
drivers/gpu
Functional Testing
Acked-by: Dan Carpenter
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: Borislav Petkov
Cc: Dave Hansen
Signed-off-by: Guenter Roeck
Signed-off-by: Alessandro Carminati
---
arch/x86/include/asm/bug.h | 21 -
1 file changed, 16 insertions(+), 5 deletions(-)
diff
.
Cc: Dan Carpenter
Cc: Daniel Diaz
Cc: Naresh Kamboju
Cc: Kees Cook
Tested-by: Linux Kernel Functional Testing
Acked-by: Dan Carpenter
Reviewed-by: Kees Cook
Signed-off-by: Guenter Roeck
Signed-off-by: Alessandro Carminati
---
include/asm-generic/bug.h | 16 +---
include/k
From: Guenter Roeck
Document API functions for suppressing warning backtraces.
Tested-by: Linux Kernel Functional Testing
Acked-by: Dan Carpenter
Reviewed-by: Kees Cook
Signed-off-by: Guenter Roeck
Reviewed-by: David Gow
Signed-off-by: Alessandro Carminati
---
Documentation/dev-tools
Some unit tests intentionally trigger warning backtraces by passing bad
parameters to kernel API functions. Such unit tests typically check the
return value from such calls, not the existence of the warning backtrace.
Such intentionally generated warning backtraces are neither desirable
nor useful
27 matches
Mail list logo