Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp388416pxj; Thu, 13 May 2021 07:16:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdRuB3i7xPdEjrzL+r6WMUbeItMAI1wDbrhFOrPM/Mo+IyjDQ/KaRuohG2uVjyUjlXrFly X-Received: by 2002:a19:f609:: with SMTP id x9mr26566581lfe.130.1620915406050; Thu, 13 May 2021 07:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620915406; cv=none; d=google.com; s=arc-20160816; b=oC5IPbXZHD//S+vR98z1BmZINtT+TlW6SEU52/oWgVrrfDj82MMgkFM9UfT3JaTn9h JXDNQlcq1N/r9iYNV7k0vJWXiR5G6GF1LAzTqoDdnOQnuC0+u75SnUEgypmGPVz4a4L2 oQdC57PkSlPeoo6f5NblqjaauD9GQj9BPpyYhiLdpxPRCqbV912wq0mZLB+4yag99uKc l3tHqmFY4kL0L2LdbT+pIbkQ4GGqqYVs/IEQUca1gIGVgXJtBQLE+TJIDEYRhMGTKVhA DoXa15sKtTnIDu+2M3VhA1Yw2j60mFdnH40TCM2toqxwDFs0n/AhNQamTytjIs/ajqj4 Dgwg== 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:message-id:subject:cc:to:from:date; bh=5BSgGVw6nC9siicJYeN46fbSLDImjpRgoJK+rUd04VM=; b=voM+v/J1GN0UBJaA+TIekXmNP6gJQabxk7qArhEdqcavDXOM8jgcoN9G5/c3PckXYj Se6rEEiauWufwOGImZFK4pNUdfdlKpD5tkpiQUgxoIKBPMtJfB+8i5xJVQTDRExgGLZn EH5HKBE6UnLXIJqQhX/tiUXPfUy2Z6aHtOvt2PGPGexz7TL72O3ryx5DR5LowxrYXCZZ 0WsP2oMM0BYiCcCnY9ycZr6/GNCZcxDpmRRwVnYX0aRGbr++kARcEMh1JmMOLAttcAvT bdq9wLq2Tx1b8dtmVusBQP1fN8PsJhaoGkEvXigwIydTNgsDPspuIApJvNbpxt63N6RC qlSA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si3821919ljk.193.2021.05.13.07.16.12; Thu, 13 May 2021 07:16:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234328AbhEMORM (ORCPT + 99 others); Thu, 13 May 2021 10:17:12 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:44976 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234249AbhEMORK (ORCPT ); Thu, 13 May 2021 10:17:10 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 14DEFVOa009307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 May 2021 10:15:32 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 9B67515C3B1D; Thu, 13 May 2021 10:15:31 -0400 (EDT) Date: Thu, 13 May 2021 10:15:31 -0400 From: "Theodore Ts'o" To: Changheun Lee Cc: alex_y_xu@yahoo.ca, axboe@kernel.dk, bgoncalv@redhat.com, bvanassche@acm.org, 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 Subject: Re: regression: data corruption with ext4 on LUKS on nvme with torvalds master Message-ID: References: <20210513094222.17635-1-nanich.lee@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210513094222.17635-1-nanich.lee@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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 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). - Ted