[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140127200156.GJ2782@kernel.dk>
Date: Mon, 27 Jan 2014 13:01:56 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Jose Alonso <joalonsof@...il.com>
Cc: Martin Schwidefsky <schwidefsky@...ibm.com>,
Heiko Carstens <heiko.carstens@...ibm.com>,
Lukasz Dorau <lukasz.dorau@...el.com>,
Maciej Patelczyk <maciej.patelczyk@...el.com>,
Dave Jiang <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>,
Guennadi Liakhovetski <g.liakhovetski@....de>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>,
Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] for_each macros correctness
On Sun, Jan 26 2014, Jose Alonso 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
> drivers/sh/clk/core.c
> include/linux/blk-mq.h
> include/linux/shdma-base.h
> sound/soc/sh/rcar/adg.c
Thanks, I'll dig out the blk-mq bit.
--
Jens Axboe
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists