Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1931815imj; Fri, 8 Feb 2019 09:35:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IYSTbyoivtkZ6O/zZmnm0Bs41TBuZ45ARLf0IfdhBtWRS6e18wmEDDtK3hJw68f9lJxdGd5 X-Received: by 2002:a63:a5c:: with SMTP id z28mr16866666pgk.446.1549647350844; Fri, 08 Feb 2019 09:35:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549647350; cv=none; d=google.com; s=arc-20160816; b=i47xh/hB4966GBLWohAoLxDclw9Qdn5O/fTMjIQ6KJf7de5ZkEW+GZSs50Hstivg3m Fsh5TY1eKjxJ65YIjOUc7F0fV9mWb1u4yE4aqNO/SsF43kWYTu+kCY+LIZZiQMViZFxD DPqRVrL5JdVlg3XJNCM6oZK3vICHFP9fXYLMY82ftobWSbyPzadvbCvkglRopsyvDK2d sHqWniWg8YaaKVtE2QfXXNiPyC2zKWYlYfPCa/WB4zBXwZa4EnHymYPv/sOipOY0Qp2G bkwywyC5Irjx3hcPbSBCNnIUkTM5kvqiL3ah1isK5vvCYcZ7PBw+kz+UVfZTMq4mx9Jt oKeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=sGjMwvpZz32ruSU1ne/N4Fl5RaqICe+TPszQCVxbI/8=; b=bgeqE6enHMpbidppbRGZDTb4DUelr3WRoVhD4KaEgmJbP9g/8ZJEdybuB1s3/1rmiE Ulh7C+9/3mvr5NOmFk49dR8h87LO/O5rVVzS6pv+5En9m6hgmEdxEMIsig0VgdUwBMeg tQsOd523EbNSuwK0ePUV4DAfcvD+zYBSTdZp/mjVG4+T/IEYrLDiMK1yYZYu9nSmbOZq ylk4SdiVGxiKfyLnPl2eeMGspqySOS86tqxBotErfAQ3Wbo/JGNHvfU3B3Vw0jo9ibMN 4lsjTejsxQI/haJ7zU6kjlg/gIoax46LKxqgN3jmzkZXjPNhMSSzLos6PWtOQrM1GpmA RETg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digidescorp.com header.s=google header.b=JWCTOOi+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bb3si2706792plb.160.2019.02.08.09.35.34; Fri, 08 Feb 2019 09:35:50 -0800 (PST) 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=@digidescorp.com header.s=google header.b=JWCTOOi+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727949AbfBHRfG (ORCPT + 99 others); Fri, 8 Feb 2019 12:35:06 -0500 Received: from mail-it1-f176.google.com ([209.85.166.176]:55425 "EHLO mail-it1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727893AbfBHRfF (ORCPT ); Fri, 8 Feb 2019 12:35:05 -0500 Received: by mail-it1-f176.google.com with SMTP id m62so10632301ith.5 for ; Fri, 08 Feb 2019 09:35:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digidescorp.com; s=google; h=from:to:cc:subject:date:message-id; bh=sGjMwvpZz32ruSU1ne/N4Fl5RaqICe+TPszQCVxbI/8=; b=JWCTOOi+p+0VHLHDhz0fev2rPuAa5kmcax74SJuro7CMG8dGhuWJQrFAf1FYdrhmNd tk4uGfkY3cYgsuHKBmFea7i5Pg2LoTrmVjJB/gbjpe6PegBKWL6cASaFF/1Ly4LMcA4u c0V+/y21ULIe9PQ1C/D90u83TCqVizZczCU5c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sGjMwvpZz32ruSU1ne/N4Fl5RaqICe+TPszQCVxbI/8=; b=P0Go5zKl82RevAa46uMZ7HHARSPz3tbEt1Vgts12e4WvOxMVPs5t6nhRADw9CiTVfz V6QvsduDJ2RZ4gBxJNQ3nOrNVmdTBDEXBEnmFoUXhTSnJdj26h7kLwwYaCIlzN0Gl0Zf PVyNYfOSZqyeT/zJi6VK5CYKq24xa1h0yZ4CkzunoIo+UaGnR/c/X1iNiHhYgwKr4ILg ndVBJ25cwYlWF9m/gwmrJQa+rkoOZPH3NOMYrfq2vT9dpaOOuiRw6pi2guNlA0SQtSIa Z4SPejHPAg7I6m1KhelAJDKRO2fmmhhLJwsstTH9HHeDVi9ySFjNgh5t2e+/nWeatVW4 TR6Q== X-Gm-Message-State: AHQUAuYQCG4DnJyMdXD/OkkQDhM+OX8P9kuBPGfDwNv4CKwqtbYOHpU1 D378UOYV8cEgvjkAroBFxXluOTOUlSs= X-Received: by 2002:a02:9951:: with SMTP id d17mr12059830jak.134.1549647304544; Fri, 08 Feb 2019 09:35:04 -0800 (PST) Received: from iscandar.digidescorp.com (104-51-28-62.lightspeed.cicril.sbcglobal.net. [104.51.28.62]) by smtp.googlemail.com with ESMTPSA id k1sm1198861iob.2.2019.02.08.09.35.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Feb 2019 09:35:03 -0800 (PST) From: Steve Magnani X-Google-Original-From: Steve Magnani To: jack@suse.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH 0/2] udf: Fix corrupt on-disk integrity descriptor following sync() Date: Fri, 8 Feb 2019 11:34:53 -0600 Message-Id: <20190208173455.20151-1-steve@digidescorp.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In cases where the next unique ID or file/directory count of the in-core Logical Volume Integrity Descriptor have been updated, a sync() causes a (corrupt) LVID with a stale CRC to be written to disk. Ordinarily, this is corrected by an update of the on-disk LVID that occurs when the filesystem is unmounted. However, if power is lost or the filesystem resides on a device that is surprise-removed, the corrupt LVID remains and can complicate later remounting or fsck/chkdsk.