From: Andrew Morton <akpm@linux-foundation.org>
To: Dan Williams <dan.j.williams@intel.com>
Cc: linux-kernel@vger.kernel.org, johnpol@2ka.mipt.ru
Subject: Re: [PATCH] async_tx: fix kmap_atomic usage in async_memcpy
Date: Thu, 19 Jul 2007 18:32:02 -0700 [thread overview]
Message-ID: <20070719183202.f7045ede.akpm@linux-foundation.org> (raw)
In-Reply-To: <20070720011252.6443.34295.stgit@dwillia2-linux.ch.intel.com>
On Thu, 19 Jul 2007 18:12:52 -0700
Dan Williams <dan.j.williams@intel.com> wrote:
> Andrew Morton:
> [async_memcpy] is very wrong if both ASYNC_TX_KMAP_DST and
> ASYNC_TX_KMAP_SRC can ever be set. We'll end up using the same kmap
> slot for both src add dest and we get either corrupted data or a BUG.
>
> Evgeniy Polyakov:
> Btw, shouldn't it always be kmap_atomic() even if flag is not set.
> That pages are usual one returned by alloc_page().
>
> So fix the usage of kmap_atomic and kill the ASYNC_TX_KMAP_DST and
> ASYNC_TX_KMAP_SRC flags.
>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
> ---
>
> crypto/async_tx/async_memcpy.c | 19 ++++---------------
> drivers/md/raid5.c | 4 ++--
> include/linux/async_tx.h | 6 ------
> 3 files changed, 6 insertions(+), 23 deletions(-)
Neato.
You (or at least, Shannon) run a git tree. I always get confused when
git-tree-owners send me patches, because I expect them to put the
patches into their git trees.
So if you, a git-tree-owner, wish me to merge-test-and-forward a patch,
please explicitly tell me.
next prev parent reply other threads:[~2007-07-20 1:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-20 1:12 [PATCH] async_tx: fix kmap_atomic usage in async_memcpy Dan Williams
2007-07-20 1:32 ` Andrew Morton [this message]
2007-07-20 2:59 ` Dan Williams
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=20070719183202.f7045ede.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=dan.j.williams@intel.com \
--cc=johnpol@2ka.mipt.ru \
--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