From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) (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 485BC3C3BF9 for ; Thu, 5 Mar 2026 19:53:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=35.89.44.35 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772740411; cv=none; b=Se9G5Dsf+qUOHu0yJc/jncwNi1ULOGOMdAT3qRGSUtS2brf+WYX5YBOSMcK8riejUCVpVJH4he3xygZzUXCi+krVilPnAgWrb7hGhgRNE3/BrhfGs7o4yNf5BUs907rbMQ7LzrbiB96423wbDu4jNrqeedtF5HMMStTWQBVYJcs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772740411; c=relaxed/simple; bh=0SoELFVYgipnnUW26xRGknrmQF7L9bcYC2ThHdl4ecg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LhX5IInbYM/YCYFX0lC2s8PTOMUhBEa+B2Vgq7reJ4bNMUx6O2OvYvsjWIrct/TfCfhceJrQGEU6YePIog21nnyJMbLcTuSljlE6EgjCmhfhC+wslTKI8wre3qVLrWOrBro769uBy3cW0Pc2c0nyp6mnRZxvrsM37tZZvvODsEg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=embeddedor.com; spf=pass smtp.mailfrom=embeddedor.com; dkim=pass (2048-bit key) header.d=embeddedor.com header.i=@embeddedor.com header.b=VRZpQFp+; arc=none smtp.client-ip=35.89.44.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=embeddedor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=embeddedor.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=embeddedor.com header.i=@embeddedor.com header.b="VRZpQFp+" Received: from eig-obgw-5001b.ext.cloudfilter.net ([10.0.29.181]) by cmsmtp with ESMTPS id y7nAvfkohVCBNyElFv5GN2; Thu, 05 Mar 2026 19:53:30 +0000 Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with ESMTPS id yElEvQnAlSqlVyElFvWElR; Thu, 05 Mar 2026 19:53:29 +0000 X-Authority-Analysis: v=2.4 cv=I7FlRMgg c=1 sm=1 tr=0 ts=69a9df39 a=1YbLdUo/zbTtOZ3uB5T3HA==:117 a=k5Y5iPg+dmTXVWgYE/XtfQ==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=7T7KSl7uo7wA:10 a=pGLkceISAAAA:8 a=cHXIWmrghMx9ieuqI_QA:9 a=QEXdDO2ut3YA:10 a=2aFnImwKRvkU0tJ3nQRT:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=F2xE/DQ+Q5r7oMcXl0ntg1chhQRqOV9k4gwBnHRdV80=; b=VRZpQFp+atIYsQW5dHJl2ybcVq qAE6jUAUdVaOWYFaYTwH0wT428oYj/lfXrlDMX8UduRhlYO/kE8Q7USuhA2lONB/WN2oYOI4MrB1p xXNh50MQhPOqS6pRdGCkKtmkiJflyrqvqIe6yNlumxvXKgEgX/8fYcRp6S42rOk8Kq0NszgDWphnQ 0qm/AFkA9S4J5W+u2oVtkp+v45pGtUVqq+0aNuj6JrFN2SXCaqaN8JVsFMEM1JEXYN/OmF3wqwcJH cRJq+V51GbDjZQ/9ZLI4eYl56vKPoHxPW0Dqpw+33JMdRjJ+2MmvJrUWi9+a5jlZg16EsCW+9JQD7 sZuMA8TA==; Received: from [177.238.16.13] (port=51890 helo=[192.168.0.21]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.99.1) (envelope-from ) id 1vyElE-00000000oh1-1DvD; Thu, 05 Mar 2026 13:53:28 -0600 Message-ID: <5bcef6ea-e83b-47c3-b75a-cfd13e4073c7@embeddedor.com> Date: Thu, 5 Mar 2026 13:52:49 +0900 Precedence: bulk X-Mailing-List: linux-hardening@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] phy: qualcomm: usb-hs-28nm: use flex array To: Konrad Dybcio , Rosen Penev , linux-phy@lists.infradead.org Cc: Vinod Koul , Neil Armstrong , Kees Cook , "Gustavo A. R. Silva" , "open list:ARM/QUALCOMM MAILING LIST" , open list , open "list:KERNEL" HARDENING "(not" covered by other "areas):Keyword:b__counted_by(_le|_be)?b" References: <20260304230636.27808-1-rosenp@gmail.com> <8d7a25e8-3af6-4adf-bcec-394895519bea@oss.qualcomm.com> Content-Language: en-US From: "Gustavo A. R. Silva" In-Reply-To: <8d7a25e8-3af6-4adf-bcec-394895519bea@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 177.238.16.13 X-Source-L: No X-Exim-ID: 1vyElE-00000000oh1-1DvD X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.0.21]) [177.238.16.13]:51890 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 29 X-Org: HG=hgshared;ORG=hostgator; X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfGlE0lwGyzScEmfna4Q7AXkcmmpLCWJuTokK2np0HnzRQwMk87eYie/BJwcmPcqM909AUxZMkmeiJ1RyEW/EQloEqMjuY+2ATvxgD4B82fv6rsnJLQLq Y3GF9iylvXxYTr+DxBt9yhtyxa1HF0gdcOMxrvc91zIx0yE97TliTFrga1jvheLEB0BSZo6+wxlQK1ho9Y0nZlOXncYUinUpX56BYKog0h/21MfVppn+iFJi Hi! On 3/5/26 19:06, Konrad Dybcio wrote: > On 3/5/26 12:06 AM, Rosen Penev wrote: >> Allows simplifying allocation to a single kzalloc call. >> >> Also allows using __counted_by for extra runtime analysis. >> >> Signed-off-by: Rosen Penev >> --- > > I don't see how this is an improvement - __counted_by() is useful for > cases where we don't know how many entries there are, but in this > case it's fully deterministic (as priv->num_clks is a compile-time > constant) Will this always be the case in the future (entries being a compile-time constant)? Thanks -Gustavo > > Konrad >