<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/soc/aspeed/aspeed-lpc-ctrl.c, branch linux-5.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.14.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.14.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-09-18T11:43:21Z</updated>
<entry>
<title>soc: aspeed: lpc-ctrl: Fix boundary check for mmap</title>
<updated>2021-09-18T11:43:21Z</updated>
<author>
<name>Iwona Winiarska</name>
</author>
<published>2021-08-03T23:48:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=865f5ba9fdfc3ac6acabcac9630056ce99db600d'/>
<id>urn:sha1:865f5ba9fdfc3ac6acabcac9630056ce99db600d</id>
<content type='text'>
commit b49a0e69a7b1a68c8d3f64097d06dabb770fec96 upstream.

The check mixes pages (vm_pgoff) with bytes (vm_start, vm_end) on one
side of the comparison, and uses resource address (rather than just the
resource size) on the other side of the comparison.
This can allow malicious userspace to easily bypass the boundary check and
map pages that are located outside memory-region reserved by the driver.

Fixes: 6c4e97678501 ("drivers/misc: Add Aspeed LPC control driver")
Cc: stable@vger.kernel.org
Signed-off-by: Iwona Winiarska &lt;iwona.winiarska@intel.com&gt;
Reviewed-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Tested-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Reviewed-by: Joel Stanley &lt;joel@aj.id.au&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>soc: aspeed: Adapt to new LPC device tree layout</title>
<updated>2021-04-09T04:09:22Z</updated>
<author>
<name>Chia-Wei, Wang</name>
</author>
<published>2021-03-19T06:27:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=489774ff5db943642751f4f0fdac9033239208c6'/>
<id>urn:sha1:489774ff5db943642751f4f0fdac9033239208c6</id>
<content type='text'>
Add check against LPC device v2 compatible string to
ensure that the fixed device tree layout is adopted.
The LPC register offsets are also fixed accordingly.

Signed-off-by: Chia-Wei Wang &lt;chiawei_wang@aspeedtech.com&gt;
Reviewed-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Reviewed-by: Joel Stanley &lt;joel@jms.id.au&gt;
Link: https://lore.kernel.org/r/20210319062752.145730-5-andrew@aj.id.au
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>soc: aspeed-lpc-ctrl: Fix driver name</title>
<updated>2020-09-25T05:24:42Z</updated>
<author>
<name>Joel Stanley</name>
</author>
<published>2020-09-25T05:23:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cd460be0460fd4edeef194a26d90c7ac02a8dadd'/>
<id>urn:sha1:cd460be0460fd4edeef194a26d90c7ac02a8dadd</id>
<content type='text'>
Clarify the string now that it supports the AST2600 too.

Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>soc: aspeed-lpc-ctrl: Fix whitespace</title>
<updated>2020-09-25T05:24:42Z</updated>
<author>
<name>Joel Stanley</name>
</author>
<published>2020-09-25T05:22:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4d1d81dbc9d51ac383f3979da5eba13870183c4d'/>
<id>urn:sha1:4d1d81dbc9d51ac383f3979da5eba13870183c4d</id>
<content type='text'>
Some misaligned indentation I noticed when applying another patch.

Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>soc: aspeed-lpc-ctrl: LPC to AHB mapping on ast2600</title>
<updated>2020-09-25T05:24:42Z</updated>
<author>
<name>Joel Stanley</name>
</author>
<published>2020-03-12T12:14:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5042d3f278de45e215291d2adcf1024cc3c7f73a'/>
<id>urn:sha1:5042d3f278de45e215291d2adcf1024cc3c7f73a</id>
<content type='text'>
The ast2600 disables the mapping of AHB memory regions by default,
only allowing the LPC window to point to SPI NOR. In order to point the
window to any AHB address, an ast2600 specific bit must be toggled.

Reviewed-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Link: https://lore.kernel.org/r/20200312121413.294384-1-joel@jms.id.au
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>soc: aspeed-lpc-ctrl: Fail probe of lpc-ctrl if reserved memory is not aligned</title>
<updated>2020-09-25T04:38:14Z</updated>
<author>
<name>Andrew Jeffery</name>
</author>
<published>2019-10-16T23:39:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6bf4ddbe2b4805f0628922446a7e85e34013cd10'/>
<id>urn:sha1:6bf4ddbe2b4805f0628922446a7e85e34013cd10</id>
<content type='text'>
Alignment is a hardware constraint of the LPC2AHB bridge, and misaligned
reserved memory will present as corrupted data.

Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Reviewed-by: Joel Stanley &lt;joel@jms.id.au&gt;
Link: https://lore.kernel.org/r/20191016233950.10100-1-andrew@aj.id.au
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>soc: aspeed: lpc: Add AST2600 compatible strings</title>
<updated>2020-09-25T04:32:43Z</updated>
<author>
<name>Brad Bishop</name>
</author>
<published>2019-09-25T12:56:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=44ddc4de87a54b32ead77d3ec67f0bf93d8c0055'/>
<id>urn:sha1:44ddc4de87a54b32ead77d3ec67f0bf93d8c0055</id>
<content type='text'>
The AST2600 has the same lpc-ctrl and lpc-snoop devices as the
AST2500.

Signed-off-by: Brad Bishop &lt;bradleyb@fuzziesquirrel.com&gt;
Acked-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Link: https://lore.kernel.org/r/20190925125610.12096-4-bradleyb@fuzziesquirrel.com
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>Merge tag 'aspeed-5.3-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/joel/aspeed into arm/drivers</title>
<updated>2019-06-25T12:43:16Z</updated>
<author>
<name>Olof Johansson</name>
</author>
<published>2019-06-25T12:43:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0aa447e5ce1463243ae83071de7b732d8075944e'/>
<id>urn:sha1:0aa447e5ce1463243ae83071de7b732d8075944e</id>
<content type='text'>
ASPEED SoC updates for 5.3

LPC control driver changes and a fix.

* tag 'aspeed-5.3-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/joel/aspeed:
  soc: aspeed: lpc-ctrl: Fix probe error handling
  soc: aspeed: lpc-ctrl: make parameter optional

Signed-off-by: Olof Johansson &lt;olof@lixom.net&gt;
</content>
</entry>
<entry>
<title>soc: aspeed: lpc-ctrl: Fix probe error handling</title>
<updated>2019-06-22T07:26:35Z</updated>
<author>
<name>Joel Stanley</name>
</author>
<published>2019-06-20T09:17:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c8a3b9b50d8331528fc8d03aadd1fec3d60362d7'/>
<id>urn:sha1:c8a3b9b50d8331528fc8d03aadd1fec3d60362d7</id>
<content type='text'>
gcc warns that a mising "flash" phandle node leads to undefined
behavior later:

drivers/soc/aspeed/aspeed-lpc-ctrl.c: In function 'aspeed_lpc_ctrl_probe':
drivers/soc/aspeed/aspeed-lpc-ctrl.c:201:18: error: '*((void *)&amp;resm+8)' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Only set the flash base and size if we find a phandle in the device
tree.

Reported-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Reviewed-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Reviewed-by: Vijay Khemka &lt;vijaykhemka@fb.com&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>soc: aspeed: lpc-ctrl: make parameter optional</title>
<updated>2019-06-17T04:06:51Z</updated>
<author>
<name>Vijay Khemka</name>
</author>
<published>2019-05-30T20:36:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e4272af4247f86ffe65a00619f9d9e8dea496b1d'/>
<id>urn:sha1:e4272af4247f86ffe65a00619f9d9e8dea496b1d</id>
<content type='text'>
Making memory-region and flash as optional parameter in device
tree if user needs to use these parameter through ioctl then
need to define in devicetree.

Signed-off-by: Vijay Khemka &lt;vijaykhemka@fb.com&gt;
Reviewed-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
</feed>
