From: "Thomas Weißschuh" <linux@weissschuh.net>
To: Mirsad Goran Todorovac <mirsad.todorovac@alu.unizg.hr>
Cc: Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: Re: [PATCH] block: don't embed integrity_kobj into gendisk
Date: Thu, 9 Mar 2023 23:26:44 +0000 [thread overview]
Message-ID: <7f977a5d-8302-4a32-9dce-f6d7637b2555@t-8ch.de> (raw)
In-Reply-To: <d10f18b4-56cf-8a55-b12f-79b1163d8841@alu.unizg.hr>
On Thu, Mar 09, 2023 at 10:46:50PM +0100, Mirsad Goran Todorovac wrote:
> On 09. 03. 2023. 22:23, Thomas Weißschuh wrote:
>
> Very well, but who then destroys the cache crated here:
>
> security/integrity/iint.c:177-179
> > 177 iint_cache =
> > 178 kmem_cache_create("iint_cache", sizeof(struct integrity_iint_cache),
> > 179 0, SLAB_PANIC, init_once);
>
> I assumed that it must have been done from iint.c because iint_cache is
> static?
It doesn't seem like anything destroys this cache.
I'm not sure this is a problem though as iint.c can not be built as module.
At least it's not a problem with kobjects as those are not used here.
> BTW, moving check for !ktype->release to kobject_init() is great for it
> might make such problems noticed in dmesg, rather than taking screenshots.
>
> Regards,
next prev parent reply other threads:[~2023-03-09 23:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-09 20:23 [PATCH] block: don't embed integrity_kobj into gendisk Thomas Weißschuh
2023-03-09 21:05 ` Mirsad Goran Todorovac
2023-03-09 21:23 ` Thomas Weißschuh
2023-03-09 21:46 ` Mirsad Goran Todorovac
2023-03-09 23:26 ` Thomas Weißschuh [this message]
2023-03-10 8:52 ` Mirsad Todorovac
2023-03-10 13:42 ` Andy Shevchenko
2023-03-09 21:47 ` Andy Shevchenko
2023-03-09 21:20 ` Martin K. Petersen
2023-03-14 9:15 ` kernel test robot
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=7f977a5d-8302-4a32-9dce-f6d7637b2555@t-8ch.de \
--to=linux@weissschuh.net \
--cc=andriy.shevchenko@linux.intel.com \
--cc=axboe@kernel.dk \
--cc=gregkh@linuxfoundation.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mirsad.todorovac@alu.unizg.hr \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.