diff options
author | wuchi <[email protected]> | 2022-06-20 18:02:44 +0800 |
---|---|---|
committer | akpm <[email protected]> | 2022-07-17 17:31:38 -0700 |
commit | 86e5908ec293bf6505a59d02542da006226bcaa7 (patch) | |
tree | 0fdf7d7de783319fb1f1517c2381f5e27cd8cad1 /scripts/gdb/linux/modules.py | |
parent | f9987921cb541b1187a648141a9048547ea89ffb (diff) |
lib/error-inject: traverse list with mutex
Traversing list without mutex in get_injectable_error_type will
race with the following code:
list_del_init(&ent->list)
kfree(ent)
in module_unload_ei_list. So fix that.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: wuchi <[email protected]>
Cc: Masami Hiramatsu (Google) <[email protected]>
Cc: Martin KaFai Lau <[email protected]>
Cc: Song Liu <[email protected]>
Cc: Yonghong Song <[email protected]>
Cc: John Fastabend <[email protected]>
Cc: KP Singh <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions