From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Dave Reisner <dreisner@archlinux.org>, keescook@chromium.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] debugfs: convert gid= argument from decimal, not octal
Date: Wed, 2 Jan 2013 10:33:51 -0800 [thread overview]
Message-ID: <20130102183351.GA28554@kroah.com> (raw)
In-Reply-To: <1357134877-27141-1-git-send-email-dreisner@archlinux.org>
On Wed, Jan 02, 2013 at 08:54:37AM -0500, Dave Reisner wrote:
> 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.
Kees is the one that originally did this change (I think, right?)
Kees, any objection to this patch? Will it break your existing systems?
thanks,
greg k-h
>
> 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
next prev parent reply other threads:[~2013-01-02 18:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-02 13:54 [PATCH] debugfs: convert gid= argument from decimal, not octal Dave Reisner
2013-01-02 18:33 ` Greg Kroah-Hartman [this message]
2013-01-02 18:42 ` Kees Cook
2013-01-02 18:57 ` Greg Kroah-Hartman
2013-01-02 18:46 ` Dave Reisner
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=20130102183351.GA28554@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=dreisner@archlinux.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
/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