From: Mike Snitzer <snitzer@kernel.org>
To: Dan Carpenter <error27@gmail.com>
Cc: dm-devel@redhat.com
Subject: Re: [dm-devel] [bug report] dm crypt: conditionally enable code needed for tasklet usecases
Date: Thu, 9 Mar 2023 10:08:32 -0500 [thread overview]
Message-ID: <ZAn2cM75wc0WZgah@redhat.com> (raw)
In-Reply-To: <5e9f73e8-26a3-47ff-aeee-7e723b66c7c9@kili.mountain>
On Thu, Mar 09 2023 at 9:42P -0500,
Dan Carpenter <error27@gmail.com> wrote:
> On Thu, Mar 09, 2023 at 05:35:20PM +0300, Dan Carpenter wrote:
> > --> 2758 if (test_bit(DM_CRYPT_NO_READ_WORKQUEUE, &cc->flags) ||
> > ^^^^^^^^^
> > 2759 test_bit(DM_CRYPT_NO_WRITE_WORKQUEUE, &cc->flags))
> > ^^^^^^^^^
> > UAF. This wasn't tested, right? If this passes testing then it means
> > kfree_sensitive() is broken. (Normally UAF bugs can only be detected
> > with KASan, but kfree_sensitive() should poison the data I thought).
> >
>
> Nope. This is thing where you need KASan to detect the bug. I'm wrong
> and continually demonstrate how even twenty years in to it I still don't
> understand pointers.
Thanks for the report, really appreciate it. Sorry for the oversight
(and lack of testing). But we decided to fix a different way and
linux-next was updated accordingly, I just tweaked it but here is the
final:
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=for-next&id=d9a02e016aaf5a57fb44e9a5e6da8ccd3b9e2e70
Mike
--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel
prev parent reply other threads:[~2023-03-09 15:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-09 14:35 [dm-devel] [bug report] dm crypt: conditionally enable code needed for tasklet usecases Dan Carpenter
2023-03-09 14:42 ` Dan Carpenter
2023-03-09 15:08 ` Mike Snitzer [this message]
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=ZAn2cM75wc0WZgah@redhat.com \
--to=snitzer@kernel.org \
--cc=dm-devel@redhat.com \
--cc=error27@gmail.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 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.