diff options
| author | Brian Foster <[email protected]> | 2024-04-25 10:44:00 +0000 |
|---|---|---|
| committer | Miklos Szeredi <[email protected]> | 2024-05-08 07:31:21 +0000 |
| commit | 96d88f65adfbcaca153afd7d3e20d74ba379c599 (patch) | |
| tree | df08d2b2b8e6c8091bf4ca9ab02a45f7f4242ddf /scripts/generate_rust_target.rs | |
| parent | fuse: verify zero padding in fuse_backing_map (diff) | |
| download | kernel-96d88f65adfbcaca153afd7d3e20d74ba379c599.tar.gz kernel-96d88f65adfbcaca153afd7d3e20d74ba379c599.zip | |
virtiofs: include a newline in sysfs tag
The internal tag string doesn't contain a newline. Append one when
emitting the tag via sysfs.
[Stefan] Orthogonal to the newline issue, sysfs_emit(buf, "%s", fs->tag) is
needed to prevent format string injection.
Signed-off-by: Brian Foster <[email protected]>
Fixes: a8f62f50b4e4 ("virtiofs: export filesystem tags through sysfs")
Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
