From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 0A5DE3DB99A for ; Mon, 1 Jun 2026 17:00:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780333233; cv=none; b=fRAjtRELxuBgqkUmTQqQ8k/iOvXPeghu5mb+uFoNKglCEWWKtNRsNKpxNZeGwSxiYxW7B5Gz4nC3PGhnejn+37SLkA7RpO2Ht2cbnDDr7CNEiST4+ypgFV/bgSTjnS1PgK3VCc1Jd7j2AIetGemuJY/8UtxKEIMqvx5qLw44cq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780333233; c=relaxed/simple; bh=eg1UU1KEh8t7kDMy5vM/QAHILoSKEsKqMsLiDeAbP6E=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=e813E0Xrggc+5aGLDjxjtpxv3VDPzwk++BmXlRjJLe5T+ZG+JiyVP6XXlwUod/7UGzGe6k8hLlVNrMfufPt4IsJT+BAFotsuLAhUWP5nptg6NzNXXWB8wtPkpOm8eK5bRLgcFYXq1Xw8sFCAYdtKEVPZVb1Gt3UM40eBERlow64= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=e9xurB/R; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=LQUOuLXW; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="e9xurB/R"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="LQUOuLXW" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 651EpHKj4066046 for ; Mon, 1 Jun 2026 17:00:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 5dk2+hefe94O+p0bhIxq1q58iVSITjTtWcV4dDmn5XA=; b=e9xurB/Rr1XHzdIm IC/uvZJfFW0pFtFb1/hN3si1ieMr6A/h1DO4tWOFFKjvj3AT2woJkS4rXG/iWAKv rIyiM0IVbn9pKVeCxRCFN1ILo99H0JAWFsyvBfD1al3Hf5D/Dmci0sQaAzuvYK86 cz6191SSIhu1eKKiILOce6i7rgkjiaHgpZ6ltvuSFyIifym/3UMxqTeYvFboL1uA vqFCO6lDWCd4t0ybjM6adW7VZ2sl0EnAN5WDly3fRKRzlz0dP0jp4D7DZ3kqSgkF vCn6j3tDIdofohWbJpzZE6BikUb/51U7dy+IU1viawB5MGy5hUiRLMpOTo1hbry5 E/WqUw== Received: from mail-dl1-f70.google.com (mail-dl1-f70.google.com [74.125.82.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4eh6swt3et-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 01 Jun 2026 17:00:31 +0000 (GMT) Received: by mail-dl1-f70.google.com with SMTP id a92af1059eb24-137dd5171feso2512998c88.1 for ; Mon, 01 Jun 2026 10:00:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1780333230; x=1780938030; 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=5dk2+hefe94O+p0bhIxq1q58iVSITjTtWcV4dDmn5XA=; b=LQUOuLXW/RL4Fz+1f48YxSUDryk0/RGNXzX8cdsc71NNND7q5d+ikdhx8B7h3wOGDI dXnuwryzzFFbImmiI0wqhxSuxHcMK14wumvfDpZgMPw7oEPgTND+J+eQmbB/Us0c3Brg BWP5J6x9L9FttWe/MZDeT0sz+xgOsTF9S0/8cpfy6f9AM8qMgXgiONpPL34ZSBM4Qzrh TUIR+fLjwAGK+jwOhdodDmu8kN2+MelkMkRB2EWkH5xDD+JMidlATLoq1JPdJZ2ipy+h BuxA7EIew77mYjdghDCL9+Mg7e80I5w8sPrULaSbXXPAvOXSogB1F//GJUhAlQN+HP8I Bc+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780333230; x=1780938030; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=5dk2+hefe94O+p0bhIxq1q58iVSITjTtWcV4dDmn5XA=; b=Ce68fev6HqrDLPPUI8JxldQyi80YDJVp5pQ1UCVAIYruIEvR9wgBanCyt2f9KUgFoq 6lW4ZGY0+66/3FIsP5D9RXnXOAU5l/mkvkrwZymWYkkS+quejXKcnRXdnX+M4c5dfVRR tlkKWOCj/kHGOB6h6WGuvUeSnTuesENjhPh5Je0KSArIxwExXJGB4Gl/NxhkqcnZ8tf0 A70AFQSP3xOvh+s/Kv7anp96EqNvhhO2eOXltc9Ur36OUwqflttunt3nxceBmCai8kxh I73LHaV3ZcqJxrw2O4Uy0I2o3C7thl7QA3SXyTOYyqFV5/6q91YvTrlhVehJmiSDCilX QzzA== X-Forwarded-Encrypted: i=1; AFNElJ9ShmmQhEr5nXcKWQsaJ5NmREO3JSP2BZ4+wdh6mU/LEvjseV+b7BKbvstpYLnp+1MRL0kbKB3vvPRg4ts=@vger.kernel.org X-Gm-Message-State: AOJu0YwT6cLim4dgaIQMOrrs1PWVmCKakVIwjpFzr/wwK8RjU/6F8YRd 6ynrDBGpius3CpIdgGPInBEzHg9arfsYgXUu7qeuKhx49lNTbUJGoIS7HXLOK1WFW+JaSagvITW sFskQJ2e5HnDBGWkqxtYzmIjDVZjj2NuOvM/qSp8rlo77VuGpAD2o3/9Tnk8omD+sLJI= X-Gm-Gg: Acq92OHFPDwdwNhPKKrRvVr3fmGv9TAlBhFbRv8gwpi5xiNHHY9EXFLfbrh7Cx942Bp CTYL9hkHCzatqYETXeajZF10VLdJbxAV9vq/FOoRc3FuO+ZB6VHXaQgX3HtS5L+HKctyzuOMjDc dX9mULJSrLAX9SMvjwX3JSOLmkfab81Ws3WLzrYX3FGEpAfTa5VYgOZ7eQ3hZYnLDaoYV+u/DVZ w1toZjgROcwmFZ9vFDFVyBc0ogZnX6/kWU3OeNpUIlOryq5CKX9Wzquz5TprjN41Prs1ThsZN7P 7MydiY74O421Q8t9p0ycF/vgRmF5gUhobtt6NTqgcQCW2qMo1/IxXbvuoKT8hIivx1iCaa+pTGQ lqFYMWlGTxnJeGN0/ouQ9d2WvdWnvA5QF3mLsfAm8OJny4Lp59W2tZYQG8XM5QkD/dL5EDhtsbv WRREJk/cucO/I= X-Received: by 2002:a05:7022:ec88:b0:132:5d96:3e48 with SMTP id a92af1059eb24-137d42beeb9mr4823630c88.38.1780333230068; Mon, 01 Jun 2026 10:00:30 -0700 (PDT) X-Received: by 2002:a05:7022:ec88:b0:132:5d96:3e48 with SMTP id a92af1059eb24-137d42beeb9mr4823602c88.38.1780333229302; Mon, 01 Jun 2026 10:00:29 -0700 (PDT) Received: from hu-jjohnson-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-137b3c69bdfsm7151625c88.9.2026.06.01.10.00.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2026 10:00:28 -0700 (PDT) From: Jeff Johnson To: linux-wireless@vger.kernel.org, Rosen Penev Cc: Jeff Johnson , Kees Cook , "Gustavo A. R. Silva" , ath11k@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org In-Reply-To: <20260428205017.26288-1-rosenp@gmail.com> References: <20260428205017.26288-1-rosenp@gmail.com> Subject: Re: [PATCHv3 ath-next] wifi: ath11k: use kzalloc_flex Message-Id: <178033322855.2045173.15165164858522474928.b4-ty@oss.qualcomm.com> Date: Mon, 01 Jun 2026 10:00:28 -0700 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.14.3 X-Authority-Analysis: v=2.4 cv=Z4Hc2nRA c=1 sm=1 tr=0 ts=6a1dbaaf cx=c_pps a=SvEPeNj+VMjHSW//kvnxuw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=rJ_IYOnZYG8bJ-BjWygA:9 a=QEXdDO2ut3YA:10 a=Kq8ClHjjuc5pcCNDwlU0:22 X-Proofpoint-GUID: uO3RJYcUpZRq3GNsZ-Wx4Eqp9j05ir1g X-Proofpoint-ORIG-GUID: uO3RJYcUpZRq3GNsZ-Wx4Eqp9j05ir1g X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjAxMDE2OCBTYWx0ZWRfX2+aQfBWDoYue i6Dr9dJfe9I/tMZ24VO6WtgDPBFLO09ttIUaHGu6lE5ZvmHUZ8lzRP85yzZbaVQ8YA/5IRIGaOf 4urOvGcMl9bHLDloHT6GOYTGV2Pwy0Gttlpw/aoj0HIyouJehY7jWBeb1DvWdfUsKwuo5B4JMK9 Y91j9Q4YLBxJnigIZ6SQDSkrziuP7rvnWsDR9PrzZGUvC38zDvPUy3sPrQA2m3WauPvnd1zVO/M llRujtZThIe02l5F3w6AjdjTecFPhPRM+MD8o0im9aks6B8uwC+wKCGhhwayjtpMYxdCyVUvfgt If77rFVThcBSRShtHKqY9l7waH6N3+JQNdFUW4iECwWPjsPcwwvEYUkuC/eDFgzmw/eGThX1LdD HimpImD2iw3ZhsEoIJgJu9oXflY3ibYII0qqCGUHYydjxef5i7GHAnpAH1udkrEr3gEYpSn1qqG H9EX2gF1mUCSnRMweHw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-01_05,2026-05-28_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 bulkscore=0 adultscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 spamscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605210000 definitions=main-2606010168 On Tue, 28 Apr 2026 13:50:17 -0700, Rosen Penev wrote: > Convert kzalloc_obj + kcalloc to kzalloc_flex to save an allocation. > > Add __counted_by to get extra runtime analysis. Move counting variable > assignment immediately after allocation before any potential accesses. > kzalloc_flex does this anyway for GCC >= 15. > > > [...] Applied, thanks! [1/1] wifi: ath11k: use kzalloc_flex commit: c7427f297ddb01f593217c21b2416f1093b80194 Best regards, -- Jeff Johnson