Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp144090rbe; Wed, 28 Feb 2024 15:17:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWdT6+PIB6gfI0NC0o5YnFA/79qG5wN82OM0fFD0NvugQIuWJ3h9W+IIVN1Z/l9rqfiL1FLd4iHkBhR+it2zuDWp4HoaXvsJaJ9W+H7Iw== X-Google-Smtp-Source: AGHT+IEbKd3h/oXTRJCpT2mAE7Pik+8/5WSyw/PU4WmVHnEXtnSjW7kEbSf5Ybqr347R6HzmkfA6 X-Received: by 2002:a17:90b:2888:b0:29a:9dca:e85d with SMTP id qc8-20020a17090b288800b0029a9dcae85dmr542965pjb.41.1709162258769; Wed, 28 Feb 2024 15:17:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709162258; cv=pass; d=google.com; s=arc-20160816; b=DrNfeH+jl8D+xxdidH0gWzXTYgN8jWGIT9j+9cxInKUdUXT7HAF1njthB516ZWSz6F yDFT8gXM/Obs+7n3L//vEPHV25gqWaHtYRkX2hX0HbiSE78uAgGE1UOhNZeAn2iXrDwe 7svemKaPLYdV31FqGwj7hX0VN/2ZPEIY/jMjgfC6ZQTbJSssh5iH3EUmphhTTJzV6nXj z1qmOp+iDECkbjLDqQE0Ze6HNg09LDGK8rLxEOWUHmRbSqbQoZ5aLHW4iai8RDTdcQ9f kc0FF4kGtcO37msD2JummcP/IN0oBkdD6XIaRqsSggSlcCL4ur57OYcT7rZR+EL5bkux jlgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=ZL/XInIJt5Cjmb6tbB31oFlzL2jGhkTDoNVbNzl3oks=; fh=3yk+xISonzEl8cVAv2+uVuNFbygQqY4/5O+zpig1iSQ=; b=qLOvMiP3oBPTfaHMkyoTA1Eb/w+ZVZxF/kQAJSpKsS6/ftpsQ0Tw3+CVzknWC/NCgZ KyztD7Tc9NPTotAaZYCdMWHpGxWlgAq/0tMZtWafCGx53cuW6ePcQkiLbVtQjC4w1W65 Y1vQ9FtvbQxpLMXnA9YPcfSY1n86SsZ+ANI39wYE6BXJpSljWLEdaE4bNXm4WZwC/KnW zTYu4866Fn6ShYJofzJ0mcL57XzVRgBp6e37sP6VoYlM7/nz584PRHgj3f79DeGQ2wDR ML9+aO6CDoIlIcba3SCG3XkazPPHnx81/lvcYm3eoX65dcSQBMglmNTObkp7CKD/DFml GWyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=nezoDe1j; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-85838-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85838-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x22-20020a17090a789600b0029953fe5ffdsi2141672pjk.91.2024.02.28.15.17.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 15:17:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85838-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=nezoDe1j; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-85838-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85838-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 77A5A282361 for ; Wed, 28 Feb 2024 23:17:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2A0B13D307; Wed, 28 Feb 2024 23:17:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="nezoDe1j" 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 784FF13D2F2; Wed, 28 Feb 2024 23:17:24 +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=1709162251; cv=none; b=Y0qS3Q6Vc0rr52R+rZYYIwfBzRB0+q6votoaSbZmHnzS7RUFZsLotKxdtkCLY+CDP134Llm1K48lREXQnQ2WYx/uisx0ycGRkkutZh9ccHwxOrmg1Gn687vVyEXlj4J9HJR1Q5NjG1YYp5xAdH8lsexbtjwiRfTScV+Y2T48bn8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709162251; c=relaxed/simple; bh=r60eb2e8alPRaEUcbAn6sqeiAkSCW7JPQkjwOYrrwdo=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=SKP6BJReWO7ibQne2hpv6nDvD2AtE1e36wQdZXuxLlmJOBhQ9SOeWj3dL3a0YIOOyhGdnpnWGDyVsAjcDqvnN6+UiepupCZee7LFCuInfqg8r06Zkd9iK+B6Rj6o/ZS+0XphjdiK9ASGsl8cdnUCPQfcimcluLbS+yoYqvtHYJI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au; spf=pass smtp.mailfrom=canb.auug.org.au; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b=nezoDe1j; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1709162243; bh=ZL/XInIJt5Cjmb6tbB31oFlzL2jGhkTDoNVbNzl3oks=; h=Date:From:To:Cc:Subject:From; b=nezoDe1jULxhYuf/bJjayZMTPtC1mFWM7SV034TzbFm3Ff62W3foLUTH7eoaNXQnk P/cqOCSpeqs643DM1yST2mEJRfzSg/i+NPaBL9ZnpDAcy8idn700KkVYnytS+lsrpl x/yFS/OzbnwCvUW3sDiUi3xPgZQh3HPw/1AygzxOkBtnufVGsXZxuEW6hWN9B4PeO7 U1YXGAWwrBAqIXj5t0ulMsoJ/bUCzg/PyGt2PeT6tA7DsphcIfIA2TrVKNJGGFWhbD Se4r4ju1LbngVhi3oS8lP1RycJr9GSRlPpwxejmRSeXPEvl8UWNxNIbVMMW1VlWgeC pF7OLkwQXZP6w== 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 4TlVcf6Gvyz4wb2; Thu, 29 Feb 2024 10:17:22 +1100 (AEDT) Date: Thu, 29 Feb 2024 10:17:21 +1100 From: Stephen Rothwell To: Michael Ellerman , PowerPC , Andrew Morton Cc: Christophe Leroy , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: manual merge of the powerpc tree with the mm-stable tree Message-ID: <20240229101721.58569685@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/4n4pHsN37n9IgpmeL1C=ccq"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/4n4pHsN37n9IgpmeL1C=ccq Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the powerpc tree got a conflict in: arch/powerpc/mm/pgtable_32.c between commit: a5e8131a0329 ("arm64, powerpc, riscv, s390, x86: ptdump: refactor CONFIG_= DEBUG_WX") from the mm-stable tree and commit: 8f17bd2f4196 ("powerpc: Handle error in mark_rodata_ro() and mark_initmem= _nx()") from the powerpc tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. --=20 Cheers, Stephen Rothwell diff --cc arch/powerpc/mm/pgtable_32.c index 12498017da8e,4be97b4a44f9..000000000000 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c @@@ -164,21 -174,17 +174,14 @@@ static int __mark_rodata_ro(void numpages =3D PFN_UP((unsigned long)__end_rodata) - PFN_DOWN((unsigned long)_stext); =20 - set_memory_ro((unsigned long)_stext, numpages); + return set_memory_ro((unsigned long)_stext, numpages); + } +=20 + void mark_rodata_ro(void) + { + int err =3D __mark_rodata_ro(); +=20 + if (err) + panic("%s() failed, err =3D %d\n", __func__, err); - - // mark_initmem_nx() should have already run by now - ptdump_check_wx(); } #endif -=20 - #if defined(CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC) && defined(CONFIG_DEBUG= _PAGEALLOC) - void __kernel_map_pages(struct page *page, int numpages, int enable) - { - unsigned long addr =3D (unsigned long)page_address(page); -=20 - if (PageHighMem(page)) - return; -=20 - if (enable) - set_memory_p(addr, numpages); - else - set_memory_np(addr, numpages); - } - #endif /* CONFIG_DEBUG_PAGEALLOC */ --Sig_/4n4pHsN37n9IgpmeL1C=ccq Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmXfvwEACgkQAVBC80lX 0GzdyQf/ZXxsTunyeE9hpoU8sNgMv+YWuJxIkdQX4wdxWcuybexme3bw4kj0rZXd RUBTfzmZTW5+KV18MvN9pBzsnIYrfEhGDGItzZQzlElVGmsPevvkAOvKTyvKP1oK KYDLqqtNYEWX+s0T8svodh+Tfxwp1zanWycAGStmzdZbnffSzV4cMeWRAKRuW9lR +ujWWGXO4WKdIkS0X97BvGadKnu/BCvIQIPjOsS7HLWdl5XHPpVOTP0KkZIzewTW 7igbDgq0075biqdcvuLWDdFfNUTr3Qbx1DydOvtVVv7Zk2IJRzTQ2K6feYgPSjs1 c5Tt4xpnk8QJOrm6dAlfjN9fmks7Sg== =k40I -----END PGP SIGNATURE----- --Sig_/4n4pHsN37n9IgpmeL1C=ccq--