<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/s390/net, branch linux-3.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.19.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.19.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2015-01-15T10:10:41Z</updated>
<entry>
<title>s390/bpf: Zero extend parameters before calling C function</title>
<updated>2015-01-15T10:10:41Z</updated>
<author>
<name>Michael Holzheu</name>
</author>
<published>2015-01-15T09:23:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fe82bbae36943fbead5e326aab1665d001a87dd7'/>
<id>urn:sha1:fe82bbae36943fbead5e326aab1665d001a87dd7</id>
<content type='text'>
The s390x ABI requires to zero extend parameters before functions
are called.

Signed-off-by: Michael Holzheu &lt;holzheu@linux.vnet.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>s390/bpf: Fix sk_load_byte_msh()</title>
<updated>2015-01-15T10:10:37Z</updated>
<author>
<name>Michael Holzheu</name>
</author>
<published>2015-01-15T09:21:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1a92b2deaf5c1b71f995ef571076200a391aac66'/>
<id>urn:sha1:1a92b2deaf5c1b71f995ef571076200a391aac66</id>
<content type='text'>
In sk_load_byte_msh() sk_load_byte_slow() is called instead of
sk_load_byte_msh_slow(). Fix this and call the correct function.

Besides of this load only one byte instead of two and fix the comment.

Signed-off-by: Michael Holzheu &lt;holzheu@linux.vnet.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>s390/bpf: Fix offset parameter for skb_copy_bits()</title>
<updated>2015-01-15T10:10:33Z</updated>
<author>
<name>Michael Holzheu</name>
</author>
<published>2015-01-15T09:21:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d86eb7448e6de97b1319ea935f77b65590dbc049'/>
<id>urn:sha1:d86eb7448e6de97b1319ea935f77b65590dbc049</id>
<content type='text'>
Currently the offset parameter for skb_copy_bits is changed in
sk_load_word() and sk_load_half(). Therefore it is not correct when
calling skb_copy_bits(). Fix this and use the original offset
for the function call.

Signed-off-by: Michael Holzheu &lt;holzheu@linux.vnet.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>s390/bpf: Fix skb_copy_bits() parameter passing</title>
<updated>2015-01-15T10:10:29Z</updated>
<author>
<name>Michael Holzheu</name>
</author>
<published>2015-01-15T09:20:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=db9aa8f432b83b270686e68172c6d2895babdc26'/>
<id>urn:sha1:db9aa8f432b83b270686e68172c6d2895babdc26</id>
<content type='text'>
The skb_copy_bits() function has the following signature:
int skb_copy_bits(const struct sk_buff *skb, int offset, void *to, int len)

Currently in bpf_jit.S the "to" and "len" parameters have been
exchanged. So fix this and call the function with the correct
parameters.

Signed-off-by: Michael Holzheu &lt;holzheu@linux.vnet.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>s390/bpf: Fix JMP_JGE_K (A &gt;= K) and JMP_JGT_K (A &gt; K)</title>
<updated>2015-01-15T07:17:42Z</updated>
<author>
<name>Michael Holzheu</name>
</author>
<published>2015-01-14T10:25:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5a80244246d503df688341a10e1d244d15bb8ce5'/>
<id>urn:sha1:5a80244246d503df688341a10e1d244d15bb8ce5</id>
<content type='text'>
Currently the signed COMPARE HALFWORD IMMEDIATE (chi) and COMPARE (c)
instructions are used to compare "A" with "K". This is not correct
because "A" and "K" are both unsigned. To fix this remove the
chi instruction (no unsigned analogon available) and use the
unsigned COMPARE LOGICAL (cl) instruction instead of COMPARE (c).

Signed-off-by: Michael Holzheu &lt;holzheu@linux.vnet.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>s390/bpf: Fix JMP_JGE_X (A &gt; X) and JMP_JGT_X (A &gt;= X)</title>
<updated>2015-01-09T09:10:32Z</updated>
<author>
<name>Michael Holzheu</name>
</author>
<published>2015-01-08T13:46:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ae750974591bb9431b1f84b1323dc2fb7d8fe360'/>
<id>urn:sha1:ae750974591bb9431b1f84b1323dc2fb7d8fe360</id>
<content type='text'>
Currently the signed COMPARE (cr) instruction is used to compare "A"
with "X". This is not correct because "A" and "X" are both unsigned.
To fix this use the unsigned COMPARE LOGICAL (clr) instruction instead.

Signed-off-by: Michael Holzheu &lt;holzheu@linux.vnet.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>s390/bpf: Fix ALU_NEG (A = -A)</title>
<updated>2015-01-09T09:10:30Z</updated>
<author>
<name>Michael Holzheu</name>
</author>
<published>2015-01-08T13:36:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=df3eed3d282f2fe1ffb73d3545fcde4e9b80a0d3'/>
<id>urn:sha1:df3eed3d282f2fe1ffb73d3545fcde4e9b80a0d3</id>
<content type='text'>
Currently the LOAD NEGATIVE (lnr) instruction is used for ALU_NEG. This
instruction always loads the negative value. Therefore, if A is already
negative, it remains unchanged. To fix this use LOAD COMPLEMENT (lcr)
instead.

Signed-off-by: Michael Holzheu &lt;holzheu@linux.vnet.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>net: filter: constify detection of pkt_type_offset</title>
<updated>2014-09-13T21:07:21Z</updated>
<author>
<name>Hannes Frederic Sowa</name>
</author>
<published>2014-09-12T12:04:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=233577a22089facf5271ab5e845b2262047c971f'/>
<id>urn:sha1:233577a22089facf5271ab5e845b2262047c971f</id>
<content type='text'>
Currently we have 2 pkt_type_offset functions doing the same thing and
spread across the architecture files. Remove those and replace them
with a PKT_TYPE_OFFSET macro helper which gets the constant value from a
zero sized sk_buff member right in front of the bitfield with offsetof.
This new offset marker does not change size of struct sk_buff.

Cc: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Cc: Markos Chandras &lt;markos.chandras@imgtec.com&gt;
Cc: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
Cc: Daniel Borkmann &lt;dborkman@redhat.com&gt;
Cc: Alexei Starovoitov &lt;alexei.starovoitov@gmail.com&gt;
Signed-off-by: Denis Kirjanov &lt;kda@linux-powerpc.org&gt;
Signed-off-by: Hannes Frederic Sowa &lt;hannes@stressinduktion.org&gt;
Acked-by: Alexei Starovoitov &lt;ast@plumgrid.com&gt;
Acked-by: Daniel Borkmann &lt;dborkman@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: bpf: be friendly to kmemcheck</title>
<updated>2014-09-09T23:58:56Z</updated>
<author>
<name>Daniel Borkmann</name>
</author>
<published>2014-09-08T06:04:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=286aad3c4014ca825c447e07e24f8929e6d266d2'/>
<id>urn:sha1:286aad3c4014ca825c447e07e24f8929e6d266d2</id>
<content type='text'>
Reported by Mikulas Patocka, kmemcheck currently barks out a
false positive since we don't have special kmemcheck annotation
for bitfields used in bpf_prog structure.

We currently have jited:1, len:31 and thus when accessing len
while CONFIG_KMEMCHECK enabled, kmemcheck throws a warning that
we're reading uninitialized memory.

As we don't need the whole bit universe for pages member, we
can just split it to u16 and use a bool flag for jited instead
of a bitfield.

Signed-off-by: Mikulas Patocka &lt;mpatocka@redhat.com&gt;
Signed-off-by: Daniel Borkmann &lt;dborkman@redhat.com&gt;
Acked-by: Alexei Starovoitov &lt;ast@plumgrid.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: bpf: consolidate JIT binary allocator</title>
<updated>2014-09-09T23:58:56Z</updated>
<author>
<name>Daniel Borkmann</name>
</author>
<published>2014-09-08T06:04:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=738cbe72adc5c8f2016c4c68aa5162631d4f27e1'/>
<id>urn:sha1:738cbe72adc5c8f2016c4c68aa5162631d4f27e1</id>
<content type='text'>
Introduced in commit 314beb9bcabf ("x86: bpf_jit_comp: secure bpf jit
against spraying attacks") and later on replicated in aa2d2c73c21f
("s390/bpf,jit: address randomize and write protect jit code") for
s390 architecture, write protection for BPF JIT images got added and
a random start address of the JIT code, so that it's not on a page
boundary anymore.

Since both use a very similar allocator for the BPF binary header,
we can consolidate this code into the BPF core as it's mostly JIT
independant anyway.

This will also allow for future archs that support DEBUG_SET_MODULE_RONX
to just reuse instead of reimplementing it.

JIT tested on x86_64 and s390x with BPF test suite.

Signed-off-by: Daniel Borkmann &lt;dborkman@redhat.com&gt;
Acked-by: Alexei Starovoitov &lt;ast@plumgrid.com&gt;
Cc: Eric Dumazet &lt;edumazet@google.com&gt;
Cc: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Cc: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
