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>] [day] [month] [year] [list]
Message-ID: <454cb73e-a1f8-4824-9fe1-2b55a4dd99e3@p183>
Date: Wed, 3 Sep 2025 12:13:17 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: zhangjiao2 <zhangjiao2@...s.chinamobile.com>
Cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
	linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH] fs/proc/base.c: Fix the wrong format specifier

>-		len = snprintf(name, sizeof(name), "%u", tid);
> +		len = snprintf(name, sizeof(name), "%d", tid);

Ehh, no.

%u is correct because "tid" can't be negative.

	%alexey

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ