From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kleber Souza Subject: s390x BPF JIT failures with test_bpf Date: Wed, 27 Jun 2018 11:40:23 +0200 Message-ID: <6a515d91-e831-e240-1ae6-ff0d6ead6cf2@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Alexei Starovoitov , Daniel Borkmann To: linux-s390@vger.kernel.org, netdev@vger.kernel.org Return-path: Received: from youngberry.canonical.com ([91.189.89.112]:55178 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753521AbeF0Jk1 (ORCPT ); Wed, 27 Jun 2018 05:40:27 -0400 Received: from mail-ed1-f70.google.com ([209.85.208.70]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1fY6w6-0004fk-6i for netdev@vger.kernel.org; Wed, 27 Jun 2018 09:40:26 +0000 Received: by mail-ed1-f70.google.com with SMTP id n11-v6so1108237edq.12 for ; Wed, 27 Jun 2018 02:40:26 -0700 (PDT) Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: Hi, When I load the test_bpf module from mainline (v4.18-rc2) with CONFIG_BPF_JIT_ALWAYS_ON=y on a s390x system I get the following errors: test_bpf: #289 BPF_MAXINSNS: Ctx heavy transformations FAIL to prog_create err=-524 len=4096 test_bpf: #290 BPF_MAXINSNS: Call heavy transformations FAIL to prog_create err=-524 len=4096 [...] test_bpf: #296 BPF_MAXINSNS: exec all MSH FAIL to prog_create err=-524 len=4096 test_bpf: #297 BPF_MAXINSNS: ld_abs+get_processor_id FAIL to prog_create err=-524 len=4096 >>From a quick look at the code it seems that arch/s390/net/bpf_jit_comp.c:bpf_int_jit_compile() is failing to JIT compile the test code. Are those failures expected and could be flagged with FLAG_EXPECTED_FAIL on lib/test_bpf.c or are those caused by some issue with the s390x JIT compiler that needs to be fixed? Thanks, Kleber