Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1437525imm; Wed, 25 Jul 2018 18:47:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpco+CfkjHr9qw9UqLPNMPvA3VFPXsH2PbI0+63mIbRbj73ApD8E2i1gDWQGGBajVVJ8/hE9 X-Received: by 2002:aa7:83cd:: with SMTP id j13-v6mr24674072pfn.236.1532569675258; Wed, 25 Jul 2018 18:47:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532569675; cv=none; d=google.com; s=arc-20160816; b=FM8pKHncn6FEYQdTACkvAG2cL+o5umjYDuQ9doVc2SSOaB2GgZuEcu9BvNf9eEl3xU eYLc/rUOYZWc52mxga/OUoX6moIMMTP9MwPg+ptrm/RPWz5+6uwBFqxlXpXfMadL0vBT VkKHuEBnahMWujkhkDumQObKlE0zhTWpasWAQeMgb3/ppH9vntdNMPi7PvSoDCA2A/nx DsxX4zymz/g8uIUlHU541zO9wGQyH+kB3jKY8Zb9BuO1sG7KIf0DEQW1+K5SlPxwG8hp S+LVkwXeGgbHBG7DwOyGD8e70IEl+AstJjlLgukJIUjVtfR4GZQSVfFyKjsaXEmeNWB4 jA1g== 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 :arc-authentication-results; bh=PNY0B9IyhhiL28HuhMKOb8iglpjyDho04O5nul2q/+4=; b=BrQ5hAtg9aoj1jUXtRY4H4nk+IxfPAaIyKeRTFEnqog2RpfOF4gm6HMY4xdFO6Msd1 L91N/U8M7ugiSLYS6pO4ta5Bi4RQkbp8BCjMfNzQYLS1cSddY9lRNuBC2TPitIJ6/gIJ VDhyXCylcnvSYTaXURyMa25QdfDlcCIylfiekD6PaaS59GpvAPacbgWUlwXKmq4EsiLD IUBki9kxA6+jMuHMx2+PepsXAjIl7Oo2QYy+sjXmGHQipRBEYD4VnNWJkZk3COWe9jhy qBDkrelXlJxfGPwjdryC5Bpjzw+W8AWU23l7V0G8ALcgpIIvPqMCKiMv5Y26pkOUIHM4 r9bA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o18-v6si21261pgg.250.2018.07.25.18.47.40; Wed, 25 Jul 2018 18:47:55 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728640AbeGZDBK (ORCPT + 99 others); Wed, 25 Jul 2018 23:01:10 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:38288 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728452AbeGZDBK (ORCPT ); Wed, 25 Jul 2018 23:01:10 -0400 Received: from mail-qk0-f198.google.com ([209.85.220.198]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1fiVMa-0005eb-SJ for linux-kernel@vger.kernel.org; Thu, 26 Jul 2018 01:46:44 +0000 Received: by mail-qk0-f198.google.com with SMTP id 123-v6so108341qkg.8 for ; Wed, 25 Jul 2018 18:46:44 -0700 (PDT) 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=PNY0B9IyhhiL28HuhMKOb8iglpjyDho04O5nul2q/+4=; b=jo14kiWy3brSlUlo6U92tmbI/OxFYAt4jJjbZv/Gyk2k0X9jMOYN9f9DZne5lXMvhy 3Vf06xhvGfhV5fm+nB/xMC0iarAAN5hh+2L+Nl0N0mJRlyNUrhPj4Gro7f9i65SBXUsu e+3fsWKNOjPPLmCXMz0/PDunAK1l8PzQOXthIQtmVO8Je/rG/AxJ+b+B7ESC6SYSKUbo hfP3B4vIXDuvEAbCIOltAE3GEF5MS2ngshqVrlMzvyK1t89MsPl1ifmUpOAd/2YNznug DJGvih8zU/kW22aToLAMmctT8IKjF60Mte2tEBPlogjQOq472OGaF4WTxnkx/Oh0KqCv wCyw== X-Gm-Message-State: AOUpUlG6GNWWx6NavNClOJE9bL7btdXojGylKewOUZ9dLvWRXuXKnLq4 uhicTIHrJQeGwvLmhoZof2awUyW4S1cSstfX4tHpv9wlvmwkc5RuWXdncMVE19zcV5GFRpK9RjA eAAEL4QAUphgSEDrtGpiWiTExtaN2OWSNopt+9SAlAw== X-Received: by 2002:ac8:42b:: with SMTP id v43-v6mr21938751qtg.319.1532569604107; Wed, 25 Jul 2018 18:46:44 -0700 (PDT) X-Received: by 2002:ac8:42b:: with SMTP id v43-v6mr21938747qtg.319.1532569603976; Wed, 25 Jul 2018 18:46:43 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:77dd:8111:28ad:fd9c:9a4d]) by smtp.gmail.com with ESMTPSA id r4-v6sm19619qtm.10.2018.07.25.18.46.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 18:46:43 -0700 (PDT) From: Mauricio Faria de Oliveira To: axboe@kernel.dk Cc: phdm@macqel.be, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, daniel.axtens@canonical.com Subject: [PATCH 0/2] partitions/aix: fix problems due to disk corruption Date: Wed, 25 Jul 2018 22:46:27 -0300 Message-Id: <20180726014629.30411-1-mfo@canonical.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 We've recently received a disk image from an AIX LUN that when attached on Linux displayed errors on console, then eventually hung the system. Apparently the LUN was originally installed with AIX and later exercised with some I/O stress/overwrites which caused certain bits to be wrong in just the right way for Linux to get a NULL pointer and invalid data. This is the test-case used ('--partscan' is the important bit). $ sudo losetup --show --find --partscan aix-lun.img Patch 1 resolves the particular problem the disk image has. Patch 2 improves the code a bit further (tested synthetically). Mauricio Faria de Oliveira (2): partitions/aix: fix usage of uninitialized lv_info and lvname structures partitions/aix: append null character to print data from disk block/partitions/aix.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) -- 2.17.1