Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2040037lqo; Mon, 13 May 2024 06:23:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwTm1V5Hd2F2qdrC0HYst+xqb8zkleUug3SBuJFQte0BbK7A4gtq24Y62FeOGKfeseznMumZWx6EZcHr7cwX2YIVv/QJn0dXNYCsp2Iw== X-Google-Smtp-Source: AGHT+IFsj6kbWm2p0zv8Pv1c3ZGDlgDAj8T0FExQh8Rz0GCVgLrWEIrGZjsTNnlanus7cmVvqgrh X-Received: by 2002:a17:906:1f47:b0:a59:9c4d:da38 with SMTP id a640c23a62f3a-a5a2d5cacabmr609969966b.45.1715606610657; Mon, 13 May 2024 06:23:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715606610; cv=pass; d=google.com; s=arc-20160816; b=mJJ57OKm9Z7LZPtNQSh8L0N3kwP4CwX/BT0f46218yZFWBMcbF2MeCRmCqHnUCYsT+ y0bJX2zwQM3G8oYEzaOUAqisBQbUqWu7fYPaeeLu2Z3yjjsMCUMbzK4R2Wuce/3xTPuB IKXcMuHg86gq9bMH6dX5z9Am7DW7RycOoQ2ygDBmThoLDKcPmPLj0OCBe9cTf58CkDpr Z8KhAX2+nNAFQNUErP+uI7uOLU0AdCIv1vGGwela2LTSwwLQSrZaGGV6UiVImdh+hZUK /xwGOQleOQR22x8et5BVReBXEvue+iUqy+DunCy/xI30PyL6lS33YcH5udi40ybODqk0 nTEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=s3gOCpfBrhzTq1OT9XWjvIOrPRoa34NwbUK1Pv56I/4=; fh=eygnTArvKaPt5sPd77lxZLuLoplTxaS8eW894TLJCQg=; b=fIgFclj3WFX3CZwQivPK9v+9tq7eprGduigURVgWXm97/H1/kSCzCsDxjwc7tb5vy0 WTNby0WS+ztIPcYAoa/EDL3z0nama16AJadkIpzsY9Wa9FexcwxOtgJAJAsZ5AU8slyT VrYkqgm6WaAx2r1f5KTfytqnpu5dze6Q0UwCy+m4vVxC0IyQkoLQGtJTAwhbpAaGhMv2 lL9mj5cq5ik3/LXTJXDJAnT/PYwBnVJn8vu/3i95wYlrR/5RT+q50j27v71WQBkQ5HDq 7vFW9lcVh6ud27F989XAwkgqZ4OBarNC5BJgmWhmUmSYeS8ifA5ogetqZj6NfZvRF0tS dnKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LMMcKOQ3; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-wireless+bounces-7591-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7591-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba4ff7si508512966b.582.2024.05.13.06.23.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 06:23:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7591-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LMMcKOQ3; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-wireless+bounces-7591-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7591-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5B5671F216F3 for ; Mon, 13 May 2024 13:23:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BC2C15216F; Mon, 13 May 2024 13:23:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="LMMcKOQ3" X-Original-To: linux-wireless@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 948D91514E5 for ; Mon, 13 May 2024 13:23:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715606606; cv=none; b=IeTcRGLIQFXrOFgCTnBuyYRf0sQ/5quX4rmuSBZ64d3Y3haJZz/4L3lX7pXFNgr51TJan+i4HKeiJqboXU/mHCeowf47Mq+VimV/Nbi20l8dcYJQZ4E2YAswX5/eIOd8vrOOwIO3Eq2bJthngdEf4Qfov690mUQOWL9rAxYkf2o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715606606; c=relaxed/simple; bh=t1H7HAV/m+hR/GfN+DOdTuWAsHyeaN+y7Y2Agzg+V3g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hrTFGBlOuciGeTDlvovjD78hTqrNLZgGJAZRIofnbArwoQklL60K+C4qC804/h2o27whWBZHeSCZJ3aMblEJHnkuuCoo72PWDzZQA3CX6UJcn5xduBx8h3NGz7tju92hL97Wd5bZ2edEer/zwjqY1Etu3FatxiLlfYx/nQTBpRQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=LMMcKOQ3; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1715606603; bh=t1H7HAV/m+hR/GfN+DOdTuWAsHyeaN+y7Y2Agzg+V3g=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=LMMcKOQ3nlPAVjMUrM1mld35tSehSr7BGfqtvdlQKDFpi6n4rxqWcS9xLZmVOUvJ1 I7O+uXDfjLyDUrSjcsKOrPp8SbJX3S4IWdSDkOr433V0PWMwORrZizwJw5KVGv+GFI y7u2GhIZt09nZaPkZD3USVNuE9/oohZqsnrnck46YWQRSraK0uOTdqk+g7xPkY6xG6 WJmVw5657EyAnvdSXi0RrO12zwDbj4sEhrWSRgr1CSBpZLz3dine/oL0O7XEpuM5Uv Zqxbou4d8phP41CaVoENSNBhfRRzqt2gXCDcczfPNXSYxgMNzxChJb7P4Mr/ILMcdj 7d8D9spaLz8kA== Received: from [IPV6:fd00::2a:39ce] (cola.collaboradmins.com [IPv6:2a01:4f8:1c1c:5717::1]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 2CE553782017; Mon, 13 May 2024 13:23:23 +0000 (UTC) Message-ID: Date: Mon, 13 May 2024 15:23:22 +0200 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] wifi: mt76: mt7615: fix null pointer dereference bug To: Sicong Huang , nbd@nbd.name, ryder.lee@mediatek.com, shayne.chen@mediatek.com, sean.wang@mediatek.com, kvalo@kernel.org, matthias.bgg@gmail.com Cc: linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org References: <20240513122329.170380-1-congei42@163.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: <20240513122329.170380-1-congei42@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 13/05/24 14:23, Sicong Huang ha scritto: > Function mt7615_coredump_work will call vzalloc to allocate a large amount > of memory space, the size of which is 1300KB. There should be a null > pointer check after vzalloc. Otherwise, when the memory allocation fails Otherwise, if the memory allocation fails ... > and returns NULL, the function will cause a Kernel crash. > > Signed-off-by: Sicong Huang Please add the relevant Fixes tag and resend. Cheers, Angelo