Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1965304rwi; Tue, 11 Oct 2022 03:01:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7IUUNR0TqgX2Uo3YSj9jy8LnkPalDUlsOJOnTaispAtvgPrzG4bXATWCdQfJGj0BOM3ShS X-Received: by 2002:a17:90b:4f8a:b0:20c:9d98:13d1 with SMTP id qe10-20020a17090b4f8a00b0020c9d9813d1mr19118227pjb.245.1665482516857; Tue, 11 Oct 2022 03:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665482516; cv=none; d=google.com; s=arc-20160816; b=pW4wWvlTM7o9VWE6/kHSszdRNYuoUxGWnm2mORWWmxGkEvPlvGhcVKTFpjjwT9stZO e/xgBDz47ece79N7KZbUPNTN2NoZdPiUhV0XbIDdVPt5s8RgRp83pcQcHDi5bPcasAJF iOgpnh/9yVvwNSnNhmp284GYi4eHRiUmbS6Mn7oaHiGqcahYfjS1PksCK7OXQgBPh5LL LuG0qaZOyPiB43JcnooFAS4HxQwV2KqfZnWCuNLrIw2OdoWjX834HXvfJOEj6IcMdMqJ m6nZCR3XTeQAvEUggIU7xiLatQyBCI5L9zZ+V9DLMrEsxe5dPzBzmeYNVCs8GhDBsMkr T/4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=jAmIs6rqa3/NJx6/LNH2IIpYE9IkngpNlyMQGOZcNhE=; b=zK94frQxLytcThtI/pwxqZTMR/yeip3N06D89n7eCZnM39RxO0n9C25QAOmnLEACLN +xK/BfOpEjuIBzX+xlZFKvwF72jAzOf5Gs7x7kNwhUqZCxgnLlxSQhlTzlSiQzIu4suP K4QMew6Z4XVSdrSLyzHy8j27B1gcotUTx8WeijpxlPzTyTVsfQmMOmTGK2l7wvCSQ0KZ avl4tnDwzkhCn8e89OlLlRZrzb12XmTFLRV1mo9zJGxMJ6D5ixAczfWj5Z5lDNCHDrk9 gVsBOgZMJyJZGB5Srspxf+sfw7x5L+H4JVqOVR4R+6OfhMQ1uctEKb29NllnoypwfT7M wrwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=HzyvIoKB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k13-20020a170902ce0d00b0017f93ef47e5si15150638plg.370.2022.10.11.03.01.45; Tue, 11 Oct 2022 03:01:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=HzyvIoKB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbiJKJgB (ORCPT + 99 others); Tue, 11 Oct 2022 05:36:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbiJKJf7 (ORCPT ); Tue, 11 Oct 2022 05:35:59 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88C6E7C741 for ; Tue, 11 Oct 2022 02:35:58 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4MmrHr1Y5Bz4x1D; Tue, 11 Oct 2022 20:35:52 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1665480952; bh=jAmIs6rqa3/NJx6/LNH2IIpYE9IkngpNlyMQGOZcNhE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=HzyvIoKBbOSTIyUuwRam2qRup6NFT7gnaf6J3fvQz+bQxodBLy22qXgbgHSiC4aPk MY4V7AVG+aM3lM+9eQBUNkUgVhWbfDH6LGF4N2kjFIG8GhrOiHfMX1DdogAN6104Ax VGvwGto7yk/UM/WeYIEZJuKAhltVGWY6Xcur8wnb32UIsFsTpvg7WK8FeKT5l5Rnsh Rw/0dqlJItilrDKeL+Ox4CiKpshFm6hVY1TlkaPRPbZWkp7YzhcHfrm7C6sXYx9LmS fCcz8HzL/FidpiqLB6AJ+Y4tfwEdm+oJO3OYOerkY6nTp7tHmh78aE98baR3nPQpuF 2IbYQnBzNut1g== From: Michael Ellerman To: "Jason A. Donenfeld" Cc: Linus Torvalds , ajd@linux.ibm.com, aneesh.kumar@linux.ibm.com, atrajeev@linux.vnet.ibm.com, christophe.leroy@csgroup.eu, cuigaosheng1@huawei.com, david@redhat.com, farosas@linux.ibm.com, geoff@infradead.org, gustavoars@kernel.org, haren@linux.ibm.com, hbathini@linux.ibm.com, joel@jms.id.au, lihuafei1@huawei.com, linux-kernel@vger.kernel.org, linux@roeck-us.net, linuxppc-dev@lists.ozlabs.org, lukas.bulwahn@gmail.com, mikey@neuling.org, nathan@kernel.org, nathanl@linux.ibm.com, nicholas@linux.ibm.com, npiggin@gmail.com, pali@kernel.org, paul@paul-moore.com, rmclure@linux.ibm.com, ruscur@russell.cc, windhl@126.com, wsa+renesas@sang-engineering.com, ye.xingchen@zte.com.cn, yuanjilin@cdjrlc.com, zhengyongjun3@huawei.com Subject: Re: [GIT PULL] Please pull powerpc/linux.git powerpc-6.1-1 tag In-Reply-To: References: <87edvhntv0.fsf@mpe.ellerman.id.au> <874jwbnn1u.fsf@mpe.ellerman.id.au> Date: Tue, 11 Oct 2022 20:35:51 +1100 Message-ID: <87y1tmn1mw.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Jason A. Donenfeld" writes: > On Tue, Oct 11, 2022 at 12:53:17PM +1100, Michael Ellerman wrote: >> "Jason A. Donenfeld" writes: >> > On Mon, Oct 10, 2022 at 01:25:25PM -0600, Jason A. Donenfeld wrote: >> >> Hi Michael, >> >> >> >> On Sun, Oct 09, 2022 at 10:01:39PM +1100, Michael Ellerman wrote: >> >> > powerpc updates for 6.1 >> >> > >> >> > - Remove our now never-true definitions for pgd_huge() and p4d_leaf(). >> >> > >> >> > - Add pte_needs_flush() and huge_pmd_needs_flush() for 64-bit. >> >> > >> >> > - Add support for syscall wrappers. >> >> > >> >> > - Add support for KFENCE on 64-bit. >> >> > >> >> > - Update 64-bit HV KVM to use the new guest state entry/exit accounting API. >> >> > >> >> > - Support execute-only memory when using the Radix MMU (P9 or later). >> >> > >> >> > - Implement CONFIG_PARAVIRT_TIME_ACCOUNTING for pseries guests. >> >> > >> >> > - Updates to our linker script to move more data into read-only sections. >> >> > >> >> > - Allow the VDSO to be randomised on 32-bit. >> >> > >> >> > - Many other small features and fixes. >> >> >> >> FYI, something in here broke the wireguard test suite, which runs the >> >> iperf3 networking utility. The full log is here [1], but the relevant part >> >> is: >> >> >> >> [+] NS1: iperf3 -Z -t 3 -c 192.168.241.2 >> >> Connecting to host 192.168.241.2, port 5201 >> >> iperf3: error - failed to read /dev/urandom: Bad address >> >> >> >> I'll see if I can narrow it down a bit more and bisect. But just FYI, in >> >> case you have an intuition. >> > >> > Huh. From iov_iter.c: >> > >> > static int copyout(void __user *to, const void *from, size_t n) >> > { >> > size_t before = n; >> > if (should_fail_usercopy()) >> > return n; >> > if (access_ok(to, n)) { >> > instrument_copy_to_user(to, from, n); >> > n = raw_copy_to_user(to, from, n); >> > if (n == before) >> > pr_err("SARU n still %zu pointer is %lx\n", n, (unsigned long)to); >> > } >> > return n; >> > } >> > >> > I added the pr_err() there to catch the failure: >> > [ 3.443506] SARU n still 64 pointer is b78db000 >> > >> > Also I managed to extract the failing portion of iperf3 into something >> > smaller: >> > >> > int temp; >> > char *x; >> > ssize_t l; >> > FILE *f; >> > char template[] = "/blah-XXXXXX"; >> > >> > temp = mkstemp(template); >> > if (temp < 0) >> > panic("mkstemp"); >> > if (unlink(template) < 0) >> > panic("unlink"); >> > if (ftruncate(temp, 0x20000) < 0) >> > panic("ftruncate"); >> > x = mmap(NULL, 0x20000, PROT_READ|PROT_WRITE, MAP_PRIVATE, temp, 0); >> > if (x == MAP_FAILED) >> > panic("mmap"); >> > f = fopen("/dev/urandom", "rb"); >> > if (!f) >> > panic("fopen"); >> > setbuf(f, NULL); >> > if (fread(x, 1, 0x20000, f) != 0x20000) >> > panic("fread"); >> >> Does that fail for you reliably? >> >> It succeeds for me running under qemu ppce500, though I'm not using your >> kernel config yet. > > Yes, every time without fail, across two systems and two qemu builds. OK. Joel worked out that it only fails when built with musl, so that's why it's succeeding for me (built with glibc). cheers