public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
From: Ma Xinjian <max.xinjian@intel.com>
To: Andrey Ignatov <rdna@fb.com>
Cc: "open list:KERNEL SELFTEST FRAMEWORK" 
	<linux-kselftest@vger.kernel.org>,
	"bpf@vger.kernel.org" <bpf@vger.kernel.org>,
	Philip Li <philip.li@intel.com>
Subject: bpf: test_sysctl run failed on Debian9
Date: Thu, 23 Apr 2020 17:11:57 +0800	[thread overview]
Message-ID: <079fd1a6-fd66-e997-9c03-6529489aad54@intel.com> (raw)
In-Reply-To: <cc5c7dcb-02ab-3ea5-2330-7678abeb43b4@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1039 bytes --]

Hi,  Andrey.

I noticed you add test_sysctl to tools/bpf, so drop this problem to you.

When I run selftests: bpf: test_sysctl, failed with 
"(test_sysctl.c:1490: errno: Permission denied) >>> Loading program 
(./test_sysctl_prog.o) error."


Testing env: "Debian GNU/Linux 9 (stretch)"

kernel: 5.7.0-rc2    5.7.0-rc1  5.6  both failed


Whole run log and kconfig please see the attatchment.

Error info

```

root@vm-snb-42 
/usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-ae83d0b416db002fe95601e7f97f64b59514d936/tools/testing/selftests/bpf# 
./test_sysctl

Test case: sysctl wrong attach_type .. [PASS]
Test case: sysctl:read allow all .. [PASS]
Test case: sysctl:read deny all .. [PASS]

[snip]

libbpf: -- END LOG --
libbpf: failed to load program 'cgroup/sysctl'
libbpf: failed to load object './test_sysctl_prog.o'
(test_sysctl.c:1490: errno: Permission denied) >>> Loading program 
(./test_sysctl_prog.o) error.

Test case: C prog: read tcp_mem .. [FAIL]
Summary: 37 PASSED, 3 FAILED

```

-- 
Best Regards.
Ma Xinjian



[-- Attachment #2: bpf_test_sysctl_log.gz --]
[-- Type: application/gzip, Size: 2761 bytes --]

[-- Attachment #3: kconfig.gz --]
[-- Type: application/gzip, Size: 49062 bytes --]

       reply	other threads:[~2020-04-23  9:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cc5c7dcb-02ab-3ea5-2330-7678abeb43b4@intel.com>
2020-04-23  9:11 ` Ma Xinjian [this message]
2020-04-23 21:31   ` bpf: test_sysctl run failed on Debian9 Andrey Ignatov
2020-04-26  8:04     ` Ma Xinjian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=079fd1a6-fd66-e997-9c03-6529489aad54@intel.com \
    --to=max.xinjian@intel.com \
    --cc=bpf@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=philip.li@intel.com \
    --cc=rdna@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox