+1
−1
Loading
mainline inclusion from mainline-v6.10 commit 96d88f65adfbcaca153afd7d3e20d74ba379c599 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IB81UH Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=96d88f65adfbcaca153afd7d3e20d74ba379c599 ------------------------------------------------- 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 <bfoster@redhat.com> Fixes: a8f62f50b4e4 ("virtiofs: export filesystem tags through sysfs") Signed-off-by:
Miklos Szeredi <mszeredi@redhat.com> Signed-off-by:
Shuai Wu <wushuai51@huawei.com>