public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: David Howells <dhowells@redhat.com>
Cc: Dmitry Vyukov <dvyukov@google.com>,
	syzbot <syzbot+762a577f56cfb1574647@syzkaller.appspotmail.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	"Levin, Alexander" <alexander.levin@verizon.com>,
	LKML <linux-kernel@vger.kernel.org>,
	linux@dominikbrodowski.net,
	Luc Van Oostenryck <luc.vanoostenryck@gmail.com>,
	nikolaus.voss@loewensteinmedical.de,
	syzkaller-bugs <syzkaller-bugs@googlegroups.com>
Subject: Re: linux-next boot error (2)
Date: Wed, 12 Sep 2018 06:34:54 +1000	[thread overview]
Message-ID: <20180912063454.0620abb4@canb.auug.org.au> (raw)
In-Reply-To: <23632.1536696987@warthog.procyon.org.uk>

[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]

Hi David,

On Tue, 11 Sep 2018 21:16:27 +0100 David Howells <dhowells@redhat.com> wrote:
>
> Andrei Vagin spotted a missing change to apparmor:
> apparmor_fs_context_parse_param() needs to return -ENOPARAM, not 0.

I will apply this fix until the proper fix arrives in the vfs tree:

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Wed, 12 Sep 2018 06:27:43 +1000
Subject: [PATCH] apparmor: fix a return value

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 security/apparmor/lsm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c
index c316d4237d94..416204ea713d 100644
--- a/security/apparmor/lsm.c
+++ b/security/apparmor/lsm.c
@@ -602,7 +602,7 @@ static int apparmor_fs_context_parse_param(struct fs_context *fc,
 
 	afc->saved_options = p;
 	afc->saved_size += 1 + len;
-	return 0;
+	return -ENOPARAM;
 }
 
 static int apparmor_sb_mountpoint(struct fs_context *fc, struct path *mountpoint,
-- 
2.19.0.rc2

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2018-09-11 20:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-06  8:21 linux-next boot error (2) syzbot
2018-09-06  8:41 ` David Howells
2018-09-06  8:52   ` Dmitry Vyukov
2018-09-11 20:16     ` David Howells
2018-09-11 20:34       ` Stephen Rothwell [this message]
2018-09-11 21:24         ` David Howells
2018-11-21 13:32           ` Dmitry Vyukov
2018-11-27 10:25             ` David Howells
2018-11-27 10:38               ` Dmitry Vyukov

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=20180912063454.0620abb4@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=akpm@linux-foundation.org \
    --cc=alexander.levin@verizon.com \
    --cc=dhowells@redhat.com \
    --cc=dvyukov@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@dominikbrodowski.net \
    --cc=luc.vanoostenryck@gmail.com \
    --cc=nikolaus.voss@loewensteinmedical.de \
    --cc=syzbot+762a577f56cfb1574647@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.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