From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2995C52D70 for ; Mon, 5 Aug 2024 17:56:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7F3CB6B00A2; Mon, 5 Aug 2024 13:56:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7A3E86B00A8; Mon, 5 Aug 2024 13:56:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5F7CC6B00AA; Mon, 5 Aug 2024 13:56:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 3F1536B00A2 for ; Mon, 5 Aug 2024 13:56:29 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id D332C1C1D79 for ; Mon, 5 Aug 2024 17:56:28 +0000 (UTC) X-FDA: 82418946456.19.FEAAC75 Received: from mx0b-00273201.pphosted.com (mx0b-00273201.pphosted.com [67.231.152.164]) by imf03.hostedemail.com (Postfix) with ESMTP id 6471520029 for ; Mon, 5 Aug 2024 17:56:25 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=juniper.net header.s=PPS1017 header.b="CtOx 9OT"; dkim=none ("invalid DKIM record") header.d=juniper.net header.s=selector1 header.b=Dep7fgmB; spf=pass (imf03.hostedemail.com: domain of makb@juniper.net designates 67.231.152.164 as permitted sender) smtp.mailfrom=makb@juniper.net; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=reject) header.from=juniper.net ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722880578; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=AjiaSga1WytiAS4mHSUWjRYuvOdNGIPI9e/VVrzk9LY=; b=N1k06h1yKWevIltK6NnPWR+f0WW8ypnLX3uwZbOW8ah1HDgb6uxNmDic02Nge5Xh0roGdD vvglSyXEHc+RIoJ4SmXKk7uSptR77nVWOvs1e1kKaMQJKiq9Dx+mhvqBuFmVKm0favN+xI CXE5oEcciiYH61TqfeTRZZRkZEATgnk= ARC-Authentication-Results: i=2; imf03.hostedemail.com; dkim=pass header.d=juniper.net header.s=PPS1017 header.b="CtOx 9OT"; dkim=none ("invalid DKIM record") header.d=juniper.net header.s=selector1 header.b=Dep7fgmB; spf=pass (imf03.hostedemail.com: domain of makb@juniper.net designates 67.231.152.164 as permitted sender) smtp.mailfrom=makb@juniper.net; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=reject) header.from=juniper.net ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1722880578; a=rsa-sha256; cv=pass; b=sKXNcrBc8Qe//WjqFoOxY4W2iVa048PV9ynsYPLQWRK3CkY34ifcybDY1OXjG+t2Oi/0Dv Henn1NDq/77Rijs5zthLqfw2BZUGTx6BQCTCtUAk78NWGdWjMxKrG4zmB0OUcMhFuMvVwY Yl7CzpWrQYU6PwCHAR8LEBADLqL9WHQ= Received: from pps.filterd (m0108160.ppops.net [127.0.0.1]) by mx0b-00273201.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 475C4P1g012355; Mon, 5 Aug 2024 10:56:15 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h= cc:content-id:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS1017; bh=AjiaSga1WytiAS4mHSUWjRYuvOdNGIPI9e/VVrzk9LY=; b=CtOx 9OTddhobGvbLWWYvLrj+FlQaQd0UoojNeeAn868VZQJlHtXbZ1xKPeV9jJhRm41E sa6VKv9PxxCk0vLFYQvwJ4vp+AZMvlfGrhKvOMLd5+8FYnSLfaObSMFIlBsweavK ZhQfei7EHF8EMJuy/mNifJtm/OUFBhXIPMgOIj4lcqyKn0ZAvHr6bMrXxwr/F7Xb Fcr7aJWhayxcJpXw0PheQcFrXZMle1UDa26Tw6H/Ts6/oY3pKoBVDb0MeICDR+0r xKW4P3vp3Mq8Hq4R47zPA3JcMfIMGJVrZHi4osUerh2E0BhlTuUYirWIgWAS59p1 XLCZ0/vidheC9ocPAA== Received: from byapr05cu005.outbound.protection.outlook.com (mail-westusazlp17010006.outbound.protection.outlook.com [40.93.1.6]) by mx0b-00273201.pphosted.com (PPS) with ESMTPS id 40sjfe47qd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 05 Aug 2024 10:56:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qLrcmRGo3HUYBgA9faekzkgqJ03FEUxxmbXRvc92Tx3oHsfSnnYgtxVLpoBwzfGNyFmE+d/djjTMxHu6bosA8Hq0AK/GC0meKUZW02uQdOJQEvcHG5EJbY0HHL8Q8U053B6L5Rc6kLlFkk0Q7UQHtH2irR0clV2++M39lGyfa/1nx6uDcuKHZYphOoFHzcE4+A8/NNU2sokFkhjLb+LSvuovTiZe4PMtjH/VztX42Pfqe4u0ShyWGNnVNQ9WySF5NtiaxbUUx3uo+tRjpNxeRGkfziVwhZnLi9xCCYtodX+naFTzZ3s3685z3Ep9s1t8StZEtk3P4hD8QQWmG2A2+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AjiaSga1WytiAS4mHSUWjRYuvOdNGIPI9e/VVrzk9LY=; b=s+i29m67sKz1l03FRROwqOyXgnJIWhU1gdikoCzDYOllMUYNpsdJ7PZqEqNXztZ3zgcmbHqB6Goe6y1TTzRx4WMlyDZME83D3nD3AueePJjO3cgYJ7XWGzUMuJQVdU96bdYdogVUqs5n2r28//kojYdcYm9JyABrOXul6cUYOkIbkpaFPStkBpuuXhz/q3pz0qnUcYApJxoe6w1ockmvL/MS/cJuE0QxEWnhEjtEuZuDQ4YcU61kUvCc7vzKTDuMp/s3kq0PJhNTyHdF2bJBR3/OiWIKZMyn39lVWZLqBWV7KAHDr5KbC7S9dODw7BxtCn1LM2C1nfYKjkW8RvDXyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=juniper.net; dmarc=pass action=none header.from=juniper.net; dkim=pass header.d=juniper.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AjiaSga1WytiAS4mHSUWjRYuvOdNGIPI9e/VVrzk9LY=; b=Dep7fgmBy/X6NGcm9rXvpcloogfDck8LbpzWU0kUV+TqQ9ZvmvH9melYIlw8qfiQle9joGDhA9kwsl+jKLEgblDaG84KaJXNM8CqxAUV7kdqAQeATEZ5Ibi2R4Yt1UA2t3psE9u4ILTzdDWioVOgS7IbOXph8SkggOUFOe6XrgI= Received: from BYAPR05MB6743.namprd05.prod.outlook.com (2603:10b6:a03:78::26) by DS7PR05MB7318.namprd05.prod.outlook.com (2603:10b6:5:2cb::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Mon, 5 Aug 2024 17:56:12 +0000 Received: from BYAPR05MB6743.namprd05.prod.outlook.com ([fe80::12f7:2690:537b:bacf]) by BYAPR05MB6743.namprd05.prod.outlook.com ([fe80::12f7:2690:537b:bacf%6]) with mapi id 15.20.7828.023; Mon, 5 Aug 2024 17:56:11 +0000 From: Brian Mak To: Linus Torvalds CC: Oleg Nesterov , "Eric W. Biederman" , Kees Cook , Alexander Viro , Christian Brauner , Jan Kara , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH] piped/ptraced coredump (was: Dump smaller VMAs first in ELF cores) Thread-Topic: [RFC PATCH] piped/ptraced coredump (was: Dump smaller VMAs first in ELF cores) Thread-Index: AQHa5oJN0OUvdCow60G/Xu8XfVXMurIXX7SAgAGUvoA= Date: Mon, 5 Aug 2024 17:56:11 +0000 Message-ID: References: <20240804152327.GA27866@redhat.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR05MB6743:EE_|DS7PR05MB7318:EE_ x-ms-office365-filtering-correlation-id: 54fa4a5e-08aa-4603-8958-08dcb577e422 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?To2ToeGkQ+tRvCtQ/Sk28SLXrKVmnEczzpgV0M16TIpbqepjmONgcENienfK?= =?us-ascii?Q?1zvIEz9V0pF5NhuCli74+UrCiuzuN2Kp+CVNn/ddJCAkyYTEfKmG+UfVlnsc?= =?us-ascii?Q?pKB4q0F+5340Jp7RniGXS9YxGOw72PfmosFbpuiM/ObZQVkC2/KixfnzRwNk?= =?us-ascii?Q?6mcTx40Ia8wnfBb4P8FA1mDvw7eRJ7lW4ooN8nF+31vY/OjfuhE7AfNm/Y7S?= =?us-ascii?Q?ZHKXfmq846b2QRB0eLzq/MsVKEUcYn9lndkTe7i3LX8Vi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A8k3CIiGJsmoDxkNtOKJm5lNEadcnjvnTNY0E79U?= =?us-ascii?Q?sFTiRCEjx6b0wGZJ7mg+uF1R+njd/rbm2CCSsXjZCphP1UJhUitqAk7DNPt3?= =?us-ascii?Q?iirrfdOLw9co5wBxnya+C+EmIqS0d8S6dT4ODWWZNShM2Ak60OOCxhS2i7E4?= =?us-ascii?Q?aeZubPF3S4CinCkj3xgfCF39xvWQu3wv8zhdE86rx7DgQixfXNaSH5Tmizsb?= =?us-ascii?Q?vnYrGZH8nqvhmc4lSuNWlxK68Pd1NPM7rKpoRgax6/2rWtACGQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR05MB6743.namprd05.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(7416014)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?hMZRIQhpOufY5L/4FsbWeIKOACu8QQGkE6ieKcRJr2li21bhmmIGkb0OpxF6?= =?us-ascii?Q?e6jgWXTcwQgGC8EersTCxk/q1xD35s3QqzwMM4RAI9WxTSZreqqhDuAsK29l?= =?us-ascii?Q?QwLd3tWr8WFMWPO2KOXJuYHQCwkcSu9t0a954698o3OW/aJLkRpQ60QvJIjO?= =?us-ascii?Q?iGavcxbKYN3FGbqxfmikMdO6UB/oF5zQPdNkbNQnHOwXsTh5CeHQzYHdjAIc?= =?us-ascii?Q?l3ZVuJ935Z/YrJbcghW+xVWOMde1tcPRrIYYlF7xOtwUugiHZC1ZkMPPx71s?= =?us-ascii?Q?AyrlRPOkMPdCGqF0nsGLGvydz4VnYKiuAUOnN51GELCOwtsmQFh8Cjq+Ee1l?= =?us-ascii?Q?beNazU7Lftmyiow1p9Suq1vl/IRWBe2wEBJyC/AxQC0KAGLkAqzSJ27DOdRi?= =?us-ascii?Q?r7jVhscN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zca8VC?= =?us-ascii?Q?Jxc/EZh5IYqGLfGfq1rMP+ZKXD89znmktmXB2FRXUHwZxcxcv6bQDqdEraZc?= =?us-ascii?Q?KOjfu1yb/sNwFtfGkbiZODZvQCyw0vsAiTvYMj48lMoCzU1qHY9RiUWhPNzD?= =?us-ascii?Q?6dhVTETdM6DM45YHkc7fqtH+OkEy4C416MVCcBO2VKRus1OSDaQ5+VTJfrIa?= =?us-ascii?Q?fMel/TMZFpAHt0DzwAAeRoCBZ9kgo0jAwJg4F4tu0muM0Mf6nMdPIldrFAl+?= =?us-ascii?Q?2bEkX34TnD/k8tD3S33DPtLxprpGY46GWGipXE3o?= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR05MB6743.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 54fa4a5e-08aa-4603-8958-08dcb577e422 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Aug 2024 17:56:11.2500 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: mQgD7QFuXURUtNLm38O4mSDDVNQN9lKEVBzCD0+1b22C1g7nuTUl6QihXPM024MtwwyEd68zNVUK1X4PA/UmWQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR05MB7318 X-Proofpoint-GUID: A1TGZrqKg8USneGc4CJXQYyZ6TYlXA6e X-Proofpoint-ORIG-GUID: A1TGZrqKg8USneGc4CJXQYyZ6TYlXA6e X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-05_06,2024-08-02_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 phishscore=0 spamscore=0 mlxlogscore=999 priorityscore=1501 adultscore=0 suspectscore=0 clxscore=1011 mlxscore=0 bulkscore=0 malwarescore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2408050129 X-Rspam-User: X-Stat-Signature: 1we4oc7zkkph9ktbsb7jxts4kdr9nhne X-Rspamd-Queue-Id: 6471520029 X-Rspamd-Server: rspam11 X-HE-Tag: 1722880585-72555 X-HE-Meta: U2FsdGVkX1/NaKgHah9bNyu01bzrRd58l6L8Y8+j8xsWj7B41cSeFyB/9rB8E0q9nBGsfVVVecuBXvHKA3FHAXoZCg05jgZbiUnP2JuUtpmyTQzqVr6dlEtuzShmxOZ71JAWs6fW6kflwpnctybp/kElliWRYjvLE++mm1LrrXrX+PRZtOMwk2Jsd91wMZS7dUwKhEWxOiRQ7NEh4Te8mGHWjuD9ccLgk3wy0sYqlkCAgjQxkN6ZmqEuifGucSSdXvboYPOp3f+021//2poCQYXXzHudS5nGGrZUqylZQPv3WoBLHp+EFD2ZPWtVJNCFrEvXYoO6gA4/WfAt+q/OfcWtaSEG85/KAT95I8CCCOGTCZYvyQUaUAlYCwkdPI8Fg+AY6kkpiPVHhiLi4DDzxflEMrQTOrnz9ChDV48xvLFocETlfq1Kl2UUhV5D1pGoSFFo/l4EGMqS2LoY2DR1uR+S8lFIvqxQ4XqzZC3kTb7eGhePrD/DmuTT5brCM4/aonr0w2NU4FS8X0hE0fFuMwradrsT2Weyca/keqCgPIZ0xKXG8jpp4L+bBX9JA9yfuO1XbOIcZFXXW3ZykRL3CVLPUP6HuvYFiUtkTm/f5KoVTXBG1Nfb281l5z6o4pkDm6nM5Ux22wc6xwW+Q0usTXTIXrirH+JhyuyRxO/I7eoyXW0jML1j1DXiW5imNxWWpStSIvBNDhH2E3C+P1J19wz2Bo1NEVYmCxSS4NeTX6Zlb87evL8BUbAeN6BRcqoITJUEzYmxG6YldWQ0Wn1AefvGQrggEXZTkj4RdhnLS4va8IzEmWjWwPPCcJIti4uyCXwF2A3Bkle3yW5OtQmkLmKZsYDFi52ncIwA4l3fOcnSbXd47Zi1z9Ei2sRU8eeW3EvJ1Y9FfjwrUUbJ/5yC5FNbWJueM3Zf5WUKdx2ArhBcsJ7cbYvuKnPxUhCHcFFYCR7eFs5Y/po5wV1e5LY HTNSItwR NBBunXx6F3xcOl/ii/ucsLkhZBlYpiV9vQVul5HPRxtEk7XgwnhiYL+EzsdQekP2oS/h3vfeNGt3Anj6I/Tdv6souLLoz9V96cHraDN0jvxs8+yyKF5InC32pQdkZCti54Pq/urkrp63RFoeq0RSicuNtvPo9H3CqIljew+i7PMGyIw1+XX1A/CONLUPfu8SXfe1HYpxMSqmTfBC8MXm7t+6DDI0+evJUlbSY6XBQiDpkd/AcmogjArn2DYFadZC7X8JK+DM/tvyobD/EMzWHc1jCVt83ghOlpjvgcq2pn7LHzG+dJxiHV3p0ZOEVkNMtCKB3DN3rLsD0sdNZBvNab6/87ua83aK+SxIups0T6smNA0YR5LlTh0Qw/YLYlFsYJdaimJOFn+TWiXo3R9I5Wxy3jiawzSxAIYfj6H+0mF2Ubkwnx+iZbFf5gPuIO3sely6O6IX9tK6mzZV97bH6fKPYPuoteO3KgxI/0j+ZH5/C7WISJRPWE1VkCA0XYfZELKTbiE08i39FKncDqvsZtfBlbADoRqeoa+x0c5ArguOShdeYvUch73PpNuzAUeDBdysv X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Aug 4, 2024, at 10:47 AM, Linus Torvalds = wrote: > On Sun, 4 Aug 2024 at 08:23, Oleg Nesterov wrote: >>=20 >> What do you think? >=20 > Eww. I really don't like giving the dumper ptrace rights. >=20 > I think the real limitations of the "dump to pipe" is that it's just > being very stupid. Which is fine in the sense that core dumps aren't > likely to be a huge priority. But if or when they _are_ a priority, > it's not a great model. >=20 > So I prefer the original patch because it's also small, but it's > conceptually much smaller. >=20 > That said, even that simplified v2 looks a bit excessive to me. >=20 > Does it really help so much to create a new array of core_vma_metadata > pointers - could we not just sort those things in place? Hi Linus, Thanks for taking the time to reply. Yep, I don't see any immediate reason for why we can't sort this in place to begin with. Thanks, Eric, for originally bringing this up. Will send out a v3 with these edits. > Also, honestly, if the issue is core dump truncation, at some point we > should just support truncating individual mappings rather than the > whole core file anyway. No? Do you mean support truncating VMAs in addition to sorting or as a replacement to sorting? If you mean in addition, then I agree, there may be some VMAs that are known to not contain information critical to debugging, but may aid, and therefore have less priority. If you mean as a replacement to sorting, then we'd need to know exactly which VMAs to keep/discard, which is a non-trivial task, as discussed in v1 of my patch, and so it doesn't seem like a viable alternative. > Depending on what the major issue is, we might also tweak the > heuristics for which vmas get written out. >=20 > For example, I wouldn't be surprised if there's a fair number of "this > read-only private file mapping gets written out because it has been > written to" due to runtime linking. And I kind of suspect that in many > cases that's not all that interesting. >=20 > Anyway, I assume that Brian had some specific problem case that > triggered this all, and I'd like to know a bit more. Yes, there were a couple problem cases that triggered the need for this patch. I'll repeat what i said in v1 about this: At Juniper, we have some daemons that can consume a lot of memory, where upon crash, can result in core dumps of several GBs. While dumping, we've encountered these two scenarios resulting in a unusable core: 1. Disk space is low at the time of core dump, resulting in a truncated core once the disk is full. 2. A daemon has a TimeoutStopSec option configured in its systemd unit file, where upon core dumping, could timeout (triggering a SIGKILL) if the core dump is too large and is taking too long to dump. In both scenarios, we see that the core file is already several GB, and still does not contain the information necessary to form a backtrace, thus creating the need for this change. In the second scenario, we are unable to increase the timeout option due to our recovery time objective requirements. Best, Brian Mak > Linus