Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1841386lqg; Mon, 4 Mar 2024 05:42:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXRzXu/fw3p0zn1zqmKAoxK8RN1eOvwr1ME+dWwnCCDqBqpMmjxBje56An1pYt0LoraSFSuVx0+syHV6kMht/+g9274QKR6Zj7qRtSXKA== X-Google-Smtp-Source: AGHT+IEq/qcG9RBPD9cAYQURXMt+eRZ4PeSShrePI63kHjjUmZEywsn5rzPEiGIT2FU5dXycjbWM X-Received: by 2002:a05:622a:1495:b0:42e:ec73:e7a with SMTP id t21-20020a05622a149500b0042eec730e7amr4767242qtx.24.1709559759624; Mon, 04 Mar 2024 05:42:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709559759; cv=pass; d=google.com; s=arc-20160816; b=cNgPCJHYLjnSWg9sCGM8lBbYQfLe7XXtnT2eDUOnBVEfjgeLYOKQXNFo6YtC5zqo5L uVLO46J+awqlMqWozjgJPZKkgx3OJ6PNR4KFc0QCvQ97L8Rqk1k1Xr1gXtsM1aKKmavw ZhokORwK4ui6nE/WZ5Yz7nMPq46z5F4v/iXjYvFatcByM1r7kTsiQuLoBK4ZmRIAH6TH IsRDnYuj6Jn3CgOAaKWf+l18ZPc2EHLQYL+B1+W261V4iTstW8lSnUw0MGi5QJ2GYUUh ZieN3+RosKsr0FDzvvt395OmraXtNif95Z1lO8XQNBM+3+ojMkuZQisJZ3JmJdG5msv4 Ha3g== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=TzRDt8ebO+kpdIt+w2TKNqqtosdPmWQ5m18LKn100Q0=; fh=FcCbr33Lw0Ead9Bc7kFkZaUoZ/zrpUXwEs1+DahQt9M=; b=LGfGhGOhBClpo6da7snNnYECFE1947W3BhIppQ5r6E545XW72H4apkpT9HC+0Vvsjk IAEwcZ/BBQaVQSVvD0AOBX16olqNiSyp/wB0pVDAMMut1gQI56pJ6jjX1iq1bdhUjV7W F5ZkJgRJx1BRiqiLHXFSro9JQVBiRSxfW6ixxpAjvpiQY2PnTCjTFUBVSLe/tblaL5oA A6pX0ooP5WMmAE6T7sBPjl2jy3G5jVeK0mmxPHZ01mKSCIp4nzNKcUlAM8tgc92D1INu kYTUHoMzFVnFR3BLl2vc2dUSHc8y7rCGoLRNtfSxNnIFPYRIArAj95epdiLZkoJHBzc/ jWDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dROnP1oN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90672-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90672-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c15-20020ac87d8f000000b0042ef5bd4ab8si1381442qtd.661.2024.03.04.05.42.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 05:42:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90672-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dROnP1oN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90672-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90672-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 2100C1C23217 for ; Mon, 4 Mar 2024 13:42:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8AC53FB32; Mon, 4 Mar 2024 13:41:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dROnP1oN" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C6E33F8C8; Mon, 4 Mar 2024 13:41:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709559685; cv=none; b=QOctCK1gQMYqi2d6N/heMdvMyJMe/Y7cqA/Efx5c0Ob4AA9SVtNy/OT20EjmCpBSCHJNhEVhbkbkK52OcmNlsD9WCjbwfMTO05+AzbjENXcYrrIOIKHM2kqY+Rf2ZQwGuAgG5ZLsGpvseyUCxk9PUrt0VjwWfL5QsfJ9sCD3jSo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709559685; c=relaxed/simple; bh=4PKnYEG8L0X+Wp1CY0SR1GBVZMalfPoIaGfMeCCjp0k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Xc1rG5mI30+Bps8+Q0adXX3u0YOsCLYMls6AmhR/jLHcQbbzUczZ0kjisMA+IF1NXraKuQYaAcVWUaGqKlPMSKw+nx+Y63X+cK92MsOun4ckDUXlZkqPR93WihtMlSmRRDLEpftUSuBUvAYG/IoPwrBV7M3NVeq9sVI9GSUbSzk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dROnP1oN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9812DC43390; Mon, 4 Mar 2024 13:41:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709559684; bh=4PKnYEG8L0X+Wp1CY0SR1GBVZMalfPoIaGfMeCCjp0k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dROnP1oNY2n9RgCuft2wiRjW6gonTtpSIXpHyG0LJDDv6GR/NqTgsU9ZOz9fYo+Cf HcgSVCe5VNVcGBl0TsToeAxXX00xMMSHPEr9ty+0GiUckX5WaMIanuarfC17orVxlc Yv7RVjHdh1QACdLkY6ImAbX5ToStPduFoG7yw0RENoxv09fXVGoCttqWQ40GjgMVEM oYn1bMHrVnj7sT9C7ad51BqHSRNd6+FQeqE1KAhViirA+exzz+cB6fEwpgvrckzxft H/DTwkhH8E6JhoHV9WrnL2Tl5Q1o5kAMmSyDt5fpHSnwA8Z4lzfJeLkWbSrJXcXOmV 6WPfbkMBlr1cA== From: Will Deacon To: catalin.marinas@arm.com, nathan@kernel.org, mark.rutland@arm.com, broonie@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Puranjay Mohan Cc: kernel-team@android.com, Will Deacon Subject: Re: [PATCH] arm64: prohibit probing on arch_kunwind_consume_entry() Date: Mon, 4 Mar 2024 13:41:16 +0000 Message-Id: <170955720098.2136218.47711104039103934.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20240229231620.24846-1-puranjay12@gmail.com> References: <20240229231620.24846-1-puranjay12@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Thu, 29 Feb 2024 23:16:20 +0000, Puranjay Mohan wrote: > Make arch_kunwind_consume_entry() as __always_inline otherwise the > compiler might not inline it and allow attaching probes to it. > > Without this, just probing arch_kunwind_consume_entry() via > /kprobe_events will crash the kernel on arm64. > > The crash can be reproduced using the following compiler and kernel > combination: > clang version 19.0.0git (https://github.com/llvm/llvm-project.git d68d29516102252f6bf6dc23fb22cef144ca1cb3) > commit 87adedeba51a ("Merge tag 'net-6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net") > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: prohibit probing on arch_kunwind_consume_entry() https://git.kernel.org/arm64/c/2c79bd34af13 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev