Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp97253lqb; Thu, 14 Mar 2024 06:31:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdKh4ej0DDpyFrxyid80KwX/bm3gFb7P0OGL1gYhBOKncDmJMRdD0YG9SmN4Y1Hu5N4WQOiMTLGUpPyQlrXC8ACPhZBrbS4ClgYJaGlA== X-Google-Smtp-Source: AGHT+IEzIzenpcoeYYybWgHczGNG6jOz60Hr5Db7edRfr+/xidjTDah3nykaUU+o+E4b3FT2ANHU X-Received: by 2002:a05:6a20:21c6:b0:1a1:4d56:7d68 with SMTP id p6-20020a056a2021c600b001a14d567d68mr1557381pzb.36.1710423101477; Thu, 14 Mar 2024 06:31:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710423101; cv=pass; d=google.com; s=arc-20160816; b=wts0XwLoLWRLZn2UNZ5gO1nggkJotIzgkk7gBtDtkd2q14THODbuFQPNLR9yhCwG9m 8PVwU9aR1oe7CEElxB1RjHxyL4VAGP2enPuPdtNRpkPb89H4adHRavRm9X1fkqaq65G3 Hp/4bpY1A2CFhvt6NS+aUQ2usb0lqwJ9Jsk1lBM2WlZFYmYZUu2jzSwQAv/VvdZvlTfJ qz/4su0ypg8be2GngWPXdpkV3BnV/J2ZytPloeax+dDRikJyjo8OA1uUBqoENSZP7FzI 3xqmMXgYPUurkQev6ExLgwdyP5ekiyBjLfEeDdqgFEd2DPmu3NGs8JmL3VmOgy/+dZsU LBxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=gPkhUSdcqdsN9V6zcu4BRhpYFnVUNXONuARlNbPZEbM=; fh=BVp3zJPC+F7NoHWUHfx2BQSXxhWShU9vMHjAQjs2kDQ=; b=zvaQsNvsJN/M28/LJP/sr47BCIGeDddVRJwBSiCLAg/OvXYE5vOtcctJklWuNLIlEI Sf2fomjZOAvTkHrA/khnfaVxyBG8CjVH99wS5i1aLxLVUYQgR9xHzi2imV9LISm2RAF5 H0l3MBGE/YJ6XbIQYY1H9vYdret3W9+6T8BO1wgH6qOviS+6I4cgj3hqDhv9QJwbWfwL 1fcG8x6UIoKjhOHwjUcEH3XfcieiNLXfSUHIeCCzU3L0/JSWDiQKPh3f5kGv/rHwo9lg 1FNsDgb9HDnmL50nGjpoVNve9unA4Lit9xj7jHFOCgAF7tRQQAk7palMdKY6GSnRCIdJ AArg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T8MAfn4v; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-103304-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103304-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w22-20020aa78596000000b006e698494afcsi1491680pfn.106.2024.03.14.06.31.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 06:31:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103304-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T8MAfn4v; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-103304-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103304-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 15B12281F70 for ; Thu, 14 Mar 2024 13:31:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77E1F5C611; Thu, 14 Mar 2024 13:31:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="T8MAfn4v" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6BD4B55C35 for ; Thu, 14 Mar 2024 13:31:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710423095; cv=none; b=JFk78FFMQoyuUyLBUxjaagqZQCOKg9hiwpvw33xK2KE9tfHa7OejX/83WOX0JqwSGsBsPW+twy7Hxc+QFW/NsLHlXD82CCSmCYZqr1qwAFGwEDi2/9LjdJH4HhAqvdkcQtmnBo4h5H4gNawa9HOSdjGciehO8YsEdxR3KIJ7Ejw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710423095; c=relaxed/simple; bh=nGFymr06jggn35ZdmCn4T3pwrR6+++r55xgECWArEvY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tYRWQyUSHaPQlJZLMuVPrNCcwagfHrCE0U1CrLbWWBLdzstVZH4eqDW5guSNXjVldOouOMCuC1+/U7E2Ah/ExA9/KrVgdvdl7umSp13M4YGICdV+Em/c3u+QIeacSx6WES9znwRn5K7+Ei/D7TFK82JMs/LGFGGHOkN4Fuoa51Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=T8MAfn4v; arc=none smtp.client-ip=209.85.208.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2d46d729d89so13323251fa.3 for ; Thu, 14 Mar 2024 06:31:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710423091; x=1711027891; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gPkhUSdcqdsN9V6zcu4BRhpYFnVUNXONuARlNbPZEbM=; b=T8MAfn4vVI97SSphEf5unrcm2NKyhwsx5Lpr+ACu6unf/Cv0wYBInRwiVCb3oyZ7mV 8BLHVn/eoec0pxgm5lKGIbPxNtTcuq47yy+pWJA5QlJ0aXDpe8ODNU2mahnVGFwQ3k9Y ZR7l34SF6HkAaprxZ2xo6ykAejmnOaQLG7i/oBEhom/lCztgTmg0WqjRjrdi8wO28Pv7 kCvM4dW6bxolpBB7vnY8/8Wrrk1CYYos6ZbXb+oGNh18R+mazP4n8qEZrbhk8OBJhApw 1JMSKGn1VozFXQrl7OBHwaWsEGFWMZndU6SNApu2RRVyeW2dJUIf3adGhmA4gi9QGpJS k/fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710423091; x=1711027891; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gPkhUSdcqdsN9V6zcu4BRhpYFnVUNXONuARlNbPZEbM=; b=ZoDfF1P32AcDA6rW1Lr8Jm/1iMzlGzFJAmhg7U2/OuiZ903uzbq6JB2FjueR4eqi3j GeGzB5d4DgKNu69IeWthCk1xWbPqn50n+DyrYBIweTahGyEgjHULeVPPFaE1Q5YwK01O JWz7nFQLr1hM87J7giKIyUM2gDsTSh3D2+Dl++kUtQ5vnjUOppJupY2oDEvIoNWVfxEZ RqL+pub6KGsp2v9DQ9EhEX55EGiR7CxVh913uafo6Qm6KKo5PbWHLgK5H5XX6FVWQmXg dA6VoBXq0N2y49WZxj0wcQFeTPtTrob7k0MVbEjPqYILXWpNbCW1i+c2CJspAONXa4QW evjw== X-Forwarded-Encrypted: i=1; AJvYcCX05MG7T/JznejsVZXUBMiMevymJnuyWFXnVwCKbBNtb3NqhfC5mtgiP4BZKDERuBTZFXt8Wc+rk6aslZb5t6urCUj5Sa8sor32Ak6f X-Gm-Message-State: AOJu0Yz60CRB4AbWdGnOJBpvTWc2KWKgraIib8bG+Ha5MUaGRMFLTn0m aFCH5KhM1AwCDcSRc2lZK0OoYaoUAzQtK/pv0OqJ+aVY7O4cGTjWsCL7FH9XA24= X-Received: by 2002:a2e:9019:0:b0:2d4:7829:4d11 with SMTP id h25-20020a2e9019000000b002d478294d11mr8773ljg.39.1710423091372; Thu, 14 Mar 2024 06:31:31 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id v3-20020adfe4c3000000b0033e052be14fsm767561wrm.98.2024.03.14.06.31.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Mar 2024 06:31:30 -0700 (PDT) Message-ID: Date: Thu, 14 Mar 2024 14:31:29 +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: [PATCH v3 2/4] soc: amlogic: meson-gx-socinfo-sm: Add Amlogic secure-monitor SoC Information driver Content-Language: en-US To: Viacheslav , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski References: <20240314070433.4151931-1-adeep@lexina.in> <20240314070433.4151931-3-adeep@lexina.in> <111346d3-8357-4ca3-9249-a43ebc225fcb@linaro.org> <9292d2ee-138a-4a59-9c96-31c1b4473a4e@lexina.in> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfG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6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <9292d2ee-138a-4a59-9c96-31c1b4473a4e@lexina.in> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14/03/2024 13:22, Viacheslav wrote: >> + >>> + soc_dev_attr = devm_kzalloc(&pdev->dev, sizeof(*soc_dev_attr), >>> + GFP_KERNEL); >>> + if (!soc_dev_attr) >>> + return -ENOMEM; >>> + >>> + soc_dev_attr->serial_number = socinfo_get_chipid(&pdev->dev, fw, &socinfo); >>> + >>> + soc_dev_attr->family = "Amlogic Meson"; >>> + soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x:%x - %x:%x", >>> + socinfo.v1.major_id, >>> + socinfo.v1.chip_rev, >>> + socinfo.v1.pack_id, >>> + (socinfo.v1.reserved<<4) + socinfo.v1.layout_ver); >>> + soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%s (%s)", >>> + socinfo_v1_to_soc_id(socinfo), >>> + socinfo_v1_to_package_id(socinfo)); >>> + >>> + soc_dev = soc_device_register(soc_dev_attr); >>> + >>> + >>> + if (IS_ERR(soc_dev)) { >>> + kfree(soc_dev_attr->revision); >>> + kfree_const(soc_dev_attr->soc_id); >>> + kfree(soc_dev_attr); >> >> That's a double free. This was not tested. > > > Please, describe the problem. Test your code. What's the point of arguing over it if regular test would show this? > I don't quite understand what the issue is: > > - kfree() releases memory allocated with kmalloc() So point me where is kmalloc(). I don't see. I see only devm. > - kasprintf() allocates memory using kmalloc_track_caller() > > Technically, I see no difficulty in freeing the newly allocated memory. > In case of memory allocation issues in kasprintf, we would just get > NULL, which kfree should also handle properly. Considering that we don't > need soc_dev_attr anymore, we don't need to worry about the contents of > .revision and .soc_id. Please pay attention that my comment is under specific line. We do not discuss unrelated code. > > I see that kfree_const has crept in by accident, which is essentially > needed here only if we replace kasprintf with kasprintf_const for > .soc_id, but it does not introduce any erroneous behavior. > >> >>> + return PTR_ERR(soc_dev); >>> + } >>> + >>> + dev = soc_device_to_device(soc_dev); >>> + platform_set_drvdata(pdev, soc_dev); >>> + >>> + dev_info(dev, "Amlogic Meson %s Revision %x:%x (%x:%x) Detected (SM)\n", >>> + soc_dev_attr->soc_id, >>> + socinfo.v1.major_id, >>> + socinfo.v1.chip_rev, >>> + socinfo.v1.pack_id, >>> + (socinfo.v1.reserved<<4) + socinfo.v1.layout_ver); >>> + >>> + return PTR_ERR_OR_ZERO(dev); >>> +} >>> + >>> + >>> +static int meson_gx_socinfo_sm_remove(struct platform_device *pdev) >>> +{ >>> + struct soc_device *soc_dev = platform_get_drvdata(pdev); >>> + >>> + soc_device_unregister(soc_dev); >> >> If you free the memory in probe() error path, why you did not decide to >> free it here as well? It is symmetrical, so this should make you wonder >> - error path is wrong. > > This is something I can easily explain: > > In the case where we have successfully registered with > soc_device_register, we clean up everything that was manually allocated > and not used. > In the case of unloading the driver, the cleanup should be handled by > the soc_device_unregister command. > > Technically, it's not possible to insert memory release because until > the command is called, the driver is active, and afterwards, there's no > guarantee of the pointer's validity. Then you do not understand lifecycle of device. There is release here via devm. Exactly at after my comment, when } finishes. > Perhaps it would have been better if soc_device_register copied the > entire soc_device_attribute structure and took care of memory allocation > and release itself, then we could comfortably free any excess memory > back in _probe. > > Are you currently recommending not to release memory within the if > (IS_ERR(soc_dev)) section? You have double free which will be pointed out by testing. Yes, of course I recommend not to have double free, so not to release memory which is being released. Best regards, Krzysztof