Skip to content
Commit ff3b1a62 authored by Alon Zahavi's avatar Alon Zahavi Committed by Greg Kroah-Hartman
Browse files

fs/ntfs3: Fix attr_punch_hole() null pointer derenference



commit 6d5c9e79 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: default avatarAlon Zahavi <zahavi.alon@gmail.com>
Co-developed-by: default avatarTal Lossos <tallossos@gmail.com>
Signed-off-by: default avatarTal Lossos <tallossos@gmail.com>
Signed-off-by: default avatarKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b542cb02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment