<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/staging/most, branch v4.4.235</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v4.4.235</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v4.4.235'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2020-02-05T13:03:32+00:00</updated>
<entry>
<title>staging: most: net: fix buffer overflow</title>
<updated>2020-02-05T13:03:32+00:00</updated>
<author>
<name>Andrey Shvetsov</name>
<email>andrey.shvetsov@k2l.de</email>
</author>
<published>2020-01-16T17:22:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=917c8fe39f4d42c3850b22d6a0bf3ffab1466d19'/>
<id>urn:sha1:917c8fe39f4d42c3850b22d6a0bf3ffab1466d19</id>
<content type='text'>
commit 4d1356ac12f4d5180d0df345d85ff0ee42b89c72 upstream.

If the length of the socket buffer is 0xFFFFFFFF (max size for an
unsigned int), then payload_len becomes 0xFFFFFFF1 after subtracting 14
(ETH_HLEN).  Then, mdp_len is set to payload_len + 16 (MDP_HDR_LEN)
which overflows and results in a value of 2.  These values for
payload_len and mdp_len will pass current buffer size checks.

This patch checks if derived from skb-&gt;len sum may overflow.

The check is based on the following idea:

For any `unsigned V1, V2` and derived `unsigned SUM = V1 + V2`,
`V1 + V2` overflows iif `SUM &lt; V1`.

Reported-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Andrey Shvetsov &lt;andrey.shvetsov@k2l.de&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Link: https://lore.kernel.org/r/20200116172238.6046-1-andrey.shvetsov@microchip.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>staging: most: remove exclusive wait_queue</title>
<updated>2015-10-28T23:57:19+00:00</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2015-10-28T14:14:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c27fc351cf4298b5ade8f3bda8f8be15af5d6cde'/>
<id>urn:sha1:c27fc351cf4298b5ade8f3bda8f8be15af5d6cde</id>
<content type='text'>
This patch removes the unnecessary wait_queue that has exclusively been
used for the poll function and its poll_table. Instead, an already
existing one is used.

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: hdm-dim2: use min_t()</title>
<updated>2015-10-28T23:57:19+00:00</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2015-10-28T14:49:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7f9cacb62d94c4828827ead22d9b6e7d6d7aa1e8'/>
<id>urn:sha1:7f9cacb62d94c4828827ead22d9b6e7d6d7aa1e8</id>
<content type='text'>
This patch replaces the usage of min() by min_t().

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: hdm-usb: Use setup_timer</title>
<updated>2015-10-25T02:09:03+00:00</updated>
<author>
<name>Muhammad Falak R Wani</name>
<email>falakreyaz@gmail.com</email>
</author>
<published>2015-10-24T02:15:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=bff1d83d78db66d3307f856344fd2202b8b77ce3'/>
<id>urn:sha1:bff1d83d78db66d3307f856344fd2202b8b77ce3</id>
<content type='text'>
Use the timer API function setup_timer instead of init_timer, removing
the structure field assignments.

&lt;smpl&gt;

@timer@
expression e1,e2,e3,fn_ptr;
@@
-init_timer(&amp;e1);
+setup_timer(&amp;e1, fn_ptr, e2);
... when != fn_ptr = e3
-e1.function = fn_ptr;
-e1.data = e2;

&lt;/smpl&gt;

Signed-off-by: Muhammad Falak R Wani &lt;falakreyaz@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: remove comparison to NULL</title>
<updated>2015-10-25T02:08:20+00:00</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2015-10-21T15:50:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f96d48aaa915178995b4bf246793168376fd0576'/>
<id>urn:sha1:f96d48aaa915178995b4bf246793168376fd0576</id>
<content type='text'>
Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: use preferred kzalloc parameters</title>
<updated>2015-10-25T02:08:20+00:00</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2015-10-21T15:50:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=181a2aa185c092b840a2bc089e83629619f5b1ab'/>
<id>urn:sha1:181a2aa185c092b840a2bc089e83629619f5b1ab</id>
<content type='text'>
This patch uses the preferred call to kzalloc. It replaces
kzalloc(sizeof(struct aim_fh)...) by kzalloc(sizeof(*fh)...).

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: use preferred kernel types</title>
<updated>2015-10-25T02:08:20+00:00</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2015-10-21T15:50:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2aa9b96ff6b3bbeedf8e0a042e6f24f71775c58a'/>
<id>urn:sha1:2aa9b96ff6b3bbeedf8e0a042e6f24f71775c58a</id>
<content type='text'>
This patch makes use of the preferred kernel types such as u16, u32.

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: fix logical operator position</title>
<updated>2015-10-25T02:08:20+00:00</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2015-10-21T15:50:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=623d800252111942d357d8d8592d578d3783ff67'/>
<id>urn:sha1:623d800252111942d357d8d8592d578d3783ff67</id>
<content type='text'>
This patch puts logical continuations on the previous line to meet
coding style.

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: remove unnecessary parentheses</title>
<updated>2015-10-25T02:08:20+00:00</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2015-10-21T15:50:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=df8da2e3e400b2f4601bdba4ecd424c212fe7d5c'/>
<id>urn:sha1:df8da2e3e400b2f4601bdba4ecd424c212fe7d5c</id>
<content type='text'>
This patch simply removes unnecessary parentheses.

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: use blank line after declarations</title>
<updated>2015-10-25T02:08:16+00:00</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2015-10-21T15:50:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9cbe5aa65d5d4e90c8bb661d021b50131eb963c6'/>
<id>urn:sha1:9cbe5aa65d5d4e90c8bb661d021b50131eb963c6</id>
<content type='text'>
This patch fixes style violation regarding blank lines after
function/struct/union/enum declarations.

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
