summaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2023-04-18 15:57:47 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-05-11 23:17:37 +0900
commit8258d84a7917aeece773716518deadb7ad776cb7 (patch)
tree70cb3a9081bd4960ac8444b03d4f7a38f0c3ea9f /lib/debugobjects.c
parente09a592fdd6c716506774bdbebb5f6c537b47767 (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