From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f38.google.com (mail-pj2-f38.google.com [74.125.227.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC32B345EA8 for ; Sat, 3 Oct 2026 22:40:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.166 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791067204; cv=none; b=QYtNwKY5YvguKfNgPzSYYbvFlosXAdsUpj4SfX4nEKi6xxJnB/0d91LRxXJeCW7Wz3eiFC9Zn3U8dF8cpqRqOuMqLDJZZ1kVlq920bAz2K47vCKHjgYr8Hc0CBSV/ntKAD4Bo8EpZe+rh57ytSLUoy7YPrEvmuTgUyahFjyfZrc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791067204; c=relaxed/simple; bh=t988az+IkSXq3gTpP/ixKIAHAGj79xMTyDNMRKS3/fg=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=BOzQYUnNFns0woOjXUHY367sqHzMGKhprDVbiNXosnIm5UKm8o2di7Nw/frbgXNG7Kb7qKN2TlCy3BvNUnC2TQM9jGvp9phd0366AerKESkCYTGxQYL2MBOnt8tJmxQ5bH2s/S86sVYwCCAZn8GzUONnyLwOqdTWOOF4VNHP6EQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VAmqYGRm; arc=none smtp.client-ip=74.125.227.166 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VAmqYGRm" Received: by mail-pj2-f38.google.com with SMTP id d9443c01a7336-2e2d9fdf798so1949145ad.0 for ; Sat, 03 Oct 2026 15:40:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791067203; x=1791672003; darn=vger.kernel.org; h=content-type:mime-version:user-agent:references:in-reply-to:subject :cc:to:from:message-id:date:from:to:cc:subject:date:message-id :reply-to:content-type; bh=n/oIu14jUGCFAHwNtKrIHGbo5GeSCHJZDG7wMHq45NE=; b=VAmqYGRmqqhtjpDWL7m1hwONxrM4QRr/xNPEcb3VkhR1x8T6pTJ7+Jg442kV+UW/IR XSLR9dXHVPZ5NdvLYwF03LvChP06O3Jz6bhQAYg86+tOjnAPXTWuNdxaYM2RmKOaTSf/ dYsOxkh8Qu9eLmwyrFir5drhmVol/l11N8hHwUltIpYiQW0omFPS00D12xdrGY0sAx3O O9zb5A/HnH3Em4HwbPeXBSBnucLzp2+hZkSuxfhSJQp8BWDfa2fXvRm+LNX0LTpnZMFp 6Xl14BZ3oRqiPnN7aTdRsMFiEyiAuXSdCwYmT6w9uLAOj8t/GZSK9XhZA4E66Y/uC/xJ hAXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791067203; x=1791672003; h=content-type:mime-version:user-agent:references:in-reply-to:subject :cc:to:from:message-id:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=n/oIu14jUGCFAHwNtKrIHGbo5GeSCHJZDG7wMHq45NE=; b=GI8rIzHyT/ytZBK3h/NJrzZom93QrSlL/fGZoF3ZeeI8B/myW5mvfr1re8HgJ/L5RK touSEjU2GdZyghb2wplLklRkOB2ZBbcgjlRAoUW752FsZ8o0RO41MgQwI9Gc5xrTe/Ep DSl6MKkgJbvrc54ub/4ZLqQhCWCs3v6JZVheHha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hg0MXcfG0ediNt1YqsUx25SA Upl1FgDBWGKE= X-Received: by 2002:a17:902:d506:b0:2df:84e0:9034 with SMTP id d9443c01a7336-2e49a7cdc18mr57178595ad.7.1791067203022; Sat, 03 Oct 2026 15:40:03 -0700 (PDT) Received: from mars.local.gmail.com (221x241x217x81.ap221.ftth.ucom.ne.jp. [221.241.217.81]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e49f7339desm19297455ad.81.2026.10.03.15.39.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Oct 2026 15:40:02 -0700 (PDT) Date: Sun, 04 Oct 2026 07:39:57 +0900 Message-ID: From: Hajime Tazaki To: david@kernel.org Cc: ljs@kernel.org, geert@linux-m68k.org, johannes@sipsolutions.net, linux-mm@kvack.org, liam@infradead.org, rbm@suse.com, akpm@linux-foundation.org, luto@amacapital.net, brendan.jackman@linux.dev, liuhangbin@gmail.com, corbet@lwn.net, kees@kernel.org, broonie@kernel.org, mhocko@suse.com, rppt@kernel.org, shuah@kernel.org, surenb@google.com, vbabka@kernel.org, wad@chromium.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-um@lists.infradead.org, daniel@thingy.jp Subject: Re: [PATCH v4 1/2] selftests: run tests on nommu architecture In-Reply-To: References: <20260929235711.2287931-1-thehajime@gmail.com> <20260929235711.2287931-2-thehajime@gmail.com> <94759bed23f00d2044005e36be6f72f297e092f0.camel@sipsolutions.net> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Hello, On Fri, 02 Oct 2026 21:21:53 +0900, David Hildenbrand (Arm) wrote: > > On 10/2/26 13:53, Lorenzo Stoakes (ARM) wrote: > > On Fri, Oct 02, 2026 at 01:38:31PM +0200, Geert Uytterhoeven wrote: > > > >> On Fri, 2 Oct 2026 at 10:10, Lorenzo Stoakes (ARM) wrote: > > > >>> But fork() -> -EINVAL or -ENOSYS = nommu, then just have the child quit and > >>> etc. should do it. > >> > >> fork() is not strictly an MMU-feature (you can implement fork on nommu > >> if all memory accesses are done relative to a base address register), > >> while I think mprotect() is an MMU-feature. Unless it can also be used > >> to change the protection using the one or two BARs most MCU haves? > >> Anything else that is a real MMU-feature? Non-identity mmap()? > > > > Does any nommu arch implement fork() in linux? > > I was about to say, that sounds a bit too theoretical for me. IIUC that is not > implemented, and if someone would propose it we would likely just nak it. > > In the unlikely event that this would see the light of day, we could always > change our detection in the selftests. thanks all for the inputs and review. I will try to implement the detection with /proc/meminfo. -- Hajime