]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fuse: Allocate only namelen buf memory in fuse_notify_
authorBernd Schubert <bschubert@ddn.com>
Mon, 16 Dec 2024 21:14:06 +0000 (22:14 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 31 Mar 2025 12:59:27 +0000 (14:59 +0200)
commit2412085da370836945c2daa61c5cee38dd979e0d
treee70e6d953cf8757d3935c17ce047d3032335167e
parent9b17cb59a7db983a967c3658fe9a2f250f588bbd
fuse: Allocate only namelen buf memory in fuse_notify_

fuse_notify_inval_entry and fuse_notify_delete were using fixed allocations
of FUSE_NAME_MAX to hold the file name. Often that large buffers are not
needed as file names might be smaller, so this uses the actual file name
size to do the allocation.

Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c