On Tue, Apr 2, 2019 at 11:33 AM Thomas Gleixner wrote:
>
> On Mon, 1 Apr 2019, Peter Zijlstra wrote:
> > On Mon, Apr 01, 2019 at 12:24:51PM +0200, Matteo Croce wrote:
> > > The buzzer driver is simple, requires just a few register writes to work,
> > > t
non root users to crash
the system.
Signed-off-by: Matteo Croce
---
fs/proc/Makefile| 1 +
fs/proc/crashtest.c | 43 +++
2 files changed, 44 insertions(+)
create mode 100644 fs/proc/crashtest.c
diff --git a/fs/proc/Makefile b/fs/proc/Makefile
index
Use the new aural error reporting framework to signal kernel bugs. Emit the
sound at the end of the __warn(), so the WARN_* are all covered.
If panic_on_warn is set, panic() will play its sound and never return,
so there is no risk to emit two sounds or the wrong one.
Signed-off-by: Matteo Croce
driver is simple, requires just a few register writes to work,
the hardware is extremely cheap and is already present on most machines.
Signed-off-by: Matteo Croce
---
arch/x86/lib/Makefile | 1 +
arch/x86/lib/play.c | 75 +++
include/linux/play.h | 34
Use the new aural error reporting framework when reporting an oops. The
sound is emitted at the end of oops_exit(), to avoid interfering with other
oops actions, like stack dump.
Signed-off-by: Matteo Croce
---
kernel/panic.c| 18 ++
lib/Kconfig.debug | 10 ++
2
, creates a procfs handler useful to test
the error reporting.
Matteo Croce (4):
aural error reporting framework
panic: use the aural error reporting framework to report panics
bug: use the aural error reporting framework to report warnings
oops: use the aural error reporting framework
Use the new aural error reporting framework to signal kernel panic. The
error sound is emitted between the stack dump and the kexec jump.
Signed-off-by: Matteo Croce
---
kernel/panic.c| 25 +
lib/Kconfig.debug | 10 ++
2 files changed, 35 insertions(+)
diff