From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AD601CD6E7D for ; Fri, 5 Jun 2026 16:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:To: From:Cc:Subject:Message-Id:Date:Content-Type:Content-Transfer-Encoding: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yZoPOqViDfS1ZaI7CjlclPfaVfp0hwRDdItmht55EEI=; b=EZqT6tni8mBuiOMMaaj/ZiqjqU rttN1i3GWgwb2J0SgmfSLyuSQDCCMwntw91F2wOaJZex+TzgcQFisIaFKrPL2R8EAqfMAfj9QMkHc pq0M76woeiZYU5vXQ28O/pWcypEYRSlfc3qSKJ7EcwLeef4d28+Xaue3ltTl6tPzohUf7lV3ZfsV4 aEB3ak7SvTP6STmq7T6P47US+EmkeguAtaAtI4vDE6nUOiym7LnDhxOLrXKDiDXXASO9PUb9WXgoQ lxvuivAD3gimc8W6Xeat5SWzrIkTPliFSZ4kLXUeheA3bs87yHXEYP6X7/J+I7ZjHMp7SdFR2ZCsN jHuQghdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wVWzA-00000000sDu-2mdR; Fri, 05 Jun 2026 16:01:28 +0000 Received: from smtpout-04.galae.net ([185.171.202.116]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wVWz7-00000000sD6-0xJr for linux-arm-kernel@lists.infradead.org; Fri, 05 Jun 2026 16:01:27 +0000 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id B0AB8C58476; Fri, 5 Jun 2026 16:01:22 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id C8EEB5FED1; Fri, 5 Jun 2026 16:01:22 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id A1167106A252C; Fri, 5 Jun 2026 18:01:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1780675281; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=yZoPOqViDfS1ZaI7CjlclPfaVfp0hwRDdItmht55EEI=; b=aKf/6ctG9t/yPGcfoTJ9gphRxx+xRgto8JRT9kZ7mJy8y6Q4YabfcLOUTB/vsucB/M/VXK EZ3DvYEVjXFEBn/NYWNuDq3I+8cgFW9jPFXfEEpYSwsDyUNtbMMkqiP32pJ9PvrAwQtqz3 8tVPEzvj9W0qcNj6AwEK8nHUc5aW0zl1zF6AoaEzpIQT8Ay0G+fFlsvYOYV0OsqS+Iix+o NktDJvpeDGZ+nZKWs6pK3jt45/PETYDs/FAWkyh6jKk80L1seulIdVo7X8hlsBr03q+Ocp CGFNfBZE8FwkjODbf6nZV/pOWKDjdaDD2OWADJ7IrnCXxG17zU1z5Rz6LpRWtg== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 05 Jun 2026 18:01:16 +0200 Message-Id: Subject: Re: [PATCH bpf-next v2 8/8] selftests/bpf: add tests to validate KASAN on JIT programs Cc: , "Bastien Curutchet" , "Thomas Petazzoni" , , , , , From: =?utf-8?q?Alexis_Lothor=C3=A9?= To: "Yonghong Song" , =?utf-8?b?QWxleGlzIExvdGhvcsOpIChlQlBGIEZvdW5kYXRpb24p?= , "Alexei Starovoitov" , "Daniel Borkmann" , "Andrii Nakryiko" , "Martin KaFai Lau" , "Eduard Zingerman" , "Kumar Kartikeya Dwivedi" , "Song Liu" , "Jiri Olsa" , "John Fastabend" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , , "H. Peter Anvin" , "Shuah Khan" , "Maxime Coquelin" , "Alexandre Torgue" , "Ihor Solodrai" X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <20260604-kasan-v2-0-c066e627fda8@bootlin.com> <20260604-kasan-v2-8-c066e627fda8@bootlin.com> <13b87293-5237-43d3-9f91-33c13041cb43@linux.dev> In-Reply-To: <13b87293-5237-43d3-9f91-33c13041cb43@linux.dev> X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260605_090125_430613_B6B3A413 X-CRM114-Status: GOOD ( 11.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri Jun 5, 2026 at 5:47 PM CEST, Yonghong Song wrote: [...] > [root@arch-fb-vm1 bpf]# ./test_progs -n 164 > test_kasan:PASS:alloc test ctx 0 nsec > gzopen /boot/config-7.1.0-rc5-gec86c8156bd6: No such file or directory > test_kasan:PASS:open prog 0 nsec > test_kasan:PASS:find rnd_hi32 prog 0 nsec > ... > All error logs: > test_kasan:PASS:alloc test ctx 0 nsec > gzopen /boot/config-7.1.0-rc5-gec86c8156bd6: No such file or directory > test_kasan:PASS:open prog 0 nsec > test_kasan:PASS:find rnd_hi32 prog 0 nsec > test_kasan:PASS:load prog 0 nsec > test_kasan:PASS:open kernel logs 0 nsec > test_kasan:PASS:get map 0 nsec > test_kasan:PASS:set map 0 nsec > run_subtest_with_size_and_location:PASS:find test prog 0 nsec > run_subtest_with_size_and_location:PASS:fetch loaded program info 0 nsec > run_subtest_with_size_and_location:PASS:run prog 0 nsec > run_subtest_with_size_and_location:PASS:read kernel logs 0 nsec > run_subtest_with_size_and_location:FAIL:report should be generated unexpe= cted error: 1 (errno 11) > #164/1 kasan/st_1_not_on_stack:FAIL [...] > #164 kasan:FAIL > > I checked the subtest 164/1, > > For > > ret =3D check_kasan_report_in_kernel_logs(klog_buffer, ctx, > test->is_write, access_s= ize); > if (on_stack || test->expect_no_report) > ASSERT_NEQ(ret, 0, "no report should be generated"); > else > ASSERT_OK(ret, "report should be generated"); > > the ret is equal to 1 as klog_buffer is empty. This caused the failure. Are you seeing any kasan report when you manually check your kernel logs, or not at all ? If not at all, are you using the "CI" defconfig ? cat tools/testing/selftests/bpf/{config,config.vm,config.x86_64} > .confi= g && make olddefconfig If not, would you mind sharing your defconfig ? Thanks, Alexis --=20 Alexis Lothor=C3=A9, Bootlin Embedded Linux and Kernel engineering https://bootlin.com