<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/net/batman-adv/routing.c, branch v3.4.97</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>batman-adv: fix skb-&gt;data assignment</title>
<updated>2012-07-16T16:04:11+00:00</updated>
<author>
<name>Antonio Quartulli</name>
<email>ordex@autistici.org</email>
</author>
<published>2012-06-19T09:26:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a7faba5c5263f9d8a31b3f542a0504552fa80932'/>
<id>a7faba5c5263f9d8a31b3f542a0504552fa80932</id>
<content type='text'>
commit 2c995ff892313009e336ecc8ec3411022f5b1c39 upstream.

skb_linearize(skb) possibly rearranges the skb internal data and then changes
the skb-&gt;data pointer value. For this reason any other pointer in the code that
was assigned skb-&gt;data before invoking skb_linearise(skb) must be re-assigned.

In the current tt_query message handling code this is not done and therefore, in
case of skb linearization, the pointer used to handle the packet header ends up
in pointing to free'd memory.

This bug was introduced by a73105b8d4c765d9ebfb664d0a66802127d8e4c7
(batman-adv: improved client announcement mechanism)

Signed-off-by: Antonio Quartulli &lt;ordex@autistici.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 2c995ff892313009e336ecc8ec3411022f5b1c39 upstream.

skb_linearize(skb) possibly rearranges the skb internal data and then changes
the skb-&gt;data pointer value. For this reason any other pointer in the code that
was assigned skb-&gt;data before invoking skb_linearise(skb) must be re-assigned.

In the current tt_query message handling code this is not done and therefore, in
case of skb linearization, the pointer used to handle the packet header ends up
in pointing to free'd memory.

This bug was introduced by a73105b8d4c765d9ebfb664d0a66802127d8e4c7
(batman-adv: improved client announcement mechanism)

Signed-off-by: Antonio Quartulli &lt;ordex@autistici.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>batman-adv: Use {} braces consistent on the arms of a statement</title>
<updated>2012-03-10T22:29:44+00:00</updated>
<author>
<name>Sven Eckelmann</name>
<email>sven@narfation.org</email>
</author>
<published>2012-03-07T08:07:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=96741ade15187bfde3dddc4092a88ba7a7c9183c'/>
<id>96741ade15187bfde3dddc4092a88ba7a7c9183c</id>
<content type='text'>
Signed-off-by: Sven Eckelmann &lt;sven@narfation.org&gt;
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Sven Eckelmann &lt;sven@narfation.org&gt;
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>batman-adv: Ignore 80-chars per line limits for strings</title>
<updated>2012-03-10T22:29:44+00:00</updated>
<author>
<name>Sven Eckelmann</name>
<email>sven@narfation.org</email>
</author>
<published>2012-03-07T08:07:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=86ceb360565d06fcee96be85c4bafe9264756eca'/>
<id>86ceb360565d06fcee96be85c4bafe9264756eca</id>
<content type='text'>
Signed-off-by: Sven Eckelmann &lt;sven@narfation.org&gt;
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Sven Eckelmann &lt;sven@narfation.org&gt;
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>batman-adv: Fix indentation of multiline statements</title>
<updated>2012-02-28T11:14:31+00:00</updated>
<author>
<name>Sven Eckelmann</name>
<email>sven@narfation.org</email>
</author>
<published>2012-02-28T09:55:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=7c64fd98ce512de6c6dae0452dc026446bd368d5'/>
<id>7c64fd98ce512de6c6dae0452dc026446bd368d5</id>
<content type='text'>
Signed-off-by: Sven Eckelmann &lt;sven@narfation.org&gt;
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Sven Eckelmann &lt;sven@narfation.org&gt;
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>batman-adv: Update copyright years</title>
<updated>2012-02-16T18:50:21+00:00</updated>
<author>
<name>Sven Eckelmann</name>
<email>sven@narfation.org</email>
</author>
<published>2011-12-31T23:41:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=567db7b0b7c0a94cc62846f8ebb429bdda2884bc'/>
<id>567db7b0b7c0a94cc62846f8ebb429bdda2884bc</id>
<content type='text'>
Signed-off-by: Sven Eckelmann &lt;sven@narfation.org&gt;
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Sven Eckelmann &lt;sven@narfation.org&gt;
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>batman-adv: convert time_after instances to has_timed_out</title>
<updated>2012-02-16T18:50:20+00:00</updated>
<author>
<name>Marek Lindner</name>
<email>lindner_marek@yahoo.de</email>
</author>
<published>2011-12-20T11:30:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=032b7969f8874d5ddc65691cd3d008beffd2a09e'/>
<id>032b7969f8874d5ddc65691cd3d008beffd2a09e</id>
<content type='text'>
To increase readability the has_timed_out() functions has been introduced.
This patch converts existing time_after() calls to use this wrapper
function (if applicable).
This patch also converts all timeouts to miliseconds to be consistent.

Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
Signed-off-by: Simon Wunderlich &lt;siwu@hrz.tu-chemnitz.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To increase readability the has_timed_out() functions has been introduced.
This patch converts existing time_after() calls to use this wrapper
function (if applicable).
This patch also converts all timeouts to miliseconds to be consistent.

Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
Signed-off-by: Simon Wunderlich &lt;siwu@hrz.tu-chemnitz.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>batman-adv: convert batman iv algorithm to use dynamic infrastructure</title>
<updated>2012-02-16T18:50:20+00:00</updated>
<author>
<name>Marek Lindner</name>
<email>lindner_marek@yahoo.de</email>
</author>
<published>2011-11-28T13:31:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=01c4224b51feba2ba64d070ab9f4aa32c9d0bb29'/>
<id>01c4224b51feba2ba64d070ab9f4aa32c9d0bb29</id>
<content type='text'>
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>batman-adv: simplify bat_ogm_receive API call</title>
<updated>2012-02-16T18:50:19+00:00</updated>
<author>
<name>Marek Lindner</name>
<email>lindner_marek@yahoo.de</email>
</author>
<published>2011-12-04T20:01:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8780dad9e97f564da0eb3443009c3203122e7e7d'/>
<id>8780dad9e97f564da0eb3443009c3203122e7e7d</id>
<content type='text'>
Most of the values in that call are derived from the skb, so we can hand
over the skb instead.

Reported-by: Simon Wunderlich &lt;siwu@hrz.tu-chemnitz.de&gt;
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Most of the values in that call are derived from the skb, so we can hand
over the skb instead.

Reported-by: Simon Wunderlich &lt;siwu@hrz.tu-chemnitz.de&gt;
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>batman-adv: Explicitly mark the common header structure</title>
<updated>2012-02-16T18:50:19+00:00</updated>
<author>
<name>Sven Eckelmann</name>
<email>sven@narfation.org</email>
</author>
<published>2011-11-20T14:47:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=76543d14aec6ce5cb3fc7be9b39c50fcebd2043b'/>
<id>76543d14aec6ce5cb3fc7be9b39c50fcebd2043b</id>
<content type='text'>
All batman-adv packets have a common 3 byte header. It can be used to share
some code between different code paths, but it was never explicit stated that
this header has to be always the same for all packets. Therefore, new code
changes always have the problem that they may accidently introduce regressions
by moving some elements around.

A new structure is introduced that contains the common header and makes it
easier visible that these 3 bytes have to be the same for all on-wire packets.

Signed-off-by: Sven Eckelmann &lt;sven@narfation.org&gt;
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All batman-adv packets have a common 3 byte header. It can be used to share
some code between different code paths, but it was never explicit stated that
this header has to be always the same for all packets. Therefore, new code
changes always have the problem that they may accidently introduce regressions
by moving some elements around.

A new structure is introduced that contains the common header and makes it
easier visible that these 3 bytes have to be the same for all on-wire packets.

Signed-off-by: Sven Eckelmann &lt;sven@narfation.org&gt;
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>batman-adv: format multi-line if in the correct way</title>
<updated>2011-12-06T18:45:59+00:00</updated>
<author>
<name>Antonio Quartulli</name>
<email>ordex@autistici.org</email>
</author>
<published>2011-12-02T16:38:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=69497c17c6ffc636e463d528c2f4c87e4d894964'/>
<id>69497c17c6ffc636e463d528c2f4c87e4d894964</id>
<content type='text'>
in an multi-line if statement leading edges should line up to the opening
parenthesis

Reported-by: David Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Antonio Quartulli &lt;ordex@autistici.org&gt;
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
in an multi-line if statement leading edges should line up to the opening
parenthesis

Reported-by: David Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Antonio Quartulli &lt;ordex@autistici.org&gt;
Signed-off-by: Marek Lindner &lt;lindner_marek@yahoo.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
