From: Johannes Weiner <hannes@cmpxchg.org>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH] fs: register_filesystem: Don't allow '\t' and '\n'.
Date: Thu, 9 Apr 2009 17:08:43 +0200 [thread overview]
Message-ID: <20090409150843.GA3111@cmpxchg.org> (raw)
In-Reply-To: <200904092018.GGD57377.FHJOLSMOFQOFVt@I-love.SAKURA.ne.jp>
On Thu, Apr 09, 2009 at 08:18:20PM +0900, Tetsuo Handa wrote:
> Is it legal to use '\t' and '\n' in filesystem's name?
> If legal, we should use \ooo escape for /proc/filesystems .
>
> ----------
> [RFC PATCH] fs: register_filesystem: Don't allow '\t' and '\n'.
>
> Registering a filesystem with broken name
>
> static struct file_system_type dummy_fs_type = {
> .name = "a\tb\nc",
> };
>
> results in broken output
>
> # cat /proc/filesystems
> nodev sysfs
> nodev rootfs
> nodev bdev
> nodev proc
> nodev debugfs
> nodev sockfs
> nodev usbfs
> nodev pipefs
> nodev anon_inodefs
> nodev tmpfs
> nodev inotifyfs
> nodev devpts
> ext3
> ext2
> cramfs
> nodev ramfs
> vfat
> iso9660
> nodev nfsd
> nodev smbfs
> nodev a b
> c
> nodev rpc_pipefs
>
> Why not forbid '\t' and '\n'?
Which filesystem does that? Shouldn't the filesystem get changed
instead?
Hannes
next prev parent reply other threads:[~2009-04-09 15:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-09 11:18 [RFC PATCH] fs: register_filesystem: Don't allow '\t' and '\n' Tetsuo Handa
2009-04-09 15:08 ` Johannes Weiner [this message]
2009-04-09 15:47 ` Christoph Hellwig
2009-04-09 21:03 ` Al Viro
2009-04-09 21:03 ` Al Viro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090409150843.GA3111@cmpxchg.org \
--to=hannes@cmpxchg.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).