Received: by 10.213.65.68 with SMTP id h4csp491762imn; Fri, 16 Mar 2018 09:21:34 -0700 (PDT) X-Google-Smtp-Source: AG47ELt/SYBvXTH8ZDWA1xK8jZGwC7Xhr5kwica8UzubES4maPCAOW9JIYvjO3Q9NDFS2xFTNk8i X-Received: by 2002:a17:902:8bc3:: with SMTP id r3-v6mr461386plo.100.1521217294297; Fri, 16 Mar 2018 09:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521217294; cv=none; d=google.com; s=arc-20160816; b=sN5pOgvPU28g8TmQ0ICL85B0p1IXegAIskdTlXvitG3cCVA16KaxNOkPEU8eRBxeu9 CF4HN+xATsU2gYEVDflt1VSLTEft+2o06diakKP6A+Y0rH40oRND0Zo9OsrRo69kyGJ3 6pvXJ5IipsZDd9UyI2oZ2hGeSvIimPXoutorm0jq6AoBXGv//eOCT8MaEJMW2Lh55dKQ FOWQZK1GYaF280jPFt1NMQGR/6dlDuh/TyacuRCCo9b1w/WhHf80Q/0qjJKRZZoFXZPQ gQwL9r9R3AWSbou9FbXwJ2dKZX3grgk9kpxJlayhlyfA23Q07CdIHA74T7503BArYDUH E0qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature :arc-authentication-results; bh=42rK5kyhEGDI9jdHy17SG0YEi1HSnlOGjq6UaRRaHIY=; b=NhpwBZI0JNwcqEAQVtQvYnlao3e96jZAgh9DNmGi3r+l5Iwh/ZbjnW1IsyC6LI+bD9 UosFkPIHqoXhi7fAhroQJ+4Qs1X/d2MSRHrM/+mfSLBZKLvRDKPT4kfP2WS6rsmJOZIH XqT3ud4Efjb+xyq7/b0hOTtEsx9l8TaHspsNpBv/VmC0s+Tpsk8IKkx8iEQ1p3Ot+A+m aGSdU+79Z5K80BcHSJnedvpimw5V/+lX6ycDp8Ga4AZFO/UdJHdGMruiepiLcnuc8Cv5 06urfEdEN4dKXPUeH6iTTP9LTk6cwB/N45ESJiX/ab76O/+Vbb+e3v9F9TlWDON6SSYN J4DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=jq1wax7Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2-v6si6460580plm.476.2018.03.16.09.21.20; Fri, 16 Mar 2018 09:21:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=jq1wax7Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751562AbeCPQUZ (ORCPT + 99 others); Fri, 16 Mar 2018 12:20:25 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:39274 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750991AbeCPQUV (ORCPT ); Fri, 16 Mar 2018 12:20:21 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2GGEX4m102123; Fri, 16 Mar 2018 16:20:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=42rK5kyhEGDI9jdHy17SG0YEi1HSnlOGjq6UaRRaHIY=; b=jq1wax7QAxSC0T84HRIFQxTSXWMcigdi/rrneusbnoHyZFncOyrB2Lcq89K79FFBEUfJ NU+TmhtlGzEZoVovPlwUjf03GxQBiYYqN2Y14Rz/rXsu6nYqDfMvqiBRDJ/8tFr+TEd2 t3rQUELC1QxxHBOdtSIOOHTxNHm8aSAtWWv4vyXSTzkFNwvmd828XntQl0gzxx56MXVG V0N95/r2dZ7w7hxhPSc4abgoGkAkwAAOENBeIlTcyeshAOOIEVeBZGJOdhWVaPEx5oIX Fs7zot2kJFNSsJ6hXEn7VG5crrMIe05CyqRwmPR6gsiad3azQAv31DUAGVEkVc6vNvin kA== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2grh97g0uh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Mar 2018 16:20:12 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2GGKBSX015489 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Mar 2018 16:20:11 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2GGKAW7014540; Fri, 16 Mar 2018 16:20:10 GMT Received: from [192.168.8.5] (/202.156.140.248) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 16 Mar 2018 09:20:10 -0700 Subject: Re: [PATCH 4.14 024/110] btrfs: use proper endianness accessors for super_copy To: Greg Kroah-Hartman , dsterba@suse.cz, Christoph Biedl , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Liu Bo , David Sterba References: <20180307191039.748351103@linuxfoundation.org> <20180307191042.810088712@linuxfoundation.org> <1521139304@msgid.manchmal.in-ulm.de> <20180316123049.GC25079@kroah.com> <20180316132202.GB8297@twin.jikos.cz> <20180316140256.GA9735@kroah.com> From: Anand Jain Message-ID: <8ebec52c-0953-aa6c-3e77-876097aaa353@oracle.com> Date: Sat, 17 Mar 2018 00:21:57 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180316140256.GA9735@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8833 signatures=668690 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=2 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803160153 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/16/2018 10:02 PM, Greg Kroah-Hartman wrote: > On Fri, Mar 16, 2018 at 02:22:02PM +0100, David Sterba wrote: >> On Fri, Mar 16, 2018 at 01:30:49PM +0100, Greg Kroah-Hartman wrote: >>> On Thu, Mar 15, 2018 at 07:55:42PM +0100, Christoph Biedl wrote: >>>> Greg Kroah-Hartman wrote... >>>> >>>>> 4.14-stable review patch. If anyone has any objections, please let me know. >>>> >>>>> commit 3c181c12c431fe33b669410d663beb9cceefcd1b upstream. >>>> (...) >>>> >>>>> If the filesystem is always used on a same endian host, this will not >>>>> be a problem. >>>> >>>> >From my observations I cannot quite subscribe to that. >>>> >>>> On big-endian systems, this change intruduces severe corruption, >>>> resulting in complete loss of the data on the used block device. >>>> >>>> Steps to reproduce (tested on ppc/powerpc and parisc/hppa): >>>> >>>> # mkfs.btrfs $DEV >>>> # mount $DEV /mnt/tmp/ >>>> # umount /mnt/tmp/ >>>> >>>> This simple umount corrupts the file system: >>>> >>>> # mount $DEV /mnt/tmp/ >>>> mount: /mnt/tmp: wrong fs type, bad option, bad superblock on $DEV, missing codepage or helper program, or other error. >>>> >>>> # dmesg: >>>> BTRFS critical (device ): unable to find logical 4294967296 length 4096 >>>> BTRFS critical (device ): unable to find logical 4294967296 length 4096 >>>> BTRFS critical (device ): unable to find logical 18102363734671360 length 16384 >>>> BTRFS error (device ): failed to read chunk root >>>> BTRFS error (device ): open_ctree failed >>>> >>>> Also fsck is of no help: >>>> >>>> # btrfsck $DEV >>>> Couldn't map the block 18102363734671360 >>>> No mapping for 18102363734671360-18102363734687744 >>>> Couldn't map the block 18102363734671360 >>>> bytenr mismatch, want=18102363734671360, have=0 >>>> ERROR: cannot read chunk root >>>> ERROR: cannot open file system >>>> >>>> >>>> Trying mount or fsck on a little-endian system does not help either. So >>>> I consider the data on that device lost - luckily I use btrfs only for >>>> files where a backup exists all the time. >>>> >>>> >>>> Reverting that change restored the previous error-free behaviour. I >>>> didn't check HEAD, i.e. v4.16-rc5, since the upstream commt was the last >>>> that affected these files. Still I could give this a try if anybody >>>> wishes so. >>> >>> That sucks. Can you test Linus's tree to verify the problem is there? >>> I'll gladly revert this if Linus's tree also gets the revert, I don't >>> want you to hit this when you upgrade to a newer kernel. >> >> I'll push a fix for the upcoming rc but I think it would be better to >> remove the broken patch from stable kernels ASAP, so I'd recommend to >> revert it now. > > Now reverted, thanks. Thanks ! Sorry for the mess. -Anand > greg k-h > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >