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:   Tue, 6 Aug 2019 18:54:56 +0000
From:   Fihlman Emil <emil.fihlman@...to.fi>
To:     "yauheni.kaliuta@...hat.com" <yauheni.kaliuta@...hat.com>
CC:     "e@...lett.im" <e@...lett.im>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [RFC PATCH] gcc-9: workaround array bounds warning on boot_params
 cleaning

It should also be possibly to simply cast to u64 and then to u8 * unless
the compiler overzealously tracks out of bound accesses even when
6.3.2.3 #5-6 explicitly allows pointer-integer-pointer conversions like
this and removes previous guarantees. Ie.

memset((u8 *)((u64)(&(boot_params->ext_ramdisk_image))), 0, size)

I apologise for not having the in-reply-to header.

Emil Fihlman

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ