Message ID | 20231123-nolibc-rlimit-v1-0-a428b131de2a@weissschuh.net |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:6f03:b0:164:83eb:24d7 with SMTP id r3csp1568137rwn; Wed, 22 Nov 2023 15:24:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHz7zf0LOFG7vP6WmE55pY3pEqBkWb5cvre/ikhzxV3p+ujSHEUmwhITSKJd9ZpnOKN3rDS X-Received: by 2002:a05:6830:1e03:b0:6bd:152f:9918 with SMTP id s3-20020a0568301e0300b006bd152f9918mr4416206otr.14.1700695446222; 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 Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id 9-20020a630b09000000b00578c64433d5si95985pgl.877.2023.11.22.15.24.05 (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 06E6F8251392; 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 <rfc822;ouuuleilei@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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?= <linux@weissschuh.net> 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 <w@1wt.eu>, Shuah Khan <shuah@kernel.org> Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net> 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: <linux-kernel.vger.kernel.org> 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:51 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783308428508752033 X-GMAIL-MSGID: 1783308428508752033 |
Series | tools/nolibc: rlimit support | |
Message
Thomas Weißschuh
Nov. 22, 2023, 11:21 p.m. UTC
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 <linux@weissschuh.net>
---
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,