summaryrefslogtreecommitdiffstats
path: root/mm/kasan
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-12-09 23:50:27 +0100
committerShuah Khan <shuahkh@osg.samsung.com>2016-01-07 21:44:22 +0100
commiteb910947c82f93cee6ee00a59a4ed86f12cf6e7f (patch)
tree7e941e42f6241a8c62fd4f7393a9b6990407caaf /mm/kasan
parenttest: firmware_class: use kstrndup() where appropriate (diff)
downloadlinux-eb910947c82f93cee6ee00a59a4ed86f12cf6e7f.tar.xz
linux-eb910947c82f93cee6ee00a59a4ed86f12cf6e7f.zip
test: firmware_class: add asynchronous request trigger
We might want to test for bugs like that found in commit f9692b2699bd ("firmware: fix possible use after free on name on asynchronous request"), where the asynchronous request API had race conditions. Let's add a simple file that will launch the async request, then wait until it's complete and report the status. It's not a true async test (we're using a mutex + wait_for_completion(), so we can't get more than one going at the same time), but it does help make sure the basic API is sane, and it can catch some class of bugs. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Cc: Luis R. Rodriguez <mcgrof@suse.com> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'mm/kasan')
0 files changed, 0 insertions, 0 deletions