From patchwork Wed Jun 19 08:30:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 13703527 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9F4FDC2BA15 for ; Wed, 19 Jun 2024 08:31:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=U9QUnjG9G5UAVjU0gtzSEBrTZfmLXC0Hy4EAITPEAdY=; b=mrvRMbQ2gqATbyyx6dHYpFhQVL hNack/fjxbrTS6vAoNfzfdocJdqasI3z6ro2UIJsdsZ5SYNEyWCl3pgC1e3OkrqP/2B1LTh7NBMQw IEiQQh7t1cu4jxiSPVpuLiTlHAa3PILAYQR4uGuuL9AhAkUB/FzoFKGGvldcHKv9ScFk3wB9sJQ+w +5f8bX56oOuQdlL9Fm29NOgA4SUV5lNmjZ074kv3rKopjzagRT8PKaUcWDz0PWy/5W7V/3HFO8mX4 sT0DkCRSlO/YEjeepSH3MiGiIXnM1b79EcatWLobnszs1kZ18ugHVHsj5v51POX+HGgf84/FYr0gE EzIWVYcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJqig-00000000O7h-3yas; Wed, 19 Jun 2024 08:31:06 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJqie-00000000O57-09rA for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2024 08:31:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718785862; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=U9QUnjG9G5UAVjU0gtzSEBrTZfmLXC0Hy4EAITPEAdY=; b=EZ5wUwMi7OMB4rfELjs1mGWiuMY9WxqjPwQPO8XiuhMTp87zk//0A26Ugtp3WQDCJl1aWj iHauLmYlqQD579juIUvGQclCw5B3a7SFzIX7dOOeAt13aYIftidgOReiRtuiAZMrVIHDH5 Z9cjVrQ2p6mcZQWZZMrfJQi4neDoMB8= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-568-wRvPVBIrP-WRoSpt4Irbig-1; Wed, 19 Jun 2024 04:31:00 -0400 X-MC-Unique: wRvPVBIrP-WRoSpt4Irbig-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-363edbfc61dso67096f8f.1 for ; Wed, 19 Jun 2024 01:31:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718785859; x=1719390659; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=U9QUnjG9G5UAVjU0gtzSEBrTZfmLXC0Hy4EAITPEAdY=; b=HVj5Wupa12rdw6pSZupSesqV9hhSmYrWAT+hRlbSkJDUavCnEWrrD2X2jSF8BAXrQz C7LHDbjdfnOsKDYHWO2JiBTPof6tdsjBCAfK/so6rnucQY3gd65bpGdE18KKHlyxoyyU WUy3cvyjjuP+uIiHjXRqbYX6+RPC+qPBdqlJ7N95bpMxZUrJTZmWbQbAIShg8fpWk4xv zPp5FCvaBlJf79VSj9oWlmIlkMhORxXBYJxGuAfX9Gzj0HNbfdx96CiUR+42cd+G0MUv 8QqpxqPsPebTN3YHLTPdJdYd0tnaTfMn9J+eeYxFKijDH3devsOnOODmeqLquBq1pi/k GyEw== X-Forwarded-Encrypted: i=1; AJvYcCXYZ7qtN4eXi/HhxMmZAdjouvKiIuGRJk55SfmcEvPCEsTs3l/fyXJk1cqeAar01TFGJ4LpcqLfHOa+cTkR5+gSc5CWcSHYu/RRdW5tN+iXarycfKA= X-Gm-Message-State: AOJu0YxlJ32FsLiDrr6goaCmgJspVzsUWig6TLfB47+lf0L8rdphsrJK byHHfT4vibBM0Kmw0eT8BMK87/IHKwBdoUd1ZLVGSy2jt8wxtupyAPt9ZVxNBAeh6eGGbE3zySo cwA6xvQejgJYCsQzfTp6VO+5Rvk1LhAc3TgiJ7XVvtMKfTdnaabJjlnzPg546Q9op0KEX+gQtxY NhmeYx X-Received: by 2002:adf:f105:0:b0:362:2e9b:f113 with SMTP id ffacd0b85a97d-363176ada3bmr1609331f8f.21.1718785858879; Wed, 19 Jun 2024 01:30:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnRrCGvxkMPYQbJQL0bXRi/dcUVT+Rae1i6FGFpXKKzd5uOtKaQ9t9fQSBjF60Ds5H9qdNcQ== X-Received: by 2002:adf:f105:0:b0:362:2e9b:f113 with SMTP id ffacd0b85a97d-363176ada3bmr1609313f8f.21.1718785858354; Wed, 19 Jun 2024 01:30:58 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3609d31433dsm5202215f8f.5.2024.06.19.01.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 01:30:58 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Brian Masney , linux-arm-kernel@lists.infradead.org, Maxime Ripard , Javier Martinez Canillas , Andrew Morton , linux-mm@kvack.org Subject: [PATCH] mm/Kconfig: Mention arm64 in DEFAULT_MMAP_MIN_ADDR symbol help text Date: Wed, 19 Jun 2024 10:30:38 +0200 Message-ID: <20240619083047.114613-1-javierm@redhat.com> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_013104_202678_3662CBCE X-CRM114-Status: GOOD ( 15.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Currently ppc64 and x86 are mentioned as architectures where a 65536 value is reasonable but arm64 isn't listed and it is also a 64-bit architecture. The help text says that for "arm" the value should be no higher than 32768 but it's only talking about 32-bit ARM. Adding arm64 to the above list can make this more clear and avoid confusing users who may think that the 32k limit would also apply to 64-bit ARM. Signed-off-by: Javier Martinez Canillas --- mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index b4cb45255a54..f7de1e3d6c5f 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -714,7 +714,7 @@ config DEFAULT_MMAP_MIN_ADDR from userspace allocation. Keeping a user from writing to low pages can help reduce the impact of kernel NULL pointer bugs. - For most ppc64 and x86 users with lots of address space + For most arm64, ppc64 and x86 users with lots of address space a value of 65536 is reasonable and should cause no problems. On arm and other archs it should not be higher than 32768. Programs which use vm86 functionality or have some need to map