Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp959148lqt; Fri, 7 Jun 2024 04:10:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzkkDvcximdNIEfiqg+vonQvLHR92JFTbw+83oUninq7x5HnjQhdhfT2tM36NzeNc1SprNefIMNbVWYqNq8zdoUFw8jOY5/ZP/ItN8Ww== X-Google-Smtp-Source: AGHT+IFQWw8nfpiQNo4XCOQ+IsJZ4Vt8fHAmo4shhoHzHkL496TJ1HLtxyczc1Me7bSAi4ak5S6F X-Received: by 2002:ac8:760e:0:b0:440:474e:c946 with SMTP id d75a77b69052e-440474ecb7amr11750131cf.14.1717758608513; Fri, 07 Jun 2024 04:10:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717758608; cv=pass; d=google.com; s=arc-20160816; b=yQJ7aNWXeOJsWgwfORsZMm3alwoLuKQ014SUk9t/7QksuU9gzvWemtKBNATNJCDvTZ ypNx5h5WzOqsVY4XLkBxnbYAoHDfRR2/USFkM5whtLOANljRvcJgAgj2nhuQByItXJL/ i8MRcPrrdrjgSk/u9T1tukyfpTBNXtIU91kCz2/rHws3D8BlJTJqXwhGxP2q6u+boYcb xakgyQsWMOpt0c7LvI1rnGoxKkiYZUBaDbKkFzQhzjivotyp9gPVEhS079o6ZHmJ4e0f Jx0LzDkZsfu41lc+oDAUqGHJvYegLXW0qk6oCqMTmLGBZMZBMNhfqZsnyvhM8MyqsmGp I9Sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rHk9aGALaz9Q3JxQm1gAo8N0FIFK48iZOZz5oLhoQ/8=; fh=hAoPKt2Od8jf0TLqfqYBzFMwFBBVNT1O6g5SMmlGbGc=; b=FjKy2zyBWlW11hrS4onpbXs+O4YVTRwPgtZJ8aVEps82dO8bAs7ONrkMFv0rL1qrn6 +/hffy5K41ARDfym2QqHPhPg9DjT4Ec9Rc9bGF/LrMURjGBMpgK9hf3vQJKANohml+qe 376RslUwpaBichv60GK1IxV3orUdJt8q9gCUVZV9jVhGd03zFTzeynJJpk7h2aHth8FM F1mnQQzIL4Tg39rOc/vteAg9SCW5SSxS6FasgPRv8bJ4X96V4Y6I4nS7ayC1qsBmbgGM v0aJjJZFfS/W8wq5oh6tOLOzS7LAUTpZ+tIh1Ao84ZPqaB/Dv1gGLWS7G+BpIFEj1Hwe B0pQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dRmqhjnM; 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-205875-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205875-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-44038b16e98si30049331cf.316.2024.06.07.04.10.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 04:10:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205875-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=@linaro.org header.s=google header.b=dRmqhjnM; 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-205875-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205875-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3EBA61C211A4 for ; Fri, 7 Jun 2024 11:10:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 928E3187338; Fri, 7 Jun 2024 11:09:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dRmqhjnM" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 0CFCD12FB01 for ; Fri, 7 Jun 2024 11:09:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717758598; cv=none; b=Z7Do1SKa+TVgorFSwYavuxb7+toGA328UaqO57iBnS3wzHOwWLxVnTSp6kd+P1NV6h9kZ5rkt4vaaMHaf+ndE9s7hrQPHla2ev+CnliqsyJrjKDW07uISOr64iMD6Bl/vQ2zAtYnhDsMz3Gi6rSVtIRjvd1shyoKbReQkx758nM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717758598; c=relaxed/simple; bh=2s+vNe+NC540niTbCBQoyezTvds9Adxb5/AvJsmRrRE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RkECY4jcXyGqlBJRVSavtwl/FjICxI97gH7ifgPqG9uR4iE8rsK+Jh1Sp43TVn8RCbe2iwKdXx83SO287Q9Vdp2L/l1sD56w++GUBicZqA4U3VG2vkcV4bNreXmpTqevlYHK7bV9IWQyubLLBlRp+hGqAF3W11vNFCzmx7ChZPU= 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=dRmqhjnM; arc=none smtp.client-ip=209.85.167.47 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-lf1-f47.google.com with SMTP id 2adb3069b0e04-52bbdc237f0so584452e87.0 for ; Fri, 07 Jun 2024 04:09:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717758595; x=1718363395; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=rHk9aGALaz9Q3JxQm1gAo8N0FIFK48iZOZz5oLhoQ/8=; b=dRmqhjnMjso55n2K0b3YtfuD7tfFmjP4Ptf3XTbGHZWgyZEo7ZJeeGQmlKkY16yoeP 2ohAZyoNNSW20mK8mQ9zj9KQBnWLCbw+/fxNclbJ69IXyu3H/WWtAzzGvDbyNrkLUQQc yRt1rzgdEtIbegEO2i8AoTl1HOB4ti+pFhQl+0hzyPcwsHvZb351Om4PWXRCfuksowSQ q0hcjGLNGqwvOfdAa1ZSJAnUu5aIr/QHIxo03cXZtw5UAjoCBFE3XGfNdgOWbroRz+7p 5ZZ5DOneDBrq/azZpbLZPRMGVETQxixEPDTG+/hV2A8cQppFjDomou8YIv9u2n7a+4u5 Dmig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717758595; x=1718363395; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rHk9aGALaz9Q3JxQm1gAo8N0FIFK48iZOZz5oLhoQ/8=; b=M30QqJ7r55TCkFoF2TpimnvbUPmg/4HF0YncrVcswIjA5GaqK7Kt+tFG5sXMRPSdgq LNcxOTChYF9XYJWDY4CuKHG5GocghzmuSQzcsKG+57f/udcurELwldYhw/J0Uqt6V3y4 lwuw7nEfRiFTeV8EwwhWzrsxxYwqn6Bh5gUuRgITSTvwbywuQEHZF5fDs9ldHuEkkHSJ PEP+zM2SFZ2bD7geKkCmDQMPjOfuxzeQ4WWW+pM1LAVKih/U57kVT/GaIoFt+D9gfldB dtzhPtyjE0OYtL/ZkwJKAptfqqSc8fU7rxWyTRuPKcl7SDnr/zIthqisc9OG2+qbUp0h IkFw== X-Forwarded-Encrypted: i=1; AJvYcCWnkq5RudeTvUKOrFrag70BWnLdbMgKOWsuR3nCmP8QOaAq/23i8gkEANSfgtYo9uqx1pBYli9uYszTzfqGNVmxZHgMBZt74iTKKFxq X-Gm-Message-State: AOJu0YylFr+J0L5P1d3s3e8NMEv5Rk4xyyhzCE48Em8kQKQqAinyDnLd ceNCJZ5HkalYAAh1Zt6X0DEmwsS1Fa4izrvYIU4d0eu9nqNdHIjJL4UUzHlqzMA= X-Received: by 2002:a05:6512:201a:b0:52b:851d:4db6 with SMTP id 2adb3069b0e04-52bb9f7ad1cmr1531577e87.26.1717758595074; Fri, 07 Jun 2024 04:09:55 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52bb41e1a23sm497630e87.56.2024.06.07.04.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 04:09:54 -0700 (PDT) Date: Fri, 7 Jun 2024 14:09:53 +0300 From: Dmitry Baryshkov To: Ekansh Gupta Cc: srinivas.kandagatla@linaro.org, linux-arm-msm@vger.kernel.org, gregkh@linuxfoundation.org, quic_bkumar@quicinc.com, linux-kernel@vger.kernel.org, quic_chennak@quicinc.com, stable Subject: Re: [PATCH v4 03/11] misc: fastrpc: Copy the complete capability structure to user Message-ID: References: <20240606165939.12950-1-quic_ekangupt@quicinc.com> <20240606165939.12950-4-quic_ekangupt@quicinc.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240606165939.12950-4-quic_ekangupt@quicinc.com> On Thu, Jun 06, 2024 at 10:29:23PM +0530, Ekansh Gupta wrote: > User is passing capability ioctl structure(argp) to get DSP > capabilities. This argp is copied to a local structure to get domain > and attribute_id information. After getting the capability, only > capability value is getting copied to user argp which will not be > useful if the use is trying to get the capability by checking the > capability member of fastrpc_ioctl_capability structure. Add changes > to copy the complete capability structure so that user can get the > capability value from the expected member of the structure. Nit: s/Add changes to copy/Copy/ Reviewed-by: Dmitry Baryshkov > > Fixes: 6c16fd8bdd40 ("misc: fastrpc: Add support to get DSP capabilities") > Cc: stable > Signed-off-by: Ekansh Gupta > --- > drivers/misc/fastrpc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > -- With best wishes Dmitry