[PATCH 3/5] sched: Detect call to schedule from critical entry code

2020-11-17 Thread Frederic Weisbecker
Detect calls to schedule() between user_enter() and user_exit(). Those are symptoms of early entry code that either forgot to protect a call to schedule() inside exception_enter()/exception_exit() or, in the case of HAVE_CONTEXT_TRACKING_OFFSTACK, enabled interrupts or preemption in a wrong spot.

[PATCH 3/5] sched: Detect call to schedule from critical entry code

2020-10-27 Thread Frederic Weisbecker
Detect calls to schedule() between user_enter() and user_exit(). Those are symptoms of early entry code that either forgot to protect a call to schedule() inside exception_enter()/exception_exit() or, in the case of HAVE_CONTEXT_TRACKING_OFFSTACK, enabled interrupts or preemption in a wrong spot.

Re: [PATCH 3/5] sched: Detect call to schedule from critical entry code

2020-10-26 Thread Frederic Weisbecker
On Wed, Oct 07, 2020 at 10:34:36AM +0100, Mel Gorman wrote: > On Mon, Oct 05, 2020 at 02:26:48PM +0200, Frederic Weisbecker wrote: > > On Mon, Oct 05, 2020 at 01:23:53PM +0200, Peter Zijlstra wrote: > > > On Mon, Oct 05, 2020 at 12:49:17PM +0200, Frederic Weisbecker wrote: > > > > Detect calls to s

Re: [PATCH 3/5] sched: Detect call to schedule from critical entry code

2020-10-07 Thread Mel Gorman
On Mon, Oct 05, 2020 at 02:26:48PM +0200, Frederic Weisbecker wrote: > On Mon, Oct 05, 2020 at 01:23:53PM +0200, Peter Zijlstra wrote: > > On Mon, Oct 05, 2020 at 12:49:17PM +0200, Frederic Weisbecker wrote: > > > Detect calls to schedule() between user_enter() and user_exit(). Those > > > are symp

Re: [PATCH 3/5] sched: Detect call to schedule from critical entry code

2020-10-05 Thread Frederic Weisbecker
On Mon, Oct 05, 2020 at 01:23:53PM +0200, Peter Zijlstra wrote: > On Mon, Oct 05, 2020 at 12:49:17PM +0200, Frederic Weisbecker wrote: > > Detect calls to schedule() between user_enter() and user_exit(). Those > > are symptoms of early entry code that either forgot to protect a call > > to schedule

Re: [PATCH 3/5] sched: Detect call to schedule from critical entry code

2020-10-05 Thread Peter Zijlstra
On Mon, Oct 05, 2020 at 12:49:17PM +0200, Frederic Weisbecker wrote: > Detect calls to schedule() between user_enter() and user_exit(). Those > are symptoms of early entry code that either forgot to protect a call > to schedule() inside exception_enter()/exception_exit() or, in the case > of HAVE_C

[PATCH 3/5] sched: Detect call to schedule from critical entry code

2020-10-05 Thread Frederic Weisbecker
Detect calls to schedule() between user_enter() and user_exit(). Those are symptoms of early entry code that either forgot to protect a call to schedule() inside exception_enter()/exception_exit() or, in the case of HAVE_CONTEXT_TRACKING_OFFSTACK, enabled interrupts or preemption in a wrong spot.