Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1717715lql; Wed, 13 Mar 2024 06:30:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXyleHILSTUGspdu5jxpq65ie0egro1i2m1EgLqX3rA5BN8vn/AN1isvybWNbctkUfBAG0jR+HvvgFjQgIwlaSUuQC+TeVn7XUS2VCwbw== X-Google-Smtp-Source: AGHT+IEza94nfdPzY0aWXlaSgLBiXgxekKu4YPuN5o4DGkdrx1ufqqRmXD1/0KqpKzpXzKdCJplz X-Received: by 2002:a17:902:ec8d:b0:1dd:a2d5:8e8a with SMTP id x13-20020a170902ec8d00b001dda2d58e8amr3770441plg.7.1710336640203; Wed, 13 Mar 2024 06:30:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710336640; cv=pass; d=google.com; s=arc-20160816; b=Kk0P4AVnA1qxFzuk+boKSFnjLDk0hJJrc9QVijPrdTW4i6iC3yCd/Gs3V3ox57RWZo Q3wn8D3YDqw+eA0CtiogYGcPhEWJ+Vcmbj+1AAnbxNSZd++zSS8fnBoE2eFAllZq1/j2 8ctqDgUSQOv7My1rbA0yUiUEIK5vlmdlNsU7Cvo3lUbvI5Ia5Zb9RqqbkviHuiWXKQRy hrFFsH8Shsxy6fsn4t2yHdOk/IVIsw+wyaVpdJqzQMw4fWhliMNbERAymyOEuXwe/CNe z6XsAnMPD7qk5XbSV78TIbR6E/uGJozIHSDD3aE4Hdb+wB4P5rdagqtJdrjm3+yLzjj9 7WIw== 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:date:message-id:subject :references:in-reply-to:cc:to:from; bh=5EU0is/ON/4CeDtqKzt10wa7I6FXShnvT6YlpgAXpFc=; fh=IR91BQ3BTLGB+0AI4Bc2xTyey5jdWHvJZTUP1W3El1o=; b=UmQGkRjDyWCeGglrUx8NFSaz5WA85RjfqzdbGpM10xkpelnyzeyORk4r/quxgSm3hN 4DCky1+SAH04AwGxmFIk8wcyYH/6xagSbaKkg+xuNCDhrrlJXStGG+5fyEQlg3MDZWGi GYm9xImvlN1fOG4vKkaTg3eEmTe46pKG+AivFC7TWnWWNBHihKsbhVzgO1vU+/4x+30p yaar7Z2rWLC+OFmAFERix0wQWWPj9ZR+0TD9gB1pMQMqEdpiRgHMBbuc0O8fB6cjI0U3 UVsHjXkTgU+tQj4451Go98uaqDXME1uu2SVhQ2IgzIpl5nT9WGTxYkFoR1r+5Q2pFzor f2Sg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-101531-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101531-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e11-20020a17090301cb00b001dd78f7e436si9252201plh.434.2024.03.13.06.30.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 06:30:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101531-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-101531-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101531-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 30E6EB21BB6 for ; Wed, 13 Mar 2024 13:28:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BA8B47F45; Wed, 13 Mar 2024 13:27:56 +0000 (UTC) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (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 AE650446B6 for ; Wed, 13 Mar 2024 13:27:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710336475; cv=none; b=cP5gIekcfR4bMVNA+nbcdaoqOOZ65fhUy/TZs6fMt1o7dEvJY2A4Fcl3AVLYVMDHMdvzPwPRMn0+hxFoAlHNjL8BzN0Utxp2uQHCiqJcCsQfrgrCxTfh4F3JLYGVv6B1jNITt1Bb/GzkN16zyTLYPHvh1sggnmvboxDTvgB9+B0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710336475; c=relaxed/simple; bh=VRJh0R+0013TbsoCeZulZdeuxp8wqDD5Jwio9im/E0c=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=kFK+6NJI5700keUmQCjZEjurcsOodFt4RAIdmiLbssxSWoxtZHN+iaNkEqtwbKu1rbFMRsLtD1af7qwv8lQpE9Mq1V/WrTClGJaG+P0Jfv4E4i2h8jn/U0jk0aVOyvFLBQbjYFkPQ5IzjDnZaKjabih5HN92MPB3gSrxuk2ZyeU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Tvrsz1SVFz4x1Y; Thu, 14 Mar 2024 00:27:51 +1100 (AEDT) From: Michael Ellerman To: Nicholas Piggin , Christophe Leroy Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org In-Reply-To: References: Subject: Re: [PATCH] powerpc/kprobes: Handle error returned by set_memory_rox() Message-Id: <171033598336.517247.65852176947279996.b4-ty@ellerman.id.au> Date: Thu, 14 Mar 2024 00:19:43 +1100 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: 7bit On Fri, 16 Feb 2024 11:13:28 +0100, Christophe Leroy wrote: > set_memory_rox() can fail. > > In case it fails, free allocated memory and return NULL. > > Applied to powerpc/next. [1/1] powerpc/kprobes: Handle error returned by set_memory_rox() https://git.kernel.org/powerpc/c/f7f18e30b468458b2611ca65d745b50edcda9f43 cheers