Re: [PATCH] connector: fix unsafe usage of ->real_parent

2019-03-08 Thread David Miller
From: Li RongQing Date: Wed, 6 Mar 2019 14:46:27 +0800 > proc_exit_connector() uses ->real_parent lockless. This is not > safe that its parent can go away at any moment, so use RCU to > protect it, and ensure that this task is not released. ... > Fixes: b086ff87251b4a4 ("connector: add parent p

Re: [PATCH] connector: fix unsafe usage of ->real_parent

2019-03-06 Thread Evgeniy Polyakov
Hi 06.03.2019, 09:46, "Li RongQing" : > proc_exit_connector() uses ->real_parent lockless. This is not > safe that its parent can go away at any moment, so use RCU to > protect it, and ensure that this task is not released. > > Fixes: b086ff87251b4a4 ("connector: add parent pid and tgid to coredu

[PATCH] connector: fix unsafe usage of ->real_parent

2019-03-05 Thread Li RongQing
proc_exit_connector() uses ->real_parent lockless. This is not safe that its parent can go away at any moment, so use RCU to protect it, and ensure that this task is not released. [ 747.624551] == [ 747.632946] BUG: KASAN: use-afte