<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/net/hamradio, branch v4.4.171</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v4.4.171</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v4.4.171'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2018-08-24T11:26:55+00:00</updated>
<entry>
<title>net: hamradio: use eth_broadcast_addr</title>
<updated>2018-08-24T11:26:55+00:00</updated>
<author>
<name>Stefan Agner</name>
<email>stefan@agner.ch</email>
</author>
<published>2018-06-17T21:40:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e5bfd8e707375eaa67c775e69ded5b8f104a80db'/>
<id>urn:sha1:e5bfd8e707375eaa67c775e69ded5b8f104a80db</id>
<content type='text'>
[ Upstream commit 4e8439aa34802deab11cee68b0ecb18f887fb153 ]

The array bpq_eth_addr is only used to get the size of an
address, whereas the bcast_addr is used to set the broadcast
address. This leads to a warning when using clang:
drivers/net/hamradio/bpqether.c:94:13: warning: variable 'bpq_eth_addr' is not
      needed and will not be emitted [-Wunneeded-internal-declaration]
static char bpq_eth_addr[6];
            ^

Remove both variables and use the common eth_broadcast_addr
to set the broadcast address.

Signed-off-by: Stefan Agner &lt;stefan@agner.ch&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>hdlcdrv: Fix divide by zero in hdlcdrv_ioctl</title>
<updated>2018-04-13T17:50:14+00:00</updated>
<author>
<name>Firo Yang</name>
<email>firogm@gmail.com</email>
</author>
<published>2017-05-26T14:37:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b32436defcd0a531677700b93a3174619eb3f1e8'/>
<id>urn:sha1:b32436defcd0a531677700b93a3174619eb3f1e8</id>
<content type='text'>
[ Upstream commit fb3ce90b7d7761b6f7f28f0ff5c456ef6b5229a1 ]

syszkaller fuzzer triggered a divide by zero, when set calibration
through ioctl().

To fix it, test 'bitrate' if it is negative or 0, just return -EINVAL.

Reported-by: Andrey Konovalov &lt;andreyknvl@google.com&gt;
Signed-off-by: Firo Yang &lt;firogm@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>NET: mkiss: Fix panic</title>
<updated>2017-06-17T04:39:35+00:00</updated>
<author>
<name>Ralf Baechle</name>
<email>ralf@linux-mips.org</email>
</author>
<published>2017-05-24T01:53:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=aacf9de1e23910a04611f90f26ad66dc7a179343'/>
<id>urn:sha1:aacf9de1e23910a04611f90f26ad66dc7a179343</id>
<content type='text'>
[ Upstream commit 7ba1b689038726d34e3244c1ac9e2e18c2ea4787 ]

If a USB-to-serial adapter is unplugged, the driver re-initializes, with
dev-&gt;hard_header_len and dev-&gt;addr_len set to zero, instead of the correct
values.  If then a packet is sent through the half-dead interface, the
kernel will panic due to running out of headroom in the skb when pushing
for the AX.25 headers resulting in this panic:

[&lt;c0595468&gt;] (skb_panic) from [&lt;c0401f70&gt;] (skb_push+0x4c/0x50)
[&lt;c0401f70&gt;] (skb_push) from [&lt;bf0bdad4&gt;] (ax25_hard_header+0x34/0xf4 [ax25])
[&lt;bf0bdad4&gt;] (ax25_hard_header [ax25]) from [&lt;bf0d05d4&gt;] (ax_header+0x38/0x40 [mkiss])
[&lt;bf0d05d4&gt;] (ax_header [mkiss]) from [&lt;c041b584&gt;] (neigh_compat_output+0x8c/0xd8)
[&lt;c041b584&gt;] (neigh_compat_output) from [&lt;c043e7a8&gt;] (ip_finish_output+0x2a0/0x914)
[&lt;c043e7a8&gt;] (ip_finish_output) from [&lt;c043f948&gt;] (ip_output+0xd8/0xf0)
[&lt;c043f948&gt;] (ip_output) from [&lt;c043f04c&gt;] (ip_local_out_sk+0x44/0x48)

This patch makes mkiss behave like the 6pack driver. 6pack does not
panic.  In 6pack.c sp_setup() (same function name here) the values for
dev-&gt;hard_header_len and dev-&gt;addr_len are set to the same values as in
my mkiss patch.

[ralf@linux-mips.org: Massages original submission to conform to the usual
standards for patch submissions.]

Signed-off-by: Thomas Osterried &lt;thomas@osterried.de&gt;
Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@verizon.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mkiss: fix scribble on freed memory</title>
<updated>2016-01-06T20:06:27+00:00</updated>
<author>
<name>Alan</name>
<email>gnomes@lxorguk.ukuu.org.uk</email>
</author>
<published>2016-01-06T14:55:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=fde55c45d2175bd3e33aa28ee31e4ea6efa354e1'/>
<id>urn:sha1:fde55c45d2175bd3e33aa28ee31e4ea6efa354e1</id>
<content type='text'>
commit d79f16c046086f4fe0d42184a458e187464eb83e fixed a user triggerable
scribble on free memory but added a new one which allows the user to
scribble even more and user controlled data into freed space.

As with 6pack we need to halt the queue before we free the buffers, because
the transmit logic is not protected by the semaphore.

Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>6pack: fix free memory scribbles</title>
<updated>2016-01-06T06:25:01+00:00</updated>
<author>
<name>One Thousand Gnomes</name>
<email>gnomes@lxorguk.ukuu.org.uk</email>
</author>
<published>2016-01-05T11:51:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=60aa3b080a3d2b408af2ca114edb3efc84ad1838'/>
<id>urn:sha1:60aa3b080a3d2b408af2ca114edb3efc84ad1838</id>
<content type='text'>
commit acf673a3187edf72068ee2f92f4dc47d66baed47 fixed a user triggerable free
memory scribble but in doing so replaced it with a different one that allows
the user to control the data and scribble even more.

sixpack_close is called by the tty layer in tty context. The tty context is
protected by sp_get() and sp_put(). However network layer activity via
sp_xmit() is not protected this way. We must therefore stop the queue
otherwise the user gets to dump a buffer mostly of their choice into freed
kernel pages.

Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>mkiss: Fix use after free in mkiss_close().</title>
<updated>2015-12-18T21:03:03+00:00</updated>
<author>
<name>David Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2015-12-17T21:05:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d79f16c046086f4fe0d42184a458e187464eb83e'/>
<id>urn:sha1:d79f16c046086f4fe0d42184a458e187464eb83e</id>
<content type='text'>
Need to do the unregister_device() after all references to the driver
private have been done.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>6pack: Fix use after free in sixpack_close().</title>
<updated>2015-12-18T20:57:33+00:00</updated>
<author>
<name>David Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2015-12-17T21:05:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=acf673a3187edf72068ee2f92f4dc47d66baed47'/>
<id>urn:sha1:acf673a3187edf72068ee2f92f4dc47d66baed47</id>
<content type='text'>
Need to do the unregister_device() after all references to the driver
private have been done.

Also we need to use del_timer_sync() for the timers so that we don't
have any asynchronous references after the unregister.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Merge branch 'x86/urgent' into x86/asm to fix up conflicts and to pick up fixes</title>
<updated>2015-08-18T07:39:47+00:00</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@kernel.org</email>
</author>
<published>2015-08-18T07:39:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=a5dd19249607474ed680f16b4f5e8477d2b68689'/>
<id>urn:sha1:a5dd19249607474ed680f16b4f5e8477d2b68689</id>
<content type='text'>
Conflicts:
	arch/x86/entry/entry_64_compat.S
	arch/x86/math-emu/get_address.c

Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
</content>
</entry>
<entry>
<title>mkiss: Fix error handling in mkiss_open()</title>
<updated>2015-08-11T04:10:31+00:00</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@freescale.com</email>
</author>
<published>2015-08-10T17:22:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9d332d92a95c9c67abe08b5f7cba64d8fc1e3c76'/>
<id>urn:sha1:9d332d92a95c9c67abe08b5f7cba64d8fc1e3c76</id>
<content type='text'>
If register_netdev() fails we are not propagating the error and
we return success because ax_open() succeeded previously.

Fix this by checking the return value of ax_open() and
register_netdev() and propagate the error in case of failure.

Reported-by: RUC_Soft_Sec &lt;zy900702@163.com&gt;
Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Merge branch 'x86/urgent' into x86/asm, before applying dependent patches</title>
<updated>2015-07-31T08:23:35+00:00</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@kernel.org</email>
</author>
<published>2015-07-31T08:23:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5b929bd11df23922daf1be5d52731cc3900c1d79'/>
<id>urn:sha1:5b929bd11df23922daf1be5d52731cc3900c1d79</id>
<content type='text'>
Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
</content>
</entry>
</feed>
