[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <cefadfa1-7702-4cf9-9f4e-c89ed9a131e4@linuxfoundation.org>
Date: Wed, 8 Jan 2025 16:23:14 -0700
From: Shuah Khan <skhan@...uxfoundation.org>
To: Kees Cook <kees@...nel.org>, "Dmitry V. Levin" <ldv@...ace.io>
Cc: Shuah Khan <shuah@...nel.org>, Gabi Falk <gabifalk@....com>,
linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org,
Shuah Khan <skhan@...uxfoundation.org>
Subject: Re: [PATCH] selftests: harness: fix printing of mismatch values in
__EXPECT()
On 1/8/25 14:57, Kees Cook wrote:
> On Wed, Jan 08, 2025 at 07:07:57PM +0200, Dmitry V. Levin wrote:
>> intptr_t and uintptr_t are not big enough types on 32-bit architectures
>> when printing 64-bit values, resulting to the following incorrect
>> diagnostic output:
>>
>> # get_syscall_info.c:209:get_syscall_info:Expected exp_args[2] (3134324433) == info.entry.args[1] (3134324433)
>>
>> Replace intptr_t and uintptr_t with intmax_t and uintmax_t, respectively.
>> With this fix, the same test produces more usable diagnostic output:
>>
>> # get_syscall_info.c:209:get_syscall_info:Expected exp_args[2] (3134324433) == info.entry.args[1] (18446744072548908753)
>>
>> Fixes: b5bb6d3068ea ("selftests/seccomp: fix 32-bit build warnings")
>> Signed-off-by: Dmitry V. Levin <ldv@...ace.io>
>
> Ah nice, thanks!
>
> Reviewed-by: Kees Cook <kees@...nel.org>
>
Thank you. Applied to linux-kselftest next for Linux 6.14-rc1.
thanks,
-- Shuah
Powered by blists - more mailing lists