public inbox for linux-sgx@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <oliver.sang@intel.com>
To: Thorsten Blum <thorsten.blum@linux.dev>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>,
	<linux-sgx@vger.kernel.org>, Jarkko Sakkinen <jarkko@kernel.org>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	"Ingo Molnar" <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	<x86@kernel.org>, "H. Peter Anvin" <hpa@zytor.com>,
	Thorsten Blum <thorsten.blum@linux.dev>,
	<linux-kernel@vger.kernel.org>, <oliver.sang@intel.com>
Subject: Re: [PATCH] x86/sgx: Replace kmalloc() + copy_from_user() with memdup_user()
Date: Sun, 21 Sep 2025 17:59:33 +0800	[thread overview]
Message-ID: <202509211747.1edb60f-lkp@intel.com> (raw)
In-Reply-To: <20250908201229.440105-2-thorsten.blum@linux.dev>



Hello,

kernel test robot noticed "kernel-selftests.sgx.test_sgx.enclave.tcs_entry.fail" on:

commit: c407010c166bcf30f9400bf0a4a4ec81c0149b81 ("[PATCH] x86/sgx: Replace kmalloc() + copy_from_user() with memdup_user()")
url: https://github.com/intel-lab-lkp/linux/commits/Thorsten-Blum/x86-sgx-Replace-kmalloc-copy_from_user-with-memdup_user/20250909-041627
base: https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git ed16618c380c32c68c06186d0ccbb0d5e0586e59
patch link: https://lore.kernel.org/all/20250908201229.440105-2-thorsten.blum@linux.dev/
patch subject: [PATCH] x86/sgx: Replace kmalloc() + copy_from_user() with memdup_user()

in testcase: kernel-selftests
version: kernel-selftests-x86_64-79e8447ec662-1_20250914
with following parameters:

	group: sgx



config: x86_64-rhel-9.4-kselftests
compiler: gcc-14
test machine: 16 threads 1 sockets Intel(R) Xeon(R) E-2278G CPU @ 3.40GHz (Coffee Lake-E) with 32G memory

(please refer to attached dmesg/kmsg for entire log/backtrace)



If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <oliver.sang@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202509211747.1edb60f-lkp@intel.com


besides, we also observed below tests failed on this commit while passing
without this patch.

=========================================================================================
tbox_group/testcase/rootfs/kconfig/compiler/group:
  lkp-cfl-e1/kernel-selftests/debian-13-x86_64-20250902.cgz/x86_64-rhel-9.4-kselftests/gcc-14/sgx

ed16618c380c32c6 c407010c166bcf30f9400bf0a4a
---------------- ---------------------------
       fail:runs  %reproduction    fail:runs
           |             |             |
           :6          100%           6:6     kernel-selftests.sgx.test_sgx.enclave.clobbered_vdso.fail
           :6          100%           6:6     kernel-selftests.sgx.test_sgx.enclave.clobbered_vdso_and_user_function.fail
           :6          100%           6:6     kernel-selftests.sgx.test_sgx.enclave.pte_permissions.fail
           :6          100%           6:6     kernel-selftests.sgx.test_sgx.enclave.tcs_entry.fail
           :6          100%           6:6     kernel-selftests.sgx.test_sgx.enclave.unclobbered_vdso.fail
           :6          100%           6:6     kernel-selftests.sgx.test_sgx.enclave.unclobbered_vdso_oversubscribed.fail
           :6          100%           6:6     kernel-selftests.sgx.test_sgx.fail



# #  RUN           enclave.tcs_entry ...
# SGX_IOC_ENCLAVE_CREATE failed: Input/output error
# # main.c:231:tcs_entry:0x0000000000000000 0x0000000000002000 0x03
# # main.c:231:tcs_entry:0x0000000000002000 0x0000000000002000 0x05
# # main.c:231:tcs_entry:0x0000000000004000 0x0000000000007000 0x03
# # main.c:231:tcs_entry:0x000000000000b000 0x0000000000001000 0x03
# # main.c:246:tcs_entry:Failed to initialize the test enclave.
# # main.c:578:tcs_entry:Expected 0 (0) != setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata) (0)
# # tcs_entry: Test terminated by assertion
# #          FAIL  enclave.tcs_entry
# not ok 6 enclave.tcs_entry



The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20250921/202509211747.1edb60f-lkp@intel.com



-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


  parent reply	other threads:[~2025-09-21  9:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-08 20:12 [PATCH] x86/sgx: Replace kmalloc() + copy_from_user() with memdup_user() Thorsten Blum
2025-09-10 17:12 ` Jarkko Sakkinen
2025-09-21  9:59 ` kernel test robot [this message]
2025-09-22 13:18   ` Thorsten Blum
2025-09-25 15:37     ` Dave Hansen

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=202509211747.1edb60f-lkp@intel.com \
    --to=oliver.sang@intel.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=jarkko@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sgx@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mingo@redhat.com \
    --cc=oe-lkp@lists.linux.dev \
    --cc=tglx@linutronix.de \
    --cc=thorsten.blum@linux.dev \
    --cc=x86@kernel.org \
    /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