lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 3 Jan 2018 10:55:41 +0800
From:   kernel test robot <xiaolong.ye@...el.com>
To:     Roman Gushchin <guro@...com>
Cc:     "David S. Miller" <davem@...emloft.net>,
        Alexei Starovoitov <ast@...nel.org>, Tejun Heo <tj@...nel.org>,
        Daniel Borkmann <daniel@...earbox.net>,
        LKML <linux-kernel@...r.kernel.org>,
        Linus Torvalds <torvalds@...ux-foundation.org>, lkp@...org
Subject: [lkp-robot] [selftests/bpf]  37f1ba0909:
 kernel_selftests.bpf.test_dev_cgroup.fail


FYI, we noticed the following commit (built with gcc-7):

commit: 37f1ba0909dfa12c75f8e8ea7a2f01355ebd60f1 ("selftests/bpf: add a test for device cgroup controller")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

in testcase: kernel_selftests
with following parameters:


test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt


on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 4G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


[  135.799561] selftests: test_dev_cgroup
[  135.799565] 
[  135.801205] ========================================
[  135.801207] 
[  135.803217] libbpf: load bpf program failed: Permission denied
[  135.803219] 
[  135.804370] libbpf: -- BEGIN DUMP LOG ---
[  135.804372] 
[  135.804691] libbpf: 
[  135.804693] 
[  135.816864] 0: (61) r2 = *(u32 *)(r1 +4)
[  135.816868] 
[  135.817432] 1: (b7) r0 = 0
[  135.817434] 
[  135.818325] 2: (55) if r2 != 0x1 goto pc+8
[  135.818327] 
[  135.819430]  R0=inv0 R1=ctx(id=0,off=0,imm=0) R2=inv1 R10=fp0
[  135.819431] 
[  135.820084] 3: (69) r2 = *(u16 *)(r1 +0)
[  135.820086] 
[  135.820930] invalid bpf_context access off=0 size=2
[  135.820931] 
[  135.820954] 
[  135.821404] libbpf: -- END LOG --
[  135.821406] 
[  135.822386] libbpf: failed to load program 'cgroup/dev'
[  135.822387] 
[  135.838155] libbpf: failed to load object './dev_cgroup.o'
[  135.838158] 
[  135.857834] (/usr/src/linux-selftests-x86_64-rhel-7.2-37f1ba0909dfa12c75f8e8ea7a2f01355ebd60f1/tools/testing/selftests/bpf/cgroup_helpers.c:96: errno: No such file or directory) Opening Cgroup Procs: /mnt/cgroup.procs
[  135.857837] 
[  135.858656] Failed to load DEV_CGROUP program
[  135.858658] 
[  135.859701] not ok 1..9 selftests:  test_dev_cgroup [FAIL]




To reproduce:

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> job-script  # job-script is attached in this email



Thanks,
Xiaolong

View attachment "config-4.14.0-rc7-02175-g37f1ba09" of type "text/plain" (163550 bytes)

View attachment "job-script" of type "text/plain" (5429 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (34712 bytes)

View attachment "kernel_selftests" of type "text/plain" (234907 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ