From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (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 78CB21FF603 for ; Tue, 29 Oct 2024 06:19:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730182769; cv=none; b=b807B2K+dDcLiz37a3sR3/z9SSG5vVAjoFTandbrRmGIlpUsSQGR5k7WeKKFiGJqncYPpxNyAHfbvt+8DBlPn5WYN4mvSaqZgDSVifr5oHMxq0AA0A6OHfPsp6PO5JuSZkeUjzqkEHM6vHz2YIZZxoZd0Hyz0R9b12Uw6gdfH7I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730182769; c=relaxed/simple; bh=ks8tvZ0ZvY26sNQwxDerxvDeQ1sfaqOfyRfWrP33GvU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XLspGl4OVPspm9HbqKTiuXtcKyZ4cLq0ut4atxzRDDCmL+3xjag8fL1sa1Wc6PO3TjLiaw4UgF/Cc9uaH52nzqSyJmvv7dP7Ux58sZKridCizHtLlwqf9qCQSuCmEFoIEddD8J8TbBvUIKsCBnMfGRaJ0lOgQ4dNKeQDLQo2Ye4= 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=iIPABrPO; arc=none smtp.client-ip=91.218.175.184 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="iIPABrPO" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1730182765; 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=u9WMyaBrz6Rc0EJzD5VFAXnB0tURCwG65EccTTtVhZE=; b=iIPABrPOj+oSHPAq2eq2zMhUCV9lYAgYd9qoza9iTFvtQc+6DG+hQDv0WOY6h1UNY/1JN5 b1PWRYfrK/fVvz0nxuuA/G3Tx7dOPh54LVYdMdR3i1q+EkcZDcu8H81pXnI+u5fJcjELia dvusQZZSj1xto12O3X0R8mRO0Dszcio= Date: Mon, 28 Oct 2024 23:19:17 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH bpf v2 2/2] selftests/bpf: Add test cases for various pointer specifiers Content-Language: en-GB To: Ilya Shchipletsov , bpf@vger.kernel.org Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Florent Revest , Nikita Marushkin , lvc-project@linuxtesting.org, linux-kernel@vger.kernel.org References: <20241028195343.2104-1-rabbelkin@mail.ru> <20241028195343.2104-3-rabbelkin@mail.ru> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yonghong Song In-Reply-To: <20241028195343.2104-3-rabbelkin@mail.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 10/28/24 12:53 PM, Ilya Shchipletsov wrote: > Extend snprintf negative tests to cover pointer specifiers to prevent possible > invalid handling of %p% from happening again. > > ./test_progs -t snprintf > #302/1 snprintf/snprintf_positive:OK > #302/2 snprintf/snprintf_negative:OK > #302 snprintf:OK > #303 snprintf_btf:OK > Summary: 2/2 PASSED, 0 SKIPPED, 0 FAILED > > Co-developed-by: Nikita Marushkin > Signed-off-by: Nikita Marushkin > Signed-off-by: Ilya Shchipletsov Acked-by: Yonghong Song