Message ID | 20231101125611.208544-7-adhemerval.zanella@linaro.org |
---|---|
State | Accepted |
Commit | f10ba2ab250b04e47868cfb888df22058436173d |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:538f:0:b0:32d:baff:b0ca with SMTP id d15csp267721wrv; Wed, 1 Nov 2023 05:57:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG4ZZIYgq6QVltD/6dKLMjbMkAAflv5FA4EraFybJZxHg0bNjBix4Phq65vc+GCl3u8gInd X-Received: by 2002:a05:622a:44f:b0:418:fe4:51e5 with SMTP id o15-20020a05622a044f00b004180fe451e5mr19642369qtx.24.1698843451843; Wed, 01 Nov 2023 05:57:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698843451; cv=pass; d=google.com; s=arc-20160816; b=DmrsRXFI+ixVK4itdBxmokC+DB1otjosXqLMpabhF6oi+mFJ86Xa1iktJKcvDtH6jR dpi3EF7jeXuaIBNmooVUcZgZaJxgmSDUIYqd896dESsG/p3pFVAJLyHFRxv1IVR13E// 5alcb7VMkhljgCEgkFHGtsyZXhMkZb9Y7oyb2Xa3NRRbhYhvZ+gjndrrch2LCJR3VVpC zAnAeC9af3Wj6G2zRnZW4R47rV/G9+OMmri7xMvfF+CNgJl6ErCh523hMNZvjSuSKR15 i+dStK8MtbFky8vfpU72cbV6cUlU4pW5K6L0ahPE51nSUnir0dBsImT6Q8r42pXEES7Q xWsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=xH2cPYi2ud62JL2Pj9p045VIjHtNXt5o/PabtWc7sl0=; fh=wOialSeEyZrL0Zmx/XQW8gMhKHOwjxYz8NEgiPSksGI=; b=kaQ5sP6RAdLxeb45gX0fsBFt4PLpAbnf8VEbMQjks1Z7JDhCB7aIlYDLJkod4NdVTL RL2N1LE81wWr8Em1OPD9B658kuc1mX+V8m2DOh7dfkGuxzvCK4FJVrVseKgpRExNSHVV X3cW8Gly+FF+Yr6cruBwqp1kxBMTzh0mswDomqFlDGw73pqIIocMj4PriY5s3uEFYfUT /aVFiLGyovHQu6VUzp5w1X8E3Un538Ip4UYtaNdVMALjQqi2WSkv5dj7odiycvAOSuHJ E0ywHMim5rWGAuHSGW27oSNFLaeeHDvTdVnqnzlOdTQSUIrY9AbqkKuYNRHMZkuhCRdM wnFg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XHRCtxXk; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <libc-alpha-bounces+patch=linaro.org@sourceware.org> Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id z13-20020a05622a060d00b004122bb38ef3si2796303qta.701.2023.11.01.05.57.31 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 05:57:31 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XHRCtxXk; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 31DA0385697F for <patch@linaro.org>; Wed, 1 Nov 2023 12:57:31 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by sourceware.org (Postfix) with ESMTPS id 4029138582BE for <libc-alpha@sourceware.org>; Wed, 1 Nov 2023 12:56:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4029138582BE 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 4029138582BE Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::b32 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698843400; cv=none; b=NP2dLUCfhKCdlTWAoCLaCgMblvpmf9X96kWZ/9WtDj77WSoYHVg9jormdSXr/rY+FI+3E48isOPFa4ZlITLs/ijR0Yl0ieFbY5xV9zs79XLYdCa6JkGuyBbuAdSMwYHHa0qAcXGlxcsfKM6P1KF2Z+HY9LubJJ2+2m6qy+kdI2M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698843400; c=relaxed/simple; bh=ImCn8D9L4MIrZ9fskXjKjheSDp3oRb8wVhEnozuDrjc=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=KqBVJL1oW/BLqU7bbiNo2bLgoDzNNpp7hfdYwC85279rFpFDbPMhDFIMjtekTkmG5iiqGKMfN/xNYH2zGaRgBdoiAKoivQEmQckfj0243uc3a7GqKO9wOXJhIMpPU0IBzbi0f9kcx9v147cR+NEauVZHxg7LNcdVJfLVCfBmQ+M= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-da041ffef81so6257002276.0 for <libc-alpha@sourceware.org>; Wed, 01 Nov 2023 05:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698843391; x=1699448191; 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=xH2cPYi2ud62JL2Pj9p045VIjHtNXt5o/PabtWc7sl0=; b=XHRCtxXk2KVwgAznFeEKiH7kVIWRcrET+hvFnYRgU3oc0UGAC7BlXBOntQQ5uNAAiC mOadHpJXLY8pCSrp3hB0gdkFo1YrQy32FlJyBwLFwfyMzwIfpBAzWRxibSQ5cooTA93U TalFvAc4BYZC/UXRmt6TNVMuf61Q0dcpvwb6qcVW2Q9rlxFBw3fh+hPPjFIhzggqOxh8 XKXGTRfMU5UswW71IXVkNkXaLiD3iak02jnNpCvCxZd8pmXYUQAgbA2YobCsXAlsqFxu XJltL1konQXgnCPsqxuEwPxtozMYMRuR5+aK045tg7XR3Ee10M9bnghs2KB96qFDBkdY 167Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698843391; x=1699448191; 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=xH2cPYi2ud62JL2Pj9p045VIjHtNXt5o/PabtWc7sl0=; b=ocoZGOOWSFduHticIzJo49PFnzVJbQuAIFy3hMorLgO1gGo9KT9xPc19hbzqFbP3ma VZbnryLjPKxNPwuVYKj9S0d3PHQZEjJaaqmveY9XwrPDLbrWKXZbgf23Wc9Qmz6H1eIr 6dP+TIst0Xi3HXHz76gO+NvSZpPotxlNdhz5dxlO8IDKnl23k6NM+jDnBQQ6xz+oPE2G qGcz5i6TOsnVuSQmeH25YG2usB24iv5LgIUj+6BKKWmla9EWxNKiBg683Je1lVgOXGyl knf3UtCrBc9P/SqEdgI8EIdnTKWshq7By6jtcoHyYhRcuV2MM9MIKsMKpPP78KwE4FvZ Rr2g== X-Gm-Message-State: AOJu0YzeFrHpgIbNsk/q5J94A7p8jtSzyiiLeRo7DYZ7w6EYTrmJoqan p6tdAR+FYyN0H7qlDkX4LXOZxGioWmtLHMHhS/Xk/w== X-Received: by 2002:a25:301:0:b0:d9a:c7af:bb4d with SMTP id 1-20020a250301000000b00d9ac7afbb4dmr14410318ybd.37.1698843391206; Wed, 01 Nov 2023 05:56:31 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 05:56:30 -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 6/7] linux: Decorate __libc_fatal error buffer Date: Wed, 1 Nov 2023 09:56:10 -0300 Message-Id: <20231101125611.208544-7-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+patch=linaro.org@sourceware.org |
Series |
Add a tunable to decorate anonymous memory maps
|
expand
|
diff --git a/sysdeps/posix/libc_fatal.c b/sysdeps/posix/libc_fatal.c index cf28387ee6..f564d232bf 100644 --- a/sysdeps/posix/libc_fatal.c +++ b/sysdeps/posix/libc_fatal.c @@ -31,6 +31,7 @@ #include <sys/mman.h> #include <sys/uio.h> #include <not-cancel.h> +#include <setvmaname.h> #ifdef FATAL_PREPARE_INCLUDE #include FATAL_PREPARE_INCLUDE @@ -116,6 +117,8 @@ __libc_message_impl (const char *fmt, ...) wp = mempcpy (wp, iov[cnt].iov_base, iov[cnt].iov_len); *wp = '\0'; + __set_vma_name (buf, total, " glibc: fatal"); + /* We have to free the old buffer since the application might catch the SIGABRT signal. */ struct abort_msg_s *old = atomic_exchange_acquire (&__abort_msg,