From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f169.google.com (mail-il1-f169.google.com [209.85.166.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C7AB42AA9 for ; Thu, 13 Mar 2025 20:19:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741897150; cv=none; b=Aozc37MwI+sdii6y7/aEQ7X4ilJ6YsPhCszqKWN5nblkT7n/oVgDpfoM2TiYmFZW/fNn+21/tNZQFM8ffx3ydLX9D55bRloT1jWEzPPvWbSbZK9t3pdWwRsgE5qZBldU3iJdwvGVSkwRlmxs3puUzxzYeb/8mM6wOIk5C+AbmZ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741897150; c=relaxed/simple; bh=GwNXEPzVcYXJ1nmphyJMfGIxqNCqJjVL84gD7F2VovI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=X6EEAeDvhWrWvyM1c7BTubbfXqEXAsr1/Oh8psOQp9Jhoh+DIQoDBQYeWoN1GjNfT0GRZaU8jm8EaS5kjTh1O40bSoKrMzGVa8Ciw6RlRLyorFctTiBFzqjSAQf+i6PaZFIXgz6s4Facu68w9NXO4XVXgREBovFBuXdqNtYMZ0Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=grJ9HdPi; arc=none smtp.client-ip=209.85.166.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="grJ9HdPi" Received: by mail-il1-f169.google.com with SMTP id e9e14a558f8ab-3d03ac846a7so4817415ab.2 for ; Thu, 13 Mar 2025 13:19:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1741897147; x=1742501947; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=am1e3Yr0N9sJ7xnCyU39iPs0xuOYmSNADUSGEo4MjnQ=; b=grJ9HdPidBkpVJaMGcYkaPdnkYgqBBPoiTOj2LpVXuJ48La78EtB74KnK4SCU/5k+x yrgR8puuJghafDggQiWYA8/ig3zTbxMl5+hEa8ScDMIKI6stX3Fx6NBzwKIpf0znJPx/ 8jwIeCsKp4UFft4jh01vI/hMscLKm6+fkvyTQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741897147; x=1742501947; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=am1e3Yr0N9sJ7xnCyU39iPs0xuOYmSNADUSGEo4MjnQ=; b=w57hU5kotEcSblb2kw5m4+dpMxf798J5eajbE6cUCLiYtGY6Yy/67/wNp0pC38rU2h OxzBab3I1RnB6IzOxxdz8+e3PGKpo1kmz12GNhvEH5g9W6d8m8eStU91O9Ec3e5KfILY xu7p+if6/5kcmT9ESGRSFjywRxIXzeGo1rEFMnF/rHbDVibIoI6IJMuF59kKXnFPTtTR f0uxMq2Nn66otGo+UthJ1o4DABRiyB/KoEZZkhNBe0QLflkR6TnJXJ3iA9RTjTiZUYl4 faVbv28hUuQHze4mxDmq0agwLwJ5K+bpmxdIN7x5kB1hZWqorTWRmVbfuL/faC4RVI6J dMAw== X-Forwarded-Encrypted: i=1; AJvYcCWju6g4suLEoLl74QIpkfj/44bpqcK8Z+rdUXR8DPGWExXU+bIw9OYj61mLWKw8fE6O5H9wuosBE1/DIhU=@vger.kernel.org X-Gm-Message-State: AOJu0Yx2VTFW660V0MkVdylj/srzQZGFTNmusPzRrRW4i+XxBdkizgC8 JQcS+Kol3A+4u5di4gV0/o6Nn51/twd15pJGNMsHY+OZrNgblc0kGlcgbJ0rrVE= X-Gm-Gg: ASbGncuJppAXUjn0MC6N282gg3tiGP6S5q1Eqs9Qm0wOVTyJwW787vugz29i9yizAL/ x+viVe/AQOrKTleAgQmISvoCOtq/mjY9sexQVU4NaIJIAnEziAQ/7lNT7UlFpOYHWKxFXm1q8rB WuaKKhTq6oLvZJj3AWcSHYN/pvuJtWEQXv+9Nm4hjJYY6HazFYkFLZZ5Dmc94HS/8mslgSOI7Te IWNkWrn4/ydCWofNg220aZLAwOLAM1UfaeJCCILfUoAIEBxqS+6jEQhJEWEZrmuOjLTn1uUIedj bxukfLYWBPmUCoxOG6fQB6R/gU12icWxkr+Nb9i74cQ3gn0ykfZ5H8R/LosB9TFRBg== X-Google-Smtp-Source: AGHT+IGa/5eAuSmarcFKHqqOj2hcTd+7r+7qyTF/LSe7zhj2zp1QDtRJ6+rjw+eQw5dmnyJZFVG3Mg== X-Received: by 2002:a05:6e02:20e4:b0:3d3:fbae:3978 with SMTP id e9e14a558f8ab-3d4816fa3b5mr11336425ab.9.1741897147299; Thu, 13 Mar 2025 13:19:07 -0700 (PDT) Received: from [192.168.1.14] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4f2637274aasm527015173.64.2025.03.13.13.19.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Mar 2025 13:19:06 -0700 (PDT) Message-ID: <65050389-2b80-4355-be2e-604c1c5b6b9a@linuxfoundation.org> Date: Thu, 13 Mar 2025 14:19:06 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Error during --arch x86_64 kunit test run To: David Gow Cc: Brendan Higgins , Rae Moar , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <0842477c-6063-40f8-8e8e-b9ce98711f80@linuxfoundation.org> <5a1e11fb-4213-45f6-a5ef-636de5e175d8@linuxfoundation.org> Content-Language: en-US From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/12/25 20:21, David Gow wrote: > On Thu, 13 Mar 2025 at 07:51, Shuah Khan wrote: >> >> On 3/12/25 16:52, David Gow wrote: >>> Hi Shuah, >>> >>> On Thu, 13 Mar 2025 at 05:14, Shuah Khan wrote: >>>> >>>> David, Brendan, Rae, >>>> >>>> I am seeing the following error when I run >>>> >>>> ./tools/testing/kunit/kunit.py run --arch x86_64 >>>> >>>> ERROR:root:ld:arch/x86/realmode/rm/realmode.lds:236: undefined symbol `sev_es_trampoline_start' referenced in expression >>>> >>>> I isolated it to dependency on CONFIG_AMD_MEM_ENCRYPT >>>> >>> >>> That's interesting. I recall seeing this issue briefly about a year >>> ago on an internal branch, and we worked around it there by enabling >>> CONFIG_AMD_MEM_ENCRYPT (which worked). >>> >>> But I've been totally unable to reproduce it this morning: are you >>> seeing this on any particular branch / config / environment? >> >> linux_next - I did allmodconfig build prior to running the tests. >> That means I had to run make ARCH=x86_64 mrproper before running >> >> ./tools/testing/kunit/kunit.py run --arch x86_64 >> >> I tried something different checking out a fresh >> linux_next repo and running ./tools/testing/kunit/kunit.py run --arch x86_64 >> >> No errors on >> >> ./tools/testing/kunit/kunit.py run --arch x86_64 >> >> I will try this again and let you know. Can you try this as well. >> >> - Clean linux_next and run tests >> - Run tests after buidling allmodconfig and mrproper >> > > Thanks, Shuah. > > Alas, I've tried both on a clean linux-next (next-20250312), and after > doing an allmodconfig build (and make mrproper), and am still unable > to reproduce this here. > > I also dug up the old 5.10-based version we saw something similar on, > and wasn't able to reproduce it there, either. (That had been built > with clang, but using clang on upstream doesn't seem to reproduce it > either.) > > I'll continue to play around with different setups, but none of the > obvious things seem to work. Worst-case, I don't think it'd be a > _problem_ to make EFI + AMD_MEM_ENCRYPT the default for the > x86_64/qemu KUnit configuration. > I tried again starting with a clean linux_next repo next-20250313 - Ran tests first - Built allmodconfig - Ran mrproper - Ran tests Saw no problems. Let's watch and see if we can narrow the problem. For now I was able to test the pr I will be sending soon. thanks, -- Shuah