diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2023-04-18 22:57:47 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-04-19 18:06:36 +0300 |
commit | 98dba02d9a93eec11bffbb93c7c51624290702d2 (patch) | |
tree | 3f8b851cfc7c7e8fe2d60a422a2e04c67c19df99 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 3d32aaa7e66d5c1479a3c31d6c2c5d45dd0d3b89 (diff) | |
download | linux-98dba02d9a93eec11bffbb93c7c51624290702d2.tar.xz |
dm flakey: fix a crash with invalid table line
This command will crash with NULL pointer dereference:
dmsetup create flakey --table \
"0 `blockdev --getsize /dev/ram0` flakey /dev/ram0 0 0 1 2 corrupt_bio_byte 512"
Fix the crash by checking if arg_name is non-NULL before comparing it.
Cc: stable@vger.kernel.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions