Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2584305lqb; Tue, 28 May 2024 04:47:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXN12xBlgoUaqAuVABbwdXLWifoGCdVx5Z/9C21uF+PFjKw2VOdQW4kZ1T0Rnm/Kv7OAu1M1BrkApy/pcxSvjjhj/9eMo8w0CIHxEzkCA== X-Google-Smtp-Source: AGHT+IFJkfR3fjExlFJhKPejjG2HZandsOlOM9aXgUamBQQbyUn65I8OBXqUPKqkD/WSpSdlCToR X-Received: by 2002:a17:907:1059:b0:a59:a0ec:e02d with SMTP id a640c23a62f3a-a62641a3155mr776217366b.8.1716896873057; Tue, 28 May 2024 04:47:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716896873; cv=pass; d=google.com; s=arc-20160816; b=qtztkeAHiq+MK5Fq+mid3XSEU9o7Cv3/d4KnOY8XtrpewuBl0m1UN2LV3GGXrqTnYV dEFRjnfIv8f2YsUExU09LGfYvqWlMSLkkQSMQ4xqlZ4BEoOg0DXMmkhgixkHntsHsEA3 TJkqz2ISc8FQm1s4VSw+REU3GWdST0Mxgpol9RUpdh/+gQ2jxWuXREJ2TwY1kj+UnXQM lTBpBuBkwlDn/Hv4tvkTsPkkdB+/TC0Lx+6mnrlIXSaPqYvd1sR6+PzzyvKp5kE3Vjr+ aivD1eHybTojEeoI+iaUobgkjW1TjhjxoSsnaT3D8DhcdBv5s9IpRdyJdEkOJiS19f54 T8HQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=gs1QUfWnNTWVVMoflcEKhCp+Y3rJQ2FjHWIov/l5yc8=; fh=SqvNZZ0MXCUB8HfsJ+t3KgpYWELSj0kkeNurdaE+cfY=; b=Zls4seDBDPtAI8iX14lWg+Us78Qhail+Dr8cGzn/wo/GVe53HCYLm31bhedBYA/3DB pe58w95Cf/8ByaEF+a3SboeaiqlsKeQXNoivRkMQUiPUcNVfyD5mXq6AdNOStms91IDW 4NelFqr6gH9doo87gsCyoPgxXKgpsun4r1EE9t1AR52fYjIkRRx23+FmYw2T3dF4DmAz tVPr48C1yaM3S/sos33haXzDAAd5IYGw4hDNYchZiI55CaKSSIcTfmpLcHc5nCW+0+3x 34+egIZ8pGaDBudB/Xt+S98CIRY60bn6SrkZYNk/SozYbY5jo0cqYny3okbklI9yajjc aZbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EHv+6h+0; 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-192215-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192215-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6352e40dbdsi26613066b.710.2024.05.28.04.47.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 04:47:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192215-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EHv+6h+0; 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-192215-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192215-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 21C4A1F23255 for ; Tue, 28 May 2024 11:47:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B96716D9AF; Tue, 28 May 2024 11:45:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EHv+6h+0" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 2A25A16C878 for ; Tue, 28 May 2024 11:45:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716896748; cv=none; b=UYP2MCGI5bp0HpjD1qjoYhb+eDuf9ShfwQzSzOkQ3OJ0MvzhqMZOD52Aub9SNyQGwrbCuiII8r1FtCwS/78Ap7VpbDYcHzzhvklqVvLUEa0RaOlOV701c4Xx7/wwRaVYTeOFtPuXRuV8yYMWHSZ9e7mJiIUiRSB1B3yCDp5rkMg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716896748; c=relaxed/simple; bh=Cyn0ZlNcviHjkEXTH9iWy+1yurJIkOQsTzZX3IFxF8c=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=M86NeXaMcancUji7HxubYJ1mqzk6NSv+LSfrn3b+yeyKGeMAtWVzQ+zGjgqxbyScsYOzekNrGyVVY7miuP+OS4etgwYIGgNq9JmaK6yR6TToBrlmV7kxx9vx+QlP6LLV+OWNppM9ZFsaZS83qnchcD81aj6ZCv7YYC45ruDCTcU= 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=EHv+6h+0; arc=none smtp.client-ip=209.85.218.50 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-ej1-f50.google.com with SMTP id a640c23a62f3a-a6269ad9a6fso92006766b.2 for ; Tue, 28 May 2024 04:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716896744; x=1717501544; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gs1QUfWnNTWVVMoflcEKhCp+Y3rJQ2FjHWIov/l5yc8=; b=EHv+6h+0YQYO4PMI8m4utqV4k7fZHkFk1akdCzqCpVXvBVzrzMbcIU020BIYP7zzl+ XNnK7Rmh0+RojhhIfv6oJFcMKuiY/7xOof8I2XTS4xYupfVVMFxbWuwNPQ0npRWOkllF PQyz7q5aa1coM7Z0fziGvA7J8xNRwdHVZgGHMLEI/R3Td/1CQo8KLEqGMaKnn8X+TldN p/58LPvxf4AP5xlVeRBslmJb/dtds7MXG9XuAWH4oceSjGxWp5qclU094VM5/eBCRaD2 mZWvFxY4iDztRCUuCN9dJvW/zkkz7whBKsunP2XXQNApyfTvMrXDQwC/Hw1oCBZlsT1F 9lwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716896744; x=1717501544; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gs1QUfWnNTWVVMoflcEKhCp+Y3rJQ2FjHWIov/l5yc8=; b=Hbo7NxXra8UXVWsLfbdWbHQGRCvrIkPtxgjOu7Mi5ZJJkusOgQYEzEgzT/QKGPszGW 71nKChwPfoL2AEzup5OTZ2dg4szTOvo4TbLj4DUBXvctEzyTQH+SnISdu0ApcofcyidH em7V0uMg0sEruGN2ykKjTpSCHmV4h+gKK8WaxC0BzQKnMo69vP/QnAbU/AHj9bQgNuGW cOHBYvAO2nUJ8C7miV9IGhX9iuqICXxA77BxRYMC5SnoK5AsCUDoFzkUMX9nRIEN6Ywc S9r+ZterRPOCGk7QJnOe2d1KHw42zG2Jsm4pWzF+vyVc4TN9OUICgEHo9dqzZ5eKzreD 9rUg== X-Forwarded-Encrypted: i=1; AJvYcCWgKQXCSck5sdQ0skxfDKYd2Sfmt6lJMp1PZPes46Mf2J2S/sDUYIr1uk+4x/+DMWERLFNwCS4YambPMqBdXSBqxyXpedbw/ntvQLuW X-Gm-Message-State: AOJu0Yxd1FH4ULWzNCc4+7vxzBIarMy6HDqHM4ySIZo9fdslSyMRoAYm 5Oyps36JvZjkIhbWCa5C93sTxqD1Zuq/VKzK4t4rMC+ZettrEKV26kNCzfzg1KQzMJn5LIpt738 9 X-Received: by 2002:a17:906:b1c3:b0:a5c:df23:8c88 with SMTP id a640c23a62f3a-a6264f15bdemr680485466b.49.1716896744362; Tue, 28 May 2024 04:45:44 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626c81773bsm605825066b.30.2024.05.28.04.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 04:45:43 -0700 (PDT) From: Srinivas Kandagatla To: arnd@arndb.de, Thorsten Blum Cc: amahesh@qti.qualcomm.com, gregkh@linuxfoundation.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240507222226.288074-2-thorsten.blum@toblux.com> References: <29b33c18-f123-4656-8507-406c87a12ec8@app.fastmail.com> <20240507222226.288074-2-thorsten.blum@toblux.com> Subject: Re: [PATCH v2] misc: fastrpc: Use memdup_user() Message-Id: <171689674351.20426.8981962769310707800.b4-ty@linaro.org> Date: Tue, 28 May 2024 12:45:43 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.2 On Wed, 08 May 2024 00:22:27 +0200, Thorsten Blum wrote: > Switching to memdup_user() overwrites the allocated memory only once, > whereas kzalloc() followed by copy_from_user() initializes the allocated > memory to zero and then immediately overwrites it. > > Fixes the following Coccinelle/coccicheck warning reported by > memdup_user.cocci: > > [...] Applied, thanks! [1/1] misc: fastrpc: Use memdup_user() commit: a16833330e2fa60912af6abebde711bf2c672cf9 Best regards, -- Srinivas Kandagatla