Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp502585rdb; Mon, 29 Jan 2024 08:43:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGb7lewr8E1EN1vNcGtST1akjxZhrj23fUFjqsKcNgjb7kBbrPqWaQbIaATEu6AQcZyQOZ X-Received: by 2002:a17:90a:2cc6:b0:28c:3e2:2d8a with SMTP id n64-20020a17090a2cc600b0028c03e22d8amr2484311pjd.23.1706546581331; Mon, 29 Jan 2024 08:43:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706546581; cv=pass; d=google.com; s=arc-20160816; b=EwI/QxKOFpslwCS3HEe2j7HvSfd2Qzs9lKwROVLwxwwiy1bmLJBkos5l1ec/yGfw7a im1/JTEEMGAVOX3xe+aLG0J09sdWhTTonGBxRJRwAhTkYvo0fc5rnLRlXNesJ+thCDyo nh24p1Fj2H/q7kXAd+WcagoKCLaomHQ5fsiSKL9hpwvo6VMU8vPZ/GOrB1IBc+5dNM3x /tb2lUnHaOtyZCmr0NweQydS2dphNPkzxl7oMOeMuLdhWTlDPpc6ZbqgbKpBivD4ML47 2NlGNS0NzgR+ofkDZjgkBwXyBGuLTY9vjEci3SDpSHDYQKJDVr8BNJVJLsZ/8K3IrhjA 5yEQ== 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:dkim-signature; bh=3v40ec3fp4rIySLwMRSC+DSQBuRjYm7PCdjEg/BN2qM=; fh=3vtLL9F3iISmH1sKOD88t18e9KWOgu4MVbPAcjNrJds=; b=hdPGP2ICgihqVIhld0dz3DWxc8+Fj3u0zTEG0vzkiMAMhYd/C6VHSZzCrjcd9SOavn 3V9sj+P3Vcj9m0UDhLRmmSLkTfTUEY3tK6rCXJnXk2SruwjECf6boX3OXUuy8NJsoiL/ Lj/NkIIJTQFEZMYROz1fclAVLPCtkQ78GtQOMosZo11aUkh8J/CG9quAJ62SYsPldc3u +U+6YqcaO55kvVt0iArpffd5wFzG14yFF849E7hGsRgPHuEpt4oJPRtDNY2MZ/4Dyhen KZaZa4Fvw+OT3xD0jtHXgljv2g+FVJY0DNmCvw9BuT+0ZBTYItJI2Z9IIXSjs8D7/fS9 ahhw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=QS7P6y5N; dkim=pass header.i=@suse.com header.s=susede1 header.b=q0I4l+8T; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-43121-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t14-20020a17090aae0e00b002903baea439si5846575pjq.109.2024.01.29.08.43.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 08:43:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43121-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=QS7P6y5N; dkim=pass header.i=@suse.com header.s=susede1 header.b=q0I4l+8T; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-43121-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com 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 5DFD528A9C9 for ; Mon, 29 Jan 2024 16:39:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39E5815B312; Mon, 29 Jan 2024 16:33:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="QS7P6y5N"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="q0I4l+8T" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 B374615698B; Mon, 29 Jan 2024 16:33:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706546008; cv=none; b=W43faLWebjEGQxy1ip6Mur5AcYifXpqoUmqEqqPgVARpRhORpav2Jc4DxJH0GFGaH3D+LWBCitje346TKidP2lZJjHJDv1dcz53kwWB4rSngknnz8XM+mHkODtCLR2Ccm2YvhH19shTAm/UUU5Kz5BZFV1MX071iaQXzPIdlX/0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706546008; c=relaxed/simple; bh=3v40ec3fp4rIySLwMRSC+DSQBuRjYm7PCdjEg/BN2qM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GzvO/0KebU7bI6EnQLsEjhjCoMcyRpRW0DTBVUxot8525uALSJ+BguZjJu6WVAP+NmUWGQoHZ349uwcW13TBXmcyNTef37OInzwZJvU5SwrC3bR3LczQGMbnStHkBEJ+bIQTmHaJAlCTCkaLV4Z9NtHATnqg1/7Ou8EyLId7gNw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=QS7P6y5N; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=q0I4l+8T; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: from blackpad (unknown [10.100.12.75]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D827C21280; Mon, 29 Jan 2024 16:33:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1706546002; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3v40ec3fp4rIySLwMRSC+DSQBuRjYm7PCdjEg/BN2qM=; b=QS7P6y5NylUMxfuK6r6g4fywoDhhJIXpG9fyGzogfuMl36ZKDunidmXOJ6XVGwV3I69Ge4 fcCjtuEYDKsUP9mx8ISkyr5opP1RkHUue2j/hzeADM63HHJA9T9cU18r0QdDKVQx1GXA4D OGaBzuuhU6U680MPu82F2UTHFbbLrTY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1706546000; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3v40ec3fp4rIySLwMRSC+DSQBuRjYm7PCdjEg/BN2qM=; b=q0I4l+8T7E1lhioda0ghqHOS8BmWrpp9LLLkQ1FVSr4xlnPaJGHrRte1C97ica/5adav1Z hvyp5W7+OIio0fSLbzR2AtrDZ6uTPEbJqkVwsVNe7Z8pRbJFoYWMijP7tD8c6wikqm5qTh 8hQaYG8pivL4RwYt332QUgQ5RKAIZaU= Date: Mon, 29 Jan 2024 17:33:19 +0100 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Deepak Kumar Singh Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , afaerber@suse.com, ivan.ivanov@suse.com Subject: Re: Re: [RFC PATCH] rpmsg: glink: Add bounds check on tx path Message-ID: References: <20240113002505.15503-1-mkoutny@suse.com> <151f5738-791e-42cb-b8fe-e0cfbf9f7dca@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fdlqzqmm5seh4aly" Content-Disposition: inline In-Reply-To: <151f5738-791e-42cb-b8fe-e0cfbf9f7dca@quicinc.com> Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -0.51 X-Spamd-Result: default: False [-0.51 / 50.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; NEURAL_SPAM_SHORT(2.21)[0.737]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; RCPT_COUNT_SEVEN(0.00)[9]; SIGNED_PGP(-2.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; BAYES_HAM(-0.02)[53.78%] X-Spam-Flag: NO --fdlqzqmm5seh4aly Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jan 29, 2024 at 04:18:36PM +0530, Deepak Kumar Singh wrote: > There is already a patch posted for similar problem - > https://lore.kernel.org/all/20231201110631.669085-1-quic_deesin@quicinc.com/ I was not aware, thanks for the pointer. Do you plan to update your patch to "just" bail-out/zero instead of using slightly random values (as pointed out by Bjorn)? Michal --fdlqzqmm5seh4aly Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZbfTTQAKCRAGvrMr/1gc jjXFAP9Um5p58DEI4KDPRXFI2e/uPlQEy/pIzWZc4O3XF1pRUwEA+6k1aF11nti8 VOaJgaLHsoDXocKFBct9GyKDZz7F7g8= =uPQp -----END PGP SIGNATURE----- --fdlqzqmm5seh4aly--