[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <D9FFE20C522965449E182ACE73889AEB1A6BEBEC@IRSMSX105.ger.corp.intel.com>
Date: Mon, 27 Jan 2014 09:26:45 +0000
From: "Dorau, Lukasz" <lukasz.dorau@...el.com>
To: Jose Alonso <joalonsof@...il.com>,
Martin Schwidefsky <schwidefsky@...ibm.com>,
Heiko Carstens <heiko.carstens@...ibm.com>,
"Patelczyk, Maciej" <maciej.patelczyk@...el.com>,
"Jiang, Dave" <dave.jiang@...el.com>,
Simon Horman <horms@...ge.net.au>,
Magnus Damm <magnus.damm@...il.com>,
Paul Mundt <lethal@...ux-sh.org>,
Christoph Hellwig <hch@....de>, Jens Axboe <axboe@...nel.dk>,
Guennadi Liakhovetski <g.liakhovetski@....de>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>
CC: Linux Kernel <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH] for_each macros correctness
On Sunday, January 26, 2014 11:54 AM Jose Alonso <joalonsof@...il.com> wrote:
> I observed that there are for_each macros that do an extra memory access
> beyond the defined area.
> Normally this does not cause problems.
> But, this can cause exceptions. For example: if the area is allocated at
> the end of a page and the next page is not accessible.
>
> For correctness, I suggest changing the arguments of the 'for loop' like
> others 'for_each' do in the kernel.
>
> files involved:
> drivers/s390/cio/qdio.h
> drivers/scsi/isci/host.h
Hi Jose,
The macro in "drivers/scsi/isci/host.h" has already been corrected:
http://marc.info/?l=linux-kernel&m=139030404415970&w=2
So you can remove the part regarding "drivers/scsi/isci/host.h" from your patch.
Lukasz
Powered by blists - more mailing lists