Testing for regressions in Media Controller API register, ioctl, syscall, and unregister paths. There have a few problems that result in user-after free on media_device, media_devnode, and cdev pointers when the driver is unbound while ioctl is in progress. Test Procedure: Run bin/unbind loop while ioctls are in progress. Run rmmod and modprobe. Disconnect the device. Setup: Build media_device_test cd tools/testing/selftests/media_tests make Regressions test for cdev user-after free error on /dev/mediaX when driver is unbound: Start media_device_test to regression test media devnode dynamic alloc and cdev user-after-free fixes. This opens media dev files and sits in a loop running media ioctl MEDIA_IOC_DEVICE_INFO command once every 10 seconds. The idea is when device file goes away, media devnode and cdev should stick around until this test exits. The test for a random number of iterations or until user kills it with a sleep 10 in between the ioctl calls. sudo ./media_device_test -d /dev/mediaX Regression test for media_devnode unregister race with ioctl_syscall: Start 6 open_loop_test.sh tests with different /dev/mediaX files. When device file goes away after unbind, device file name changes. Start the test with possible device names. If we start with /dev/media0 for example, after unbind, /dev/media1 or /dev/media2 could get created. The idea is keep ioctls going while bind/unbind runs. Copy bind_unbind_sample.txt and make changes to specify the driver name and number to run bind and unbind. Start the bind_unbind.sh Run dmesg looking for any user-after free errors or mutex lock errors. mp;id=d46fa3e47aebc10ec800dce1c55a7e149a57b93b'>refslogtreecommitdiff
path: root/drivers/usb/host/ehci-dbg.c
tion value='1'>ssdiff
AgeCommit message (Expand)AuthorFilesLines
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>2016-12-22 15:00:24 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2017-02-02 21:54:53 +0800
commit685ce0626840e2673fe64ea8807684f7324fec5f (patch)
treee6efffdcbb8e63b6774e3cdca8b0037ed7da9477
parent3484ecbe0e9deb94afb0b9b6172d77e98eb72b94 (diff)
crypto: qat - zero esram only for DH85x devices
Zero embedded ram in DH85x devices. This is not needed for newer generations as it is done by HW. Cc: <stable@vger.kernel.org> Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat