<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/linux/skbuff.h, branch linux-2.6.13.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.13.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.13.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2005-08-11T23:05:50Z</updated>
<entry>
<title>[NET]: Make skb-&gt;protocol __be16</title>
<updated>2005-08-11T23:05:50Z</updated>
<author>
<name>Alexey Dobriyan</name>
</author>
<published>2005-08-11T23:05:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a0d3bea3cf6c7c1b53a46432bd490b5dc784ca42'/>
<id>urn:sha1:a0d3bea3cf6c7c1b53a46432bd490b5dc784ca42</id>
<content type='text'>
There are many instances of

	skb-&gt;protocol = htons(ETH_P_*);
	skb-&gt;protocol = __constant_htons(ETH_P_*);
and
	skb-&gt;protocol = *_type_trans(...);

Most of *_type_trans() are already endian-annotated, so, let's shift
attention on other warnings.

Signed-off-by: Alexey Dobriyan &lt;adobriyan@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET]: Fix "nocast type" warnings in skbuff.h</title>
<updated>2005-07-18T20:36:38Z</updated>
<author>
<name>Victor Fusco</name>
</author>
<published>2005-07-18T20:36:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e2bf521d9728bfae9b6c3d484614e5962d0b5afd'/>
<id>urn:sha1:e2bf521d9728bfae9b6c3d484614e5962d0b5afd</id>
<content type='text'>
From: Victor Fusco &lt;victor@cetuc.puc-rio.br&gt;

Fix the sparse warning "implicit cast to nocast type"

Signed-off-by: Victor Fusco &lt;victor@cetuc.puc-rio.br&gt;
Signed-off-by: Domen Puncer &lt;domen@coderock.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET]: Fix sparse warnings</title>
<updated>2005-07-08T21:57:47Z</updated>
<author>
<name>Victor Fusco</name>
</author>
<published>2005-07-08T21:57:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=86a76caf8705e3524e15f343f3c4806939a06dc8'/>
<id>urn:sha1:86a76caf8705e3524e15f343f3c4806939a06dc8</id>
<content type='text'>
From: Victor Fusco &lt;victor@cetuc.puc-rio.br&gt;

Fix the sparse warning "implicit cast to nocast type"

Signed-off-by: Victor Fusco &lt;victor@cetuc.puc-rio.br&gt;
Signed-off-by: Domen Puncer &lt;domen@coderock.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET]: Reduce size of sk_buff by 4 bytes</title>
<updated>2005-07-05T21:13:41Z</updated>
<author>
<name>Thomas Graf</name>
</author>
<published>2005-07-05T21:13:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1cbb3380ef683f742876f48e3739b3df4ea9e168'/>
<id>urn:sha1:1cbb3380ef683f742876f48e3739b3df4ea9e168</id>
<content type='text'>
Reduce local_df to a bit field and ip_summed to a 2 bits
field thus saving 13 bits. Move bit fields, packet type,
and protocol into the spare area between the priority
and the destructor. Saves 4 bytes on both, 32bit and
64bit architectures.

Signed-off-by: Thomas Graf &lt;tgraf@suug.ch&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET]: Remove unused security member in sk_buff</title>
<updated>2005-07-05T21:12:44Z</updated>
<author>
<name>Thomas Graf</name>
</author>
<published>2005-07-05T21:12:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e176fe8954a5239c24afe79b1001ba3c29511963'/>
<id>urn:sha1:e176fe8954a5239c24afe79b1001ba3c29511963</id>
<content type='text'>
Signed-off-by: Thomas Graf &lt;tgraf@suug.ch&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET]: Fix signedness issues in net/core/filter.c</title>
<updated>2005-07-05T21:08:10Z</updated>
<author>
<name>Patrick McHardy</name>
</author>
<published>2005-07-05T21:08:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=55820ee2f8c767a2833b21bd365e5753f50bd8ce'/>
<id>urn:sha1:55820ee2f8c767a2833b21bd365e5753f50bd8ce</id>
<content type='text'>
This is the code to load packet data into a register:

                        k = fentry-&gt;k;
                        if (k &lt; 0) {
...
                        } else {
                                u32 _tmp, *p;
                                p = skb_header_pointer(skb, k, 4, &amp;_tmp);
                                if (p != NULL) {
                                        A = ntohl(*p);
                                        continue;
                                }
                        }

skb_header_pointer checks if the requested data is within the
linear area:

        int hlen = skb_headlen(skb);

        if (offset + len &lt;= hlen)
                return skb-&gt;data + offset;

When offset is within [INT_MAX-len+1..INT_MAX] the addition will
result in a negative number which is &lt;= hlen.

I couldn't trigger a crash on my AMD64 with 2GB of memory, but a
coworker tried on his x86 machine and it crashed immediately.

This patch fixes the check in skb_header_pointer to handle large
positive offsets similar to skb_copy_bits. Invalid data can still
be accessed using negative offsets (also similar to skb_copy_bits),
anyone using negative offsets needs to verify them himself.

Thanks to Thomas Vögtle &lt;thomas.voegtle@coreworks.de&gt; for verifying the
problem by crashing his machine and providing me with an Oops.

Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Acked-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET]: skb_find_text() - Find a text pattern in skb data</title>
<updated>2005-06-24T04:00:17Z</updated>
<author>
<name>Thomas Graf</name>
</author>
<published>2005-06-24T04:00:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3fc7e8a6d842f72d16d2623b1022814a635ab961'/>
<id>urn:sha1:3fc7e8a6d842f72d16d2623b1022814a635ab961</id>
<content type='text'>
Finds a pattern in the skb data according to the specified
textsearch configuration. Use textsearch_next() to retrieve
subsequent occurrences of the pattern. Returns the offset
to the first occurrence or UINT_MAX if no match was found.

Signed-off-by: Thomas Graf &lt;tgraf@suug.ch&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET]: Zerocopy sequential reading of skb data</title>
<updated>2005-06-24T03:59:51Z</updated>
<author>
<name>Thomas Graf</name>
</author>
<published>2005-06-24T03:59:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=677e90eda3bd8cfde0b748daaa46476162a03950'/>
<id>urn:sha1:677e90eda3bd8cfde0b748daaa46476162a03950</id>
<content type='text'>
Implements sequential reading for both linear and non-linear
skb data at zerocopy cost. The data is returned in chunks of
arbitary length, therefore random access is not possible.

Usage:
	from	 := 0
	to	 := 128
	state	 := undef
	data	 := undef
	len	 := undef
	consumed := 0

	skb_prepare_seq_read(skb, from, to, &amp;state)
	while (len = skb_seq_read(consumed, &amp;data, &amp;state)) != 0 do
		/* do something with 'data' of length 'len' */
		if abort then
			/* abort read if we don't wait for
			 * skb_seq_read() to return 0 */
			skb_abort_seq_read(&amp;state)
			return
		endif
		/* not necessary to consume all of 'len' */
		consumed += len
	done

Signed-off-by: Thomas Graf &lt;tgraf@suug.ch&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NETFILTER]: Kill nf_debug</title>
<updated>2005-06-21T21:01:57Z</updated>
<author>
<name>Patrick McHardy</name>
</author>
<published>2005-06-21T21:01:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=18b8afc771102b1b6af97962808291a7d27f52af'/>
<id>urn:sha1:18b8afc771102b1b6af97962808291a7d27f52af</id>
<content type='text'>
Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] DocBook: fix some descriptions</title>
<updated>2005-05-01T15:59:26Z</updated>
<author>
<name>Martin Waitz</name>
</author>
<published>2005-05-01T15:59:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=67be2dd1bace0ec7ce2dbc1bba3f8df3d7be597e'/>
<id>urn:sha1:67be2dd1bace0ec7ce2dbc1bba3f8df3d7be597e</id>
<content type='text'>
Some KernelDoc descriptions are updated to match the current code.
No code changes.

Signed-off-by: Martin Waitz &lt;tali@admingilde.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
