linux-security-module.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: Xiyu Yang <xiyuyang19@fudan.edu.cn>,
	Xin Tan <tanxin.ctf@gmail.com>,
	linux-security-module@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, James Morris <jmorris@namei.org>,
	John Johansen <john.johansen@canonical.com>,
	Kangjie Lu <kjlu@umn.edu>, "Serge E. Hallyn" <serge@hallyn.com>,
	Yuan Zhang <yuanxzhang@fudan.edu.cn>
Subject: Re: [PATCH v2] apparmor: fix potential label refcnt leak in aa_change_profile
Date: Wed, 15 Apr 2020 13:27:57 +0200	[thread overview]
Message-ID: <e9f36822-2483-9512-732b-b158ed104bf2@web.de> (raw)

> According to the comment of aa_get_current_label(), …

I suggest to make this wording clearer.
Would you like to refer to any software documentation here?


> However, when the original object pointed by "label" becomes
> unreachable because aa_change_profile() returns or a new object
> is assigned to "label", reference count increased by
> aa_get_current_label() is not decreased, causing a refcnt leak.

How do you think about to reduce abbreviations in the commit message?

Would you like to add the tag “Fixes” to the change description?

Regards,
Markus

             reply	other threads:[~2020-04-15 11:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-15 11:27 Markus Elfring [this message]
2020-04-15 18:41 ` [PATCH v2] apparmor: fix potential label refcnt leak in aa_change_profile John Johansen
  -- strict thread matches above, loose matches on Subject: below --
2020-04-05  5:11 Xiyu Yang

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=e9f36822-2483-9512-732b-b158ed104bf2@web.de \
    --to=markus.elfring@web.de \
    --cc=jmorris@namei.org \
    --cc=john.johansen@canonical.com \
    --cc=kjlu@umn.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=serge@hallyn.com \
    --cc=tanxin.ctf@gmail.com \
    --cc=xiyuyang19@fudan.edu.cn \
    --cc=yuanxzhang@fudan.edu.cn \
    /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;
as well as URLs for NNTP newsgroup(s).