Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp306233pxj; Fri, 14 May 2021 04:05:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0LzX0S9BLACjuf9EgM3chjccGKngohKmd0wk5MM3Yl9pTOc2d1k6ZmNL7typJuqY326SX X-Received: by 2002:a02:a81a:: with SMTP id f26mr38774218jaj.110.1620990313972; Fri, 14 May 2021 04:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620990313; cv=none; d=google.com; s=arc-20160816; b=cBRLRNV+TW7hsL/TTsWrY0AzzOUKQeuj37DqyavhdyVdSXRB6N6J/2lMKv/F6+vrSK 3TDhOqwEq1jwCfh4D/iaDKg4YSeKCVLcvficOoCJ1OYQB8vy+re07ScxbtMjODKkBqT6 ZgKKnWZe7ay3BDj4iz8ckRTgeEA2ol/TZ2Gpl2k76fk1/5wJvxfzshaVKjP/dDUhCDHW VBa+lGbsaH6freHLsDr4W/JibjUeTSmh5X4NS3uUSLS+gmQenZZ6xd5+f9aE+UzwVacg LOQVch+dk0v8ZPNTs6v4Wv5C3zinzFNdRhpLSplFNj/CDYwGgR6bI+3LX1M5o79rcc8O 5uxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=NiLLB9DjtlRLw+/IuuhXXQWMt40mTCqzNCkrhFWzU+Y=; b=vajIjSDYv4oJShaRav8+CN21TpYUXdifziirRlUyksqAQ2UJi72kROD8jNf2PLRW4V Vt2cBH4V9jNoA0rtocxAiKVV/4wK8gOqaViKrzrPZtogwF42qEOYf+mEyNqgEI4zNcry x/6W/oX+nMsF62hOTwyHhqXNJVEZ/8yqMypWvVwT+ixps/HHAUp+ndWqo56O56eLPwak XvhtDHe5I0DteNJ535Yge5N4HBPS9toJntEmpyeSFp1pk8YzT6XY2jROt2gwZBcLgMjk bsr9PC6pPJhxT7101/AzNajOHwHCbJcDx8mxkutdwWz5iZqjPiwFoRTlzdA4sVLPmG2W ktUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=aa4cLFST; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n9si8297586jaj.15.2021.05.14.04.04.59; Fri, 14 May 2021 04:05:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=aa4cLFST; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229445AbhENKpq (ORCPT + 99 others); Fri, 14 May 2021 06:45:46 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:44914 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231783AbhENKpl (ORCPT ); Fri, 14 May 2021 06:45:41 -0400 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20210514104428epoutp0119e61476768061c42635175d230b9a56~_6Pg2Snc30848108481epoutp01t for ; Fri, 14 May 2021 10:44:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20210514104428epoutp0119e61476768061c42635175d230b9a56~_6Pg2Snc30848108481epoutp01t DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1620989068; bh=NiLLB9DjtlRLw+/IuuhXXQWMt40mTCqzNCkrhFWzU+Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aa4cLFSTEg+6dXSe8dhko0KFp42VbwiYLXc4kCQBgUToxUilZLt8DcVYzI6AQQV+2 ySiIcKzMyH+Phrt0NylFviC5LeF2Av4Hq/OqSNaAbfDntGyF+Ald2pzRSPc8r5qbku 3OdNIJZ34gqtNJ13CPqej8RVGkCuxCd9FqiawQtE= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20210514104428epcas1p2137dce660926fb01549871c9f6e3597c~_6PgZ55Hd0555605556epcas1p2M; Fri, 14 May 2021 10:44:28 +0000 (GMT) Received: from epsmges1p4.samsung.com (unknown [182.195.40.165]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4FhQBg1sGtz4x9Px; Fri, 14 May 2021 10:44:27 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id 64.D4.10258.B845E906; Fri, 14 May 2021 19:44:27 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20210514104426epcas1p3ee2f22f8e18c961118795c356e6a14ae~_6PfFHYjm1546315463epcas1p3A; Fri, 14 May 2021 10:44:26 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210514104426epsmtrp2b4b61e2a32c20e413f6f376b6f951881~_6PfEO0Pg1199011990epsmtrp2Q; Fri, 14 May 2021 10:44:26 +0000 (GMT) X-AuditID: b6c32a38-419ff70000002812-57-609e548bcb48 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 0E.13.08637.A845E906; Fri, 14 May 2021 19:44:26 +0900 (KST) Received: from localhost.localdomain (unknown [10.253.99.105]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210514104426epsmtip2751bc9e19e43c18b0a2e5d6b85b92001~_6Pe0Wb0O2557925579epsmtip2T; Fri, 14 May 2021 10:44:26 +0000 (GMT) From: Changheun Lee To: alex_y_xu@yahoo.ca Cc: gmazyland@gmail.com, bvanassche@acm.org, tytso@mit.edu, axboe@kernel.dk, bgoncalv@redhat.com, dm-crypt@saout.de, hch@lst.de, jaegeuk@kernel.org, linux-block@vger.kernel.org, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, ming.lei@redhat.com, yi.zhang@redhat.com, dm-devel@redhat.com Subject: Re: regression: data corruption with ext4 on LUKS on nvme with torvalds master Date: Fri, 14 May 2021 19:26:14 +0900 Message-Id: <20210514102614.3804-1-nanich.lee@samsung.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Tf0xTVxT29j1eX2GwJ0K9NsbVN1kUBVpL8UrELJGZFyULCewPZQlU+gZs /bW+VmVmE8U6+RHGwDEpozWOsEgHTobjZwULjLIBiQFGqjBGwMG2CAymDkVYS0vGf9+55/vO Od+595JY8AghIrM0BlavUahowh//oXNPZERBsiVNMj4ZgOpGv+Uj29hnBGq5bwWobH4JQw9z nxPIPlvhh35sN/PRTVs3D03dMmPI/mAvKreMEmiw5SsCWasf8ZGjNJeHTIVLfDQyUEa8STGD Q8eZZvMYnxnsNzL1NXkE833VeabVlUMwF/u6MWbu7jDB9LX18JjF+h2Mw1GNJQacVB3KZBVK Vi9mNelaZZYmI44+npR6JFUeI5FGSA+iA7RYo1CzcXR8QmLE0SyV2w0tPq1QGd1HiQqOo6MO H9JrjQZWnKnlDHE0q1OqdFKJLpJTqDmjJiMyXauOlUok++VuZpoqs70kB+icQWcb7k775YDW gHwgICEVDe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fNBjaPpjNH mT3e77vK5nFmz3Emj8+b5DwOHVrGHMAdxWWTkpqTWZZapG+XwJWxf1IDY8EJvoot+56zNjDu 5u5i5OSQEDCR+Pf9OzOILSSwm1HizTxpiLiUxPETb1m7GDmAbGGJw4eLuxi5gEo+MkpMmn6K FaSGTUBHou/tLTYQW0RATOLn/J8sIEXMAk+ZJJoWnmIGaRYWCJdouu4EUsMioCox5dBasF5e ASuJ3Ydb2SF2yUv8ud8DdgOnQLTEzidNLBD3REn8PXSFGaJeUOLkzCdgcWag+uats5knMArM QpKahSS1gJFpFaNkakFxbnpusWGBYV5quV5xYm5xaV66XnJ+7iZGcIRpae5g3L7qg94hRiYO xkOMEhzMSiK8YkmzE4R4UxIrq1KL8uOLSnNSiw8xSnOwKInzXug6GS8kkJ5YkpqdmlqQWgST ZeLglGpgiqzTW58446l/zvKD8xKXb66vuqC84LR5maFqQnh7fvzVjUePP/R+siYjSonNZ2a2 o71BRWvtvv33F056ddPfbcVtaZH+nwG/JguVeRqUXv8prF33rD3px1KNg97F7xcV8sf6XXmp NcHr95YTaucUyrq3TbFIWeb+6uKJfNOJdoum/b7A9XLWFrfHXa/uTY76FCF5W/eD9XI1vdZ5 y7gYE1ZybXu/ovZgzC5xQWWjRSGJuiGGZtMzQtPSS04XBnfstXjGoZtb8/6rjyTf4mVKHver /fct2h+3Wu3L4QnzTmq1357Z9HB50BvtgPod05qWPlJbf+3rVmMlxpnm9/R3sBqeeXrHed8F Q5103m8bVZVYijMSDbWYi4oTAV1pZqQfAwAA X-CMS-MailID: 20210514104426epcas1p3ee2f22f8e18c961118795c356e6a14ae X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210514104426epcas1p3ee2f22f8e18c961118795c356e6a14ae References: Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org > On 5/13/21 7:15 AM, Theodore Ts'o wrote: > > On Thu, May 13, 2021 at 06:42:22PM +0900, Changheun Lee wrote: > >> > >> Problem might be casued by exhausting of memory. And memory exhausting > >> would be caused by setting of small bio_max_size. Actually it was not > >> reproduced in my VM environment at first. But, I reproduced same problem > >> when bio_max_size is set with 8KB forced. Too many bio allocation would > >> be occurred by setting of 8KB bio_max_size. > > > > Hmm... I'm not sure how to align your diagnosis with the symptoms in > > the bug report. If we were limited by memory, that should slow down > > the I/O, but we should still be making forward progress, no? And a > > forced reboot should not result in data corruption, unless maybe there > > If you use data=writeback, data writes and journal writes are not > synchronized. So, it may be possible that a journal write made it through, > a data write didn't - the end result would be a file containing random > contents that was on the disk. > > Changheun - do you use data=writeback? Did the corruption happen only in > newly created files? Or did it corrupt existing files? Actually I didn't reproduced data corruption. I only reproduced hang during making ext4 filesystem. Alex, could you check it? > > > was a missing check for a failed memory allocation, causing data to be > > written to the wrong location, a missing error check leading to the > > block or file system layer not noticing that a write had failed > > (although again, memory exhaustion should not lead to failed writes; > > it might slow us down, sure, but if writes are being failed, something > > is Badly Going Wrong --- things like writes to the swap device or > > writes by the page cleaner must succeed, or else Things Would Go Bad > > In A Hurry). > > Mikulas