Message ID | 20231101125611.208544-6-adhemerval.zanella@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=mBhXRWNY; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SL6VG5RPxz1yQm for <incoming@patchwork.ozlabs.org>; Wed, 1 Nov 2023 23:57:26 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CCEC73857006 for <incoming@patchwork.ozlabs.org>; Wed, 1 Nov 2023 12:57:24 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) by sourceware.org (Postfix) with ESMTPS id 213A33857C44 for <libc-alpha@sourceware.org>; Wed, 1 Nov 2023 12:56:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 213A33857C44 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 213A33857C44 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::112d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698843400; cv=none; b=HaSHfXcUUSbHRNnMo1DmFsMr1g9NyoYrWWekeWwosUbmqAM8VB4t/2Cc17jfOOrRG8uifUmb9x9mG6UCsmMBQnsq1+Vx/PTGWYQQNpUVLBPKPtsB3+cHGQBg3/1YdwZOnfxK+ZGq2XEmoezcqonq9bpBRmUcKH4BV5l77bEG9Gk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698843400; c=relaxed/simple; bh=7IU+K49IxS1kn/ocnc54WSjSZ3Q/mkS/5hQqscvWxMA=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=KY4t1i0yaxadKnQ9RTXpNtnADuKx0iIT2ygTKpGH78ZOTWbn6X+uM+Mw0hyj8TFSGnAlmDczdcWgfxdv7CbLXyer51PuPWsKopvipdahyK1rk/cS6bD/4X9wTNTPKXjwoXihzNgO0QG8muTAqJJ6iX7jyU3W/w7gO6SviTdbT+w= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-5afa5dbc378so52536957b3.0 for <libc-alpha@sourceware.org>; Wed, 01 Nov 2023 05:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698843389; x=1699448189; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=xLM6XTFrju2h0P2Jp6D87i92a5MTlqzEcCSkMAXExHA=; b=mBhXRWNYIzTwI5KeY7fNin+XHqQpVLpF8PES5Sr/cIWn3lx8JKFAfimHS8SGESFKhh Kjk+B+dfl8yXKTjwm4E4Coje8SFjUWIUdAb+QHazYP1v5DCv58Ua33kA1CmrKqLuDAmW EgI+YFMVSn1jjx624Ev+Un/ID6KcPMKLt/TmWJ82uhbHCM9HROpogZSgkH8LCtDT9yhx 1lAzRe6EE14NGPH+zmiUlibuIjtarNYo8T5AB5AT5E6Llk12a7CfXeIFEPie5m+toWiE cFOKGk/D8oTxWisl2YYmeGTpmUwoaJKXBo2W4zAi/V9xxdN02CKvnZT0Vm7Vh0YAmtTy 6S8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698843389; x=1699448189; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xLM6XTFrju2h0P2Jp6D87i92a5MTlqzEcCSkMAXExHA=; b=sKqh0Jp42b3DuVXX+7AvtKN19b62tZyTpJckFvBbG4ScnQt0fGaTiz6qNpNYUF+BEg wd1iIwgnLVKoPNSA/4VpAoY9Pb9MZWZi1MtvHgfuKfNNoATggX0m337O81GKt3OwdppK j5IrWb/rfLoOr5BEtPQ7NrXdsFcrSvjH1+pNs41RERLZ9ifJ87A56DABVJBCc/Lh7jYf 3Y5OrGVzBaA2l6xy7qjoDRdqjBejw6lRX9mFbrfLDsCa4MbwI8pZVod4sRDiGpewrx7+ g5kgzX4fcYzWxdDW26IwTMShRpfXnqid5R8BkXnOoQeFnLihp5wvLGtMU6UJBgUzEMBB 2T3Q== X-Gm-Message-State: AOJu0YwbTcPKxgHRV8wr6kkdrMQn1U+jpUzCRonO0ALTQrNob7+BBlAA EYD7deXjr180hvVgGIvLDR96rLhg/VhSwNRn/giLaw== X-Google-Smtp-Source: AGHT+IE95LuhEI+Y13QEKXgnLApPvaXOzwU2dxsuyxhyz/ZIZAUIQtpFfGeuDItvUBmT3q8HWHsgPg== X-Received: by 2002:a25:40c5:0:b0:da0:c887:36cb with SMTP id n188-20020a2540c5000000b00da0c88736cbmr12731553yba.45.1698843388811; Wed, 01 Nov 2023 05:56:28 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:a715:15ac:c4b6:7a0e:f5c5]) by smtp.gmail.com with ESMTPSA id w11-20020a5b08cb000000b00da034601e2esm1888100ybq.52.2023.11.01.05.56.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 05:56:28 -0700 (PDT) From: Adhemerval Zanella <adhemerval.zanella@linaro.org> To: libc-alpha@sourceware.org, DJ Delorie <dj@redhat.com>, Ian Rogers <irogers@google.com>, Francesco Nigro <fnigro@redhat.com>, Carlos O'Donell <carlos@redhat.com> Subject: [PATCH v3 5/7] assert: Decorate error message buffer Date: Wed, 1 Nov 2023 09:56:09 -0300 Message-Id: <20231101125611.208544-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231101125611.208544-1-adhemerval.zanella@linaro.org> References: <20231101125611.208544-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, 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 server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org |
Series |
Add a tunable to decorate anonymous memory maps
|
expand
|
diff --git a/assert/assert.c b/assert/assert.c index b7c7a4a1ba..bf0f4a69f5 100644 --- a/assert/assert.c +++ b/assert/assert.c @@ -24,6 +24,7 @@ #include <sysdep.h> #include <unistd.h> #include <sys/mman.h> +#include <setvmaname.h> extern const char *__progname; @@ -71,6 +72,7 @@ __assert_fail_base (const char *fmt, const char *assertion, const char *file, { buf->size = total; strcpy (buf->msg, str); + __set_vma_name (buf, total, " glibc: assert"); /* We have to free the old buffer since the application might catch the SIGABRT signal. */