Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp258530rdd; Wed, 22 Nov 2023 15:24:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IFig7Uuzb51jvz5TVUx0jiT+osEd440rttDJorGUaVwHpaDBpXOea+x+mqKyl3wGz7X60Ok X-Received: by 2002:a05:6a00:1f04:b0:690:c75e:25c8 with SMTP id be4-20020a056a001f0400b00690c75e25c8mr4010918pfb.7.1700695446575; Wed, 22 Nov 2023 15:24:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700695446; cv=none; d=google.com; s=arc-20160816; b=nDEsXbBYxRerQesKS5ybX72BTBN5it34p3JkZr4oKINIlm50vj1XVGabmBHVWsPNJa 5VTnL+OA0KfSi0Etq9Hnr59pZwGNLyQjWIHaAKv4hzCd4bK+VnFrdPFhE3l2+/pO5nd3 3abPwGkszsodtr1RZIOpM2BvsgtjHDFYSMUIwDHrs/D5Zt/69XUqa/W27EEqSQ7sfzxZ P19t8eyORFTNAqk+Bw0tSyrp1xzJDcFXSnWtUZ8P7au91ieBenRQxknuKBQLUDLz976y C7b06fzKyN0O6vdAOOKl2h8o7bgy5Zkvt1CZszmqjlmSgz53uoj61rYOduYfvHivPrzs RLhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=qYAAVwrlKqGIz6r05qH95SPOYcvn99tO1AmG+8Xxmes=; fh=Qbk0RS4bf6GjbhGkpgFoVgYg5V+1DfWcZ6CAErfO2MQ=; b=uOjeKBZ18O5krreWipXZ7KshbDjQfKg0JTD+3r5JrPQiL6zu/s8ha5qAkVp7qYzNrO GUpkDeNnTMgABsvI4Wim9U2puB+oSTUdbF8zY5SBCdp2TSOAvWi/NkKYR2ipAWA4KWmt 4DPA7jxqRbFjGKcdPeD7f9DfeQf24O0Cbiw+tJJNFZSbYYW4xCRvk6wyUFRbpT0LysrO nNu3ZeXpql5SibpkyTGFrXfIZ1BU0af7MepMKT/9/lz3UIybZKEByZz+oX5X5jxmH6+R N64TZ7ssF10ILVZhIu2qDorrNKboHspYNm3r1LO89ihbHsmnzoVoVtL6nvmyRpXziGt3 YwBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=KZqas2dV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id y21-20020a056a00191500b006b7b42fe43asi61229pfi.185.2023.11.22.15.24.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 15:24:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=KZqas2dV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id D98938274AC5; Wed, 22 Nov 2023 15:21:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344350AbjKVXVk (ORCPT + 99 others); Wed, 22 Nov 2023 18:21:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbjKVXVc (ORCPT ); Wed, 22 Nov 2023 18:21:32 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A511719D; Wed, 22 Nov 2023 15:21:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1700695286; bh=oGqFtVNsY4uJunPznNTx1DWHTr8c8+KYcdqYPF0S3cQ=; h=From:Subject:Date:To:Cc:From; b=KZqas2dV1BPsxXm/ONrZfXjzyQRrtNpYoHHU7bASiPN0jvLv1mEfwFqcMEP2bB7eY O8P8PZ9Z2isQXsrQFsO+zJCA+ChM++S3JnsfLtQBBOd5mdU5mB9eCuIJP7fH/UWgZT 9yLblOO7l7Rkre5R10HRJCgXgOUPIDReYPgofIEY= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Subject: [PATCH 0/3] tools/nolibc: rlimit support Date: Thu, 23 Nov 2023 00:21:24 +0100 Message-Id: <20231123-nolibc-rlimit-v1-0-a428b131de2a@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAPSMXmUC/x3MQQqAIBBA0avErBNyshZdJVqkjTVgGhoRiHdPW r7F/xkSRaYEU5Mh0sOJg6+QbQPmWP1OgrdqwA57KRGFD461EdHxybfQetDS4qisUVCbK5Ll9// NSykfo0ok+V8AAAA= To: Willy Tarreau , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700695285; l=841; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=oGqFtVNsY4uJunPznNTx1DWHTr8c8+KYcdqYPF0S3cQ=; b=mXZlr6amppqA3OgesfNVudG4wKhJGI0XGrx6ad6rcL3bBr/+f+o4Rv7V2vqp2NIa72CzMowg0 uen1Zb66GNMBy3YyVCN4qgDgHTx6P/nQbn/bOPHSBTq6gcqDBF+58FR X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 15:21:52 -0800 (PST) The series adds support for setrlimit/getrlimit. Mainly to avoid spurious coredumps when running the tests under qemu-user. Signed-off-by: Thomas Weißschuh --- Thomas Weißschuh (3): tools/nolibc: drop custom definition of struct rusage tools/nolibc: add support for getrlimit/setrlimit selftests/nolibc: disable coredump via setrlimit tools/include/nolibc/sys.h | 38 ++++++++++++++++++++++++++++ tools/include/nolibc/types.h | 21 +-------------- tools/testing/selftests/nolibc/nolibc-test.c | 31 +++++++++++++++++++++++ 3 files changed, 70 insertions(+), 20 deletions(-) --- base-commit: 0dbd4651f3f80151910a36416fa0df28a10c3b0a change-id: 20231122-nolibc-rlimit-bb5b1f264fc4 Best regards, -- Thomas Weißschuh