Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp897130imu; Fri, 9 Nov 2018 07:48:46 -0800 (PST) X-Google-Smtp-Source: AJdET5dvhQwg2VAarfrnJZVYc6bGAnadz/9nIEF8VD0q8hLcSmBc5/5z8BHIQNl0eWqAnSB6F7vy X-Received: by 2002:a63:78cd:: with SMTP id t196mr7910184pgc.62.1541778526182; Fri, 09 Nov 2018 07:48:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541778526; cv=none; d=google.com; s=arc-20160816; b=V4ARYM3gdE6Rri6QWWM0ZhKR3Jpbs8vnuodbdFnZtYI4fqUiFSbmvMi4SJ5hZJ/SWY nIywuAQ8eyTlIeeYcl6vy1elYKeSjyCRcl7gUscegiG+AJkNS5v7Ve15QsmH6VVE1QZz fmNHqKp+MyWB7C284lhTU/gleNF0aoZv6Tv5eUJCqIfuujhEFgGkZG1Eq1fCmFth21DS XMX0+m0jKv5O6+L520M+1yU7JmvHR/rmZeyu8CtCgIiru4rtiG3rbXphMwsexo3LlwZ+ T8lNuPbVNNY4r6buTwlDqP/ZKkDjugadHXj6wt0y2B5iIpiqUWGbnlpuzftN3gOFi90x DTHg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=MCGdmgOTNUkLb6qv90dOeywT5o76S1FgeXUUFEyhBCk=; b=tPmIPl9BmohWSoaUifZjzt2yeT52/wpHUGDpJa0CAU5dsSoh3SX38SXRshbOcktAp8 5HFixnQ0whhOQP6KsorrxsCGf+5lKZvveq7naobPmhJYtTKPqH3MVIQu8WtBl0fcv7vs cM79oAMb6c3+zLAMtuZzRw9dTHeH0Dpje8GPjt5geUSNITACjDBCSs5tf88bKnVbdWIE YHf9toONPlqSZHzMYcf3TkLOKHGEVLVptajR+NiTQoPaEiZsHBCOk4obZ3jlz92hDM1N 3ngJqOWJThsicdqHvTmElkSVlttdWOCNY4FBhKAaPo9Vy14tTgLST8T2IkSOP37qF0VT zi+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="cRPLpN3/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t69si6379853pgb.365.2018.11.09.07.48.22; Fri, 09 Nov 2018 07:48:46 -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=@gmail.com header.s=20161025 header.b="cRPLpN3/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728183AbeKJBZd (ORCPT + 99 others); Fri, 9 Nov 2018 20:25:33 -0500 Received: from mail-lf1-f43.google.com ([209.85.167.43]:38255 "EHLO mail-lf1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727802AbeKJBZc (ORCPT ); Fri, 9 Nov 2018 20:25:32 -0500 Received: by mail-lf1-f43.google.com with SMTP id p86so1651130lfg.5; Fri, 09 Nov 2018 07:44:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=MCGdmgOTNUkLb6qv90dOeywT5o76S1FgeXUUFEyhBCk=; b=cRPLpN3/+gKIRhIlyg01IwHoH2E16TdcXnf3YRRArSxriy6nPiuVrguHAnq0036RI6 JJuP0zBxgLo/5jVYxaVS5YmAi3A/bQ4X+xK9ljZkJ2mDvy/HE7xSN38FO0tB7iq4rcyM zzDNgnvPDNWNPgwhkZonc8IvROdI3BgOi2zAKPmEBAvYsSe4AInRbCFcAPG7qzoQNejA rN6l1Z3go8DMm100aLK5GCor2baz6h/gcmvU3BYeHf3WCWxMx3qhK4VJWswi5IH4/B13 1h8ayuw5ljAAA2//+odefA6IDTv4jtSQl2NBlbovH1XRivbCoJVLwmKgl7vApWIoHSdm gu9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=MCGdmgOTNUkLb6qv90dOeywT5o76S1FgeXUUFEyhBCk=; b=beSq98t0oUei2280awNRCS5i15J7GSF7MwPzB45znVCZvIm70xH+BDqNJoi4LGkqrD i8+YdBVJMwkCJVb1hyqFTyg/A1vBPwGH3wCmXfWvf5RqyMX64U/FEShiFfSYD/tNE3w1 PYRwVBWyriO92vzsppyJKkmpvB8W8pDnU6MChjOhkH6bbPWG+/pkT68NjlpOAJ0oPdPh 2g62qZClHz6YuimLYbnwcTSoUzVN1vQg87fs4xSTAu6Cb3dM58WWGkzk5t9JX0p4c0+v PYnBObn91qWFEqGpGGXBs2DyYjDuNsPX1GBjRvBqWOWCcGnu8MaF66fUPQWxt42k51b4 fPhg== X-Gm-Message-State: AGRZ1gKwArzAY3FUSZ6RpCOQIzedMUTZC/HcwjgjieK8QkfmTihgxgyr p0sMAUPI0pAC2+kigFyW+YfWPy9+O3XVV0OWlQk= X-Received: by 2002:a19:c4cc:: with SMTP id u195mr5452831lff.141.1541778264168; Fri, 09 Nov 2018 07:44:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jack Wang Date: Fri, 9 Nov 2018 16:44:12 +0100 Message-ID: Subject: Re: BUG: aio/direct-io data corruption in 4.7 To: shapiro.gregory@gmail.com Cc: hch@infradead.org, jnicklin@blockbridge.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, gregory.shapiro@kaminario.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Gregory Shapiro =E4=BA=8E2018=E5=B9=B411=E6=9C= =886=E6=97=A5=E5=91=A8=E4=BA=8C =E4=B8=8B=E5=8D=8812:31=E5=86=99=E9=81=93= =EF=BC=9A > > Hi Jack, > I tested it in 4.9.102 and I checked the latest code from elixir > (versions 4.19 and 4.20) and the error in code is still present there. > More on the scenario and the bug: > I experienced data corruption in my application (nvme based storage). > The issue was caused because of faulty hardware, but the real problem > is I got a correct number of bytes in io_getevents thus couldn't > recognize it correctly the error. > Looking at the /var/log/messages and I saw the following errors in > time of coruption: Thanks for the info, Gregory. I noticed guys from Amazon pushing the fix to upstream: https://lore.kernel.org/patchwork/patch/1008443/ I hope it will be in upstream soon. Regards, Jack Wang