diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2023-04-18 15:57:47 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-05-11 23:11:35 +0900 |
commit | 83b4e3d878ea6be9aec1d5a1ab177c766c64d1a0 (patch) | |
tree | 62e38abf47d8289bb3710e6f351535770e259ccb /lib/debugobjects.c | |
parent | c8c9c50268729bf35f6c9bb1205f490db920454e (diff) |
dm flakey: fix a crash with invalid table line
commit 98dba02d9a93eec11bffbb93c7c51624290702d2 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions