Re: [RFC] Printk deadlock in bpf trace called from scheduler context

2024-07-29 Thread Marco Elver
On Mon, 29 Jul 2024 at 14:27, Peter Zijlstra wrote: > > On Mon, Jul 29, 2024 at 01:46:09PM +0200, Radoslaw Zielonek wrote: > > I am currently working on a syzbot-reported bug where bpf > > is called from trace_sched_switch. In this scenario, we are still within > > th

Re: [RFC] Printk deadlock in bpf trace called from scheduler context

2024-07-29 Thread Peter Zijlstra
On Mon, Jul 29, 2024 at 01:46:09PM +0200, Radoslaw Zielonek wrote: > I am currently working on a syzbot-reported bug where bpf > is called from trace_sched_switch. In this scenario, we are still within > the scheduler context, and calling printk can create a deadlock. > > I am unce

[RFC] Printk deadlock in bpf trace called from scheduler context

2024-07-29 Thread Radoslaw Zielonek
I am currently working on a syzbot-reported bug where bpf is called from trace_sched_switch. In this scenario, we are still within the scheduler context, and calling printk can create a deadlock. I am uncertain about the best approach to fix this issue. Should we simply forbid such calls, or

[RFC PATCH v8 3/3] docs: scheduler: Add introduction to scheduler context-switch

2020-09-02 Thread John Mathew
--- Documentation/scheduler/arch-specific.rst | 2 + Documentation/scheduler/context-switching.rst | 126 ++ Documentation/scheduler/index.rst | 1 + .../scheduler/mips-context-switch.rst | 89 + .../scheduler/x86-context-switch.rst | 55

[RFC PATCH v7 3/3] docs: scheduler: Add introduction to scheduler context-switch

2020-06-05 Thread john mathew
Mathew --- Documentation/scheduler/arch-specific.rst | 3 + Documentation/scheduler/context-switching.rst | 126 ++ Documentation/scheduler/index.rst | 1 + .../scheduler/mips-context-switch.rst | 89 + .../scheduler/x86-context-switch.rst

[RFC PATCH v6 3/3] docs: scheduler: Add introduction to scheduler context-switch

2020-05-27 Thread john mathew
Mathew --- Documentation/scheduler/arch-specific.rst | 3 + Documentation/scheduler/context-switching.rst | 125 ++ Documentation/scheduler/index.rst | 1 + .../scheduler/mips-context-switch.rst | 89 + .../scheduler/x86-context-switch.rst

Re: [RFC PATCH v5 3/3] docs: scheduler: Add introduction to scheduler context-switch

2020-05-27 Thread John Mathew
On Tue, May 26, 2020 at 1:26 PM Srikar Dronamraju wrote: > > * john mathew [2020-05-14 12:26:37]: > > > + > > +Context Switching > > +- > > + > > +Context switching, the switching from a running task to another, > > +is done by the context_switch() function defined in kernel/sched

[RFC PATCH v6 3/3] docs: scheduler: Add introduction to scheduler context-switch

2020-05-27 Thread john mathew
Mathew --- Documentation/scheduler/arch-specific.rst | 3 + Documentation/scheduler/context-switching.rst | 125 ++ Documentation/scheduler/index.rst | 1 + .../scheduler/mips-context-switch.rst | 89 + .../scheduler/x86-context-switch.rst

Re: [RFC PATCH v5 3/3] docs: scheduler: Add introduction to scheduler context-switch

2020-05-26 Thread Srikar Dronamraju
* john mathew [2020-05-14 12:26:37]: > + > +Context Switching > +- > + > +Context switching, the switching from a running task to another, > +is done by the context_switch() function defined in kernel/sched.c. context_switch is defined in kernel/sched/core.c > +It is called by

[RFC PATCH v5 3/3] docs: scheduler: Add introduction to scheduler context-switch

2020-05-14 Thread john mathew
Mathew --- Documentation/scheduler/arch-specific.rst | 3 + Documentation/scheduler/context-switching.rst | 125 ++ Documentation/scheduler/index.rst | 1 + .../scheduler/mips-context-switch.rst | 89 + .../scheduler/x86-context-switch.rst

[RFC PATCH v4 3/3] docs: scheduler: Add introduction to scheduler context-switch

2020-05-13 Thread john mathew
Mathew --- Documentation/scheduler/arch-specific.rst | 3 + Documentation/scheduler/context-switching.rst | 125 ++ Documentation/scheduler/index.rst | 1 + .../scheduler/mips-context-switch.rst | 89 + .../scheduler/x86-context-switch.rst

[RFC PATCH v3 3/3] docs: scheduler: Add introduction to scheduler context-switch

2020-05-07 Thread John Mathew
--- Documentation/scheduler/arch-specific.rst | 3 + Documentation/scheduler/context-switching.rst | 125 ++ Documentation/scheduler/index.rst | 1 + .../scheduler/mips-context-switch.rst | 89 + .../scheduler/x86-context-switch.rst | 65

Re: [RFC PATCH v2 3/3] docs: scheduler: Add introduction to scheduler context-switch

2020-05-06 Thread Randy Dunlap
a Chamanara > Co-developed-by: Oleg Tsymbal > Signed-off-by: Oleg Tsymbal > Signed-off-by: John Mathew > --- > Documentation/scheduler/arch-specific.rst | 3 + > Documentation/scheduler/context-switching.rst | 126 ++ > Documentation/scheduler/index.rs

[RFC PATCH v2 3/3] docs: scheduler: Add introduction to scheduler context-switch

2020-05-06 Thread john mathew
Mathew --- Documentation/scheduler/arch-specific.rst | 3 + Documentation/scheduler/context-switching.rst | 126 ++ Documentation/scheduler/index.rst | 1 + .../scheduler/mips-context-switch.rst | 88 .../scheduler/sched-data-structs.rst

Re: scheduler context

2013-04-23 Thread Henrik Austad
kernel development (Linux Kernel Development by R. Love is a great place to start). > I would like to understand on linux scheduler context. I have read a lot > in websites and i could find contradictory statement. There are so many > mailing list also ,but with less info. I would really a

scheduler context

2013-04-17 Thread ratheesh kannoth
I would like to understand on linux scheduler context. I have read a lot in websites and i could find contradictory statement. There are so many mailing list also ,but with less info. I would really appreciate if anybody could spend some time answering my question. 1. Which context scheduler run