linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH V6 0/2] Btrfs: get/set label of a mounted file system
@ 2012-12-18  3:05 Jeff Liu
  2012-12-18  3:05 ` [RFC PATCH V6 2/1] Btrfs: Add a new ioctl to get the " Jeff Liu
  2012-12-18  3:06 ` [RFC PATCH V6 2/2] Btrfs: Add a new ioctl to change " Jeff Liu
  0 siblings, 2 replies; 8+ messages in thread
From: Jeff Liu @ 2012-12-18  3:05 UTC (permalink / raw)
  To: linux-btrfs; +Cc: anand.jain, miaox, kreijack

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-12-20  8:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-18  3:05 [RFC PATCH V6 0/2] Btrfs: get/set label of a mounted file system Jeff Liu
2012-12-18  3:05 ` [RFC PATCH V6 2/1] Btrfs: Add a new ioctl to get the " 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

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).