Thread (7 messages) flat view 7 messages, 4 authors, 2017-11-29

Re: [v2,2/2] powerpc: Do not assign thread.tidr if already assigned

From: Michael Ellerman <hidden>
Date: 2017-11-29 12:06:44

On Fri, 2017-11-24 at 08:33:38 UTC, Vaibhav Jain wrote:
If set_thread_tidr() is called twice for same task_struct then it will
allocate a new tidr value to it leaving the previous value still
dangling in the vas_thread_ida table.

To fix this the patch changes set_thread_tidr() to check if a tidr
value is already assigned to the task_struct and if yes then returns
the existing value from function instead of allocating a new one.

Fixes: ec233ede4c86("powerpc: Add support for setting SPRN_TIDR")
Signed-off-by: Vaibhav Jain <redacted>
Reviewed-by: Andrew Donnellan <redacted>
Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/7e4d4233260be0611c7fbdb2730c12

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help