<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/vme/bridges, branch linux-4.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2023-01-18T10:30:28Z</updated>
<entry>
<title>vme: Fix error not catched in fake_init()</title>
<updated>2023-01-18T10:30:28Z</updated>
<author>
<name>Chen Zhongjin</name>
</author>
<published>2022-12-05T08:48:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=09be0e7ac5f9374b6f8de72c89ed67129af71f65'/>
<id>urn:sha1:09be0e7ac5f9374b6f8de72c89ed67129af71f65</id>
<content type='text'>
[ Upstream commit 7bef797d707f1744f71156b21d41e3b8c946631f ]

In fake_init(), __root_device_register() is possible to fail but it's
ignored, which can cause unregistering vme_root fail when exit.

 general protection fault,
 probably for non-canonical address 0xdffffc000000008c
 KASAN: null-ptr-deref in range [0x0000000000000460-0x0000000000000467]
 RIP: 0010:root_device_unregister+0x26/0x60
 Call Trace:
  &lt;TASK&gt;
  __x64_sys_delete_module+0x34f/0x540
  do_syscall_64+0x38/0x90
  entry_SYSCALL_64_after_hwframe+0x63/0xcd

Return error when __root_device_register() fails.

Fixes: 658bcdae9c67 ("vme: Adding Fake VME driver")
Signed-off-by: Chen Zhongjin &lt;chenzhongjin@huawei.com&gt;
Link: https://lore.kernel.org/r/20221205084805.147436-1-chenzhongjin@huawei.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>staging: vme_user: Fix possible UAF in tsi148_dma_list_add</title>
<updated>2023-01-18T10:30:25Z</updated>
<author>
<name>Gaosheng Cui</name>
</author>
<published>2022-11-17T03:59:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e6b0adff99edf246ba1f8d464530a0438cb1cbda'/>
<id>urn:sha1:e6b0adff99edf246ba1f8d464530a0438cb1cbda</id>
<content type='text'>
[ Upstream commit 357057ee55d3c99a5de5abe8150f7bca04f8e53b ]

Smatch report warning as follows:

drivers/staging/vme_user/vme_tsi148.c:1757 tsi148_dma_list_add() warn:
  '&amp;entry-&gt;list' not removed from list

In tsi148_dma_list_add(), the error path "goto err_dma" will not
remove entry-&gt;list from list-&gt;entries, but entry will be freed,
then list traversal may cause UAF.

Fix by removeing it from list-&gt;entries before free().

Fixes: b2383c90a9d6 ("vme: tsi148: fix first DMA item mapping")
Signed-off-by: Gaosheng Cui &lt;cuigaosheng1@huawei.com&gt;
Link: https://lore.kernel.org/r/20221117035914.2954454-1-cuigaosheng1@huawei.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>vme: bridges: reduce stack usage</title>
<updated>2020-02-24T07:34:47Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2020-01-07T20:05:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8ca41215c6ea47fe0e7023655835c2cb09e34260'/>
<id>urn:sha1:8ca41215c6ea47fe0e7023655835c2cb09e34260</id>
<content type='text'>
[ Upstream commit 7483e7a939c074d887450ef1c4d9ccc5909405f8 ]

With CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3, the stack usage in vme_fake
grows above the warning limit:

drivers/vme/bridges/vme_fake.c: In function 'fake_master_read':
drivers/vme/bridges/vme_fake.c:610:1: error: the frame size of 1160 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
drivers/vme/bridges/vme_fake.c: In function 'fake_master_write':
drivers/vme/bridges/vme_fake.c:797:1: error: the frame size of 1160 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]

The problem is that in some configurations, each call to
fake_vmereadX() puts another variable on the stack.

Reduce the amount of inlining to get back to the previous state,
with no function using more than 200 bytes each.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Link: https://lore.kernel.org/r/20200107200610.3482901-1-arnd@arndb.de
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>vme: ca91cx42: remove redundant variable i</title>
<updated>2018-07-16T10:03:53Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2018-07-14T16:33:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=566208494e4d7cc7bdac48d4c9b99d4fcb8fca48'/>
<id>urn:sha1:566208494e4d7cc7bdac48d4c9b99d4fcb8fca48</id>
<content type='text'>
Variable i is being assigned but is never used hence it is redundant
and can be removed.

Cleans up clang warning:
warning: variable 'i' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Reviewed-by: Martyn Welch &lt;martyn@welchs.me.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>vme: tsi148: Adjust 14 checks for null pointers</title>
<updated>2017-10-13T20:32:04Z</updated>
<author>
<name>Markus Elfring</name>
</author>
<published>2017-08-25T10:00:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a75dc630086a6b83d780a7b27d03c4c0abdf0807'/>
<id>urn:sha1:a75dc630086a6b83d780a7b27d03c4c0abdf0807</id>
<content type='text'>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The script “checkpatch.pl” pointed information out like the following.

Comparison to NULL could be written …

Thus fix the affected source code places.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Martyn Welch &lt;martyn@welchs.me.uk&gt;
</content>
</entry>
<entry>
<title>vme: tsi148: Improve 17 size determinations</title>
<updated>2017-10-13T20:32:04Z</updated>
<author>
<name>Markus Elfring</name>
</author>
<published>2017-08-25T09:55:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6d011dd876cb825b2e1213daaabda07e1151fc6a'/>
<id>urn:sha1:6d011dd876cb825b2e1213daaabda07e1151fc6a</id>
<content type='text'>
Replace the specification of data structures by variable references
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
[martyn@welchs.me.uk: Correct long line]
Signed-off-by: Martyn Welch &lt;martyn@welchs.me.uk&gt;
</content>
</entry>
<entry>
<title>vme: tsi148: Delete nine error messages for a failed memory allocation</title>
<updated>2017-10-13T20:32:03Z</updated>
<author>
<name>Markus Elfring</name>
</author>
<published>2017-08-25T09:10:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=97660957fb5318d76a680a1b6cfb7b998bfa3723'/>
<id>urn:sha1:97660957fb5318d76a680a1b6cfb7b998bfa3723</id>
<content type='text'>
Omit extra messages for a memory allocation failure in these functions.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Martyn Welch &lt;martyn@welchs.me.uk&gt;
</content>
</entry>
<entry>
<title>vme: ca91cx42: Adjust 14 checks for null pointers</title>
<updated>2017-10-13T20:32:03Z</updated>
<author>
<name>Markus Elfring</name>
</author>
<published>2017-08-25T09:01:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8d97931740cff8f4eea62f5690e470444905db60'/>
<id>urn:sha1:8d97931740cff8f4eea62f5690e470444905db60</id>
<content type='text'>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The script “checkpatch.pl” pointed information out like the following.

Comparison to NULL could be written …

Thus fix the affected source code places.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Martyn Welch &lt;martyn@welchs.me.uk&gt;
</content>
</entry>
<entry>
<title>vme: ca91cx42: Improve 12 size determinations</title>
<updated>2017-10-13T20:32:03Z</updated>
<author>
<name>Markus Elfring</name>
</author>
<published>2017-08-25T08:56:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d9b1e53343651e514644f2a6d4ce00b362f4033'/>
<id>urn:sha1:3d9b1e53343651e514644f2a6d4ce00b362f4033</id>
<content type='text'>
Replace the specification of data structures by variable references
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Martyn Welch &lt;martyn@welchs.me.uk&gt;
</content>
</entry>
<entry>
<title>vme: ca91cx42: Delete eight error messages for a failed memory allocation</title>
<updated>2017-10-13T20:32:02Z</updated>
<author>
<name>Markus Elfring</name>
</author>
<published>2017-08-25T08:20:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=85fd4939e53873839df8e78da917c79c5074b183'/>
<id>urn:sha1:85fd4939e53873839df8e78da917c79c5074b183</id>
<content type='text'>
Omit extra messages for a memory allocation failure in these functions.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Martyn Welch &lt;martyn@welchs.me.uk&gt;
</content>
</entry>
</feed>
