Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2793429rdh; Wed, 27 Sep 2023 12:52:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6lMcB2HkkTOz4PB+wtIz3kOJTY3vlxzya9vwxtrkXCm7ZPANNCaVnEE+RwcjV8vm5lkuA X-Received: by 2002:a05:6358:7e84:b0:143:8aa4:30bc with SMTP id o4-20020a0563587e8400b001438aa430bcmr2903459rwn.8.1695844379505; Wed, 27 Sep 2023 12:52:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695844379; cv=none; d=google.com; s=arc-20160816; b=CKTi+3lFpSkRVooc++ZOqpjz/5lXGNu89OttN2igZ60X4lhKqf5Wu+Vwy/jy2sfSrF 5qitqap8YKu210o3agERlGV4yn+4A9IzIY4SHhZe0UwZ+xa1pQD8FfeeIkE0AFdHrQ0W z0acoT3+rBFIgIjVznS5ldmeUugHoHbQThcstbktPwqtjozsgUnc3IGPtYxfxp0gBWw/ PGBpgBAauuWE+CnYi5JSMIw5rKb3pYXRtabWXKkqrBWWqYYge14c5gE3Gpe4PdZVqRtF CgSJ1I2R6jCxiYcVNsWgIv0O+TfgWBblAti2unPu7kW+6mJox27UHFSHVI/gLkjt2TJp CVpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=h4yczQkiu4bSkY32BxXp2jGrOAbWfw/CcSh69FCigCQ=; fh=vsJ2P9sux/Ddp9kjr5WD5aCiXCWPRhFYkMYSWRaDsFE=; b=r5X5WMKZ3/rpHmy22mHcGKCuxAxc6HtgDJ8Xz9NYFxMIIULSkV63clfh9D74rhLMTq IAKTGhltavbxLYfuuJIzFoGlF8yJhyJmVdV/NGgMEvVM0qhcr7ygfdQYg+WC06/jpQXE f12MdINDr1SJ2mGVPEQbEDjSRunAri0DFK0bVCu4g3tlWIEEFMy4kdISU8OrzIuHMNos 1IOKLCi9l6ZdyQ4QRGwhbr/qFuvVoO6wQfEfa+6bTn30zJyp34O51pg4Xr9jnLyD45dh xcSczdriAbJNkvfz8Y8MCxePcMFrdXZsDD1BRGGZd19Y2pSUXOE0af4P+aUbLwj7oAvt bF8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id m1-20020a656a01000000b0057749f3cbe1si18553582pgu.673.2023.09.27.12.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 12:52:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5497180FC0B6; Wed, 27 Sep 2023 12:41:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229464AbjI0Tlh (ORCPT + 99 others); Wed, 27 Sep 2023 15:41:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjI0Tlg (ORCPT ); Wed, 27 Sep 2023 15:41:36 -0400 Received: from alerce.blitiri.com.ar (alerce.blitiri.com.ar [IPv6:2001:bc8:228b:9000::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E9F2CC for ; Wed, 27 Sep 2023 12:41:34 -0700 (PDT) Received: from [IPV6:2a02:8109:aa40:4e0:b5c6:9671:3477:8fde] by sdfg.com.ar (chasquid) with ESMTPSA tls TLS_AES_128_GCM_SHA256 (over submission+TLS, TLS-1.3, envelope from "rodrigo@sdfg.com.ar") ; Wed, 27 Sep 2023 19:41:27 +0000 Message-ID: <741b7bed-919b-41c3-bd57-85e1cdfd6e48@sdfg.com.ar> Date: Wed, 27 Sep 2023 21:41:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] tools/nolibc: Add workarounds for centos-7 To: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= Cc: Willy Tarreau , linux-kernel@vger.kernel.org References: <20230926133647.467179-1-rodrigo@sdfg.com.ar> <20230926133647.467179-2-rodrigo@sdfg.com.ar> <5d4d14f5-b90d-4fd7-865e-0d64b8520c0e@t-8ch.de> Content-Language: en-US From: Rodrigo Campos In-Reply-To: <5d4d14f5-b90d-4fd7-865e-0d64b8520c0e@t-8ch.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 27 Sep 2023 12:41:39 -0700 (PDT) On 9/27/23 20:23, Thomas Weißschuh wrote: > On 2023-09-27 15:06:03+0200, Rodrigo Campos wrote: >> On 9/27/23 01:30, Thomas Weißschuh wrote: >>> On 2023-09-26 15:36:47+0200, Rodrigo Campos wrote: >> We can definitely remove that struct statx bits in our vendoring. It will >> simplify updating if we don't have to patch it, so if we can't include a fix >> in nolibc, I think we will continue doing the hack ourselves and that is >> all. It is not too bad :) > > How often are you planning on updating your vendoring? > In the timeframe before you are dropping centos-7 support? We will probably update if other MIPS variants are added, or other arches supported by golang. Other than that, I don't see that happening. > The "nice" thing about the breakage is that it will break loudly during > compilation so it will be easy to notice and fix it up. > >> I don't think it is worth for nolibc, at least for this use case, to >> reintroduce compatibility for stat() without statx(). > > It wouldn't even be full compatibility. The code would compile but be > unusuable for stat()/statx(). And I don't think any application expects > stat() to return -ENOSYS. Right, it would not be fully compatible but it will be possible to compile and use the rest of the syscalls, just not stat(). It's really up to you to decide if that is worth or not. That happens to be what we need :) > It's a bit ugly code to support a kernel that has been EOL upstream for > six years for a fairly specific usecase. > But who knows, maybe Willy has a soft spot for the 3.10 kernel :-) > Let's wait for his input. I can't agree more, that is why I was unsure supporting centos-7 was something we want to do in the first place. Let's wait for Willy, but I will be slow to answer in the coming weeks, I'll be with limited internet connectivity. Best, Rodrigo