Re: [RFC V2] kthread: add object debug support

2020-08-16 Thread Thomas Gleixner
On Sat, Aug 15 2020 at 01:37, Stephen Boyd wrote: > Quoting Thomas Gleixner (2020-08-12 03:27:03) >> or any other variant of insanity which makes the check claim that this >> is statically initialized then you rightfully can keep the pieces :) > > Makes sense. Maybe this "technique" should be docum

Re: [RFC V2] kthread: add object debug support

2020-08-15 Thread Stephen Boyd
Quoting Thomas Gleixner (2020-08-12 03:27:03) > Stephen, > > Stephen Boyd writes: > > Quoting Qianli Zhao (2020-08-11 22:14:14) > >> +/** kernel/kthread **/ > >> +#define KWORK_ENTRY_STATIC ((void *) 0x600 + POISON_POINTER_DELTA) > > > > Is this related to the debugobjects cha

Re: [RFC V2] kthread: add object debug support

2020-08-12 Thread Thomas Gleixner
Stephen, Stephen Boyd writes: > Quoting Qianli Zhao (2020-08-11 22:14:14) >> +/** kernel/kthread **/ >> +#define KWORK_ENTRY_STATIC ((void *) 0x600 + POISON_POINTER_DELTA) > > Is this related to the debugobjects change here? It looks like another > version of list poison. Yes

Re: [RFC V2] kthread: add object debug support

2020-08-12 Thread Thomas Gleixner
Qianli, Qianli Zhao writes: > Add debugobject support to track the life time of kthread_work > which is used to detect reinitialization/free active object problems > Add kthread_init_work_onstack/kthread_init_delayed_work_onstack for > kthread onstack support s/kthread/kthread_work/ ? It would

Re: [RFC V2] kthread: add object debug support

2020-08-12 Thread Stephen Boyd
Quoting Qianli Zhao (2020-08-11 22:14:14) > @@ -115,7 +125,7 @@ struct kthread_delayed_work { > } > > #define KTHREAD_WORK_INIT(work, fn){ \ > - .node = LIST_HEAD_INIT((work).node),\ > + .node = { .next = KWORK_ENT

[RFC V2] kthread: add object debug support

2020-08-11 Thread Qianli Zhao
From: Qianli Zhao Add debugobject support to track the life time of kthread_work which is used to detect reinitialization/free active object problems Add kthread_init_work_onstack/kthread_init_delayed_work_onstack for kthread onstack support Signed-off-by: Qianli Zhao --- I got an crash issue s