lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 27 Feb 2024 16:24:58 -0700
From: Shuah Khan <skhan@...uxfoundation.org>
To: David Gow <davidgow@...gle.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
 Guenter Roeck <linux@...ck-us.net>, Rae Moar <rmoar@...gle.com>,
 Matthew Auld <matthew.auld@...el.com>,
 Arunpravin Paneer Selvam <arunpravin.paneerselvam@....com>,
 Christian König <christian.koenig@....com>,
 Kees Cook <keescook@...omium.org>, Maíra Canal
 <mcanal@...lia.com>, Rodrigo Vivi <rodrigo.vivi@...el.com>,
 Matthew Brost <matthew.brost@...el.com>,
 Willem de Bruijn <willemb@...gle.com>, Florian Westphal <fw@...len.de>,
 Cassio Neri <cassio.neri@...il.com>,
 Javier Martinez Canillas <javierm@...hat.com>,
 Arthur Grillo <arthur.grillo@....br>,
 Brendan Higgins <brendan.higgins@...ux.dev>,
 Daniel Latypov <dlatypov@...gle.com>, Stephen Boyd <sboyd@...nel.org>,
 David Airlie <airlied@...il.com>, Maxime Ripard <mripard@...nel.org>,
 "David S . Miller" <davem@...emloft.net>, dri-devel@...ts.freedesktop.org,
 linux-kernel@...r.kernel.org, intel-xe@...ts.freedesktop.org,
 linux-rtc@...r.kernel.org, linux-kselftest@...r.kernel.org,
 kunit-dev@...glegroups.com, linux-hardening@...r.kernel.org,
 netdev@...r.kernel.org, Shuah Khan <skhan@...uxfoundation.org>,
 Justin Stitt <justinstitt@...gle.com>
Subject: Re: [PATCH 7/9] drm: tests: Fix invalid printf format specifiers in
 KUnit tests

On 2/21/24 14:29, Justin Stitt wrote:
> Hi,
> 
> On Wed, Feb 21, 2024 at 05:27:20PM +0800, David Gow wrote:
>> The drm_buddy_test's alloc_contiguous test used a u64 for the page size,
>> which was then updated to be an 'unsigned long' to avoid 64-bit
>> multiplication division helpers.
>>
>> However, the variable is logged by some KUNIT_ASSERT_EQ_MSG() using the
>> '%d' or '%llu' format specifiers, the former of which is always wrong,
>> and the latter is no longer correct now that ps is no longer a u64. Fix
>> these to all use '%lu'.
>>
>> Also, drm_mm_test calls KUNIT_FAIL() with an empty string as the
>> message. gcc warns if a printf format string is empty (apparently), so
> 
> clang does too; under -Wformat-zero-length
> 
>> give these some more detailed error messages, which should be more
>> useful anyway.
>>
>> Fixes: a64056bb5a32 ("drm/tests/drm_buddy: add alloc_contiguous test")
>> Fixes: fca7526b7d89 ("drm/tests/drm_buddy: fix build failure on 32-bit targets")
>> Fixes: fc8d29e298cf ("drm: selftest: convert drm_mm selftest to KUnit")
>> Signed-off-by: David Gow <davidgow@...gle.com>
> 
> Reviewed-by: Justin Stitt <justinstitt@...gle.com>

David,

Please send this on top of Linux 6.9-rc6 - this one doesn't
apply as is due to conflict between this one and fca7526b7d89

I think if we can fix this here - we won't problems during pull
request merge.

thanks,
-- Shuah



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ