<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/net, branch v2020.01-rc4</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/net?h=v2020.01-rc4</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/net?h=v2020.01-rc4'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2019-12-02T23:23:13Z</updated>
<entry>
<title>common: Move get_ticks() function out of common.h</title>
<updated>2019-12-02T23:23:13Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2019-11-14T19:57:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1045315df0f1bed617f0ee01379a10f543cec501'/>
<id>urn:sha1:1045315df0f1bed617f0ee01379a10f543cec501</id>
<content type='text'>
This function belongs in time.h so move it over and add a comment.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>common: Move random-number functions into their own header</title>
<updated>2019-12-02T23:23:07Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2019-11-14T19:57:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=840ef4d43b69a687660b3722b9c4a8a44a2912f8'/>
<id>urn:sha1:840ef4d43b69a687660b3722b9c4a8a44a2912f8</id>
<content type='text'>
Create a new rand.h header file and move functions into it, to reduce
the size of common.h

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>Drop CONFIG_SHOW_ACTIVITY</title>
<updated>2019-12-02T23:23:06Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2019-11-14T19:57:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9ce2aa171039f1097e2d293235e733cce94cbabb'/>
<id>urn:sha1:9ce2aa171039f1097e2d293235e733cce94cbabb</id>
<content type='text'>
This feature is not enabled by any board. Drop it.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>net: nfs: remove superfluous packed attribute</title>
<updated>2019-09-04T16:37:19Z</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2019-09-02T22:05:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5a5d1def59024dd3225e2a6142f8ee3ee10180a8'/>
<id>urn:sha1:5a5d1def59024dd3225e2a6142f8ee3ee10180a8</id>
<content type='text'>
With GCC 9.2.1 net/nfs.c leads to multiple errors of type
address-of-packed-member.

net/nfs.c: In function ‘rpc_req’:
net/nfs.c:199:18: error: taking address of packed member of
‘struct rpc_t’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
  199 |  p = (uint32_t *)&amp;(rpc_pkt.u.call.data);
      |                  ^~~~~~~~~~~~~~~~~~~~~~
net/nfs.c: In function ‘nfs_readlink_reply’:
net/nfs.c:631:46: error: taking address of packed member of
‘struct rpc_t’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
  631 |    nfs3_get_attributes_offset(rpc_pkt.u.reply.data);
      |                               ~~~~~~~~~~~~~~~^~~~~
  LD      drivers/block/built-in.o
net/nfs.c: In function ‘nfs_read_reply’:
net/nfs.c:692:46: error: taking address of packed member of
‘struct rpc_t’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
  692 |    nfs3_get_attributes_offset(rpc_pkt.u.reply.data);
      |                               ~~~~~~~~~~~~~~~^~~~~

struct rpc_t is only used as local variable. It is naturally packed. So
there is no need for the attribute packed.

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>net: nfs: remove superfluous conversions</title>
<updated>2019-09-04T16:37:19Z</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>xypron.glpk@gmx.de</email>
</author>
<published>2019-09-02T21:55:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=15eea9a1a8166b4bbab6c02cc426a7cc806ea2ca'/>
<id>urn:sha1:15eea9a1a8166b4bbab6c02cc426a7cc806ea2ca</id>
<content type='text'>
rpc_pkt.u.call.data is an array of uint32_t. There is no need to convert
it to uint32_t *.

memcpy() expects void * as it 1st and 2nd argument. There is no point in
converting pointers to char * before passing them to memcpy().

In ntohl(data[1]) != 0 calling ntohl() is superfluous. If the value is
zero, does not depend on the byte order.

Signed-off-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>CVE-2019-14196: nfs: fix unbounded memcpy with a failed length check at nfs_lookup_reply</title>
<updated>2019-09-04T16:37:19Z</updated>
<author>
<name>liucheng (G)</name>
<email>liucheng32@huawei.com</email>
</author>
<published>2019-08-29T13:48:02Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5d14ee4e53a81055d34ba280cb8fd90330f22a96'/>
<id>urn:sha1:5d14ee4e53a81055d34ba280cb8fd90330f22a96</id>
<content type='text'>
This patch adds a check to rpc_pkt.u.reply.data at nfs_lookup_reply.

Signed-off-by: Cheng Liu &lt;liucheng32@huawei.com&gt;
Reported-by: Fermín Serna &lt;fermin@semmle.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>CVE-2019-14195: nfs: fix unbounded memcpy with unvalidated length at nfs_readlink_reply</title>
<updated>2019-09-04T16:37:19Z</updated>
<author>
<name>liucheng (G)</name>
<email>liucheng32@huawei.com</email>
</author>
<published>2019-08-29T13:47:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=cf3a4f1e86ecdd24f87b615051b49d8e1968c230'/>
<id>urn:sha1:cf3a4f1e86ecdd24f87b615051b49d8e1968c230</id>
<content type='text'>
This patch adds a check to rpc_pkt.u.reply.data at nfs_readlink_reply.

Signed-off-by: Cheng Liu &lt;liucheng32@huawei.com&gt;
Reported-by: Fermín Serna &lt;fermin@semmle.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>CVE-2019-14194/CVE-2019-14198: nfs: fix unbounded memcpy with a failed length check at nfs_read_reply</title>
<updated>2019-09-04T16:37:19Z</updated>
<author>
<name>liucheng (G)</name>
<email>liucheng32@huawei.com</email>
</author>
<published>2019-08-29T13:47:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=aa207cf3a6d68f39d64cd29057a4fb63943e9078'/>
<id>urn:sha1:aa207cf3a6d68f39d64cd29057a4fb63943e9078</id>
<content type='text'>
This patch adds a check to rpc_pkt.u.reply.data at nfs_read_reply.

Signed-off-by: Cheng Liu &lt;liucheng32@huawei.com&gt;
Reported-by: Fermín Serna &lt;fermin@semmle.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>CVE: nfs: fix stack-based buffer overflow in some nfs_handler reply helper functions</title>
<updated>2019-09-04T16:37:19Z</updated>
<author>
<name>liucheng (G)</name>
<email>liucheng32@huawei.com</email>
</author>
<published>2019-08-29T13:47:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=741a8a08ebe5bc3ccfe3cde6c2b44ee53891af21'/>
<id>urn:sha1:741a8a08ebe5bc3ccfe3cde6c2b44ee53891af21</id>
<content type='text'>
This patch adds a check to nfs_handler to fix buffer overflow for CVE-2019-14197,
CVE-2019-14200, CVE-2019-14201, CVE-2019-14202, CVE-2019-14203 and CVE-2019-14204.

Signed-off-by: Cheng Liu &lt;liucheng32@huawei.com&gt;
Reported-by: Fermín Serna &lt;fermin@semmle.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>CVE: net: fix unbounded memcpy of UDP packet</title>
<updated>2019-09-04T16:37:19Z</updated>
<author>
<name>liucheng (G)</name>
<email>liucheng32@huawei.com</email>
</author>
<published>2019-08-29T13:47:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fe7288069d2e6659117049f7d27e261b550bb725'/>
<id>urn:sha1:fe7288069d2e6659117049f7d27e261b550bb725</id>
<content type='text'>
This patch adds a check to udp_len to fix unbounded memcpy for
CVE-2019-14192, CVE-2019-14193 and CVE-2019-14199.

Signed-off-by: Cheng Liu &lt;liucheng32@huawei.com&gt;
Reviewed-by: Simon Goldschmidt &lt;simon.k.r.goldschmidt@gmail.com&gt;
Reported-by: Fermín Serna &lt;fermin@semmle.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
</feed>
