From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by sourceware.org (Postfix) with ESMTPS id BAF6C389EC69 for ; Tue, 1 Feb 2022 14:10:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BAF6C389EC69 Received: by mail-pj1-x102d.google.com with SMTP id g11-20020a17090a7d0b00b001b2c12c7273so2104767pjl.0 for ; Tue, 01 Feb 2022 06:10:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=1fXWUK5t1qtAea9R2uPwetTQFdjNby3IdYIDBsGr17I=; b=047OXQPC22Dmd0ulfL/f1u9ylG35KDJnjmDXa2y9rcxXtHCPrgYpCeWJ1WNcWYnKh7 kswB31zhI+eCPAjoHwa0JJXazMQTlHvybwQ2MUcfLi+GsfynHSAkJj70ICw/qFwZ8UG1 jiIY6FiCXsqGcofOPwGDtYxmscw7vSWTTSMkA+3pUGLLotqwf9xR7K4OG1oFUMU5OMrU BkEmJPPB0Rrfbg8Lp32vQBX1+J2nmvNOSTWNQAxFHDPxKSdYQXgKe188cqTvLKyWaZnD ew53MyLaY3dTpF9hXASqJJhqv4ReUr3riZw4jRcFGI+iHpn7JYSZg1tjVO/aRMuQGa22 S0Cw== X-Gm-Message-State: AOAM533zJ+bWAwAhF7O/YgFopbN1rulWNrUKYrYrjJfpFtOg2JqXgFZ0 NDGrYAoFOTVFJ5rDLr3MFCwHGcn9T8C7jmAmHDWMTuCn8hZm8A== X-Google-Smtp-Source: ABdhPJyh9pe38dtBRU4+8FYN53FTVseQPqbLxANv10nNqPv6H/aUvP0WAaXW9V4SqUhulCZ8GouiOsAdGKNnrYaQEgk= X-Received: by 2002:a17:903:2350:: with SMTP id c16mr26245402plh.4.1643724618748; Tue, 01 Feb 2022 06:10:18 -0800 (PST) MIME-Version: 1.0 References: <4463051.R56niFO833@pinacolada> <45419734.fMDQidcC6G@pinacolada> In-Reply-To: From: "H.J. Lu" Date: Tue, 1 Feb 2022 06:09:42 -0800 Message-ID: Subject: Re: [2.33] FAIL: string/tst-memset-rtm To: Noah Goldstein Cc: "Andreas K. Huettel" , libc-alpha , toolchain@gentoo.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3021.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2022 14:10:21 -0000 On Tue, Feb 1, 2022 at 12:04 AM Noah Goldstein wr= ote: > > On Tue, Feb 1, 2022 at 1:30 AM Andreas K. Huettel via Libc-alpha > wrote: > > > > > > FAIL: string/tst-memset-rtm > > > > > > > > tst-memset-rtm.out says > > > > error: ../sysdeps/x86/tst-string-rtm.h:63: TSX abort rate: 100.00% = (3000 out of 3000) > > > > error: 1 test failures > > > > > > > > Something to worry about? > > > > > > > > Linux pinacolada 5.15.16-gentoo #1 SMP PREEMPT Tue Jan 25 23:46:25 = CET 2022 x86_64 Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz GenuineIntel GNU/Li= nux > > > > gcc (Gentoo 11.2.0 p1) 11.2.0 > > > > GNU ld (Gentoo 2.37_p1 p0) 2.37 > > > > > > What processor are you using? Please show your /proc/cpuinfo > > > > > > > huettel@pinacolada ~/Gentoo/gentoo/sys-libs/glibc $ cat /proc/cpuinfo > > processor : 0 > > vendor_id : GenuineIntel > > cpu family : 6 > > model : 94 > > model name : Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz > > stepping : 3 > > microcode : 0x33 > > cpu MHz : 3400.000 > > cache size : 8192 KB > > physical id : 0 > > siblings : 8 > > core id : 0 > > cpu cores : 4 > > apicid : 0 > > initial apicid : 0 > > fpu : yes > > fpu_exception : yes > > cpuid level : 22 > > wp : yes > > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge = mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall = nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl x= topology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl v= mx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movb= e popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault ep= b invpcid_single pti tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase = tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clf= lushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp= hwp_notify hwp_act_window hwp_epp > > vmx flags : vnmi preemption_timer invvpid ept_x_only ept_ad ept_1= gb flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple s= hadow_vmcs pml > > bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass = l1tf mds swapgs taa itlb_multihit srbds > > bogomips : 6799.81 > > clflush size : 64 > > cache_alignment : 64 > > address sizes : 39 bits physical, 48 bits virtual > > power management: > > > > (...) > > > > huettel@pinacolada ~/Gentoo/gentoo/sys-libs/glibc $ LANG=3DC lscpu > > Architecture: x86_64 > > CPU op-mode(s): 32-bit, 64-bit > > Address sizes: 39 bits physical, 48 bits virtual > > Byte Order: Little Endian > > CPU(s): 8 > > On-line CPU(s) list: 0-7 > > Vendor ID: GenuineIntel > > Model name: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz > > CPU family: 6 > > Model: 94 > > Thread(s) per core: 2 > > Core(s) per socket: 4 > > Socket(s): 1 > > Stepping: 3 > > CPU max MHz: 4000.0000 > > CPU min MHz: 800.0000 > > BogoMIPS: 6799.81 > > Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mt= rr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe s= yscall nx pdpe1gb rdtscp lm con > > stant_tsc art arch_perfmon pebs bts rep_good n= opl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_= cpl vmx smx est tm2 ssse3 sdbg > > fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic m= ovbe popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault= epb invpcid_single pti tpr_sha > > dow vnmi flexpriority ept vpid ept_ad fsgsbase= tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap cl= flushopt intel_pt xsaveopt xsav > > ec xgetbv1 xsaves dtherm ida arat pln pts hwp = hwp_notify hwp_act_window hwp_epp > > Virtualization features: > > Virtualization: VT-x > > Caches (sum of all): > > L1d: 128 KiB (4 instances) > > L1i: 128 KiB (4 instances) > > L2: 1 MiB (4 instances) > > L3: 8 MiB (1 instance) > > NUMA: > > NUMA node(s): 1 > > NUMA node0 CPU(s): 0-7 > > Vulnerabilities: > > Itlb multihit: KVM: Mitigation: VMX disabled > > L1tf: Mitigation; PTE Inversion; VMX conditional cac= he flushes, SMT vulnerable > > Mds: Vulnerable: Clear CPU buffers attempted, no mi= crocode; SMT vulnerable > > Meltdown: Mitigation; PTI > > Spec store bypass: Vulnerable > > Spectre v1: Mitigation; usercopy/swapgs barriers and __use= r pointer sanitization > > Spectre v2: Mitigation; Full generic retpoline, STIBP disa= bled, RSB filling > > Srbds: Vulnerable: No microcode > > Tsx async abort: Vulnerable: Clear CPU buffers attempted, no mi= crocode; SMT vulnerable > > > > > > > > > > -- > > Andreas K. H=C3=BCttel > > dilfridge@gentoo.org > > Gentoo Linux developer > > (council, toolchain, base-system, perl, libreoffice) > > > > > > > > If its not a bug with CPU id > > https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Dsysdeps/x86_64/mul= tiarch/memset-vec-unaligned-erms.S;h=3D584747f1a1664005419671ed0e7caf390b77= d92c;hb=3Drefs/heads/release/2.33/master#l215 > Looks suspect. > `VZEROUPPER_SHORT_RETURN` is defined as just `vzeroupper; ret` > and it doesn't appear the avx2 memset defined `VZEROUPPER_SHORT_RETURN` > > https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Dsysdeps/x86_64/mul= tiarch/memset-avx2-unaligned-erms-rtm.S;h=3D8ac3e479bba488becd0becb63011496= fef9eff13;hb=3Drefs/heads/release/2.33/master > https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3Dsysdeps/x86_64/mul= tiarch/memset-avx2-unaligned-erms.S;h=3Dae0860f36a47d5941456e5138b11544ad95= 40dbf;hb=3Drefs/heads/release/2.33/master Should be fixed by these backports: 1b8f2456b9 x86: Use CHECK_FEATURE_PRESENT to check HLE [BZ #27398] 54fdfa2b33 x86: Black list more Intel CPUs for TSX [BZ #27398] 0a5f5e2dc1 x86: Check RTM_ALWAYS_ABORT for RTM [BZ #28033] 5cb6edb6cd x86: Copy IBT and SHSTK usable only if CET is enabled --=20 H.J.