Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp9139654rwb; Thu, 24 Nov 2022 08:33:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf4YpsQrQhqxVgH5zgqaLMcsClBt1pgBFGBFFkeNJVb1NrKPWedDviw/4rUDqGzcTn8OizF3 X-Received: by 2002:a05:6a00:2da:b0:56c:6f58:5937 with SMTP id b26-20020a056a0002da00b0056c6f585937mr17946979pft.5.1669307633483; Thu, 24 Nov 2022 08:33:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669307633; cv=none; d=google.com; s=arc-20160816; b=CQmCxPHPfQRrpndAiQ8kvF1b/mRjKwTerBpNNPRPksWlz1G1u9mONAfJPT1wLaOZbz +zDYUOum50Xjwsqx++7rGjOuffBCQ1YdG5Chs0UlRAST2d/m3ojrKa3tlMzpSoHn9ntY SQ2uN8VLHjfH5KlmgK/TRH4obu1cachNXAsu05bqct4NZ8OboS/UGUFM0ojMN7YLWAyu DpIJixBLGVcuU0G2vhzkULQb1wVPXtsQ3SZrxCzF11eXgsZNPAM2e3xYOcFlbs5/aMy1 LAmlVTblGdMBmi66C6Eqk+I4AiP6y+xb3tELjPrT68mgrWHTV4KuShtHaragcHUyDirp F7jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :content-language:user-agent:mime-version:date:message-id; bh=9CN2adpB/Q0qz+/h9XLIHMMcMgSou45xRRyB4iiTVUs=; b=vZaWKm9Z/cBJus60CUfT/xVY/7xcGi++Jm3URrf6pC6hai//Cp2tumOc7cixIxEtv8 OKwyghdXShEol0Fz4qpdMVQkk4uvvJEg2eNeRat7RuXjrLjxKeWofBThuph2miSm7vnB JitmwEzK5KvWJJrlDtxYL7BgHoaqh3Gq5OwmrEunmDbVpu+8WTeWsJ4rynMyDdsT0Rgi h950cYaZ27vkxcDg2QvzVbd3SrZ7C02JlX/k9FPjA5Q92nZAXddSHuLtLmJh2rCw4STA +KsxgiJoBydY/r0ClIKnWd6aqmPm1nPNOzalvXNq1FyQZbn6ggn6irJ/NpKLofZBks5m +0NQ== ARC-Authentication-Results: i=1; mx.google.com; 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 x36-20020a634a24000000b0046fabcda4easi1483603pga.555.2022.11.24.08.33.42; Thu, 24 Nov 2022 08:33:53 -0800 (PST) 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; 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 S229789AbiKXPsE (ORCPT + 86 others); Thu, 24 Nov 2022 10:48:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbiKXPsA (ORCPT ); Thu, 24 Nov 2022 10:48:00 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 525F52AC53; Thu, 24 Nov 2022 07:47:59 -0800 (PST) Received: from [2a02:8108:963f:de38:eca4:7d19:f9a2:22c5]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1oyESD-0007Tw-En; Thu, 24 Nov 2022 16:47:57 +0100 Message-ID: <2505800d-8625-dab0-576a-3a0221954ba3@leemhuis.info> Date: Thu, 24 Nov 2022 16:47:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Content-Language: en-US, de-DE From: Thorsten Leemhuis To: Al Viro Cc: Linux-fsdevel , "regressions@lists.linux.dev" , LKML , "Christian Brauner (Microsoft)" , Pierre Labastie , Miklos Szeredi , linux-unionfs@vger.kernel.org Subject: =?UTF-8?Q?=5bregression=2c_bisected=5d_Bug=c2=a0216738_-_Adding_O?= =?UTF-8?Q?=5fAPPEND_to_O=5fRDWR_with_fcntl=28fd=2c_F=5fSETFL=29_does_not_wo?= =?UTF-8?Q?rk_on_overlayfs?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1669304879;d2e4648a; X-HE-SMSGID: 1oyESD-0007Tw-En X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 Hi, this is your Linux kernel regression tracker speaking. I noticed a regression report in bugzilla.kernel.org. As many (most?) kernel developer don't keep an eye on it, I decided to forward it by mail. Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=216738 : > Pierre Labastie 2022-11-24 14:53:33 UTC > > Created attachment 303287 [details] > C program for reproducing the bug > > Not sure this is the right place to report this, but at least the offending commit [offending commit is 164f4064ca8 ("keep iocb_flags() result cached in struct file"), as specified in the "Kernel Version:" field in bugzilla] > is in this component... > > Steps to reproduce: > $ gcc repro.c > $ rm -f toto > $ ./a.out > $ cat toto; echo > > On an ext4 fs, the output is (on all versions): > abcdefghijklmnopqr > > Now, make an overlayfs: > $ mkdir -p up lo wo mnt > $ sudo mount -t overlay overlay -oupperdir=up,lowerdir=lo,workdir=wo mnt > $ cd mnt > $ rm f toto > $ ../a.out > $ cat toto; echo > > before the said commit, the output is: > abcdefghijklmnopqr > > after the said commit, the output is: > ghijklmnopqr > > That is the file is truncated when opened with O_RDWR, with O_APPEND added later, but not when opened with both. See the ticket for more details. BTW, let me use this mail to also add the report to the list of tracked regressions to ensure it's doesn't fall through the cracks: #regzbot introduced: 164f4064ca8 https://bugzilla.kernel.org/show_bug.cgi?id=216738 #regzbot ignore-activity Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) P.S.: As the Linux kernel's regression tracker I deal with a lot of reports and sometimes miss something important when writing mails like this. If that's the case here, don't hesitate to tell me in a public reply, it's in everyone's interest to set the public record straight.