Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3825459pxv; Mon, 5 Jul 2021 06:41:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+JmXbYhKRxgBHYwdPEys3yoCR4zyfnkLKOKQe8yYR1K6E+ISnjKd6jsgLXSoV8I7hF7Jc X-Received: by 2002:a92:8e04:: with SMTP id c4mr10830264ild.219.1625492491310; Mon, 05 Jul 2021 06:41:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625492491; cv=none; d=google.com; s=arc-20160816; b=mDbVRrvQyTdKcrcILAjZxHlZYE4hSVTsks5bLDh0j5GprNApuD6cdKuGqsjdb81FHy Q4O0JeT416qRTZEOBmzqBNayFJ+0MpWZThDSDkXa9XY4/HzyPm8p5/uS8vhu/AEpFZ9I /LRNybkE66oZde87QinW9KVAqwbwQ0ztJdN3jvoLU73ybLUnBMAAV8RPt3lvoXUKpY5T HVFgwTGvWym8dCr88NLWDcOGQ93Newxw7BdVHldFF4By+KUGO4TjqQ8h0ryRHtapcNh7 NQKO1uxEF5OX1iChHCt9iyWwAIZrN22F6G/Xa+jc/XLMcdnMSTBX2wPeZ6YH6J65HLb8 DBBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=ZBTmbtsqjX80YW+JJp2qGMXTZ1RgViYberBqUtGZeYc=; b=ejJzeM+TvT37/vWXA52lkFdFx7jNL3pk4uzq5TrKDXUhY590gVC2nSOU+9DSOznn4h f39XI9vT0vfsNDQzc7PrnWd3Df0SM6bUt0Q2PXTe9iVcgGOcSmxFAakCHKfM15Ya7fsS X0HdZQOkw3wrY3+ub+jMiECncABKVwwD+f2jDS//UV0Uhntj/fPlFpU2f5wdWedgdtuW cHGITVAqDC11kP5IZdQpNSVMhLVz22r1Pu3U/pEwjDFncfCwdpUoBCglEoX7nsz0qc6W WPnkIXRiI3sQxWid7ClHCaccWXkH4P5xruRx5yh+ghEdP/7IdaEOKrhp/HEh+XTqFZNy nudw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c9si14073314ilu.72.2021.07.05.06.41.20; Mon, 05 Jul 2021 06:41:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231243AbhGENnN (ORCPT + 99 others); Mon, 5 Jul 2021 09:43:13 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:39139 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231208AbhGENnM (ORCPT ); Mon, 5 Jul 2021 09:43:12 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1N3K9E-1l0UWe1aM6-010IjX; Mon, 05 Jul 2021 15:40:34 +0200 Received: by mail-wr1-f53.google.com with SMTP id a8so10464501wrp.5; Mon, 05 Jul 2021 06:40:34 -0700 (PDT) X-Gm-Message-State: AOAM5312NSuiTRLaXwtWGn3ouRkovfw5RGiLfxR7t1USIXWU7nIa8lMO 37VMDtuuzEb/AUW+7a4OvYLxygpymMkUG5hCX0g= X-Received: by 2002:adf:fd8e:: with SMTP id d14mr16484625wrr.361.1625492433851; Mon, 05 Jul 2021 06:40:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Mon, 5 Jul 2021 15:40:17 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-audit/audit-kernel] BUG: audit_classify_syscall() fails to properly handle 64-bit syscalls when executing as 32-bit application on ARM (#131) To: Yury Norov Cc: Catalin Marinas , "linux-audit/audit-kernel" , "linux-audit/audit-kernel" , Mention , Xiongfeng Wang , Wang ShaoBo , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-doc@vger.kernel.org" , "linux-arch@vger.kernel.org" , "linux-api@vger.kernel.org" , Adam Borowski , Alexander Graf , Alexey Klimov , Andreas Schwab , Andrew Pinski , Bamvor Zhangjian , Chris Metcalf , Christoph Muellner , Dave Martin , "David S . Miller" , Florian Weimer , Geert Uytterhoeven , Heiko Carstens , James Hogan , James Morse , Joseph Myers , Lin Yongting , Manuel Montezelo , Mark Brown , Martin Schwidefsky , Maxim Kuvyrkov , Nathan_Lynch , Philipp Tomsich , Prasun Kapoor , Ramana Radhakrishnan , Steve Ellcey , Szabolcs Nagy Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:4neMM1Yflvb8OYyphwzh3kNyrS00gfy3pXY+JOvgQOo2HdCol4T OoSWKtp+/a6zVxNFHFIlN7DKcHI4ypXElXuRdPACfRqxUnN2rR7/yOaZ/i+af3vYULyskau tlFH1A2oVc9mOGCnLTYa9cjuylhsGPmplEUqJDhYACYGEzCveILkTtMe2wzLnw20XPCq45t +UMqMDdjNldhgWu9Hm6sA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:vwfYswzw0Fc=:IZluxWwcJlLRV+zd98tvzP dYsBLW5fOMQ9eSu59bQQtsUccti8o3+Dbwu0RkNUnTICiW4WNv+WjLnKZNwKS+McN1W1g26H5 EyTSvmsSuzhSR4FckbRT6our87By9Y6ukU5W0gfqU/y8/FSqxESuu/Oe81Y0nOH1D1Jgu95uR RmSfMZyfi6oOSEvWBrPqXrSw6OrwZS9s4lQYTjL/dA54n/YC8esPwZ86LfCl/qtExSADszUrT 8lLcyzWdD9/kDMxEpxZKNITKg1JbVwaJstQTA/fqXI4MPae1r0eYC+0Znir4Uva0vJ8fhkK+r G7abCiUvwt/mx5nzuUNqxKISHJ9nQT2T/O6M1ZDZbgzxSlJQw4HTyBfwW7UknA9CB95rflbi0 F1ZgX1ujXl70R1Fgg6aacJjgNdfHXvDDxFBAI2O1sWCaBFrTebEIfxdsPyXg9AKIFLmZq1owD WwIUsM9TdADVu/vBEmBmxigVK297HDhy21CWDor4Ctrj7oKcmJjQM/ugEo2thN4EBHV2sIRNH Ol2b5/F+bf2QRnEtYn4vLeCkFCz73SUz5LWzrv391IBF+EZEcTNWsk69/d6P4y999G6p8Y6JS eDU8Fh8FCc0iEadTpnHumeisPMDV1bsxLKCGJtTXVqlqzMAtLVztKuSlo0njZOxPL2TwLQvlQ g8C9x7AX0NehAiZjRQgWLYB0JdzyARnMnRHyPiKuNl/UgfqTMsR6Z8KVXhtkL2h4SoI3Pgk1Y GFY0nb3VDm69OtdZwpCOhBxK7eGggHAtqbVN2R62lTVe1AlzFdj23AtfnOKqCwsHL6vQkIZ1G uEZRMAZIrxROd0nAccYD/SJs5uDRn80ttvBOWu05VQx2EciasQwhwdkL6AOwH9oa94xhp1bqi y1/mahy1bG0LuzwoOILYzB0zsdEPdJI0+UZMf7BBgnKy4w1Uqy96E03IFUtJMorZXctrsqsg1 Q7NPpC8Z+V7gzGEUI8GsmG/InCBK6cZiUaNJ5R79xCkJMhgjY4h8p Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 2, 2021 at 8:07 PM Yury Norov wrote: > On Thu, Jul 01, 2021 at 05:08:45AM -0700, Paul Moore wrote: > > To Catalin, Arnd: > > At least Marvell, Samsung, Huawei, Cisco and Weiyuchen's employer > actively use and develop arm64/ilp32. I receive feedback / bugrepotrs > on ilp32 every 4-6 month. Is that enough for you to reconsider > including the project into the mainline? > > For me, having different versions of ILP32 is more dangerous in this > situation, than upstreaming the project and fixing 2-3 bugs a year. I think the overall tradeoff is not that different from what it was in the past. Keeping it out of the tree clearly creates extra work both for you and the users, but reduces the overhead for everyone else, who can ignore that corner case. We have tried removing both x86-x32 support and arm64 big-endian support from the kernel not that long ago. Both have considerably more impact on kernel maintenance than your aarch64-ilp32 work, and they probably even have fewer users, but we always ended up keeping the status quo. However, there are clearly some changes that happened over the past few years that may be relevant here: - The expectation in the past was that ilp32 support would eventually go away as users move on to full 64-bit support. It has survived a lot longer than I would have guessed, but I still find it hard to tell whether this would continue. What's more important than the current number of users is how many of those you expect to run linux-6.x or linux-7.x with aarch64-ilp32 in the future. - Another thing that has changed is that we now have a rough timeline for aarch32 support to be removed from future Arm processors. If no Armv9 processors after 2022 support Aarch32 mode, we may see interest in ilp32 mode go up between 2025 and 2030 when those processors make it into more markets. - On the other hand, interest in not just 32-bit hardware running Linux but also in 32-bit user space is already declining overall. We'll probably still see some 10 to 20 years of 32-bit user space deployments on (mostly) memory constrained systems, but this is getting increasingly obscure as more applications run into virtual memory space restrictions (3GB or 4GB typically) before they exceed the available RAM. On RV64 and ARCv3, there is already a conclusion that they will not support 32-bit user space, neither ilp32 style on 64-bit instructions nor with hardware support for RV32/ARC32 binaries. I expect the same for Loongarch. Arnd