Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftest: media_tests: fix trivial UAF typo

Stumbled upon this typo while looking for something else.

Link: https://lore.kernel.org/lkml/20241205194829.3449669-1-cmllamas@google.com/
Cc: Shuah Khan <shuah@kernel.org>
Fixes: fe8777a8a0a1 ("selftests: add media controller regression test scripts and document")
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Carlos Llamas and committed by
Shuah Khan
687c5e56 5bc55a33

+4 -4
+4 -4
tools/testing/selftests/media_tests/regression_test.txt
··· 1 1 Testing for regressions in Media Controller API register, ioctl, syscall, 2 - and unregister paths. There have a few problems that result in user-after 2 + and unregister paths. There have a few problems that result in use-after 3 3 free on media_device, media_devnode, and cdev pointers when the driver is 4 4 unbound while ioctl is in progress. 5 5 ··· 15 15 cd tools/testing/selftests/media_tests 16 16 make 17 17 18 - Regressions test for cdev user-after free error on /dev/mediaX when driver 18 + Regressions test for cdev use-after-free error on /dev/mediaX when driver 19 19 is unbound: 20 20 21 21 Start media_device_test to regression test media devnode dynamic alloc 22 - and cdev user-after-free fixes. This opens media dev files and sits in 22 + and cdev use-after-free fixes. This opens media dev files and sits in 23 23 a loop running media ioctl MEDIA_IOC_DEVICE_INFO command once every 10 24 24 seconds. The idea is when device file goes away, media devnode and cdev 25 25 should stick around until this test exits. ··· 40 40 Copy bind_unbind_sample.txt and make changes to specify the driver name 41 41 and number to run bind and unbind. Start the bind_unbind.sh 42 42 43 - Run dmesg looking for any user-after free errors or mutex lock errors. 43 + Run dmesg looking for any use-after-free errors or mutex lock errors.