mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
fuse fixes for 6.9 final
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSQHSd0lITzzeNWNm3h3BK/laaZPAUCZjsr0QAKCRDh3BK/laaZ PLrpAP9Y1Kz3gSSH1wqDJ9+XzQZdm4dSInMP2Pe47BvSGG2YlAEAwmccoyIoiM58 qvHPETImNxIRTAVZdiBM3W4S3hnzCwc= =SPoy -----END PGP SIGNATURE----- Merge tag 'fuse-fixes-6.9-final' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse Pull fuse fixes from Miklos Szeredi: "Two one-liner fixes for issues introduced in -rc1" * tag 'fuse-fixes-6.9-final' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse: virtiofs: include a newline in sysfs tag fuse: verify zero padding in fuse_backing_map
This commit is contained in:
commit
065a057a31
|
|
@ -225,7 +225,7 @@ int fuse_backing_open(struct fuse_conn *fc, struct fuse_backing_map *map)
|
|||
goto out;
|
||||
|
||||
res = -EINVAL;
|
||||
if (map->flags)
|
||||
if (map->flags || map->padding)
|
||||
goto out;
|
||||
|
||||
file = fget(map->fd);
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ static ssize_t tag_show(struct kobject *kobj,
|
|||
{
|
||||
struct virtio_fs *fs = container_of(kobj, struct virtio_fs, kobj);
|
||||
|
||||
return sysfs_emit(buf, fs->tag);
|
||||
return sysfs_emit(buf, "%s\n", fs->tag);
|
||||
}
|
||||
|
||||
static struct kobj_attribute virtio_fs_tag_attr = __ATTR_RO(tag);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user