Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1428755rdd; Wed, 10 Jan 2024 21:12:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlVet1PcjbjLqmUoESHFRDmKHLA8W0u04O6NVqpXBx8PSn0tg3p4ZxGv3acgmzi8Z+Rqr2 X-Received: by 2002:a05:6a00:3cd6:b0:6db:564:7b2f with SMTP id ln22-20020a056a003cd600b006db05647b2fmr908268pfb.65.1704949952073; Wed, 10 Jan 2024 21:12:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704949952; cv=none; d=google.com; s=arc-20160816; b=lyuqJq87/A3hoe1Lt7VH40fL/cG/XoeIKy0BLQYBtH9qa34590s9FnmDwwaNpGNNPz ZEZ48ql6FxNbOYPfPuU/40s9/tPZzijJ7XwZlpUJe2LZPIbEopYim12TgLg5tdqFdXKc fyUvHAl/8C3Lx7HBH/Bu+LwKuMTlFNQDLtF87K+SPvNawr6pdJfs98JcvZ63b9UxqSN1 H0m+spWYWxRHrxC63nSQM/2bkDg3qVm2/ejZvK/M+iIGT/6V561F7YbtybFiWqr7z+lF hbYrZ40XyVrkQehiTqDLXAvX3kBKGmZoY+uZN66/v2/swF53Q91Syn8sJvrLgLV3PpcW 4aWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=2l0kiaEAsSw9ODRekY3zuDQ0GMRAZXXqaNoDjFgDs0c=; fh=1ZQZoz89vuU5pHTzS7YTBkLbc9K3K9mngy1HBxqdrFA=; b=y39wTEqTpGX/HtVjy2P19ElfUIIZOalDISswXUll3z37toPjS7IZ15t6Kff3dgqSyz IuIPy+FJ9ZOd1Zmtb0xk0dvio25NbOPCsj6hyoltBz0q6hA/ss8bL+9P+wylOV2h9LWg TwEdsobCYNLxSyGOm/NFNy5QbdxlagrYHd3DxV2l3uwfh9mlnYJ+f0Pyg2acZYAb/SKb pOvN9FOptjMndRnA8Vu2J9TAzSf3Ra2cwBvm3FWR4zO/pEPQ7WiMNcFt8XIYyq7Rqxr9 fkgZbz3FiagyYi2jb82KnCY06rIJi4t2SUDKcxN7hUmk6p0UopQs46TwLDB16yb1Fte8 n6Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MlbJ7gVK; spf=pass (google.com: domain of linux-kernel+bounces-23069-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23069-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s7-20020a62e707000000b006d99fca81d2si262089pfh.382.2024.01.10.21.12.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 21:12:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23069-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=@gmail.com header.s=20230601 header.b=MlbJ7gVK; spf=pass (google.com: domain of linux-kernel+bounces-23069-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23069-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B1E5328858F for ; Thu, 11 Jan 2024 05:12:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0199523C1; Thu, 11 Jan 2024 05:12:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MlbJ7gVK" Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 61E261C2D; Thu, 11 Jan 2024 05:12:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1d3aa0321b5so42266075ad.2; Wed, 10 Jan 2024 21:12:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704949933; x=1705554733; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=2l0kiaEAsSw9ODRekY3zuDQ0GMRAZXXqaNoDjFgDs0c=; b=MlbJ7gVKWszfmi/ii5XnMINDrbxZ4kqKoDf1XHSQjDjNXHcRirtwT2mEa3qMdO4fRc Ig8qHWQ7d0hO/PTqtONFwsEjy0AzT3DF054VcthXSj4LszNWtmUQB3gRfzakUYcv4FIV kQzT8dKe8e4kNEOwE+6WWNGNZL80DZokESPSHMA8EWHxqclkQaPTYNcKp8VngSGK5CTR E9TlXcmgoD3wQnabrBaBG3BEKh6iX0aTikUsXyK7+mY/Wf1mFjUtHyXndD6ZOubstLHD CrQA/hbu0239RBfFzvEf+i5dLsjdYgr1/634UiPOVmKdnkzsr/J78uyKuDzh4ZlGNhvk wAWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704949933; x=1705554733; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2l0kiaEAsSw9ODRekY3zuDQ0GMRAZXXqaNoDjFgDs0c=; b=SNz8PIFSEoPnVDhVQOBXDGWIUta5zrW+bgUOTX9yEuMrRAFDHikrudBhPFU74rPZkX TAPWHv9xeCgZ9mM/x2ujPGsBlKbUf5DMk/dVMP/oWF2pu3qNYzX7R2eBsmnULbc1ynhn OK1Uxl4ZRkhxom4u5nNcDWCcUVHe6kqlDZvA4tHUaWvJ3lp+7MPHmwCQX4TgNLlgYnMO 0SvcVkR5+WQBcmUxKgrrLE1oO+AQxZ5VjERb/Ng2+FOYrjcOHxAnQ4WOHrfNbJrV/fkD Vn2lpE3wOIxVHv+J5a6lhcBzrO6QijmSRc5KxPFZ5rF1qH7GBDA8qTpYrB72MLmQXniI BihQ== X-Gm-Message-State: AOJu0Yyz5y1W/hQhdTAQLeWTzU7lZR0QznVXRgmHt2ZtcQsd749TemhN ZK/9hyLFHr/7eMrMpMuc/Vw7kLXJR1I= X-Received: by 2002:a17:902:e850:b0:1d5:2353:a9ae with SMTP id t16-20020a170902e85000b001d52353a9aemr879124plg.13.1704949933479; Wed, 10 Jan 2024 21:12:13 -0800 (PST) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id jh18-20020a170903329200b001d4593a2e8fsm224069plb.83.2024.01.10.21.12.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Jan 2024 21:12:12 -0800 (PST) Sender: Guenter Roeck Message-ID: <28c6b616-84d7-4f7e-bf82-eb32e53e631b@roeck-us.net> Date: Wed, 10 Jan 2024 21:12:10 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 5/6] add listmount(2) syscall Content-Language: en-US To: Linus Torvalds Cc: Miklos Szeredi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-man@vger.kernel.org, linux-security-module@vger.kernel.org, Karel Zak , Ian Kent , David Howells , Al Viro , Christian Brauner , Amir Goldstein , Matthew House , Florian Weimer , Arnd Bergmann References: <20231025140205.3586473-1-mszeredi@redhat.com> <20231025140205.3586473-6-mszeredi@redhat.com> <75b87a85-7d2c-4078-91e3-024ea36cfb42@roeck-us.net> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN/W8Vk BIsJMaWOhks//7d92Uf3EArDlDShwR2+D+AMon8N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VWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/10/24 16:32, Linus Torvalds wrote: > On Wed, 10 Jan 2024 at 14:23, Guenter Roeck wrote: >> >> with this patch in the tree, all sh4 builds fail with ICE. >> >> during RTL pass: final >> In file included from fs/namespace.c:11: >> fs/namespace.c: In function '__se_sys_listmount': >> include/linux/syscalls.h:258:9: internal compiler error: in change_address_1, at emit-rtl.c:2275 > > We do have those very ugly SYSCALL_DEFINEx() macros, but I'm not > seeing _anything_ that would be odd about the listmount case. > > And the "__se_sys" thing in particular is just a fairly trivial wrapper. > > It does use that asmlinkage_protect() thing, and it is unquestionably > horrendously ugly (staring too long at has been > known to cause madness and despair), but we do that for *every* single > system call and I don't see why the new listmount entry would be > different. > I don't have much of a clue either, but here is a hint: The problem is only seen if CONFIG_MMU=n. I tested with all configurations in arch/sh/configs. Guenter