<feed xmlns='http://www.w3.org/2005/Atom'>
<title>snowball/igloo-kernel.git/drivers/base, branch integration-linux-ux500</title>
<subtitle>Igloo kernel</subtitle>
<id>https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/atom?h=integration-linux-ux500</id>
<link rel='self' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/atom?h=integration-linux-ux500'/>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/'/>
<updated>2012-05-16T20:27:24+00:00</updated>
<entry>
<title>sync: add poll support</title>
<updated>2012-05-16T20:27:24+00:00</updated>
<author>
<name>Erik Gilling</name>
<email>konkers@android.com</email>
</author>
<published>2012-03-20T00:28:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=a1eeacaf7a96729d6bedae031af5565b7a4e9487'/>
<id>urn:sha1:a1eeacaf7a96729d6bedae031af5565b7a4e9487</id>
<content type='text'>
Change-Id: I294e481bba92658e6dd26f157ddbf0e9ff4ce8a5
Signed-off-by: Erik Gilling &lt;konkers@android.com&gt;
</content>
</entry>
<entry>
<title>sw_sync: add fill_driver_data support</title>
<updated>2012-05-16T20:27:24+00:00</updated>
<author>
<name>Erik Gilling</name>
<email>konkers@android.com</email>
</author>
<published>2012-03-16T00:46:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=484101e5a816cb1e9022805d1714445c473e5b63'/>
<id>urn:sha1:484101e5a816cb1e9022805d1714445c473e5b63</id>
<content type='text'>
Change-Id: Ib3812d282db56362d82f5ccc9a12b7d2100ab93a
Signed-off-by: Erik Gilling &lt;konkers@android.com&gt;
</content>
</entry>
<entry>
<title>sync: add ioctl to get fence data</title>
<updated>2012-05-16T20:27:23+00:00</updated>
<author>
<name>Erik Gilling</name>
<email>konkers@android.com</email>
</author>
<published>2012-03-16T00:45:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=3913bff501a81ff2719528f09830a1b88229ac21'/>
<id>urn:sha1:3913bff501a81ff2719528f09830a1b88229ac21</id>
<content type='text'>
Change-Id: I71410aef7e03a52562f7cb15b993ac8441b1fa12
Signed-off-by: Erik Gilling &lt;konkers@android.com&gt;
</content>
</entry>
<entry>
<title>sw_sync: add debug support</title>
<updated>2012-05-16T20:27:23+00:00</updated>
<author>
<name>Erik Gilling</name>
<email>konkers@android.com</email>
</author>
<published>2012-03-15T21:23:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=2c959d7b8d87672f1444126c50da5c373a0484af'/>
<id>urn:sha1:2c959d7b8d87672f1444126c50da5c373a0484af</id>
<content type='text'>
Change-Id: Ibcc5fa8cb36e283cdf0e3308064876722e2675fc
Signed-off-by: Erik Gilling &lt;konkers@android.com&gt;
</content>
</entry>
<entry>
<title>sync: add debugfs support</title>
<updated>2012-05-16T20:27:23+00:00</updated>
<author>
<name>Erik Gilling</name>
<email>konkers@android.com</email>
</author>
<published>2012-03-15T02:49:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=981c8a993d581ea3f2c071d1a2e631edc2a4c670'/>
<id>urn:sha1:981c8a993d581ea3f2c071d1a2e631edc2a4c670</id>
<content type='text'>
Change-Id: I8a7ea63e454fbeee1ecf17e6c3caff7c43b24734
Signed-off-by: Erik Gilling &lt;konkers@android.com&gt;
</content>
</entry>
<entry>
<title>sync: add timestamps to sync_pts</title>
<updated>2012-05-16T20:27:23+00:00</updated>
<author>
<name>Erik Gilling</name>
<email>konkers@android.com</email>
</author>
<published>2012-03-15T21:59:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=ad433ba4d1f447792fd6ae75183bad91f702a3ef'/>
<id>urn:sha1:ad433ba4d1f447792fd6ae75183bad91f702a3ef</id>
<content type='text'>
Change-Id: I2ad855072b86873880769a09a3176e85aa1199d7
Signed-off-by: Erik Gilling &lt;konkers@android.com&gt;
</content>
</entry>
<entry>
<title>sw_sync: add cpu based sync driver</title>
<updated>2012-05-16T20:27:23+00:00</updated>
<author>
<name>Erik Gilling</name>
<email>konkers@android.com</email>
</author>
<published>2012-04-18T20:43:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=560b5462071cdaa4865c4c113ec295cdf2565385'/>
<id>urn:sha1:560b5462071cdaa4865c4c113ec295cdf2565385</id>
<content type='text'>
Change-Id: I1042851f5e30f9fdc2f35bdad84123bcf108560f
Signed-off-by: Erik Gilling &lt;konkers@android.com&gt;
</content>
</entry>
<entry>
<title>sync: Add synchronization framework</title>
<updated>2012-05-16T20:27:22+00:00</updated>
<author>
<name>Erik Gilling</name>
<email>konkers@android.com</email>
</author>
<published>2012-03-13T22:34:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=010accf8a0e643acd1f41ea7ae759714ccf8eda1'/>
<id>urn:sha1:010accf8a0e643acd1f41ea7ae759714ccf8eda1</id>
<content type='text'>
not run through checkpatch yet.

Change-Id: I209f9db2824e0313f467f11ab09e5f54f0a4a6b5
Signed-off-by: Erik Gilling &lt;konkers@android.com&gt;
</content>
</entry>
<entry>
<title>Merge commit 'v3.4-rc7' into android-3.4</title>
<updated>2012-05-14T23:41:02+00:00</updated>
<author>
<name>Colin Cross</name>
<email>ccross@android.com</email>
</author>
<published>2012-05-14T23:41:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=ec0b571c19ac62ab0bb80d373a3d4922a48b4b75'/>
<id>urn:sha1:ec0b571c19ac62ab0bb80d373a3d4922a48b4b75</id>
<content type='text'>
</content>
</entry>
<entry>
<title>regmap: fix possible memory corruption in regmap_bulk_read()</title>
<updated>2012-05-09T14:44:11+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2012-05-09T12:13:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/snowball/igloo-kernel.git/commit/?id=6560ffd1ccd688152393dc7c35dbdcc33140633b'/>
<id>urn:sha1:6560ffd1ccd688152393dc7c35dbdcc33140633b</id>
<content type='text'>
The function regmap_bulk_read() calls the regmap_read() for
each register if set of register has volatile and cache is
enabled. In this case, last few register read makes the memory
corruption if the register size is not the size of unsigned int.
The regam_read() takes argument as unsigned int for returning
value and it update the value as
	*val = map-&gt;format.parse_val(map-&gt;work_buf);
This causes complete 4 bytes (size of unsigned int) to get written.
Now if client pass the memory pointer for value which is equal to the
required size of register count in regmap_bulk_read() then last few
register read actually update the memory beyond passed pointer size.

Avoid this by using local variable for read and then do memcpy()
for actual byte copy to passed pointer based on register size.

I allocated one pointer ptr and take first 16 bytes dump of that
pointer then call regmap_bulk_read() with pointer which is just
on top of this allocated pointer and register count of 128. Here
register size is 1 byte.
The memory trace of last 5 register read are as follows:

[    5.438589] regmap_bulk_read after regamp_read() for register 122
[    5.447421] 0xef993c20 0xef993c00 0x00000000 0x00000001
[    5.467535] regmap_bulk_read after regamp_read() for register 123
[    5.476374] 0xef993c20 0xef993c00 0x00000000 0x00000001
[    5.496425] regmap_bulk_read after regamp_read() for register 124
[    5.505260] 0xef993c20 0xef993c00 0x00000000 0x00000001
[    5.525372] regmap_bulk_read after regamp_read() for register 125
[    5.534205] 0xef993c00 0xef993c00 0x00000000 0x00000001
[    5.554258] regmap_bulk_read after regamp_read() for register 126
[    5.563100] 0xef990000 0xef993c00 0x00000000 0x00000001
[    5.554258] regmap_bulk_read after regamp_read() for register 127
[    5.587108] 0xef000000 0xef993c00 0x00000000 0x00000001

Here it is observed that the memory content at first word started changing
on last 3 regmap_read() and so corruption happened.

Signed-off-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
</feed>
