Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1701474rdb; Tue, 20 Feb 2024 04:41:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVY6qD4hYLCGjh4VIpWx+vHZrFyaJHgHECS8+gRhMlrovHw2mA1QmOa0qOiY/YF+RdX53puiv+ooWwguUkLewZQlo6px8Mo1MObNyT/nA== X-Google-Smtp-Source: AGHT+IGKvgfyWNjlMfGG14cF40A5Q29cw/DY3pr6E+1PDE4e8Zd1BWtLRfPpC82Ve1as7ReDnOO+ X-Received: by 2002:a05:6870:9d16:b0:21e:b5e1:ac3d with SMTP id pp22-20020a0568709d1600b0021eb5e1ac3dmr8535416oab.52.1708432879460; Tue, 20 Feb 2024 04:41:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708432879; cv=pass; d=google.com; s=arc-20160816; b=MUytT2904Xj+fHZPjDBihl26rHD6mzVpHVMaSpTFsIm+OQcTNfL0fzHgu2AJzQXsf8 zZKrdsGEatGyI3OETZdoKwUbL6eDW+KINXVLcvB9/VDQBS6b9R94KK8Zha5cFd5Du9DE sXGFFOOVIbwgqZtpkcdHIYv22s0pkDUXyrteVCNymz03+MVJFB1zkON/Idq48Z5wiyRH GolkDwFs0Y579nZqZdQNhgOIJP1CX0R7E6o4znYmz84pAHB9HWmQpJ9n+IAwHNtazqC1 MiOT2uLIrVc57e0yl3kgzi2hDcB7ZzvUNMUYzj8BL22DwnmHhG6gKsSe4PUDs+GH8Wxq mLZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=ackbCV81XyEbD7DZSK1QNJr1u7ZHUTQZH151yHDIdOU=; fh=yRMm1ei15N8GTSQqoIdOysETGYbw8ePbxWf0xiz81A0=; b=ih72moVUkE3YNJacZxRt12nC7EOgSqCIKL0t2dQE/a+GF7A0wXtEwcD0MndobERXzN w/ZwuoSuNaD/N/qgLZnMcpCuijWYSEbIFfaH9rfYmZEud8bxCMH7qdZjCD8faExKWYBa TYb4psCowi4uHApaD3iV3s8nlJc3AVK1QceQ67yOGO1cONkrPf4QWTEHYPvqzjQjNNnn zXfqgrsMC3LQhIto9+SUTNixwQgelCtlo9Gg/MB2u5FnH67fRFUqfFb5ykEVSMoBvYMn 44js6Gg2vJRfwBLk9upfpkRUVLOwNMef+3CAQjii9MwF5+bMGbXhIycQrh7++KO4AEUd PMxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=JOd+OAw0; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-73033-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73033-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jt39-20020a05622aa02700b0042dd3f1e76csi7205559qtb.572.2024.02.20.04.41.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 04:41:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73033-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=JOd+OAw0; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-73033-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73033-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 142AA1C220F9 for ; Tue, 20 Feb 2024 12:41:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7ACA469D0C; Tue, 20 Feb 2024 12:40:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="JOd+OAw0" Received: from mout.web.de (mout.web.de [212.227.17.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F2975674E; Tue, 20 Feb 2024 12:40:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708432856; cv=none; b=FqVCoARg5mFLJZfSNxOc8Remv/vQNlmHsq6WnB9fPJbKJLMaPDNy6Z8v6rUoDYhG22M1MTSt5IK5/PIt89mnKfQhv+dvo+oy2AnBRqi8ydrFZ+h/GcQKJLqEC8+QSVUN1SQdRQ32rpzcYipRVlwld/HkMuAA5bP82tT1o8I+LRg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708432856; c=relaxed/simple; bh=ackbCV81XyEbD7DZSK1QNJr1u7ZHUTQZH151yHDIdOU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pL7tv+nSwTqIg7zqWQr5kiyO41X6tvqCjXSPoS5D2KlKyWBAUGiLSlJgXfJVsa1h3I3kCdnxP6TrKaWdB24UwM8BEjXCYMZep5P7xAUohLG6iEMeMv3xT1I8QdZk7TidroNGP7K+X2zOfPKzttbZSSoBJy5OkGv/wXMQujxBqtE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b=JOd+OAw0; arc=none smtp.client-ip=212.227.17.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1708432825; x=1709037625; i=markus.elfring@web.de; bh=ackbCV81XyEbD7DZSK1QNJr1u7ZHUTQZH151yHDIdOU=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From: In-Reply-To; b=JOd+OAw0np9qZK8WoR7hHNlYpGDTcxGvCWObU9SA4t2cVmL7AI2TrdyjeBf6lDzR WJN1gDbnHjaKOZu6G21ZbmSAan/w8kUcPkx/eC5Si65Q/RH06xYJLdrKVh3/3Ddr1 BL2SyMc3/Qsnm6PZz0mInnCFyavQgiUmeuvmbi11Dm+WJVt42OxOXrc2aG7v56lUn bkvBlexEk7gYMuiirEpHIfemcqLFLLs7GES60iTe/HDkxO5L4A+TxXJZXLfJb/kds AiWpCb15g+6yIGc1gRJKVbRmXqmUIafWYiQgBNH8I9N9Mr6o4/GT3mX4lxJ7RS/A6 Q4ZGYuz57TBtyxdZcQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.80.95]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MHmm4-1rgH1i3TOA-00EwPI; Tue, 20 Feb 2024 13:40:24 +0100 Message-ID: <1bb22d53-2bfb-4fa7-9c4a-f49d979207ab@web.de> Date: Tue, 20 Feb 2024 13:40:20 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [3/6] soc: qcom: pmic_glink_altmode: fix drm bridge use-after-free Content-Language: en-GB To: Johan Hovold , freedreno@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-phy@lists.infradead.org, linux-arm-msm@vger.kernel.org, kernel-janitors@vger.kernel.org Cc: Johan Hovold , Andrzej Hajda , Bjorn Andersson , Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Neil Armstrong , Robert Foss , Thomas Zimmermann , Vinod Koul , LKML , Abhinav Kumar , Dmitry Baryshkov , Jernej Skrabec , Jonas Karlman , Kishon Vijay Abraham I , Konrad Dybcio , Kuogee Hsieh , Laurent Pinchart , Rob Clark , stable@vger.kernel.org References: <20240217150228.5788-4-johan+linaro@kernel.org> <9ff4221a-7083-4cb1-abde-1690f655da8d@web.de> From: Markus Elfring In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:r+CHavyKhh73xuHY9wsEjvvyvp2FPjpfnjTyBrrjxbHa+zRr3E/ RiJIddQORueuMddXYwNvCYF5KhgIjz1im8dJ4PZG7yiEWHxHhVtMSsEPFLOnMsRTEeoGsKi jCIVsHUoJPtUqrgmgi5k4whlTBRlG5mnoagRQKtuA6NqjfX8pOXeBLTy6jSgfZogRNfRX/k cg/xF0tVkCFkH1W1ooyhg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:KtuAdgiy1ik=;y4ys3n9cM6RoSSuIK93yPw73zol pSyhNa3wJKuiPsj75tLL00VnROfe+KzG2al6/Rhvs4lZPTcXW6jz+ErDf4UVuWVC0sA5Y6nz+ pzN07m7oQsgW+/FxGSD6px1OGNBQKMfFxFdq8z+/Eol/LzEDM3VHAqr0j6ViiL2IQpcODdflP On0tDmCes0Ju0RLWrvsKwaNXmbiZgnFu6N3LuqAXxbd6JGOzYuv/HJxLN97eiGUxcHXqaTpOb VulkDO0u7Vh9Z2ShIImU02TNC/nIhZOJaNGjQtTCB74eH+JVb13UPhGePUZnLUWKv7UWySMIK 7mwMSVZDpl2cR4mKbcZ0Njhe8hk+fxsArS2guI5gL2aYT6bvY1fLdX62jl16+aXiJyzNphrh3 zkRkPuTCfDcG0ZBAyL/MWkB08q0TijBJK/zmjUd0der0ZEO0thUrakZYQHeWbKnePiHqlyTEy tDDw9+w26IDa1M7uR8NVNK6BmjcMX5bMs0GEhvAcwQTQY8d5q/ieLyS6PjBDl4R8vX1opftl9 8RoBXj5YonoO7WuTe6XP+j1EIkEec4VoFDGcCNtaAofjPIF563IIp6irkdWRRhU5LVNcacEdc yDt+lLKGdozKR5BG1JOdo32sSwYgPkSCvzvaYw2TiOP/NhID60aI10TcHXqGSw+XgAs9WLXlR t/NwYz6uDXRjrVQFBecPp0omdQzV+gtMSJv64VIWfqp+5tIkMv/5ipi90aOSyF9jlQDpZiH1U Emzes10uty02+3WM4bTqj5Hr9rJ/pskEz6Nb2j+B3uazjL7FdD9BIt+eD4HBJLOz9n+NStUvs sSiU89ntkAXEjBi6FraSIxizVT96J8+lcnHZdWbg+W4fM= >> The function call =E2=80=9Cfwnode_handle_put(fwnode)=E2=80=9D is used i= n multiple if branches. >> https://elixir.bootlin.com/linux/v6.8-rc5/source/drivers/soc/qcom/pmic_= glink_altmode.c#L435 >> >> I suggest to add a jump target so that a bit of exception handling >> can be better reused at the end of this function implementation. > > Markus, as people have told you repeatedly, just stop with these comment= s. How does such a response fit to advices from another known information sou= rces? Section =E2=80=9C7) Centralized exiting of functions=E2=80=9D https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Do= cumentation/process/coding-style.rst?h=3Dv6.8-rc5#n526 > You're not helping, in fact, you are actively harmful to the > kernel community as you are wasting people's time. The proposed source code transformation can eventually be (automatically) = achieved also with help of improved development tools. Regards, Markus