<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/s390/net, branch linux-3.11.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.11.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.11.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2013-09-27T00:21:35Z</updated>
<entry>
<title>s390/bpf,jit: fix address randomization</title>
<updated>2013-09-27T00:21:35Z</updated>
<author>
<name>Heiko Carstens</name>
</author>
<published>2013-09-02T11:08:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ae797590117c1631e61af6d9c580c3ca2c397716'/>
<id>urn:sha1:ae797590117c1631e61af6d9c580c3ca2c397716</id>
<content type='text'>
commit 4784955a5270f30c569fa95899979fd1805caf6c upstream.

Add misssing braces to hole calculation. This resulted in an addition
instead of an substraction. Which in turn means that the jit compiler
could try to write out of bounds of the allocated piece of memory.

This bug was introduced with aa2d2c73 "s390/bpf,jit: address randomize
and write protect jit code".

Fixes this one:

[   37.320956] Unable to handle kernel pointer dereference at virtual kernel address 000003ff80231000
[   37.320984] Oops: 0011 [#1] PREEMPT SMP DEBUG_PAGEALLOC
[   37.320993] Modules linked in: dm_multipath scsi_dh eadm_sch dm_mod ctcm fsm autofs4
[   37.321007] CPU: 28 PID: 6443 Comm: multipathd Not tainted 3.10.9-61.x.20130829-s390xdefault #1
[   37.321011] task: 0000004ada778000 ti: 0000004ae3304000 task.ti: 0000004ae3304000
[   37.321014] Krnl PSW : 0704c00180000000 000000000012d1de (bpf_jit_compile+0x198e/0x23d0)
[   37.321022]            R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:3 CC:0 PM:0 EA:3
               Krnl GPRS: 000000004350207d 0000004a00000001 0000000000000007 000003ff80231002
[   37.321029]            0000000000000007 000003ff80230ffe 00000000a7740000 000003ff80230f76
[   37.321032]            000003ffffffffff 000003ff00000000 000003ff0000007d 000000000071e820
[   37.321035]            0000004adbe99950 000000000071ea18 0000004af3d9e7c0 0000004ae3307b80
[   37.321046] Krnl Code: 000000000012d1d0: 41305004            la      %r3,4(%r5)
                          000000000012d1d4: e330f0f80021        clg     %r3,248(%r15)
                         #000000000012d1da: a7240009            brc     2,12d1ec
                         &gt;000000000012d1de: 50805000            st      %r8,0(%r5)
                          000000000012d1e2: e330f0f00004        lg      %r3,240(%r15)
                          000000000012d1e8: 41303004            la      %r3,4(%r3)
                          000000000012d1ec: e380f0e00004        lg      %r8,224(%r15)
                          000000000012d1f2: e330f0f00024        stg     %r3,240(%r15)
[   37.321074] Call Trace:
[   37.321077] ([&lt;000000000012da78&gt;] bpf_jit_compile+0x2228/0x23d0)
[   37.321083]  [&lt;00000000006007c2&gt;] sk_attach_filter+0xfe/0x214
[   37.321090]  [&lt;00000000005d2d92&gt;] sock_setsockopt+0x926/0xbdc
[   37.321097]  [&lt;00000000005cbfb6&gt;] SyS_setsockopt+0x8a/0xe8
[   37.321101]  [&lt;00000000005ccaa8&gt;] SyS_socketcall+0x264/0x364
[   37.321106]  [&lt;0000000000713f1c&gt;] sysc_nr_ok+0x22/0x28
[   37.321113]  [&lt;000003fffce10ea8&gt;] 0x3fffce10ea8
[   37.321118] INFO: lockdep is turned off.
[   37.321121] Last Breaking-Event-Address:
[   37.321124]  [&lt;000000000012d192&gt;] bpf_jit_compile+0x1942/0x23d0
[   37.321132]
[   37.321135] Kernel panic - not syncing: Fatal exception: panic_on_oops

Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>s390/bpf,jit: add pkt_type support</title>
<updated>2013-07-18T10:44:38Z</updated>
<author>
<name>Heiko Carstens</name>
</author>
<published>2013-07-17T12:26:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c9a7afa380ecaeb0fbeec2e82f86ec5548ad2963'/>
<id>urn:sha1:c9a7afa380ecaeb0fbeec2e82f86ec5548ad2963</id>
<content type='text'>
s390 version of 3b58908a "x86: bpf_jit_comp: add pkt_type support".

Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>s390/bpf,jit: address randomize and write protect jit code</title>
<updated>2013-07-18T10:44:37Z</updated>
<author>
<name>Heiko Carstens</name>
</author>
<published>2013-07-16T11:25:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aa2d2c73c21f22ce4c643128b671aa7e7bbff54f'/>
<id>urn:sha1:aa2d2c73c21f22ce4c643128b671aa7e7bbff54f</id>
<content type='text'>
This is the s390 variant of 314beb9b "x86: bpf_jit_comp: secure bpf
jit against spraying attacks".
With this change the whole jit code and literal pool will be write
protected after creation. In addition the start address of the jit
code won't be always on a page boundary anymore.

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: use generic jit dumper</title>
<updated>2013-07-18T10:44:35Z</updated>
<author>
<name>Heiko Carstens</name>
</author>
<published>2013-07-16T08:36:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fee1b5488d76396d8f95989624d37f436b3fba44'/>
<id>urn:sha1:fee1b5488d76396d8f95989624d37f436b3fba44</id>
<content type='text'>
This is the s390 backend of 79617801 "filter: bpf_jit_comp: refactor
and unify BPF JIT image dump output".

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: call module_free() from any context</title>
<updated>2013-07-18T10:44:34Z</updated>
<author>
<name>Heiko Carstens</name>
</author>
<published>2013-07-16T08:24:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1eeb74782d354175ef9f3bff02fae62c6e0aef24'/>
<id>urn:sha1:1eeb74782d354175ef9f3bff02fae62c6e0aef24</id>
<content type='text'>
The workqueue workaround is no longer needed. Same as 5199dfe531
"sparc: bpf_jit_comp: can call module_free() from any context".

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: 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>
</feed>
