summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_output.py
diff options
context:
space:
mode:
authorNirbhay Sharma <nirbhay.lkd@gmail.com>2025-10-07 04:08:04 +0530
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2025-11-10 14:30:15 +0100
commit5f33da04e6ceee849e76e6592cc283c72fef7af9 (patch)
tree4122fde177675874f25ffff0fb57ffefcaedec9b /scripts/lib/kdoc/kdoc_output.py
parentbe99c62ac7e7af514e4b13f83c891a3cccefaa48 (diff)
fs/ntfs3: fix KMSAN uninit-value in ni_create_attr_list
The call to kmalloc() to allocate the attribute list buffer is given a size of al_aligned(rs). This size can be larger than the data subsequently copied into the buffer, leaving trailing bytes uninitialized. This can trigger a KMSAN "uninit-value" warning if that memory is later accessed. Fix this by using kzalloc() instead, which ensures the entire allocated buffer is zero-initialized, preventing the warning. Reported-by: syzbot+83c9dd5c0dcf6184fdbf@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=83c9dd5c0dcf6184fdbf Signed-off-by: Nirbhay Sharma <nirbhay.lkd@gmail.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions