Message ID | 20240221100323.861959-1-oficerovas@altlinux.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-74496-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp941876dyc; Wed, 21 Feb 2024 02:10:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU98hpiDtX+F8nspbiOURnakOKabdIXYLlYdqI/n2gxjvn1qubt3bDlosJ3wzwF0T8XpUdZyxjShTOd4jX0Y1Oka3BybQ== X-Google-Smtp-Source: AGHT+IF6RoMl3cyY9Ch3WJjPN9Ch+r93khFjCYE013eg1c+gF92eGot9TQdNmCWTv0+zWL7tdNB3 X-Received: by 2002:a9d:7848:0:b0:6e4:2185:329a with SMTP id c8-20020a9d7848000000b006e42185329amr16631598otm.3.1708510247154; Wed, 21 Feb 2024 02:10:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708510247; cv=pass; d=google.com; s=arc-20160816; b=GYRNHUI4CFexdt6AIoWwFzAvCeCjMK09GeraVxmHT4hmLooP016YZrymVOuAnsXWrw ij2GkfzkfiNdtw7Q3G3BluCTaPUaUQGcKpdLS4FSIQJzmy2lPYr5hO5x4wwz6SI/anI8 BZGDXPvNePPqAxy4G3dpRVxIgshkX7Cuswb5slowTqfXCp18NNRfVm/CIFnBOLIeD3Fo dhM/3CF44P8RdChHxry7K04fN6zhoX0+DJlW/PngEKhwSRGDK76WIZRt5jKDqQJkNPBc Ho7bSjcBF48uO0+EJ97Ztc7hq4LCuyu0s/qxqJtfWzHTvPfFgzyz9pxVKEXEl7Um9IKf UZHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=HOH4Lo7ugMd+gEWc2FYvYOAqAYHtIqF9Hidht4knmIs=; fh=iRxdfw2VrqjC8butSMoylNmEGybvfFLMCbLTEXYHcXY=; b=IT4WkaesGCJ2K6mQr/glAGk33Fj4WjwYY9mH60Y/s0coP95z3tkQiZpmQu7b1bOxDN FnKZcJ0+RsAxiJncekLS0kbANZz7WhbMTk9ln5YhdsdwBiMsZY5xP307pKZrdwYnDdU8 Zdi9Q+FYqAxxsYJvRqo2hQS05OziL6hLNOB800NpsWAWt8iyPS3NOFsEILLo+NTwJjOK TuRuCGYxj5h2OpEed2lk1gpkBkkBtEq43j7E4GKfYiJ5VH581tPrv+N+A5RFWF2v4Xjl vAdaNSXdjt0dnDujrTBHpDcASnRKAt80rZeRmsIlIHpa4u9Cq/jRtzv7fLuGZFDKtjfy f1QQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=altlinux.org); spf=pass (google.com: domain of linux-kernel+bounces-74496-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74496-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l74-20020a633e4d000000b005dbd5035dcdsi7814440pga.192.2024.02.21.02.10.47 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 02:10:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74496-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=altlinux.org); spf=pass (google.com: domain of linux-kernel+bounces-74496-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74496-ouuuleilei=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C580B287A00 for <ouuuleilei@gmail.com>; Wed, 21 Feb 2024 10:05:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8FE4F40BEA; Wed, 21 Feb 2024 10:03:57 +0000 (UTC) Received: from air.basealt.ru (air.basealt.ru [194.107.17.39]) (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 D8B3A3D3A8; Wed, 21 Feb 2024 10:03:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.107.17.39 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708509836; cv=none; b=Uz18DreuoDB5hdQoUUvcqmHaeBTLzr/ty9KCbO8ZgQCXo0U5jst98N1BCHTMrv9XaTimeAWA1DQUeQbj/mrdvNJdulJ4ZciKzmEgGRoJwvX/bIlOeI6lrkSEdz9K7WmbYamQ2xFOqiduhV070ZC3u+T3IIdTBxAflJOf/14sdVQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708509836; c=relaxed/simple; bh=JQ8v0pGbNDM4U4Piv1sJDC8mDRvG5VWDoUTZXvOtx1w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BXLuCwRn++IeOE/TGK4WkuE82NfpIHo/wvbJw+Vd1oHOiSM6eOTnpj3+NcxVioKnwvLBlPJ9GpUGDxuoocI0CKRgt15ZxXZiJDO2BOiS2oPbHiN4SATXo0kIAedR/EeQcoPJvotFsIlIGTUVfiQQ3Qwr3+HHMMMkqhPBCQP6xCc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=altlinux.org; spf=pass smtp.mailfrom=altlinux.org; arc=none smtp.client-ip=194.107.17.39 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=altlinux.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=altlinux.org Received: by air.basealt.ru (Postfix, from userid 490) id 008C82F2026D; Wed, 21 Feb 2024 10:03:51 +0000 (UTC) X-Spam-Level: Received: from shell.ipa.basealt.ru (unknown [176.12.98.74]) by air.basealt.ru (Postfix) with ESMTPSA id 707DC2F2025F; Wed, 21 Feb 2024 10:03:31 +0000 (UTC) From: Alexander Ofitserov <oficerovas@altlinux.org> To: oficerovas@altlinux.org, Alexei Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, John Fastabend <john.fastabend@gmail.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, dutyrok@altlinux.org, kovalev@altlinux.org, stable@vger.kernel.org Subject: [PATCH] bpf: change WARN ro pr_warn in verifier in 5.10 kernels Date: Wed, 21 Feb 2024 13:03:23 +0300 Message-ID: <20240221100323.861959-1-oficerovas@altlinux.org> X-Mailer: git-send-email 2.42.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791502840716202724 X-GMAIL-MSGID: 1791502840716202724 |
Series |
bpf: change WARN ro pr_warn in verifier in 5.10 kernels
|
|
Commit Message
Alexander Ofitserov
Feb. 21, 2024, 10:03 a.m. UTC
Change WARN to pr_warn in check_map_prog_compatibility,
because this functionality was added in kernels 6.1 and
because fuzzing kernels with syzkaller while
kernel was started with parameter panic_on_warn
produces false positive crashes.
Signed-off-by: Alexander Ofitserov <oficerovas@altlinux.org>
Cc: stable@vger.kernel.org
---
kernel/bpf/verifier.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 45c50ee9b0370..7a7a6e3087ba2 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -10478,7 +10478,7 @@ static int check_map_prog_compatibility(struct bpf_verifier_env *env, verbose(env, "trace type programs can only use preallocated hash map\n"); return -EINVAL; } - WARN_ONCE(1, "trace type BPF program uses run-time allocation\n"); + pr_warn_once("trace type BPF program uses run-time allocation\n"); verbose(env, "trace type programs with run-time allocated hash maps are unsafe. Switch to preallocated hash maps.\n"); }