Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp2510628rwe; Sat, 15 Apr 2023 22:44:57 -0700 (PDT) X-Google-Smtp-Source: AKy350Yet08uoT1Hw+Q4sTJexKWGF3a0UqfMLB73yQ32UdCm9E8Lg3nqRTC31TBDsm/lvHRiayba X-Received: by 2002:a05:6a00:c91:b0:634:b9ac:f6e1 with SMTP id a17-20020a056a000c9100b00634b9acf6e1mr17344988pfv.20.1681623896873; Sat, 15 Apr 2023 22:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681623896; cv=none; d=google.com; s=arc-20160816; b=dQDvkAe/f97/xDQyD3PgZGqS/VOgOr1T7ND7MQJuCEbeoD0TC0rISlUkb3crUwY0xW 3B98RSB5gq/erJlNeHWSM6NA5HJvpLD9EFrpwXSvCsyQEnnmc2lO2hTckICgexEmncTE MErPmpXKQUTdukbKk/SDJrEhr/hEhxqb8uNvDN60UC4jrX1L8vOQEtXY54tx12vyDoZG 1Eu9+LgN9ej7pv15Kp6iCxDogtmBjTlz+kTkp1Uzlgw4DD8/UZ7kvJqmODOs3TuVvGX7 c31/TxQNPGG/J5hSj53escXeQzzLD/rp97ExadfM27J8VYQ6zSwG/PHrMy2ou5Yj+S2N p5wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vk09Gvtt3Ek0V51lmni5d2pGnkxL6IiGVeXGx8NQGTA=; b=qSKhchxNm/1szMs5a60XohTExHyapq8Zky2nX51rTmf5PmXYP2kvHwovawr9MqEO2o UBktW2Ur7tv+x2+Gk1OYVCrX5AxMjqyChz6KDyRtkTpjjemJwX8DH4HwP1YUyqYQeRTF VchKO0we9BK4cmyT31jxUygoiWXndliTAH4oUoEDYUSWuWBt2pJ3pxmoRfMt/TX6dM/q zTliWseXmAMX+NwatQycl6JU874wl8TmMdpp0X2+8kjw9/7tp/rJxIzL2bD+Lt23StuH rxE3SGmzC6eWDeFImjJdEMO98niEhJcSI1TSAyjQUSooEU9gthfcMHI/9AnXe3JnVuio iNcQ== 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 125-20020a620583000000b00627f017391csi8460377pff.273.2023.04.15.22.44.36; Sat, 15 Apr 2023 22:44:56 -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 S229921AbjDPFdZ (ORCPT + 99 others); Sun, 16 Apr 2023 01:33:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjDPFdY (ORCPT ); Sun, 16 Apr 2023 01:33:24 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E604326A8; Sat, 15 Apr 2023 22:33:18 -0700 (PDT) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 33G5X9Oi022476; Sun, 16 Apr 2023 07:33:09 +0200 Date: Sun, 16 Apr 2023 07:33:09 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Sven Schnelle Subject: Re: [PATCH 0/2] tools/nolibc: fork: fix on s390 and add test Message-ID: References: <20230415-nolibc-fork-v1-0-9747c73651c5@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230415-nolibc-fork-v1-0-9747c73651c5@weissschuh.net> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Hi Thomas, On Sat, Apr 15, 2023 at 11:28:46PM +0200, Thomas Wei?schuh wrote: > The generic fork() implementation in nolibc falls back to the clone() > syscall. On s390 the first two arguments to clone() are swapped compared > to other architectures, breaking the implementation in nolibc. > > Add a custom implementation of fork() to s390 that works. > > While at it also add a testcase for fork(). > > Signed-off-by: Thomas Wei?schuh Thanks for these. Please always Cc the authors of code you're fixing (e.g. there could be more subtle details that only the author knows about). Here I think it's OK, but I've CCed Sven and will add him to your fix. Thank you! Willy