summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAlon Zahavi <zahavi.alon@gmail.com>2022-08-15 14:07:12 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-24 09:24:41 +0300
commitff3b1a624380c14b81f4e51c48e404a45f047aab (patch)
treecee9937d7ab4ffb8f4354fdcb6a609633a00bf99 /arch
parentb542cb024a5d981b4385e03bdeeaabcdd725c9f3 (diff)
downloadlinux-ff3b1a624380c14b81f4e51c48e404a45f047aab.tar.xz
fs/ntfs3: Fix attr_punch_hole() null pointer derenference
commit 6d5c9e79b726cc473d40e9cb60976dbe8e669624 upstream. The bug occours due to a misuse of `attr` variable instead of `attr_b`. `attr` is being initialized as NULL, then being derenfernced as `attr->res.data_size`. This bug causes a crash of the ntfs3 driver itself, If compiled directly to the kernel, it crashes the whole system. Signed-off-by: Alon Zahavi <zahavi.alon@gmail.com> Co-developed-by: Tal Lossos <tallossos@gmail.com> Signed-off-by: Tal Lossos <tallossos@gmail.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions