mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: kernel test robot <xiaolong.ye@intel.com>
Cc: mingo@kernel.org, oleg@redhat.com, gkohli@codeaurora.org,
	tglx@linutronix.de, mpe@ellerman.id.au, bigeasy@linutronix.de,
	linux-kernel@vger.kernel.org, will.deacon@arm.com,
	dzickus@redhat.com, lkp@01.org
Subject: Re: [lkp-robot] [watchdog/softlockup]  4808e7a5dc: BUG:KASAN:null-ptr-deref_in_h
Date: Wed, 13 Jun 2018 10:27:00 +0200	[thread overview]
Message-ID: <20180613082700.GV12198@hirez.programming.kicks-ass.net> (raw)
In-Reply-To: <20180613050838.GK12146@yexl-desktop>

On Wed, Jun 13, 2018 at 01:08:38PM +0800, kernel test robot wrote:
> [    0.037000] BUG: KASAN: null-ptr-deref in hrtimer_active+0x70/0xa0
> [    0.037000] Read of size 4 at addr 0000000000000010 by task swapper/1
> [    0.037000] 
> [    0.037000] CPU: 0 PID: 1 Comm: swapper Tainted: G                T 4.17.0-11348-g4808e7a #1
> [    0.037000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
> [    0.037000] Call Trace:
> [    0.037000]  ? kasan_report+0xe3/0x360
> [    0.037000]  ? hrtimer_active+0x70/0xa0
> [    0.037000]  ? hrtimer_try_to_cancel+0x17/0x210
> [    0.037000]  ? hrtimer_cancel+0x15/0x20
> [    0.037000]  ? softlockup_stop_fn+0x11/0x20
> [    0.037000]  ? lockup_detector_reconfigure+0x25/0xa0
> [    0.037000]  ? lockup_detector_init+0x51/0x5d
> [    0.037000]  ? kernel_init_freeable+0xa9/0x243
> [    0.037000]  ? rest_init+0xd0/0xd0
> [    0.037000]  ? kernel_init+0xf/0x120
> [    0.037000]  ? rest_init+0xd0/0xd0
> [    0.037000]  ? ret_from_fork+0x24/0x30

ARGH, I thought I fixed that one..

I think that'll cure things, but let me do a KASAN build myself.

--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -587,8 +587,8 @@ static __init void lockup_detector_setup
 		return;
 
 	mutex_lock(&watchdog_mutex);
-	softlockup_initialized = true;
 	lockup_detector_reconfigure();
+	softlockup_initialized = true;
 	mutex_unlock(&watchdog_mutex);
 }
 

  reply	other threads:[~2018-06-13  8:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-12 16:12 [PATCH v2 0/4] kthread/smpboot: More fixes Peter Zijlstra
2018-06-12 16:12 ` [PATCH v2 1/4] kthread, sched: Fix kthread_parkme() (again...) Peter Zijlstra
2018-06-12 16:12 ` [PATCH v2 2/4] watchdog/softlockup: Replace "watchdog/%u" threads with cpu_stop_work Peter Zijlstra
2018-06-13  5:08   ` [lkp-robot] [watchdog/softlockup] 4808e7a5dc: BUG:KASAN:null-ptr-deref_in_h kernel test robot
2018-06-13  8:27     ` Peter Zijlstra [this message]
2018-06-12 16:12 ` [PATCH v2 3/4] smpboot: Remove cpumask from the API Peter Zijlstra
2018-06-12 16:12 ` [PATCH v2 4/4] kthread: Simplify kthread_park() completion Peter Zijlstra

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=20180613082700.GV12198@hirez.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=bigeasy@linutronix.de \
    --cc=dzickus@redhat.com \
    --cc=gkohli@codeaurora.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@01.org \
    --cc=mingo@kernel.org \
    --cc=mpe@ellerman.id.au \
    --cc=oleg@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=will.deacon@arm.com \
    --cc=xiaolong.ye@intel.com \
    /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®