Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp67240lqm; Tue, 30 Apr 2024 13:00:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCqppXi34qIbwtSiMxX1Lag7w1p8ysGatU9h916VuDipay6AZVVbVlbsjARHsd/WWwCIR5u5otQ6uru4/fzdqX64XAgIbnxhSDQ3EKGg== X-Google-Smtp-Source: AGHT+IEpJLwO80PK3ZJw1/UISX8C2jK8U40iQn+vl3IU3djx8i4Kq6TNEpmGkL3k+fYKXX2QNE7X X-Received: by 2002:a05:6214:262f:b0:6a0:e0c9:edd with SMTP id gv15-20020a056214262f00b006a0e0c90eddmr436199qvb.50.1714507231573; Tue, 30 Apr 2024 13:00:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714507231; cv=pass; d=google.com; s=arc-20160816; b=PkAxLaNIiAOK+UvJVTK4d7evacLMCgazBNWBYsrd8nlVBGw54BWXwEIC8x+LggTwam kqztNUixnXXG90+2gF0DXD7DAFAv8h/h8SKSeYej7ZHnpfocRA5i+Z599CbYORFY6Twe vuo5rztptuV1zWamsT5R5WZ9m7xWX+F1CTsqTuYqbbjBwepmL8uZpq03RsRNgmolLIXu X6G/Dmas5Z+Hqa1SFCHEJoiTz3C1ZCwMsB5+ePU4jFZL4IKUBcU4Zd+MjzxZ/8YfTaqW l7AGq3ZUjU0uxZG7+esfFDCJlSHmrrmfibZlrsZx5glsufqXjveZ5hAseQ08GcUQXaNH n2Pw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=a0yrZPZEKYcyVZidoYzVQcM4ReLKOBzaNowogk7EJ0w=; fh=qrGKG7y8Y0Z+yD0JpqVRhXhB3Uy0qpn9qkVGtszPvsk=; b=LlBD3uWG7h4CTz2zIuHqzI8BYTeOtXXz+gSBz1RxQC0FkDc7wMBg3dAGLUMIilWAgn ud7WzNVNKw7ls7OXfjDG6bgZXKHG4sW7d/E9SXXkPGMSTIxLC+wqFZ1UscNH8I0JELYq PYTEtnN9s7ijsAho1ITrjfbqTVLtejQfCEtFpD1zdMzPh0DtfLQcw8emlQssR/utAEMp 2DTehVajKvZOQvHyhImMqzK5GVTCau/8HQZMqSEz3WqlAb/XA6ttJgWzby3HOX49GZby 3hh6hQ+j4pFtWCpZcxaZo1QwM67Kqw/57pHsRhGvc0T1oarutxCX63NC4IlBLfbu1Jpz eEMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FF0FHltS; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-164677-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164677-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q10-20020a05621419ea00b006a0c3c4ba8bsi7818853qvc.63.2024.04.30.13.00.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 13:00:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164677-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=@quicinc.com header.s=qcppdkim1 header.b=FF0FHltS; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-164677-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164677-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1CA161C23613 for ; Tue, 30 Apr 2024 20:00:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E372B1A0AF4; Tue, 30 Apr 2024 20:00:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="FF0FHltS" 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 B6D43174EF1; Tue, 30 Apr 2024 20:00:11 +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=1714507213; cv=none; b=uihn9/NTt7kqRKo9iErQHr2k1anN7VkPZ83jiQ1q+GeZcNyTgYorhmoRcKl8czblpOyLQUPOGjXcNrC57f7FYeLKM7ZIWdcE+Gdv/MDpPuM/bgbyRLSraxp9jkIyT7pr6Tlj07Qni7DZUUI1GwQpN61kizCMQgRfncus7OUNNO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714507213; c=relaxed/simple; bh=a0yrZPZEKYcyVZidoYzVQcM4ReLKOBzaNowogk7EJ0w=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=GmHWbyZ46K2snMuqRFIf5ihVJmzGmx7154NT10DrnrxMdsRdfB3GArxVU3wm9NyGuOgmYagPB+uGocROGvT2u0qarnoqq13paykp4suPNtnjWdG+8lPLldL7jtHpjBaUkur5c6sVghCtC23PwTGZJc1OGkRrsUMgAJm3Gg+hDPw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=FF0FHltS; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43UIxZUE023766; Tue, 30 Apr 2024 20:00:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=a0yrZPZEKYcyVZidoYzVQcM4ReLKOBzaNowogk7EJ0w=; b=FF 0FHltStIiKnAUGo+dClS3AUKZaSiR4AWJpgcbFPp2Rtj6z5QtNEdsENYu1PKqhhB q95qMawFAGF0mEe5Sf8h+aRFVs4/guTdV82AqvTu2O5LLa5/KnMnRIzJr6+tjw7o dwGo6IiD87EzXGGJTI823W26hs6tHsSfZkUXNIvT52c1WyO7fteOU2m6cY0YTYck KOVQnU1+4swEvjssU9iUH4Piqx1+keXevo2NdmmswarnWXbnSv9ctu6DV48SC+rv o0JWmafwazkRQT6h1nHfOb4QrOnlLjjdzlflgsiDXJSyAxTKOQheJU/FsZjyB0H6 r6Ec2Iq7LQup17xHYI7A== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xu6cug3av-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Apr 2024 20:00:00 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43UJxxj8003281 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Apr 2024 19:59:59 GMT Received: from [10.110.13.147] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 30 Apr 2024 12:59:58 -0700 Message-ID: <9983345a-d590-4a78-94ca-6d96832860b1@quicinc.com> Date: Tue, 30 Apr 2024 12:59:57 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] wifi: nl80211: Avoid address calculations via out of bounds array indexing Content-Language: en-US To: Johannes Berg , Kees Cook CC: Nathan Chancellor , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , , , "Gustavo A. R. Silva" , , References: <20240424220057.work.819-kees@kernel.org> From: Jeff Johnson In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: ZzcwzMuN5h_Vyv7lYwzGm3icX5xEMFDp X-Proofpoint-GUID: ZzcwzMuN5h_Vyv7lYwzGm3icX5xEMFDp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-30_12,2024-04-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 adultscore=0 bulkscore=0 mlxlogscore=430 mlxscore=0 priorityscore=1501 spamscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1011 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404300143 On 4/30/2024 3:01 AM, Johannes Berg wrote: > This really doesn't even seem right, shouldn't do pointer arithmetic on > void pointers. FWIW I argued this in the past in another context and Linus gave his opinion: https://lore.kernel.org/all/CAHk-=whFKYMrF6euVvziW+drw7-yi1pYdf=uccnzJ8k09DoTXA@mail.gmail.com/