From: Jeff Liu <jeff.liu@oracle.com>
To: linux-btrfs@vger.kernel.org
Cc: anand.jain@oracle.com, miaox@cn.fujitsu.com, kreijack@inwind.it
Subject: [RFC PATCH V6 0/2] Btrfs: get/set label of a mounted file system
Date: Tue, 18 Dec 2012 11:05:50 +0800 [thread overview]
Message-ID: <50CFDD8E.2050003@oracle.com> (raw)
Hello,
Here is quick fix for btrfs set lable ioctl(2) based on v5, it does label length check up with
strnlen() to avoid searching a zero could go beyond the page limit touching an un-mapped page
and raising an segmentation fault with strlen().
V6->v5:
- Improve the input label string validation with strnlen().
The old versions can be found at:
v5:
http://www.spinics.net/lists/linux-btrfs/msg20888.html
v4:
http://permalink.gmane.org/gmane.comp.file-systems.btrfs/21618
v3:
https://patchwork.kernel.org/patch/1124642/
v2:
http://permalink.gmane.org/gmane.comp.file-systems.btrfs/12877
v1:
http://permalink.gmane.org/gmane.comp.file-systems.btrfs/12872
Thanks,
-Jeff
next reply other threads:[~2012-12-18 3:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-18 3:05 Jeff Liu [this message]
2012-12-18 3:05 ` [RFC PATCH V6 2/1] Btrfs: Add a new ioctl to get the label of a mounted file system Jeff Liu
2012-12-18 3:06 ` [RFC PATCH V6 2/2] Btrfs: Add a new ioctl to change " Jeff Liu
2012-12-18 3:31 ` Miao Xie
2012-12-18 18:00 ` Goffredo Baroncelli
2012-12-19 3:42 ` Jeff Liu
2012-12-19 14:21 ` David Sterba
2012-12-20 8:18 ` Jeff Liu
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=50CFDD8E.2050003@oracle.com \
--to=jeff.liu@oracle.com \
--cc=anand.jain@oracle.com \
--cc=kreijack@inwind.it \
--cc=linux-btrfs@vger.kernel.org \
--cc=miaox@cn.fujitsu.com \
/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).