Received: by 2002:a05:7412:a9a8:b0:f9:92ae:e617 with SMTP id o40csp125192rdh; Wed, 20 Dec 2023 19:00:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEEXutKoycush1QdV8ihrTpuY3qLGCOKadO4cDjxnlg8xocQzftuHTuDwHfbQv8yeA1tbj0 X-Received: by 2002:a17:906:74ca:b0:a23:56f7:131 with SMTP id z10-20020a17090674ca00b00a2356f70131mr81544ejl.104.1703127635754; Wed, 20 Dec 2023 19:00:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703127635; cv=none; d=google.com; s=arc-20160816; b=pRn3xyfNuzC7cwT4S3WSqE8ZtRz/mmz/ssyUyf6rdEi7OnSfEbUI7Et+qunjQwOlnE OF7MfG53FVNO7yRvA7IUr8jxO3yHAAvUs1m79QRsdQLQgfQ2HLDEU6wM3QdOZIGIiDLx oDnce/9CAFKRWrcrcDMnJRoBWObabhYSpskLZBVHsxM/UtbXij7Xa2Z7/pk4owRRI5Rn Ha1W7rxHZ0Ty5qdaFDxhJ4XQJ9ZYdgTB8ebzIlmTwMXwV3YZeZAU8yf6EvK94DWZx3S+ YUYOz5r+KtgoOpoB3N1BvNLZ+PlZWXz7hJ8prIVdffqwyqBZ+AienBbw4mWOQS7r29Vt UG5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=yMM70b1G02u0uTRwDuSUb9ZfUJ+8Ms5SbxKxel+LJTw=; fh=72mSMHOIbIGXTmURdtKw7VCniuGCUEyUH7fnkhg+O2c=; b=vZx66lpf94R8FUr5LlVwm0MPrrOf2pRYBV2NOYhIum3eW0/ueobq2IKm7UYRA1mzwX 2/UeFAJWrA9uAIOCmuAwaQBTgjeZig7aj2TybfXFi1l+zka3d+JFsqlfIMNocs22Rde4 G9a9w4fqgxh8KIyvw+3+132KgM8h53jCJYQm3q8b8+/2tXu5bHx2pGTAlVe3pMu0NUd6 wDbUjgQpXXlnSwwqNPV+KelChdaWEkgxP4bLXqgBm96fp/Dwnd5QDqiH0qDYTA4t6JU7 CBD3kpR0v1Zp3vYdyA87uS5cp65fPyTmsYU6dM5x8TABUNFa4ONMURbQp8mL0f6rANMb srWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lt9OOwBl; spf=pass (google.com: domain of linux-kernel+bounces-7769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id zz13-20020a170907350d00b00a235ba855f0si393350ejb.17.2023.12.20.19.00.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 19:00:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lt9OOwBl; spf=pass (google.com: domain of linux-kernel+bounces-7769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7769-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 81B9A1F2158C for ; Thu, 21 Dec 2023 03:00:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B786246BB; Thu, 21 Dec 2023 03:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lt9OOwBl" X-Original-To: linux-kernel@vger.kernel.org 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 D68D44404 for ; Thu, 21 Dec 2023 03:00:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 6582FC433C9; Thu, 21 Dec 2023 03:00:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703127624; bh=DlB1PsE5QvFJiR3jLnenmYmuaHLaOGUOCHYp8CiFS6E=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=lt9OOwBlmb6xtJ8woQBRH3zDl5C/1DAxRLGUgpfp2e4sxK1tlaZ8zwTD+8EDf46Tp YZRuXwDvg7+KylexDwGlDPeBWaTwAngOuoj7It/n2HMwInWmTHUXlmqI+OGQGOsOlY ARipeoBwTQ+85PkUfU2eBQqUFKWuced1HcI5vZ5ZFoCECdX60kOpO7Ju1cBNK3dvuC uyEB/vKskMMOEMsGC2jzpOmpwWd5f8PofK64t34yAz5Z+cOqwTAyAzckzsFkcCI3wo 84bQ6Lmd6x2zZc7zeiegn4487IrBj8Wlg4OMaZPeRWlBki9Eu/UQI7uiyQQJkBeuio 3dCr2XsR2+sZg== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 4E284C561EE; Thu, 21 Dec 2023 03:00:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH -fixes 0/2] Fix WX mappings in the linear mapping after module unloading From: patchwork-bot+linux-riscv@kernel.org Message-Id: <170312762431.27922.8717451486214293003.git-patchwork-notify@kernel.org> Date: Thu, 21 Dec 2023 03:00:24 +0000 References: <20231213134027.155327-1-alexghiti@rivosinc.com> In-Reply-To: <20231213134027.155327-1-alexghiti@rivosinc.com> To: Alexandre Ghiti Cc: linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, vincent.chen@sifive.com, zong.li@sifive.com, linux-kernel@vger.kernel.org Hello: This series was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Wed, 13 Dec 2023 14:40:25 +0100 you wrote: > I fell onto a bunch of WX mappings in the linear mapping after a module > gets unloaded, this is because our module_alloc() does not set the > VM_FLUSH_RESET_PERMS flag (patch 1) and that > set_direct_map_default_noflush() must clean the X bit (patch 2). > > Note that the Fixes tags are correct but patch 2 will fail to apply > since a change in this function just landed in 6.7. > > [...] Here is the summary with links: - [-fixes,1/2] riscv: Fix module_alloc() that did not reset the linear mapping permissions https://git.kernel.org/riscv/c/2f748fa7b60a - [-fixes,2/2] riscv: Fix set_direct_map_default_noflush() to reset _PAGE_EXEC https://git.kernel.org/riscv/c/3b5c14361d61 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html