Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1961851rdb; Tue, 20 Feb 2024 12:16:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXo8RFsat0xoecZoddebfzE4ptCJVLF3JPJoE5shvdy9H8S/58707hKwvq+MF9qGErFwgYlGkE0uL5MEF+KWrbbX7EDrRvasHAFJS6OJg== X-Google-Smtp-Source: AGHT+IEoxj7P4pSROlYN4le6KbAX/UtbqTqpTdjOprEZ+ga0eaKsXPP/weNB2VXGy42+fFmj1HkP X-Received: by 2002:a05:6902:4ca:b0:dcc:8e02:a6b6 with SMTP id v10-20020a05690204ca00b00dcc8e02a6b6mr15397420ybs.2.1708460193521; Tue, 20 Feb 2024 12:16:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708460193; cv=pass; d=google.com; s=arc-20160816; b=bzDRnOEViplY4la/6UFHL7c6zTqIa4o5hxJERj63jF+ytzmgJX+7TCL/maIvil4CNd vrwt0V8yZBX7hpTCuvZvAqTme9I510cbL+JQS3Q/Zyqh1eBLxKrRZiD9RRbe75DZdvYk 3cLsezitelod5Zr3ihAzwFof8zjPELqPRN+nX1eOfaUSRHJ0NUV596XnOEmb6EdZO5ld MlWYLHae+/oY0NnhWYxx3nv+NLGXuPPuq0mJHYUxFuNpbMlZhRrUaslcugLRvF2fOIAI iOg4hmH7wcsgwGHC/sY4t//8CjAEYR5s8GNTttNtFw9WzjXmj55zJ+kBEweAFOen0i9T CLvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=SASJvZiK5JLGZlQtlEOJrENESAKzYR2wqRZox3lXmic=; fh=43wF5SAOyZYzjGzqGTn1kQhbGCGunVOmD9R3xb+tstY=; b=jtNitHSOss+oy7zWa61fyd4z8/11PrtbufmzwE1SR8L7ppQoB02nn2zvBHTjVJwTg/ 8ckD2uMqX2Q2xjwhY5OO7Q3uyDf0JKGshvNnoYJwhfoeLbhJ7YCP2TzowWV99ZUm6ixX xp+x80XySO6x2yuVpGOKs6ocMxbYmX2WPmnks2BYRRxbu/Vd6ww+mogv8i5zU9EchhUr c8zZMlPqA1MwvgAkZ/Pt7ETvIM05OUw4NCpx02d6KXbpV5vKdA8TpjrlFpfsuSOutVkN Jf6gCcge3tkxDTOA0RP84lWSDlGUcsc67832h0FWFrSsL3ANdsP9o0Viwl9s4wUuNZW/ RuVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=b0Aox2C3; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-73661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73661-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pb7-20020a05620a838700b0078780d7af8esi1026315qkn.762.2024.02.20.12.16.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 12:16:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=b0Aox2C3; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-73661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73661-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 483FB1C212D7 for ; Tue, 20 Feb 2024 20:16:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AA1F14A4F5; Tue, 20 Feb 2024 20:16:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="b0Aox2C3" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 793BC14A4DF for ; Tue, 20 Feb 2024 20:16:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708460184; cv=none; b=OCfS61g0JwIIvuHFPYedQbEcFChTZ3dhqYZTse5EAWjziD0gSBNJFCpnLZAv8vXESPJ1bGEe8ntsZn+RnkBG3xnJH+sCx2mGBk+E2+FxDYUvjhbbjI/Vf1sCorhD73Fg+JPTUWYt8og4EJQFjhMNISZ6WzrQfHVi8y02WlF0Beo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708460184; c=relaxed/simple; bh=Bn1Gdz/wdbcEWBGG2cIMSmnLhdSFWbRTBNhZ7jo0UNM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=G5W/TxQ9PgP6hfQOKi8SaP2wdcLL/QQVB/Zw+Xa97DRYSP9FI7nYdZNWtR11yOuZa9XG6ezhJrKdIiL9KIr4gtBKXeTVLvNE2K0+yZU0ZyuJLfqSFCRgkNOil4GrB3ghgI+XBGwvQGI+saBQtpoLYYx9Jn+0B3V6V/VczmZhyms= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=b0Aox2C3; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a3e72ec566aso356165366b.2 for ; Tue, 20 Feb 2024 12:16:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1708460180; x=1709064980; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=SASJvZiK5JLGZlQtlEOJrENESAKzYR2wqRZox3lXmic=; b=b0Aox2C3UNhk2JPypHY7D+FbqHQtKDrLRqjx6zf3wfqZM0z2/Ynmn2eaK0CRCIAkmS KmWrECceXEdBj8ZsWSr9DX+7LaKn0BB35SmX+F5RuNjscYQMgpyvKlKQSSL6za8+3w3K N1y65Cug8gKq90Jeg+YwL+dvprVNHHV/croxI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708460180; x=1709064980; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SASJvZiK5JLGZlQtlEOJrENESAKzYR2wqRZox3lXmic=; b=Md4KbaMRlUbnVnVjvmNALDuHlonRQpmtPd9vSuuDHHls4Au2n2hSbTMa0EM1Sed5Pd JhziLqe6HPK+L8AIsvx2eqyOpN1yYREDTmzW3jUQzjdjmhL6Ia4ug3ZlITjl5BQ3wH+9 BDXfnRkGIvx6ukDxQGfDQsd4ZdLwadknauzNY8nLwjYN3RE9dAb2BYQEcPF287P1zUx9 UYgEgpNt0mi7Uw3Rvbd6KG9OzjePIBOjs9a6LLmCq8Lg8lfDTeco8k+NblFDZ4MfJhIy jNx3FPU6UBjsYCK2Ir8kG04GpRwOLzhdUihve0BBp5kMUX8weVUWSUAo1GCdsMWeBscN +w9A== X-Gm-Message-State: AOJu0YxwkYIgMlTArxvUxkjA27lqUxVrZCXwWdseEhWVIfWzF7j/erb7 KL+4tHvt2pXV35iKyYH86ynh+mzu4NGdNRePoyWCESB+CRl7A46QCrgGQoE6ufEd9pPpUVPUC7J AKkIuHw== X-Received: by 2002:a17:906:e89:b0:a3e:e89a:d226 with SMTP id p9-20020a1709060e8900b00a3ee89ad226mr2153716ejf.63.1708460180588; Tue, 20 Feb 2024 12:16:20 -0800 (PST) Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com. [209.85.208.54]) by smtp.gmail.com with ESMTPSA id y2-20020a170906470200b00a3d0dd84276sm4267211ejq.184.2024.02.20.12.16.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Feb 2024 12:16:19 -0800 (PST) Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-55a035669d5so9877903a12.2 for ; Tue, 20 Feb 2024 12:16:19 -0800 (PST) X-Received: by 2002:a05:6402:1850:b0:561:f6db:2fd6 with SMTP id v16-20020a056402185000b00561f6db2fd6mr9678466edy.42.1708460178802; Tue, 20 Feb 2024 12:16:18 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <538327ff-8d34-41d5-a9ae-1a334744f5ae@roeck-us.net> In-Reply-To: From: Linus Torvalds Date: Tue, 20 Feb 2024 12:16:01 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linux 6.8-rc5 To: Guenter Roeck , Shuah Khan , David Gow , Brendan Higgins , Rae Moar Cc: Linux Kernel Mailing List , Matthew Auld , Arunpravin Paneer Selvam , =?UTF-8?Q?Christian_K=C3=B6nig?= , kselftest list , KUnit Development Content-Type: text/plain; charset="UTF-8" On Tue, 20 Feb 2024 at 11:57, Linus Torvalds wrote: > > It turns out that that commit is buggy for another reason, but it's > hidden by the fact that apparently KUNIT_ASSERT_FALSE_MSG() doesn't > check the format string. The fix for that is this: --- a/include/kunit/test.h +++ b/include/kunit/test.h @@ -579,7 +579,7 @@ void __printf(2, 3) kunit_log_append(struct string_stream *log, const char *fmt, void __noreturn __kunit_abort(struct kunit *test); -void __kunit_do_failed_assertion(struct kunit *test, +void __printf(6,7) __kunit_do_failed_assertion(struct kunit *test, const struct kunit_loc *loc, enum kunit_assert_type type, const struct kunit_assert *assert, but that causes a *lot* of noise (not just in drm_buddy_test.c), so I'm not going to apply that fix as-is. Clearly there's a lot of incorrect format parameters that have never been checked. Instead adding Shuah and the KUnit people to the participants, and hoping that they will fix this up and we can get the format fixes for KUnit in the 6.9 timeframe. Side note: when I apply the above patch, the suggestions gcc spews out look invalid. Gcc seems to suggest turning a a format string of '%d" to "%ld" for a size_t variable. That's wrong. It should be "%zu". A 'size_t' can in fact be 'unsigned int' on some platforms (not just in theory), so %ld is really incorrect not just from a sign perspective. Anyway, I guess I will commit the immediate drm_buddy_test.c fix to get rid of the build issue, but the KUnit message format string issue will have to be a "let's get this fixed up _later_" issue. Linus