Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp813594ybt; Tue, 7 Jul 2020 00:32:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZa5Pf302wecOQXw9c+aRnSQn/wfHvNXMK8ZFA+0zARDfWcL75Q3xcsW3Y2r5Lv9Z3Dr7J X-Received: by 2002:a17:906:7b54:: with SMTP id n20mr45620280ejo.144.1594107168299; Tue, 07 Jul 2020 00:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594107168; cv=none; d=google.com; s=arc-20160816; b=Iwh5y+jzTCPvPn1l7RaNjcE2fRwcSwXaXYqLN3CpIFIzB7ztYG+AXLt7LjF9iLSvQ0 cxcpBijxoz1P0CrQapxxWFutOjkYWEpM0PmyLpTof51dQUIyKajQpTIfyM+4u0G9cW4N t0tzhIIvja1OIxv/gX7SKqmA2HzUzAU0v2EYZHzVb3KDqLvPf8xVmTDXBHv4CXCQQq+Y 9xx9HZLImcQC4zF/5BWUEt+TfFHcTLU/JHHLT1cuhLviM2+J4MwLIbS1scv/5ak2hZnY GnawoRC3L+8s1nTco6xxXl1ioWuzzsLzvd4pWV6YZ1fGSFzdROfIoONbxWsL9cCOeyeT RgcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to:date :references:subject:cc:to:from; bh=taPFJ2Dn8r1iGQy40NG6iJfaz7yTgwKSMyAlD4+MdLY=; b=J0TpCv4R6iJ1OkzhOTF77a2iBLv00bx5yfdOheqLSNHjhSzFMIfp0EJe8KkwlfT7jv HwMtKx06pwY3uwM70cTj8ddmS0G0C1G3/fOw116jxDlMs7fMpqx5qrJeQxvw9WDYbqAx e4nhzG+9sucZFLbuOjlUf5eXGAxlmJRfzw+0Vbgg52bgRKU1wH6cQk42jMK+5wsQ2Qps iQKpRqjYrI9ePnIkvnh3QTgSdCa/Su5IxrSKHI3dEu7rKaF2ucTQrQ6ldky5GC5bCQ+U CpVYKH3m/zGIpL9UJukaJPOfFxogjmh/VUVK8TM/6wu6GmOjHnPBVDKNFXiohuj1Si4M FUXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zn5si15353366ejb.583.2020.07.07.00.32.24; Tue, 07 Jul 2020 00:32:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727008AbgGGHaQ (ORCPT + 99 others); Tue, 7 Jul 2020 03:30:16 -0400 Received: from albireo.enyo.de ([37.24.231.21]:49088 "EHLO albireo.enyo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbgGGHaP (ORCPT ); Tue, 7 Jul 2020 03:30:15 -0400 Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1jsi3R-0000ZL-3u; Tue, 07 Jul 2020 07:30:13 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1jsi3R-0003fR-19; Tue, 07 Jul 2020 09:30:13 +0200 From: Florian Weimer To: Mathieu Desnoyers Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, Peter Zijlstra , "Paul E . McKenney" , Boqun Feng , "H . Peter Anvin" , Paul Turner , linux-api@vger.kernel.org, Dmitry Vyukov , Neel Natu , stable@vger.kernel.org Subject: Re: [RFC PATCH for 5.8 1/4] sched: Fix unreliable rseq cpu_id for new tasks References: <20200706204913.20347-1-mathieu.desnoyers@efficios.com> <20200706204913.20347-2-mathieu.desnoyers@efficios.com> Date: Tue, 07 Jul 2020 09:30:13 +0200 In-Reply-To: <20200706204913.20347-2-mathieu.desnoyers@efficios.com> (Mathieu Desnoyers's message of "Mon, 6 Jul 2020 16:49:10 -0400") Message-ID: <87blkrzssa.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mathieu Desnoyers: > While integrating rseq into glibc and replacing glibc's sched_getcpu > implementation with rseq, glibc's tests discovered an issue with > incorrect __rseq_abi.cpu_id field value right after the first time > a newly created process issues sched_setaffinity. > > For the records, it triggers after building glibc and running tests, and > then issuing: > > for x in {1..2000} ; do posix/tst-affinity-static & done > > and shows up as: > > error: Unexpected CPU 2, expected 0 > error: Unexpected CPU 2, expected 0 > error: Unexpected CPU 2, expected 0 > error: Unexpected CPU 2, expected 0 > error: Unexpected CPU 138, expected 0 > error: Unexpected CPU 138, expected 0 > error: Unexpected CPU 138, expected 0 > error: Unexpected CPU 138, expected 0 As far as I can tell, the glibc reproducer no longer shows the issue with this patch applied. Tested-By: Florian Weimer