Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3969136rdb; Mon, 11 Dec 2023 05:31:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3JBA8Z5aKu/eod3OnOeAjuqGyLyj9P3jFDCUHGu0b6NDXAawlcm1aKUd0c2aXhOTk9Aat X-Received: by 2002:a17:90a:4094:b0:286:d491:4be8 with SMTP id l20-20020a17090a409400b00286d4914be8mr3243847pjg.87.1702301483507; Mon, 11 Dec 2023 05:31:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702301483; cv=pass; d=google.com; s=arc-20160816; b=cw1PhJNR8a+hIa2iYibFnHZWezFV4N1uI5Txy5eUQs/uZhpnaLRu+Aa//tSOb8aYOV W+2ARgUhg/iO9mbgOQF0tOf/d1VQoqC6EavFiKYU2yK+7z4YAWnpX8dmwU+CfstNgB5H bnW7Tkhs5ZE0w92S463Jum8KXKYodfC2p9TvO3Gnyv6TrLBqw83ROqrvGqtKlV8sPqRX daBqSVqsyhpornxrxd9Ya3fvZ2dnCoqQxuHvkBqk6qrM94wxF4ue6w4iwWp/NN15DABv 3FbUxEztZUlf3QqqD8/nIl4Go0pDLDHR/znNCfoogRKR/YU8nU9zkcj9NhoMbhoPD5F0 QASg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=PvSG3XpyAjP0LVHb5cLb0mq0nabmjI4fK0dTfIFDw5Q=; fh=KQ9wSW6IGbyfhHf/+uHRMTITjCP0Qur7APsQpATqnKE=; b=jkEDIdiU/UmbUNmxQXFjYpIFVwpQVo+PPnc4gK08pP70SezU5o9p3/AfuVE4wlkWvC rYD0ynb/qqW+oFXovtFyi8QLDLF/MM3dwaM4K80mdSVuiii4NI2BRTb+a8LhBz2WGyM9 QEu9DmUtsEGiMSSG1pSL9A+9ZB+cDGkCfwuytrN0EQWvkekA0kply0lysQO/4q560GlZ XPVjy0cWNdrpotKX8aQp/2oJqsWuZ7D0i/iGJ8b1Hsi1i8c8ZEe8TS8MmV27/Lr6tpyH QaYuM7TA2AADOOHW4lsYkfyvofALclQQVqV2cQWUdJpUBF/5cyly2PfCEBcZXHuodvcw NzMA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@grpleg.onmicrosoft.com header.s=selector1-grpleg-onmicrosoft-com header.b=XWlSf6i8; arc=pass (i=1 spf=pass spfdomain=raritan.com dkim=pass dkdomain=raritan.com dmarc=pass fromdomain=raritan.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id lp13-20020a17090b4a8d00b00286a4ce6474si7674702pjb.179.2023.12.11.05.31.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 05:31:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@grpleg.onmicrosoft.com header.s=selector1-grpleg-onmicrosoft-com header.b=XWlSf6i8; arc=pass (i=1 spf=pass spfdomain=raritan.com dkim=pass dkdomain=raritan.com dmarc=pass fromdomain=raritan.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 037BE806117F; Mon, 11 Dec 2023 05:31:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343661AbjLKNbF (ORCPT + 99 others); Mon, 11 Dec 2023 08:31:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234350AbjLKNbE (ORCPT ); Mon, 11 Dec 2023 08:31:04 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2128.outbound.protection.outlook.com [40.107.20.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F9FAB3 for ; Mon, 11 Dec 2023 05:31:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cJaPKcMYreexOcbJGSmaYzc3dngzOgoiX579QXRtCME6QasacebrN47yGI8hzuzGi//Tud5hGpuUOK0+f9EQg+vA42V/Rkse6flZdSL6S+uiVMsOvoaIHPyyrgLGNyzen1iXwxEeV+ZzILpNj4fw8Xkg46MFNGn/6g+NtXvnfTvbbr7eh9jWHG6wCqgnhv4ioqZTYHq9v+XoyepzkiL40dC+pgy1lJxl97e3pCa3zzguAztciVLuPTytuhXh6lJMhOQAXpVl55UfBeaqG5bp3b/YczSQztSuZLoB4yIk7m/gUiHxHbGitqldT/oXEU7izm9/3Ii/uPW7e3zXp3ovrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=PvSG3XpyAjP0LVHb5cLb0mq0nabmjI4fK0dTfIFDw5Q=; b=QiVoRJRZ824udaewuro/WATuNCILakGTCDFwYg8/SfNxMqgys4mHXBAhwAc/WyJ4mgW0CyAyZZ0u0Rlrp6i/JmfVX1FdZ/BrLtHlIH6L1nPioLXW/MyL4NSugX5f11z7PxOu9e/1R2PFzg3Y4cUe3MmWTOicMUco/n8e7rZi/32GIHcTBROGTA6pTmTsFD218unKIJzZ32Ow+EBEPTNwZrJpJ0nL2bfFBocQvTeAXj3vpXKb/sa6RlccRGa7zdO6txuOXcfyXKS8WtqepafM5oDxMRKAO9JyXS2Z4rq24NoukT+WKOSg+CmVLt9JlqrjTxJxXkI551cvATGl3ODWZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=raritan.com; dmarc=pass action=none header.from=raritan.com; dkim=pass header.d=raritan.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=grpleg.onmicrosoft.com; s=selector1-grpleg-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PvSG3XpyAjP0LVHb5cLb0mq0nabmjI4fK0dTfIFDw5Q=; b=XWlSf6i87TJ1xRpXAjp2HbE1FPdZsDVqnToflbiYIF+iZCfRaXAZj0mZT0SOOwLUnBK6jhoN8+nz1TeAxJtZAgSMkFVmuDP0qI2dtLpO0jV9+4+oLaHJDjG5KOy+JgsDtmUcQoVPDNUS8L63+w2WvpXlH87thzLPEyL0Fri+tAU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=raritan.com; Received: from DB8PR06MB6539.eurprd06.prod.outlook.com (2603:10a6:10:12f::23) by PR3PR06MB7097.eurprd06.prod.outlook.com (2603:10a6:102:8a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32; Mon, 11 Dec 2023 13:31:07 +0000 Received: from DB8PR06MB6539.eurprd06.prod.outlook.com ([fe80::98dd:e9db:b7d8:9001]) by DB8PR06MB6539.eurprd06.prod.outlook.com ([fe80::98dd:e9db:b7d8:9001%3]) with mapi id 15.20.7068.028; Mon, 11 Dec 2023 13:31:07 +0000 Message-ID: <06e77692-4942-4657-9694-725d6de3e883@raritan.com> Date: Mon, 11 Dec 2023 14:31:04 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] stacktrace: check whether task has a stack before saving it Content-Language: en-US To: Linus Walleij , Ronald Wahl Cc: linux-kernel@vger.kernel.org, Thomas Gleixner References: <20231030175854.12675-1-rwahl@gmx.de> From: Ronald Wahl In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: FR2P281CA0054.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:93::8) To DB8PR06MB6539.eurprd06.prod.outlook.com (2603:10a6:10:12f::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR06MB6539:EE_|PR3PR06MB7097:EE_ X-MS-Office365-Filtering-Correlation-Id: 3042a3d9-03f1-4608-5b64-08dbfa4d6e03 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7VCEkznnyEgRMxz5IR5oaLlO5N31WxZj1UXDgRQLSfuuKZpXMOc6oyVIZhL8fSPrG9/xEfPqUFHek7HEkFJPJqLzDFzv/K2GQAzt+UUxdRsrQmePGcRmjr8mihHE7S18BbYAblXVSRB9ZtvEPLa7AOdUjAr78sldZy+pAHFfRVM02lAyiuaShtVpJPmEbbEKkZimLH5S8dnKbF+mIuqL1ibMu2dYXHAL2NmnKYKkkbvlpC3S/2dVIpBpMF8O+1lnjn08XGqNxLkWQwrH08lkORsFSEj14VyXeIujQxC+AvjSa4s0iv/NL0Tp5Ap/L3ac0GfWdP/T+cBuJh7ewAGHTC4a7UF1rpBQ+x4jJHo7+2W5vPxWkmLRZ/8+upEdLIMmXp4hlKcLPiU7HrGTkCtTYcIsqFnBOBhTISJAt6KNl490IQlsGDM/sA0GhleaJYxCP8Z5rCmMBkfigadMTcIwbbyTnF5MMwumpM60C1kxiguKA66Emn+fUbxEWA/O9l8b3Gf/JeW3b86uVetc5p+O8gFjnhl6lactmuDB7bihJNm9JCOIbPyYb36VPhJXW0KUV8xWKqRFuPp6xkvYIjrC4H/bHE1nzSxY1xVAPveMjGY62WN0R1+iBRGbyMYdiZZFthJFGFDPzKaQ6jczneH3RuHHb+Ss2iOKSJADMBYF6OVsumvbx59dcmPmEUOTEbNXcykieu+UWOG9CTLDgg1jqqA4lle4IazGdmbojJjW6s0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB8PR06MB6539.eurprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(39860400002)(346002)(136003)(396003)(366004)(230922051799003)(230373577357003)(230173577357003)(230273577357003)(230473577357003)(451199024)(186009)(64100799003)(1800799012)(41300700001)(66574015)(26005)(2616005)(83380400001)(86362001)(31696002)(36756003)(38100700002)(44832011)(5660300002)(316002)(8676002)(8936002)(4326008)(2906002)(6666004)(6512007)(6506007)(53546011)(66476007)(66556008)(66946007)(110136005)(478600001)(6486002)(966005)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WkgyMjlpcmVhMUM5NDdmQkw1cHZYeHAzbzRLZk05V3hjOU9KTkFtbGdxWlRj?= =?utf-8?B?aWlSVlNnamFPVk9OWmdwbXVkNFZiYVpMTEU1S0phRUJXNlVtdlRDNTNMaUl1?= =?utf-8?B?MXNRanpBa2hPQnluU3ZBKzBjRm9JYU5lcmZBaGZsc1RucGg1VTZiWnN3OTZy?= =?utf-8?B?Z3h5QXJpb0ViL3VXaGtmdzViQmJtWEFCUXNrbjBZaGFnaC9JMmNLMjNRN1BO?= =?utf-8?B?clB3S1RqTi9YODdZczArQXFJWnF1OEFheGI3QjJTTEliQVRPU0hsL3RWeW14?= =?utf-8?B?cXVXcjJHTkVJQ2ZIOGxpaEZpZTdGZ1lMYUlYeU1vNzkxQnpHU2Vq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vyt6V3plS3M5REJIK3lRSmdQUDZZ?= =?utf-8?B?Tnc9PQ==?= X-OriginatorOrg: raritan.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3042a3d9-03f1-4608-5b64-08dbfa4d6e03 X-MS-Exchange-CrossTenant-AuthSource: DB8PR06MB6539.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2023 13:31:07.1235 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 199686b5-bef4-4960-8786-7a6b1888fee3 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /rzybCKI60VG9cUjgOSoGXeanZJa3a3fAjUPHhH140K3HG0/zjOAfdJhZRHKSE+Lbdnc7qwHz6/jEJovcgwmiQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR06MB7097 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Mon, 11 Dec 2023 05:31:21 -0800 (PST) On 01.11.23 22:59, Linus Walleij wrote: > [You don't often get email from linus.walleij@linaro.org. Learn why this = is important at https://aka.ms/LearnAboutSenderIdentification ] > > On Mon, Oct 30, 2023 at 6:59=E2=80=AFPM Ronald Wahl wrote: > >> I encountered a crash on ARM32 when trying to dump the stack of some >> zombie process. This is caused by a missing check whether the task >> actually has a valid stack. This commit adds this check. >> >> Commit 214d8ca6ee85 ("stacktrace: Provide common infrastructure") >> introduced this check for platforms that define CONFIG_ARCH_STACKWALK >> but ARM32 is not one of them. >> >> Signed-off-by: Ronald Wahl > > Looks correct to me: > Reviewed-by: Linus Walleij Unfortunately it causes a memory leak because I forgot to call put_task_stack(task) now. Should I post v2 or a separate patch? - ron ________________________________ Ce message, ainsi que tous les fichiers joints =C3=A0 ce message, peuvent c= ontenir des informations sensibles et/ ou confidentielles ne devant pas =C3= =AAtre divulgu=C3=A9es. Si vous n'=C3=AAtes pas le destinataire de ce messa= ge (ou que vous recevez ce message par erreur), nous vous remercions de le = notifier imm=C3=A9diatement =C3=A0 son exp=C3=A9diteur, et de d=C3=A9truire= ce message. Toute copie, divulgation, modification, utilisation ou diffusi= on, non autoris=C3=A9e, directe ou indirecte, de tout ou partie de ce messa= ge, est strictement interdite. This e-mail, and any document attached hereby, may contain confidential and= /or privileged information. If you are not the intended recipient (or have = received this e-mail in error) please notify the sender immediately and des= troy this e-mail. Any unauthorized, direct or indirect, copying, disclosure= , distribution or other use of the material or parts thereof is strictly fo= rbidden.