From: Valentin Schneider <valentin.schneider@arm.com>
To: John Stultz <john.stultz@linaro.org>
Cc: Vincent Guittot <vincent.guittot@linaro.org>,
Quentin Perret <qperret@google.com>,
Peter Zijlstra <peterz@infradead.org>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Juri Lelli <juri.lelli@redhat.com>,
Patrick Bellasi <Patrick.Bellasi@arm.com>,
Ingo Molnar <mingo@kernel.org>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: Null pointer crash at find_idlest_group on db845c w/ linus/master
Date: Wed, 4 Dec 2019 10:05:43 +0000 [thread overview]
Message-ID: <e4760a3f-4035-30b1-8464-645fbfa441ce@arm.com> (raw)
In-Reply-To: <CALAqxLVDaiJWd7W5+FBKs=Mq8AHw52fApPc_Xu2gTq9DTn0vgQ@mail.gmail.com>
On 04/12/2019 03:46, John Stultz wrote:
> Thanks for the quick patch! Unfortunately I still managed to trip it
> with this patch :(
>
I think I would've been more confused if it had fixed it than if it hadn't.
Figured it was worth a shot anyway.
I have a DB845 stashed somewhere but I've never used one, so it's probably
going to take me some time to get it up and running.
In the meantime, I'd suggest running it again with the following appended
patch. It gets rid of the unused parameter, which gets rid of the isra,
which should let us get a faulty line number more easily than by rummaging
through objdump.
---
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 08a233e97a01..4c3a8f188d45 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -5575,8 +5575,7 @@ static int wake_affine(struct sched_domain *sd, struct task_struct *p,
}
static struct sched_group *
-find_idlest_group(struct sched_domain *sd, struct task_struct *p,
- int this_cpu, int sd_flag);
+find_idlest_group(struct sched_domain *sd, struct task_struct *p, int this_cpu);
/*
* find_idlest_group_cpu - find the idlest CPU among the CPUs in the group.
@@ -5665,7 +5664,7 @@ static inline int find_idlest_cpu(struct sched_domain *sd, struct task_struct *p
continue;
}
- group = find_idlest_group(sd, p, cpu, sd_flag);
+ group = find_idlest_group(sd, p, cpu);
if (!group) {
sd = sd->child;
continue;
@@ -8370,8 +8369,7 @@ static bool update_pick_idlest(struct sched_group *idlest,
* Assumes p is allowed on at least one CPU in sd.
*/
static struct sched_group *
-find_idlest_group(struct sched_domain *sd, struct task_struct *p,
- int this_cpu, int sd_flag)
+find_idlest_group(struct sched_domain *sd, struct task_struct *p, int this_cpu)
{
struct sched_group *idlest = NULL, *local = NULL, *group = sd->groups;
struct sg_lb_stats local_sgs, tmp_sgs;
next prev parent reply other threads:[~2019-12-04 10:05 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-03 19:15 Null pointer crash at find_idlest_group on db845c w/ linus/master John Stultz
2019-12-03 23:20 ` Valentin Schneider
2019-12-03 23:49 ` Valentin Schneider
2019-12-04 0:13 ` Valentin Schneider
2019-12-04 3:46 ` John Stultz
2019-12-04 10:05 ` Valentin Schneider [this message]
2019-12-04 8:06 ` Vincent Guittot
2019-12-04 8:22 ` Vincent Guittot
2019-12-04 9:59 ` Valentin Schneider
2019-12-04 9:42 ` Qais Yousef
2019-12-04 10:09 ` Valentin Schneider
2019-12-04 10:09 ` Vincent Guittot
2019-12-04 10:41 ` Valentin Schneider
2019-12-04 12:08 ` Vincent Guittot
2019-12-04 13:32 ` Qais Yousef
2019-12-04 13:48 ` Vincent Guittot
2019-12-04 13:55 ` Qais Yousef
2019-12-04 14:06 ` Valentin Schneider
2019-12-04 18:16 ` John Stultz
2019-12-04 18:19 ` Vincent Guittot
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=e4760a3f-4035-30b1-8464-645fbfa441ce@arm.com \
--to=valentin.schneider@arm.com \
--cc=Patrick.Bellasi@arm.com \
--cc=dietmar.eggemann@arm.com \
--cc=john.stultz@linaro.org \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
--cc=qperret@google.com \
--cc=vincent.guittot@linaro.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