Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2409536rdg; Mon, 14 Aug 2023 01:13:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHoUc4Ip8GD24ZiKiOAA9QrZpemqYtURaPkRCgExd5mZP8zQfzSztOLBcvb7IuisVmMxS4O X-Received: by 2002:a05:6a00:1141:b0:678:ee57:7b29 with SMTP id b1-20020a056a00114100b00678ee577b29mr7464100pfm.30.1692000833543; Mon, 14 Aug 2023 01:13:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692000833; cv=none; d=google.com; s=arc-20160816; b=RBwdjEK/FP1NncAZnivYH5qAGfEHqujAoGHgqxJRuacd5W0GTrIMFO9iqKXhpPE1/E JZIRYigLUYedy0GPf2MqextubBibnA4RXHUZGx/9vfa0JhjM1kB/SGYbjSUry5UlCJTe 99Aqx9a6pA5XFA/KF0Rt2FZ//uCudq4n40ofe9IRCLxMe9fb4kT1zCCcv2Y5SHkJrneB 0f/gXzMAh2h35GvFD9BBXZLZEFa4ExgsZIb4G5nnq75cAtoir8/vh3ZDyagUiY1wLnqn +fyKj834FEdhRlUQ5xifwURJtsCqTqItfc20uUxUprfHb/lIuPhcBlHfYgXAvPa7Ll0V l5yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=3ReTrIDds5DwdjJG+7H3aQanI4iFT8QDJFY+4MZNsi4=; fh=FaG57lzLCK+GuIWa888n3nmUnVN8nMdj3dT+MZdvRrc=; b=QOMRoB/tY1Hp2JS5LQ1FUBUl0ntW2RzlPuUZG3nTbcjgLJlFKjvYrK5KubZWZ8X77Z apzvTVaf9ZwMdhkdGvndUAHF3EkPjOQTKdcOinq9C8Uw7CWLvGy5b4Kud3qGUGQqYVlB kW20YH0n2k8z4AOl9W6dKv3DiOUhtOluBZrqJepbog6YjEL107EnlpHPJSyDqInpDjw4 aRf0RCZMmzOZrBf0DiWe1UB2SERFvsh1I9j2zCV5zfNdurgvVw+W6hwZCT+8qt4S0yzR 0+n/33w9Ak12+uuvNMzDgN+H7jWx+uUoIw5YGdRSv3YWLR1e6fHXJ2BJb5EByIq2p6MF GUvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay11-20020a056a00300b00b006871e685bc7si7777200pfb.2.2023.08.14.01.13.41; Mon, 14 Aug 2023 01:13:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234074AbjHNH0g (ORCPT + 99 others); Mon, 14 Aug 2023 03:26:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232340AbjHNH0F (ORCPT ); Mon, 14 Aug 2023 03:26:05 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D5B51E71; Mon, 14 Aug 2023 00:26:03 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 37E7PqqQ016748; Mon, 14 Aug 2023 09:25:52 +0200 Date: Mon, 14 Aug 2023 09:25:52 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: arnd@arndb.de, david.laight@aculab.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, tanyuan@tinylab.org, thomas@t-8ch.de Subject: Re: [PATCH v6 2/2] tools/nolibc: fix up size inflate regression Message-ID: <20230814072552.GD14322@1wt.eu> References: <20230813090037.GE8237@1wt.eu> <20230813133944.19604-1-falcon@tinylab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230813133944.19604-1-falcon@tinylab.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,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 On Sun, Aug 13, 2023 at 09:39:44PM +0800, Zhangjin Wu wrote: > > Let's just roll brk(), mmap() and sbrk() to their original, working, > > definition: > > > > static __attribute__((unused)) > > void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset) > > { > > void *ret = sys_mmap(addr, length, prot, flags, fd, offset); > > > > if ((unsigned long)ret >= -MAX_ERRNO) { > > SET_ERRNO(-(long)ret); > > ret = MAP_FAILED; > > } > > return ret; > > } > > > > Agree, only left a suggestion here [2] about whether we can apply the 2nd patch > instead of rolling them back, let's discuss it in [2] thread. (...) > [2]: https://lore.kernel.org/lkml/20230813132620.19411-1-falcon@tinylab.org/ I'm sorry but I can't find this "suggestion" in this yet-another-super- long-description-of-another-idea-of-redesign. In addition it's extremely painful to constantly have to go through web links to follow a single conversation. Mail works in threads for a reason. When the same discussion is handled in many parallel threads it becomes impossible to keep it focused on a specific topic. This is also why you should stop systematically responding to a message with yet another redesign suggestion, this is super hard to follow and it literally takes me several hours a week! And at the end we've not addressed the initial problem but discussed plenty of other things. Thanks, Willy