Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp30612rdb; Mon, 22 Jan 2024 10:55:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2Iyj7igsuBznqDGAu29Gl7CCMHnJZ0bNz9PSOzt2C0l/ZBp9whnB5F0+gDf3fg7YMsdtg X-Received: by 2002:a05:6358:7f18:b0:175:7274:99c4 with SMTP id p24-20020a0563587f1800b00175727499c4mr4560701rwn.39.1705949703765; Mon, 22 Jan 2024 10:55:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705949703; cv=pass; d=google.com; s=arc-20160816; b=xr/g4+62mISxxmFt6lz1awrSKLmfpwIP6LIVdx0mgoSRRgNT/NxaDTcLQTmxy/dFJk FnAbm/QtQcVFaJXpxdQyGBWpp6c7XnHUs8u+9Zn0RCwAjH/b4BEV6n/Tj7bvjSGleHRZ 3/sjXS8uC+aW6Eo+R9FXa7bXzYEf6whMNvQh6ZYQXGCQy7Rt0ztJCj6lxAmuhRc10pCe gDO79JzY3HLcK8fgqgYE6mMt31RokD+EvXdt/eqvFAGB/zeVRKiEfPcQxHt7LqRqFgZU VZn4Np+7y225oEmygb/i9py9LpxUNeakPcxSMv31TRppzATwAhBBYoqsVyXd0SRjHqFb wOMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=QSWAH2h2yO14oAYqsgN1KrIEfgODNEl2dQs2ayTirC8=; fh=5psLO5nHIk1L7wgtK0PsbbILJF8wLpGeMDPcNprFBRk=; b=K1mtI+utFo0Bk1xTHeZJfomzlxKXsSqOMEQoraWwSO/faQjsJ3jOJeo8nPB8yBsd1j rZRD4nUN13T/HCP206+HNq94JhdDuJ+k1Fj8nf8z2wC7NRZ9wA5PPOy4js1gkU3HXWiU E9Zi0b+x9nHkBCq5uvCsYGA/A8af2AQQIpXujZWlvPwv2pRXGVFkr9swjL1nLfJ6UVK9 ZXZdPDoOu+pSlwAUpJHxV98IDcmxN/Gt4mkFkhT+Pb4hUBgzvOqWhyB8vp6Xbk4EQ9bn Hw7YmIYdo7QpLZQC1bh6O0HoFO9Bu/FyQiQcEwOAjALpISp29SdPnK39uuP0BLoVmwlk wkgw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=TfFR7Z4f; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-33872-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33872-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id n55-20020a056a000d7700b006db829d921fsi10546942pfv.95.2024.01.22.10.55.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 10:55:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33872-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=TfFR7Z4f; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-33872-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33872-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C68A7B30C99 for ; Mon, 22 Jan 2024 18:24:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7FE94EB51; Mon, 22 Jan 2024 17:52:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="TfFR7Z4f" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 4BE8F4EB39 for ; Mon, 22 Jan 2024 17:52:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705945928; cv=none; b=RiR/yOZ2ZGvgZZA7Uu+b4eIcint/P6HAKRX2VCvAFNGjww0pLKBzfMsSQG7GKGZJkH1qCyIxOhaFgmH0/khU2CkvT8GBN5cIKy9QV0xtExbpqe1UqSAM1+iBCKIi/v3E0smQgdV8Q5h+j0VoaOWbXeSWWAt2YlF+HWpbWu/ujCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705945928; c=relaxed/simple; bh=T/9atzQ+lsfJpVq4rVjcojR7wtS+meio7H0bTtXDqOU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=byBIRC/Xxo3ngGCtnQCJf9/hBHCc62nnodj9ZxXGo0ObxN+uw4FnokzaY2bvrqIOuRtnH58ewhDy5D1oRpUMZ/DBMiCJEILJVPHSXxjhDuAl/opwj0vjAsAoEVSvnBIRRGCAQXaXeHgQ6EcHJFFUPY5+qYwdJOlpscFtgnb7GVA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com; spf=pass smtp.mailfrom=sifive.com; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b=TfFR7Z4f; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6db9e52bbccso1830681b3a.3 for ; Mon, 22 Jan 2024 09:52:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1705945926; x=1706550726; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=QSWAH2h2yO14oAYqsgN1KrIEfgODNEl2dQs2ayTirC8=; b=TfFR7Z4fYlpu5q2DiVgOnOsIqfY32+MiEKA5ls0TSuLZr06E2ygTTLZxbdzsdSGsYA t0xgYevO7CXRBaMxzDR0wFTjlbcOqedWFQ7qtMG+m9FpBFa64x1wesH2x+d9TGP9VwqZ 1JRwqunQEdtHXzCuQjMxRLlVAa0UAdSYhib22ocBv0RAoqCKIuf2ElaBmssuJbv52/Rr AyTV12USZeMAhGiBbRrapm0vpQMrDGagWBnaVB6Z05R5PdymuhByi5AjZzS8f15CjNUI krMEquswNlXwqxIC0LxihcdrP5PlsCPtPFlGnG35SuE90HYTApklOr27jtv2EulX0rvu YByw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705945926; x=1706550726; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QSWAH2h2yO14oAYqsgN1KrIEfgODNEl2dQs2ayTirC8=; b=D4gZ0uuB/D7+UEA4CtQdw5Aya24YeG1m05KBzUatgq3PKc+91XSzO4+DQ7Ayhlkogx Fkig/elzlNEq6XqUJuOOc0o51RgyeG7HYtbOTadH6z2DwATu73D4a0YECOcomLqDoCBL oesaf50UKpTQFSAk8xVkqL7XxJrOH5JYPmaswgrOU1ybUypFClOj/mNCyOC/LmHjy4Kg W29Wgxaf1ZB+aRfrP/Xl+qVHZDylayPzMaUxaMWR1kdpPd+AXCBIt/P4b5uHDZWSpeIT FOyEUBvlF44bq0mxDwXFWp+mHfwJEIMf/J/NF6aaGQT/E6vyl/+7nB16zaB6xBQQf13i 7RFw== X-Gm-Message-State: AOJu0YxZcogbAgzWBkN5VScUeguJ0zjNxwK3GGyoHrmJln4MXKAKu44f xl+zpNJ4KWoB6wOKpGHa7aDbgBCpbHdaeiTrWlN6TRQ5anba+FKPxu14CNr7GFQ= X-Received: by 2002:a05:6a00:2d09:b0:6db:d1d8:2e68 with SMTP id fa9-20020a056a002d0900b006dbd1d82e68mr1924330pfb.14.1705945926479; Mon, 22 Jan 2024 09:52:06 -0800 (PST) Received: from sw06.internal.sifive.com ([4.53.31.132]) by smtp.gmail.com with ESMTPSA id x126-20020a626384000000b006dbd7e5bd1esm3232377pfb.52.2024.01.22.09.52.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:52:06 -0800 (PST) From: Samuel Holland To: Sami Tolvanen , Will Deacon , Andrew Morton Cc: linux-kernel@vger.kernel.org, Samuel Holland Subject: [PATCH] scs: add CONFIG_MMU dependency for vfree_atomic() Date: Mon, 22 Jan 2024 09:52:01 -0800 Message-ID: <20240122175204.2371009-1-samuel.holland@sifive.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The shadow call stack implementation fails to build without CONFIG_MMU: ld.lld: error: undefined symbol: vfree_atomic >>> referenced by scs.c >>> kernel/scs.o:(scs_free) in archive vmlinux.a Fixes: a2abe7cbd8fe ("scs: switch to vmapped shadow stacks") Signed-off-by: Samuel Holland --- arch/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/Kconfig b/arch/Kconfig index c91917b50873..a5af0edd3eb8 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -673,6 +673,7 @@ config SHADOW_CALL_STACK bool "Shadow Call Stack" depends on ARCH_SUPPORTS_SHADOW_CALL_STACK depends on DYNAMIC_FTRACE_WITH_ARGS || DYNAMIC_FTRACE_WITH_REGS || !FUNCTION_GRAPH_TRACER + depends on MMU help This option enables the compiler's Shadow Call Stack, which uses a shadow stack to protect function return addresses from -- 2.43.0