diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2020-07-08 12:25:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-16 08:16:46 +0200 |
commit | b9fe45efa671246eaefa898db70044edbd7293f7 (patch) | |
tree | 6d71936b4499baf788a5f88565381c0c02f61c6c /tools/perf/scripts/python/stackcollapse.py | |
parent | ede24894e8bf81ee333f176bfbf94c5ba02c0fc7 (diff) | |
download | linux-stable-b9fe45efa671246eaefa898db70044edbd7293f7.tar.gz linux-stable-b9fe45efa671246eaefa898db70044edbd7293f7.tar.bz2 linux-stable-b9fe45efa671246eaefa898db70044edbd7293f7.zip |
dm: use noio when sending kobject event
commit 6958c1c640af8c3f40fa8a2eee3b5b905d95b677 upstream.
kobject_uevent may allocate memory and it may be called while there are dm
devices suspended. The allocation may recurse into a suspended device,
causing a deadlock. We must set the noio flag when sending a uevent.
The observed deadlock was reported here:
https://www.redhat.com/archives/dm-devel/2020-March/msg00025.html
Reported-by: Khazhismel Kumykov <khazhy@google.com>
Reported-by: Tahsin Erdogan <tahsin@google.com>
Reported-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions