aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJohannes Kimmel <[email protected]>2025-03-19 21:49:00 +0000
committerDavid Sterba <[email protected]>2025-03-31 23:02:31 +0000
commitdc08c58696f8555e4a802f1f23c894a330d80ab7 (patch)
tree651e4e2b5ad57afaf0198d1ad376b105381018d0 /net/unix/af_unix.c
parentbtrfs: ioctl: don't free iov when btrfs_encoded_read() returns -EAGAIN (diff)
downloadkernel-dc08c58696f8555e4a802f1f23c894a330d80ab7.tar.gz
kernel-dc08c58696f8555e4a802f1f23c894a330d80ab7.zip
btrfs: correctly escape subvol in btrfs_show_options()
Currently, displaying the btrfs subvol mount option doesn't escape ','. This makes parsing /proc/self/mounts and /proc/self/mountinfo ambiguous for subvolume names that contain commas. The text after the comma could be mistaken for another option (think "subvol=foo,ro", where ro is actually part of the subvolumes name). Replace the manual escape characters list with a call to seq_show_option(). Thanks to Calvin Walton for suggesting this approach. Fixes: c8d3fe028f64 ("Btrfs: show subvol= and subvolid= in /proc/mounts") CC: [email protected] # 5.4+ Suggested-by: Calvin Walton <[email protected]> Signed-off-by: Johannes Kimmel <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions