From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-180.mta0.migadu.com (out-180.mta0.migadu.com [91.218.175.180]) (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 6CBB385C41 for ; Mon, 29 Apr 2024 17:14:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714410893; cv=none; b=OMnTVs6YW+7+aXFzl7yS0xorSE2aMrW/RtEGErXaSeWKP2vpl9yrmH98sWJo+mPd2zDc44HRuEXiF9qVV5LdmW3+mnMX58fBO68kwXBBM2wqUBHUzjHcQ9HylNR0V3nJeAgKt4ajN+5++yMi440RMglLdPHQWjl6eHYaNDfbspk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714410893; c=relaxed/simple; bh=MAZjE9XDcoq2UoyMSHQ5O/M24trUzg61i7joGuCUb/U=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=idqu0E0TwEvGS0jGTCAn92iv0jk3xbhO24/7xwZooVMMHGv+erCJ5/huXLs4Ay+g/LqTfQeJSrb+guC2baiG5gGkDxsQ+p34FGt0+MzLBk/lq9xwceS8mtYU5xB8CdJtj/ZaStskwhwqBdgPjcyHh2y2JGwFcCZMMPAATt0rnGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=xce7v5aP; arc=none smtp.client-ip=91.218.175.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="xce7v5aP" Message-ID: <2e7e6d53-38a2-464a-ac6e-10d87184897c@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714410889; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MAZjE9XDcoq2UoyMSHQ5O/M24trUzg61i7joGuCUb/U=; b=xce7v5aPOGLFts1xBsTlM1YOtUPfiHGRHD6r9XSA9cxB+Hrkky1FRb1QWduHc7sjNqEOgC NNlmqkFp3pr6T3O+4vwOZG1Bat4tGvvWyBii3rOqeEACkHAdUUbJurHh5Vz+jL3zvSAPOc B2VyQN2V+gM1YGhS7+RCTpVbBGtSV9s= Date: Mon, 29 Apr 2024 10:14:43 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v1 1/1] bpf: Switch to krealloc_array() Content-Language: en-GB To: Andy Shevchenko , Alexei Starovoitov , bpf@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa References: <20240429120005.3539116-1-andriy.shevchenko@linux.intel.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yonghong Song In-Reply-To: <20240429120005.3539116-1-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 4/29/24 5:00 AM, Andy Shevchenko wrote: > Let the krealloc_array() copy the original data and > check for a multiplication overflow. > > Signed-off-by: Andy Shevchenko Acked-by: Yonghong Song