From: Thomas Gleixner <tglx@linutronix.de>
To: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: x86@kernel.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [Linux 5.2.7] powertop --auto-tune: BUG: kernel NULL pointer dereference, address: 0000000000000000
Date: Sat, 10 Aug 2019 19:31:45 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.21.1908101910280.7324@nanos.tec.linutronix.de> (raw)
In-Reply-To: <4b54ff1e-f18b-3c58-7caa-945a0775c24c@molgen.mpg.de>
Paul,
On Sat, 10 Aug 2019, Paul Menzel wrote:
>
> I have no idea, who to report this to, so I please refer me to the correct
> list.
I have no idea yet either :)
> With Linux 5.2.7 from Debian Sid/unstable and PowerTOP 2.10, executing
>
> sudo powertop --auto-tune
>
> causes a NULL pointer dereference, and the graphical session crashes due to an
> effect on the i915 driver. It worked in the past with the 4.19 series from
> Debian.
>
> Here is the trace, and please find all Linux kernel logs attached.
>
> > [ 2027.170589] BUG: kernel NULL pointer dereference, address:
> > 0000000000000000
> > [ 2027.170600] #PF: supervisor instruction fetch in kernel mode
> > [ 2027.170604] #PF: error_code(0x0010) - not-present page
> > [ 2027.170609] PGD 0 P4D 0 [ 2027.170619] Oops: 0010 [#1] SMP PTI
...
> > [ 2027.170730] do_dentry_open+0x13a/0x370
If you have compiled with debug info, please decode the line:
linux/scripts/faddr2line vmlinux do_dentry_open+0x13a/0x370
That gives us the fops pointer which is NULL.
> > [ 2027.170745] path_openat+0x2c6/0x1480
> > [ 2027.170757] ? terminate_walk+0xe6/0x100
> > [ 2027.170767] ? path_lookupat.isra.48+0xa3/0x220
> > [ 2027.170779] ? reuse_swap_page+0x105/0x320
> > [ 2027.170791] do_filp_open+0x93/0x100
> > [ 2027.170804] ? __check_object_size+0x15d/0x189
> > [ 2027.170816] do_sys_open+0x184/0x220
> > [ 2027.170828] do_syscall_64+0x53/0x130
> > [ 2027.170837] entry_SYSCALL_64_after_hwframe+0x44/0xa9
That's an open crashing. We just don't know which file. Is the machine
completely hosed after that or is it just the graphics stuff dying?
If it's not completely dead then instead of running it from your graphical
desktop you could switch to a VGA terminal Alt+Ctrl+F1 (or whatever
function key your distro maps to) after boot and run powertop with strace
from there:
strace -f -o xxx.log powertop
With a bit of luck xxx.log should contain the information about the file it
tries to open.
Alternatively if you have a serial console you can enable the
sys_enter_open* tracepoints:
# echo 1 >/sys/kernel/debug/tracing/events/syscalls/sys_enter_open
# echo 1 >/sys/kernel/debug/tracing/events/syscalls/sys_enter_openat
Either add 'ftrace_dump_on_oops' to the kernel command line or enable it
from the shell:
# echo 1 > /proc/sys/kernel/ftrace_dump_on_oops
Then run powertop. After the crash it will take some time to spill out the
trace buffer over serial, but it will pinpoint the offending file.
Once we know which file it is, we also know who needs to stare at it :)
Thanks,
tglx
next prev parent reply other threads:[~2019-08-10 17:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-10 16:33 Paul Menzel
2019-08-10 17:31 ` Thomas Gleixner [this message]
2019-08-10 18:28 ` Paul Menzel
2019-08-10 21:11 ` [Linux 5.2.x] /sys/kernel/debug/tracing/events/power/cpu_idle/id: " Paul Menzel
2019-08-11 6:22 ` Thomas Gleixner
2019-08-11 9:46 ` Salvatore Bonaccorso
2019-08-11 12:58 ` Thomas Gleixner
2019-08-11 15:33 ` Salvatore Bonaccorso
2019-08-12 15:28 ` Steven Rostedt
2019-08-12 16:24 ` Matthew Garrett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.21.1908101910280.7324@nanos.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=pmenzel@molgen.mpg.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®