Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1490009lqp; Fri, 22 Mar 2024 17:46:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXUVYWZyO97LZ4JVHmf7WxlZ7LXsNZP4MUFB27ir0S6sXyH6vqX9A0J0HPUzTaMbBOv4tU+Z9243w/qXayC+OuPToyKoOhJs5Kvbfo0xQ== X-Google-Smtp-Source: AGHT+IHVgslYOPYN+etH6j5nf6pLGE91tjA55QsAnmHq0aE6zNHq43fQD/UnscacXQ7NGK1Z/KeN X-Received: by 2002:a17:907:7710:b0:a46:bfe2:521f with SMTP id kw16-20020a170907771000b00a46bfe2521fmr921349ejc.24.1711154808409; Fri, 22 Mar 2024 17:46:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711154808; cv=pass; d=google.com; s=arc-20160816; b=frFVJHC7ZnK5NWmVSmKzCmlA15PARMdf8hgTNPD9LWLXgMDUacP6PrmcjYX1hoyP9Y OF2MO6RIjxLZ5O9WYVHJOdfq84b+9IpoO1J0NxRIbbFofPU5MneMYXh/osS1nA5zPtsB oFDAfYiQSGzKVdd1MUHRY7EJUG6CgwpwIad58WcuIRp2Qwd0HQNbFq0JWFeY9pR/ZpM6 34iwuayMnQL59OIbettNr8keavUil5Wi1ZP1QNbfCQwuA0UZ6Qv85eKSf2yZbqBhgAFo 6fRlQz6AIIrWnRia192ADrT1a1zdXCYzncF2022lvZb9njjAuk81yTBwR2nqsGtq5vpY Xvtg== 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=7IG2+v/3nnsY1O7wFgyQD7BnxeyxJgnu0QBJMyAepag=; fh=0BsUE9oNOgSdNjeMMQMyMS0KI0s6U/RZQwQRo67O+N4=; b=vLdeumqHxmZIKQGC0M3lHdVSaZQXYcma1w4zdCSEi676xcg6gV4BTVDHeSwVt2+i3M NUS1KD0CYYRvdMtAPTjkDhl0RohdfnMLdQ0G2lcdIfPbP3tV8FAsA06Awie42SBSqai5 7nP2VcDvzrZxgj8vm/PB9Z/AR9Jq0e+oVjTxP1N2L+Z5e+jyPDjSyLh9TrzvAtiUsUez Sfe7yXLcnKDjm3Z6yvNErZmX83uzvx4832fMhmOo3szKJY2ijXkeRpPNCsS/qbmLrJAA W5fOQmCrZ6d7r15aSqWaLnzElxRisvvbqU7y9MeqUyNSkQSYPS5Gv1GpQFD6xg2J+WzV mKMA==; 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-112147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112147-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n22-20020a170906379600b00a4731bb1586si319342ejc.628.2024.03.22.17.46.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 17:46:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-112147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112147-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1B8BD1F22BF9 for ; Sat, 23 Mar 2024 00:46:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3318410F1; Sat, 23 Mar 2024 00:46:38 +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 765B23211 for ; Sat, 23 Mar 2024 00:46:35 +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=1711154797; cv=none; b=UXjFgwm+hN6Bw522yMD5yjPEe+kKQOwAHMHVL/nq/DO96CHUe5rJaG07YjUb+EZbry7CeiWrB++Y07YtD3fG7nwOFtLUvbtBYYLE9+a/Off8Gu16e5oZPrAi+K1R10FTnLcwGhdJxaeLVwsw09nyuYtQ7LXcIZBGGRvNxE8A8DY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711154797; c=relaxed/simple; bh=xD4+laVQvCkPOG3yzzH2yCCbiBOFUt/MY9ihzz7uQzs=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=R+bcNRwSUAMA1ByXDH4J3Nxx/YlJo/4BW1QziuopfNqWOrXlgu6svWj9PcKiGhGobeRTV1ewBVKpSrOwZxUSE29OkpElbDAeVPoUsyjJpa7KTYmrwy039rU4aB5Mt08+JjPobLeF61A3M3+4KWR4/PQs0LbKNT5t0K5c0gGVwi4= 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 4V1gVx0P0Fz4wyl; Sat, 23 Mar 2024 11:46:33 +1100 (AEDT) From: Michael Ellerman To: Michael Ellerman , Nicholas Piggin , Christophe Leroy Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org In-Reply-To: References: Subject: Re: [PATCH v2] powerpc: Handle error in mark_rodata_ro() and mark_initmem_nx() Message-Id: <171115475788.936455.13882639894804019812.b4-ty@ellerman.id.au> Date: Sat, 23 Mar 2024 11:45:57 +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 Sat, 16 Mar 2024 12:18:21 +0100, Christophe Leroy wrote: > mark_rodata_ro() and mark_initmem_nx() use functions that can > fail like set_memory_nx() and set_memory_ro(), leading to a not > protected kernel. > > In case of failure, panic. > > > [...] Applied to powerpc/next. [1/1] powerpc: Handle error in mark_rodata_ro() and mark_initmem_nx() https://git.kernel.org/powerpc/c/78cb0945f7141961781f815168f6873ad2b7ed29 cheers