From: Matthew Wilcox <willy@infradead.org>
To: John Johansen <john.johansen@canonical.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Use an IDR to allocate apparmor secids
Date: Tue, 5 Jun 2018 04:47:34 -0700 [thread overview]
Message-ID: <20180605114734.GA20472@bombadil.infradead.org> (raw)
In-Reply-To: <4e075d0a-2e4d-f298-070c-836324864b97@canonical.com>
On Mon, Jun 04, 2018 at 07:35:24PM -0700, John Johansen wrote:
> On 06/04/2018 07:27 PM, Matthew Wilcox wrote:
> > On Mon, Jun 04, 2018 at 06:27:09PM -0700, John Johansen wrote:
> >> hey Mathew,
> >>
> >> I've pulled this into apparmor-next and done the retuning of
> >> AA_SECID_INVALID a follow on patch. The reworking of the api to
> >> return the specific error type can wait for another cycle.
> >
> > Oh ... here's what I currently have. I decided that AA_SECID_INVALID
> > wasn't needed.
> >
> well not needed in the allocation path, but definitely needed and it
> needs to be 0.
>
> This is for catching some uninitialized or freed and zeroed values.
> The debug checks aren't in the current version, as they were
> residing in another debug patch, but I will pull them out into their
> own patch.
With the IDR, I don't know if you need it for debug.
BUG_ON(label != idr_find(&aa_secids, label->secid))
should do the trick.
next prev parent reply other threads:[~2018-06-05 11:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-22 9:32 Matthew Wilcox
2018-05-28 17:01 ` Matthew Wilcox
2018-05-29 7:43 ` John Johansen
2018-06-05 1:27 ` John Johansen
2018-06-05 2:27 ` Matthew Wilcox
2018-06-05 2:35 ` John Johansen
2018-06-05 11:47 ` Matthew Wilcox [this message]
2018-06-05 15:47 ` John Johansen
2018-05-30 23:06 ` John Johansen
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=20180605114734.GA20472@bombadil.infradead.org \
--to=willy@infradead.org \
--cc=john.johansen@canonical.com \
--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
all inboxes | Powered by JetHome®