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]
Date:   Wed, 7 Nov 2018 12:23:31 +0000
From:   Chris Ward <tjcw01@...il.com>
To:     linux-kernel@...r.kernel.org
Subject: Kernel build warnings

I recently had reason to build the Linux kernel (debugging a problem on 
OpenSuSE Tumbleweed), and I

got a number of warnings. They are all about 'strncpy' buffers being 
possibly 1 byte too short to hold the

trailing NUL in a string. I have sent a log of the warnings attached to 
this email; the first warning is here

as a sample.

   CC      kernel/debug/kdb/kdb_io.o
kernel/debug/kdb/kdb_io.c: In function ‘kdb_getstr’:
kernel/debug/kdb/kdb_io.c:446:3: warning: ‘strncpy’ specified bound 256 
equals destination size [-Wstringop-truncation]
    strncpy(kdb_prompt_str, prompt, CMD_BUFLEN);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Should the kernel be revised to eliminate these warnings ?

-- 
Chris Ward


View attachment "bugreport.txt" of type "text/plain" (58513 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ