Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1964703rbb; Tue, 27 Feb 2024 06:49:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVXtV62b6b0DcWz0rRp056MK1K0Z3btJ9DoxRHvqmQ8F+Hfw5XOQ1x9oLr0ToUZ3CXibtk+EP+gPM5X+UxmkiZ2pvqyfMUt0bBZ32vx4A== X-Google-Smtp-Source: AGHT+IGlEabERgXiPbAvLktHLxwdAGkynmBOatjxMH6ZVqwslIEzWBumXHo/KMIoJFRensMMFYV5 X-Received: by 2002:a05:6358:16d4:b0:17b:5770:b456 with SMTP id r20-20020a05635816d400b0017b5770b456mr14303747rwl.25.1709045354829; Tue, 27 Feb 2024 06:49:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709045354; cv=pass; d=google.com; s=arc-20160816; b=Mhq0En0zmQG/fWvFn1FpjdByuhM4PlvK0IJnYEXRw5YhHnYCOEmU7a4RMLSOI0ypGY CbZTJlIXwPtJ+2hBDee4sqNofp3m3w2BoTpl4n17by+ZNTH8Jz6l3hdZGUP5Myi4BtP8 /3DmHI1Q7KvJABDqIhBk6bC+LSaodCjNGiNZiEGjOYPwaBzNSAAPrXMMIPYvlDx531wU /pJrdXFYaSLeJ2nsQMW/EBAdqRcNAtUo3DAdfX5rW4WTu0jxsO2+cG8mEKOZIrsDp6cS OPZ4HT2gEWEwPfiH1wpja5tdOct5ZqH398Dxly7ty4OpUdu+I/q1sF1rbahsMf4CAVtt AQMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=4zvuSq/XkoXhi5TeQwTOnJD7mEnJboMnxDYHdVbEzG0=; fh=F8ALxuGj759JlQ5Ta8RtyctE4fdjhZWrI8HLaYtDQN8=; b=TJLUuOBukKt+O7W5CFVf1tDG6v1pbxcOt2d7tBB/ExnBnoGW76ZndiPuHXTkIr+rtU GGtJhJD1n2jTRIxsSpKCwmfqKbAlkpmGyNCLfxPtijRSJEfi20YVx/34oD7dx7WjbMAn vu9jOSfrZ3bdpWCSW7jRqw4rGRDVnMZoppm4BSeqioLmFYO+xTI0I6iPgkJV2024s0QR uNgc9JUzk2We3Guz9PVsAaQzNJFVNIf1zWSwLKrnqqgqDqRZySO0bmJH8jLxRe9intKb AyBdZcqDg5QAHp15+ZGOsW7qFXG0Cy3fVY5HjxFsDcFsVnVQNLHCo8htxElRhyEqKML+ 120A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-83428-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83428-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j9-20020a37ef09000000b00787188f78afsi7434319qkk.383.2024.02.27.06.49.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 06:49:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83428-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-83428-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83428-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 871711C234EE for ; Tue, 27 Feb 2024 14:49:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11A371420D2; Tue, 27 Feb 2024 14:46:10 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BE68145FF5 for ; Tue, 27 Feb 2024 14:46:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709045169; cv=none; b=VFEIvnR6wt/xn8tBawkwZrkyLyxJJfh3U0RKJOasl1r9z/82xM09MqC+e4ixK7KhYQLWSxN4SMejVYbAYom/HvehWOymaJcIM+szn6tD5HJowy5l3b4Bp/xnJo1gkqLWR1K0LVSkuWz6RACJm+kjYReSMW4kvwSTgbarOSVaM0Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709045169; c=relaxed/simple; bh=rA2ouloplBahFw6aPm+M6eqJhkWBhN9/FNEMgW4HAUo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fqh1BcFwkK/XnG2Vs80v+ObmekuehaB69PM0GiH0Sbungt2tylpUc9FeO5E3eZKJ87w55GiA9EGkEj4LnrjQVSTz7eMsCAiKn52qZXtPRpI/9EqLIcp/VlB8YJUccVy6f/7p37WI2O3rZqMK6x9tZMs/FdABJ7O/nTPPXO8dwlI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2D979DA7; Tue, 27 Feb 2024 06:46:45 -0800 (PST) Received: from [10.1.196.72] (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 828063F762; Tue, 27 Feb 2024 06:46:05 -0800 (PST) Message-ID: <46b1d475-4542-4840-8685-6a3d2f9b5002@arm.com> Date: Tue, 27 Feb 2024 14:46:03 +0000 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: [PATCH] vdso/datapage: Quick fix - use asm/page-def.h for ARM64 Content-Language: en-US To: Anna-Maria Behnsen , linux-kernel@vger.kernel.org Cc: Andy Lutomirski , Thomas Gleixner , Arnd Bergmann , Kees Cook , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, Linux Kernel Functional Testing References: <20240226175023.56679-1-anna-maria@linutronix.de> From: Vincenzo Frascino In-Reply-To: <20240226175023.56679-1-anna-maria@linutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 26/02/2024 17:50, Anna-Maria Behnsen wrote: > The vdso rework for the generic union vdso_data_store broke compat VDSO on > arm64: > > In file included from arch/arm64/include/asm/lse.h:5, > from arch/arm64/include/asm/cmpxchg.h:14, > from arch/arm64/include/asm/atomic.h:16, > from include/linux/atomic.h:7, > from include/asm-generic/bitops/atomic.h:5, > from arch/arm64/include/asm/bitops.h:25, > from include/linux/bitops.h:68, > from arch/arm64/include/asm/memory.h:209, > from arch/arm64/include/asm/page.h:46, > from include/vdso/datapage.h:22, > from lib/vdso/gettimeofday.c:5, > from : > arch/arm64/include/asm/atomic_ll_sc.h:298:9: error: unknown type name 'u128' > 298 | u128 full; > | ^~~~ > arch/arm64/include/asm/atomic_ll_sc.h:305:24: error: unknown type name 'u128' > 305 | static __always_inline u128 > \ > | > > The reason is the include of asm/page.h which in turn includes headers > which are outside the scope of compat VDSO. The only reason for the > asm/page.h include is the required definition of PAGE_SIZE. But as arm64 > defines PAGE_SIZE in asm/page-def.h without extra header includes, this > could be used instead. > > Caution: this is a quick fix only! The final fix is an upcoming cleanup of > Arnd which consolidates PAGE_SIZE definition. After the cleanup, the > include of asm/page.h to access PAGE_SIZE is no longer required. > > Reported-by: Linux Kernel Functional Testing > Fixes: a0d2fcd62ac2 ("vdso/ARM: Make union vdso_data_store available for all architectures") > Link: https://lore.kernel.org/lkml/CA+G9fYtrXXm_KO9fNPz3XaRxHV7UD_yQp-TEuPQrNRHU+_0W_Q@mail.gmail.com/ > Signed-off-by: Anna-Maria Behnsen > --- > > Patch applies on tip/timers/core and was tested with clang-14 Waiting for Arnd's fix: Acked-by: Vincenzo Frascino