public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] debugfs: convert gid= argument from decimal, not octal
@ 2013-01-02 13:54 Dave Reisner
  2013-01-02 18:33 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Reisner @ 2013-01-02 13:54 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-kernel, Dave Reisner

This patch technically breaks userspace, but I suspect that anyone who
actually used this flag would have encountered this brokenness, declared
it lunacy, and already sent a patch.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
---
 fs/debugfs/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 153bb1e..a5f12b7 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -176,7 +176,7 @@ static int debugfs_parse_options(char *data, struct debugfs_mount_opts *opts)
 			opts->uid = uid;
 			break;
 		case Opt_gid:
-			if (match_octal(&args[0], &option))
+			if (match_int(&args[0], &option))
 				return -EINVAL;
 			gid = make_kgid(current_user_ns(), option);
 			if (!gid_valid(gid))
-- 
1.8.0.3


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

end of thread, other threads:[~2013-01-02 18:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-02 13:54 [PATCH] debugfs: convert gid= argument from decimal, not octal Dave Reisner
2013-01-02 18:33 ` Greg Kroah-Hartman
2013-01-02 18:42   ` Kees Cook
2013-01-02 18:57     ` Greg Kroah-Hartman
2013-01-02 18:46   ` Dave Reisner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox