Re: [PATCH] sched/topology: check variable group before dereferenced

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 12:19:07PM +0800, Yi Wang wrote: > The variable group in sched_domain_debug_one() is not checked > when firstly used in cpumask_test_cpu(cpu, sched_group_span(group)), > but it maybe NULL(checked later in the following while loop) and may > cause NULL pointer dereference wit

[PATCH] sched/topology: check variable group before dereferenced

2018-07-22 Thread Yi Wang
The variable group in sched_domain_debug_one() is not checked when firstly used in cpumask_test_cpu(cpu, sched_group_span(group)), but it maybe NULL(checked later in the following while loop) and may cause NULL pointer dereference without checking. We need to check it before using to avoid NULL der