Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp877479rwb; Thu, 22 Sep 2022 07:28:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5FBhBxkkIvd7YxM7crUj2PBA0c+y+ydEjpuEqyDXKVpcirX0N7OKfstwes9mDZ/P2O7FZB X-Received: by 2002:a17:906:9bdc:b0:77e:1ed1:b12 with SMTP id de28-20020a1709069bdc00b0077e1ed10b12mr3005436ejc.661.1663856939619; Thu, 22 Sep 2022 07:28:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663856939; cv=none; d=google.com; s=arc-20160816; b=n2imq2wjSpBzi+K4RE1yahLl/0QzTtdV0kTiOfI60KRzaFBSHSJDdBUUG+KXSvTwih ogyE5o0qr1NoJFsjZMG1O1+81+ghZ1m/wXUDxDoQvGpUe7eIFZLjArJOZy8Ex2tuoE56 EzEjCVRr3XaH4PXZniMYJWNSNkMqjF7SD2Rqrlc68nWAOcR4ZA0FehKhnW44uQOz7UHQ 0jW8rWkaGIuP4l2O+h9tvyriPV7LM1GWEbWfbs0RkszZHzrsk3LVsRo7KmGBRr/ma/xN rJKWngUuryRwGBdTuvbkzCwHXd61lRcStUX0DXaUo6ZmemR7hkaTQwK9HwT01LJnkiAX uspQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=1eWxyQ8NQTWAoElsB6pImhqKQEUDKCR3OjGAEwNUruA=; b=dr1yt+aOnn4wYnQHUy0TKjiEzU3AGsAFLTjFuffFTCce+OxGJHuDuSuwoV9/mdgMTR oZgRhLwj6LYVudWKJUW0YAIfxG0jtu0UKNZBH1dknItIkaLiJgm0P0bBBZpqwcTxWuCh VX2TRBfdfkFXupXf7FVY/n201jaXLSMD8mVZsqBQgfTOWAqRdGO7aygv5Rlp3NYOjsPU H/CA+MmTNh9D9UxvzdAdDoH1fYRsZmteO6oJHGDYAePme9nY1r/wpbSfI4youWi0SBWn 239Su47O6a8I4thY+l/BTaPt6G3cIU3GcQdo2Rwy1bsqndNIQLFOIlyGrzBSxwQYqPFI KAvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@true.cz header.s=xnet header.b=TSASf9fE; 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 d12-20020a170906544c00b007707ab4be26si4933057ejp.967.2022.09.22.07.28.29; Thu, 22 Sep 2022 07:28:59 -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=temperror (no key for signature) header.i=@true.cz header.s=xnet header.b=TSASf9fE; 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 S230460AbiIVOFm (ORCPT + 99 others); Thu, 22 Sep 2022 10:05:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230196AbiIVOFe (ORCPT ); Thu, 22 Sep 2022 10:05:34 -0400 Received: from smtp-out.xnet.cz (smtp-out.xnet.cz [178.217.244.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22BABE8DBB for ; Thu, 22 Sep 2022 07:05:30 -0700 (PDT) Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 080EC18DC6; Thu, 22 Sep 2022 16:05:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=true.cz; s=xnet; t=1663855528; bh=I0J6ujNLVhhMLRh/6e6Aj/CNH22tQ5rFeLmRIK00Kp8=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=TSASf9fEl1CgAJeERTp/DNaIBCk97+0BRDyqQq2TfrEvepbGwEDMMGaCfrUxQ1wuo 8J9QkYRspRtOtzdIdj+lW/AFQId2FbYyFnOdmpRasCvODVsRe9ujeWA7a9u6ZV8vAL yv6sDAmRvaPPX56nflhhPGByMHqt8SrZEeXwNN2I= Received: from localhost (meh.true.cz [local]) by meh.true.cz (OpenSMTPD) with ESMTPA id 7761a6f8; Thu, 22 Sep 2022 16:05:04 +0200 (CEST) Date: Thu, 22 Sep 2022 16:05:04 +0200 From: Petr =?utf-8?Q?=C5=A0tetiar?= To: Phil Auld Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, yury.norov@gmail.com, rafael@kernel.org Subject: Re: aarch64 5.15.68 regression in topology/thread_siblings (huge file size and no content) Message-ID: <20220922140504.GA58265@meh.true.cz> Reply-To: Petr =?utf-8?Q?=C5=A0tetiar?= References: <20220922113217.GA90426@meh.true.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Phil Auld [2022-09-22 09:18:47]: Hi, > I've seen the size cause problems for tools. Are we sure that it's the empty file and not > the size causing issues? Maybe something is treating that as signed again for a count of > -1 bytes (which seems like it would be a bug anyway)? root@OpenWrt:/# strace cat /sys/devices/system/cpu/cpu1/topology/thread_siblings ...snip... openat(AT_FDCWD, "/sys/devices/system/cpu/cpu1/topology/thread_siblings", O_RDONLY|O_LARGEFILE) = 3 sendfile(1, 3, NULL, 16777216) = 0 root@OpenWrt:/# strace md5sum /sys/devices/system/cpu/cpu1/topology/thread_sibli ...snip... openat(AT_FDCWD, "/sys/devices/system/cpu/cpu1/topology/thread_siblings", O_RDONLY|O_LARGEFILE) = 3 read(3, "", 4096) = 0 root@OpenWrt:/# strace head /sys/devices/system/cpu/cpu1/topology/thread_siblings ...snip... openat(AT_FDCWD, "/sys/devices/system/cpu/cpu1/topology/thread_siblings", O_RDONLY|O_LARGEFILE) = 3 read(3, "", 1024) = 0 Cheers, Petr