From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9C94C54EE9 for ; Thu, 22 Sep 2022 14:05:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230463AbiIVOFn (ORCPT ); Thu, 22 Sep 2022 10:05:43 -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: 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