From: Jens Axboe <jens.axboe@oracle.com>
To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] CDROM: use kmalloced buffers instead of buffers on stack
Date: Wed, 26 Mar 2008 12:13:10 +0100 [thread overview]
Message-ID: <20080326111310.GC15355@kernel.dk> (raw)
In-Reply-To: <20080323111532.19DBFC2DFF@solo.franken.de>
On Sun, Mar 23 2008, Thomas Bogendoerfer wrote:
> If cdrom commands are issued to a scsi drive in most cases the buffer
> will be filled via dma. This leads to bad stack corruption on non coherent
> platforms, because the buffers are neither cache line aligned nor is
> the size a multiple of the cache line size. Using kmalloced buffers
> avoids this.
>
> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Thanks Thomas, applied.
--
Jens Axboe
prev parent reply other threads:[~2008-03-26 11:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-23 11:15 [PATCH] CDROM: use kmalloced buffers instead of buffers on stack Thomas Bogendoerfer
2008-03-23 11:47 ` Cyrill Gorcunov
2008-03-26 11:13 ` Jens Axboe [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=20080326111310.GC15355@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
/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