[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170811083808.GA5497@lst.de>
Date: Fri, 11 Aug 2017 10:38:08 +0200
From: Christoph Hellwig <hch@....de>
To: Benjamin Block <bblock@...ux.vnet.ibm.com>
Cc: Christoph Hellwig <hch@....de>,
"James E . J . Bottomley" <jejb@...ux.vnet.ibm.com>,
"Martin K . Petersen" <martin.petersen@...cle.com>,
Jens Axboe <axboe@...nel.dk>, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-scsi@...r.kernel.org,
Johannes Thumshirn <jthumshirn@...e.de>,
Steffen Maier <maier@...ux.vnet.ibm.com>,
open-iscsi@...glegroups.com
Subject: Re: [RFC PATCH 1/6] bsg: fix kernel panic resulting from missing
allocation of a reply-buffer
My point was that we now gurantee that that the sense data is not
a stack pointer an a driver can DMA to it. Now for BSG the sense
data is "just" abused as reply, but the point still stands - we
don't want to pass a possible stack pointer to drivers in a data
buffer because we want to allow DMA to it.
That being said with your patch 4 that becomes a moot point as we'll
now always dynamically allocate it. So maybe just reorder that to go
first and we should be fine.
Powered by blists - more mailing lists