From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 089843858D32; Mon, 2 Jan 2023 17:33:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 089843858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672680818; bh=QQkldsknQPgFB9AbU8nh3GBFh18PDbhn0/gdC92tUlo=; h=From:To:Subject:Date:From; b=ymkmgolGT3cK0QxcP6hwGc3cT3VdPllRruSiWdxsUoyTXGHw4o+BNdx0mFzW6bK/Z FeMBafkPAZgCABHDjTMN7MW2RS7UBgs2qIQGv74aD0Cemd/15pmlAlC5Je73uA6sum /lVmsby9d740zSbwjVmubkkK3xeYtMZ57Ekb8CmU= From: "engelke at in dot tum.de" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/29953] New: Invalid x86_non_temporal_threshold without cache info Date: Mon, 02 Jan 2023 17:33:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.36 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: engelke at in dot tum.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29953 Bug ID: 29953 Summary: Invalid x86_non_temporal_threshold without cache info Product: glibc Version: 2.36 Status: UNCONFIRMED Severity: minor Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: engelke at in dot tum.de CC: hjl.tools at gmail dot com Target Milestone: --- When cpuid reports no information on a shared cache (e.g., in an emulator),= the x86_non_temporal_threshold will be set to zero, causing memcpy/memset to be= have wrong for mid-sized operations. sysdeps/x86/dl-cacheinfo.h indicates that t= he minimum value must be 0x4040, but this is not enforced for the default value (see also commit b446822b6ae). In the emulator, `/lib64/ld-linux-x86-64.so.2 --list-tunables` reports: glibc.cpu.x86_non_temporal_threshold: 0x0 (min: 0x0, max: 0xffffffffffffffff) Setting the tunable explicitly (env GLIBC_TUNABLES=3Dglibc.cpu.x86_non_temporal_threshold=3D0x4040) avoids the = problem. As a side note, ld.so won't load any DSO on x86-64 ("CPU ISA level is lower than required") when the cpuid vendor not listed in sysdeps/x86/cpu-feature= s.c, as the feature bits in cpuid leaf 1 are not decoded in get_common_indices (family is NULL). --=20 You are receiving this mail because: You are on the CC list for the bug.=