<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/s390/net, branch linux-3.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-05-13T11:59:42Z</updated>
<entry>
<title>s390/bpf,jit: initialize A register if 1st insn is BPF_S_LDX_B_MSH</title>
<updated>2014-05-13T11:59:42Z</updated>
<author>
<name>Martin Schwidefsky</name>
</author>
<published>2014-04-25T08:53:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6eed5b7500dc3754dc4d24f328f02bed118adb89'/>
<id>urn:sha1:6eed5b7500dc3754dc4d24f328f02bed118adb89</id>
<content type='text'>
commit 6e0de817594c61f3b392a9245deeb09609ec707d upstream.

The A register needs to be initialized to zero in the prolog if the
first instruction of the BPF program is BPF_S_LDX_B_MSH to prevent
leaking the content of %r5 to user space.

Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>s390/bpf,jit: fix 32 bit divisions, use unsigned divide instructions</title>
<updated>2014-02-06T19:08:16Z</updated>
<author>
<name>Heiko Carstens</name>
</author>
<published>2014-01-17T08:37:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f93f502e2d6a6acb36fbac0236e6088318c6d757'/>
<id>urn:sha1:f93f502e2d6a6acb36fbac0236e6088318c6d757</id>
<content type='text'>
[ Upstream commit 3af57f78c38131b7a66e2b01e06fdacae01992a3 ]

The s390 bpf jit compiler emits the signed divide instructions "dr" and "d"
for unsigned divisions.
This can cause problems: the dividend will be zero extended to a 64 bit value
and the divisor is the 32 bit signed value as specified A or X accumulator,
even though A and X are supposed to be treated as unsigned values.

The divide instrunctions will generate an exception if the result cannot be
expressed with a 32 bit signed value.
This is the case if e.g. the dividend is 0xffffffff and the divisor either 1
or also 0xffffffff (signed: -1).

To avoid all these issues simply use unsigned divide instructions.

Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bpf: do not use reciprocal divide</title>
<updated>2014-02-06T19:08:16Z</updated>
<author>
<name>Eric Dumazet</name>
</author>
<published>2014-01-15T14:50:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cd7361dc9fa60c35d011d674d48eababcc3eb767'/>
<id>urn:sha1:cd7361dc9fa60c35d011d674d48eababcc3eb767</id>
<content type='text'>
[ Upstream commit aee636c4809fa54848ff07a899b326eb1f9987a2 ]

At first Jakub Zawadzki noticed that some divisions by reciprocal_divide
were not correct. (off by one in some cases)
http://www.wireshark.org/~darkjames/reciprocal-buggy.c

He could also show this with BPF:
http://www.wireshark.org/~darkjames/set-and-dump-filter-k-bug.c

The reciprocal divide in linux kernel is not generic enough,
lets remove its use in BPF, as it is not worth the pain with
current cpus.

Signed-off-by: Eric Dumazet &lt;edumazet@google.com&gt;
Reported-by: Jakub Zawadzki &lt;darkjames-ws@darkjames.pl&gt;
Cc: Mircea Gherzan &lt;mgherzan@gmail.com&gt;
Cc: Daniel Borkmann &lt;dxchgb@gmail.com&gt;
Cc: Hannes Frederic Sowa &lt;hannes@stressinduktion.org&gt;
Cc: Matt Evans &lt;matt@ozlabs.org&gt;
Cc: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
Cc: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Cc: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>s390/bpf,jit: use kcalloc instead of kmalloc and memset</title>
<updated>2013-04-17T12:07:27Z</updated>
<author>
<name>Stelian Nirlu</name>
</author>
<published>2013-03-11T16:22:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d04fea5e7527e950b31542f27df5cb51ca581b4'/>
<id>urn:sha1:3d04fea5e7527e950b31542f27df5cb51ca581b4</id>
<content type='text'>
Signed-off-by: Stelian Nirlu &lt;steliannirlu@gmail.com&gt;
Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>s390/bpf,jit: add vlan tag support</title>
<updated>2013-02-14T14:55:20Z</updated>
<author>
<name>Heiko Carstens</name>
</author>
<published>2013-02-09T13:07:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5303a0fe8ce8c7493025a3b60a403439edb4159a'/>
<id>urn:sha1:5303a0fe8ce8c7493025a3b60a403439edb4159a</id>
<content type='text'>
s390 version of 855ddb56 "x86: bpf_jit_comp: add vlan tag support".

Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>s390/bpf,jit: add support for XOR instruction</title>
<updated>2012-12-03T15:44:05Z</updated>
<author>
<name>Heiko Carstens</name>
</author>
<published>2012-12-01T11:42:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=916908df244fe53cc81d560ebaa9e2d11f1cee43'/>
<id>urn:sha1:916908df244fe53cc81d560ebaa9e2d11f1cee43</id>
<content type='text'>
Add support for XOR instruction for use with X/K.

s390 JIT support for the new BPF_S_ALU_XOR_* instructions introduced
with 9e49e889 "filter: add XOR instruction for use with X/K".

Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>s390/bpf,jit: add support MOD instruction</title>
<updated>2012-12-03T15:44:02Z</updated>
<author>
<name>Heiko Carstens</name>
</author>
<published>2012-12-01T11:29:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3247274536729b6cc23208cc087e50fdef3de6ba'/>
<id>urn:sha1:3247274536729b6cc23208cc087e50fdef3de6ba</id>
<content type='text'>
Add support for MOD operation for s390's JIT.

Same as 280050cc "x86 bpf_jit: support MOD operation" for x86 which
adds JIT support for the generic new MOD operation introduced with
b6069a9570 "filter: add MOD operation".

Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>s390/bpf,jit: add support for BPF_S_ANC_ALU_XOR_X instruction</title>
<updated>2012-09-26T13:45:28Z</updated>
<author>
<name>Heiko Carstens</name>
</author>
<published>2012-09-24T06:31:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c59eed111bff70bbb8c85abc73374d4da0848c79'/>
<id>urn:sha1:c59eed111bff70bbb8c85abc73374d4da0848c79</id>
<content type='text'>
Add support for new BPF_S_ANC_ALU_XOR_X instruction which got added
with ffe06c17 "filter: add XOR operation".

s390 version of 4bfaddf1 "x86 bpf_jit: support BPF_S_ANC_ALU_XOR_X instruction".

Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>s390/bpf,jit: improve code generation</title>
<updated>2012-09-26T13:44:49Z</updated>
<author>
<name>Heiko Carstens</name>
</author>
<published>2012-08-28T13:36:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=68d9884dbc4215b6693c108eb35a02bd78f7956e'/>
<id>urn:sha1:68d9884dbc4215b6693c108eb35a02bd78f7956e</id>
<content type='text'>
Make use of new immediate instructions that came with the
extended immediate and general instruction extension facilities.

Reviewed-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>s390/bpf,jit: BPF Just In Time compiler for s390</title>
<updated>2012-09-26T13:44:49Z</updated>
<author>
<name>Martin Schwidefsky</name>
</author>
<published>2012-07-31T14:23:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c10302efe569bfd646b4c22df29577a4595b4580'/>
<id>urn:sha1:c10302efe569bfd646b4c22df29577a4595b4580</id>
<content type='text'>
The s390 implementation of the JIT compiler for packet filter speedup.

Reviewed-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
</feed>
