]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: blacklist vmware_bdoor() AddressSanitizer check
authorSami Kerola <kerolasa@iki.fi>
Sat, 22 Nov 2014 09:01:36 +0000 (09:01 +0000)
committerKarel Zak <kzak@redhat.com>
Fri, 19 Dec 2014 10:32:38 +0000 (11:32 +0100)
AddressSanitizer is identifying the __asm__ segment as suspicious.

==1215==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000
(pc 0x0000004ccffd bp 0x7fff9b7184f0 sp 0x7fff9b7184e0 T0)
    #0 0x4ccffc in vmware_bdoor /home/src/util-linux/sys-utils/lscpu.c:660

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/lscpu.c

index c272dc238ac58fa9c0d90d75fcfa719c6d53a8f4..2a5032517f1d18130db8a2b972ff40f3ba4b9a05 100644 (file)
@@ -655,7 +655,7 @@ read_hypervisor_powerpc(struct lscpu_desc *desc)
 #define VMWARE_BDOOR_PORT           0x5658
 #define VMWARE_BDOOR_CMD_GETVERSION 10
 
-static inline
+static UL_ASAN_BLACKLIST
 void vmware_bdoor(uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx)
 {
        __asm__(