Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2266936rdb; Wed, 21 Feb 2024 02:13:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW7S3hVU9cACX9z3gcnvbRk9CbVKlxkHSGcWb2ohTRU1SCTQHtFMIbyDC/Udq78cQ0cGL1Ts+4VjFSCezBt7esLSQJQfxDg0PZfDEKBzQ== X-Google-Smtp-Source: AGHT+IGP57OPa0Hgsv5BoKv1hppQEHFQIjonwx3uq7a2WIwTxc4ZX6ZKOJGyMYoaJhV5ttNkx+hX X-Received: by 2002:aa7:d94c:0:b0:565:caa:ded1 with SMTP id l12-20020aa7d94c000000b005650caaded1mr415244eds.7.1708510397124; Wed, 21 Feb 2024 02:13:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708510397; cv=pass; d=google.com; s=arc-20160816; b=oWEi6o+g2KJXurmZeqc8lolZDqR1+7DgfE+j7h7NP50n+m+mCtazxvnSFE/WNDdDzL J1jqR8tqWhL2F8KxS8jbBBDFD3VTXrz+sEHabSARXIxzSJX1dZPgk1lBt/hdHqflKw5r Df8NuJB64h+PyxgOVwiFsXWhap3qIfVjAYI02LQ8AXNWeBoLMNVPQPdTs1oSJC/0lOTV hnUqHB4oZeMhF+bNqM+r79/9xGA50IGXBKC4sfk6J5zMVZ6KTWyd8iiopOIZXQhLZuD4 2CksOGUXrD8f1Oax5Z/c5CJcceUKPg90ENAW/9yF2C0A+5MytTj531xuqKzRyP4EXm6t DSNw== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74496-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a17-20020a05640213d100b00564652eac19si3126328edx.233.2024.02.21.02.13.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 02:13:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74496-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; arc=pass (i=1 spf=pass spfdomain=altlinux.org); spf=pass (google.com: domain of linux-kernel+bounces-74496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74496-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2A2C51F2A059 for ; Wed, 21 Feb 2024 10:05:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83517405C7; Wed, 21 Feb 2024 10:03:56 +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 To: oficerovas@altlinux.org, Alexei Starovoitov , Daniel Borkmann , John Fastabend Cc: Greg Kroah-Hartman , 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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"); } -- 2.42.1