From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6EB2BC432C0 for ; Mon, 2 Dec 2019 18:42:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3F20B20718 for ; Mon, 2 Dec 2019 18:42:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=blockbridge-com.20150623.gappssmtp.com header.i=@blockbridge-com.20150623.gappssmtp.com header.b="sWeec0pq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727521AbfLBSm1 (ORCPT ); Mon, 2 Dec 2019 13:42:27 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:41159 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727510AbfLBSm1 (ORCPT ); Mon, 2 Dec 2019 13:42:27 -0500 Received: by mail-oi1-f193.google.com with SMTP id e9so619082oif.8 for ; Mon, 02 Dec 2019 10:42:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blockbridge-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4hnWxYJS6UwvHgZfL5C7ZAjZ6VkkzMMU7kmsT3ouMqc=; b=sWeec0pqiWKAQx6GsxOcoExatEOX6Ri6zErHouUpuNZpUk/3VfbcqEwSFH7asbdMSf d4f2fjQLHSCzDMPSVv4Cn/X9DfYRH+7UAPZPnqRzxcPG46x+TDGPpFyXwer35ezQhlJC cnsd6L+RkdSCVCJtC7novckEhsoBhoIBfGAkkLXORzSyiK36mGhxkTIyLbbuOI6iZPNM g/qHMLGvVlTGuNrea+fojo24uRyvurwCb4yjtIiMp71WlWOqRbVb349azrXNKpjzRmHK Cs9K6yF5HNIaOX3UyeOY/WPL1fGhP+Rl8wUvORPSkfMgAMmfnOzO4ApZlbRiDzwCDf4Y 4XJQ== 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; bh=4hnWxYJS6UwvHgZfL5C7ZAjZ6VkkzMMU7kmsT3ouMqc=; b=ITCkDYOtdwvYwOvhunrgksr2xpo7vym025kqOiD6fWJyBfLh6xE5sSELpVYuFJcyYp PKC8iS9EKVJR1fCh7TI+57yycKne09j23NBzU3hgG1SWzpR9Qe1Rp+tG2C/C1LCCZv9w d7i+b69tpzMgobOiC+QqAsDmm2Houf1i6I4kHQmiklyTRTXMXBi9KliTArkS2br81bpE bst7OarrHcgNuRY/qtjII+tEVNbbFbkkDtXKaidCczdxY8IMRVhFOwMqcJLbc8Oz3GlE /4lB+YClOVhc05T5XzaYAE76pp4HMs11BfYeTRvU01C+A8fyuszPw/uFnT1t4bRYXK/T nX4Q== X-Gm-Message-State: APjAAAV4ayc0ksMINEzjojuMloUqed43/34794gCPhE+w+r+i8yGyTKF hUOuyLxjM5xm9RWWpVcIZdtLvNbn3moErZO+0hxP7w== X-Google-Smtp-Source: APXvYqxtoqDm0j7pzYiqmwJ79qHV4hqM09C5CPP7ue5y+F2n1QpcowgAf6qc+AUIL/MdTjBqctZ4jZ5qS8oYDDkHW6c= X-Received: by 2002:aca:4e90:: with SMTP id c138mr359970oib.147.1575312146080; Mon, 02 Dec 2019 10:42:26 -0800 (PST) MIME-Version: 1.0 References: <20191128015748.GA3277@ming.t460p> <20191128025822.GC3277@ming.t460p> <20191128091210.GC15549@ming.t460p> In-Reply-To: <20191128091210.GC15549@ming.t460p> From: Stephen Rust Date: Mon, 2 Dec 2019 13:42:15 -0500 Message-ID: Subject: Re: Data corruption in kernel 5.1+ with iSER attached ramdisk To: Ming Lei Cc: Rob Townley , Christoph Hellwig , Jens Axboe , linux-block@vger.kernel.org, linux-rdma@vger.kernel.org, linux-scsi@vger.kernel.org, martin.petersen@oracle.com, target-devel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Hi Ming, > I may get one machine with Mellanox NIC, is it easy to setup & reproduce > just in the local machine(both host and target are setup on same machine)? Yes, I have reproduced locally on one machine (using the IP address of the Mellanox NIC as the target IP), with iser enabled on the target, and iscsiadm connected via iser. e.g.: target: /iscsi/iqn.20.../0.0.0.0:3260> enable_iser true iSER enable now: True | | o- portals .................................................................................................... [Portals: 1] | | o- 0.0.0.0:3260 ................................................................................................... [iser] client: # iscsiadm -m node -o update --targetname -n iface.transport_name -v iser # iscsiadm -m node --targetname --login # iscsiadm -m session iser: [3] 172.16.XX.XX:3260,1 iqn.2003-01.org.linux-iscsi.x8664:sn.c46c084919b0 (non-flash) > Please try to trace bio_add_page() a bit via 'bpftrace ./ilo.bt'. Here is the output of this trace from a failed run: # bpftrace lio.bt modprobe: FATAL: Module kheaders not found. Attaching 3 probes... 512 76 4096 0 4096 0 4096 0 4096 76 512 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 4096 0 ^C @start[14475]: 0 @start[14384]: 0 @start[6764]: 0 @start[14477]: 0 @start[7771]: 0 @start[13788]: 0 @start[6879]: 0 @start[11842]: 0 @start[7765]: 0 @start[7782]: 0 @start[14476]: 0 @start[14385]: 0 @start[14474]: 0 @start[11564]: 0 @start[7753]: 0 @start[7786]: 0 @start[7791]: 0 @start[6878]: 0 @start[7411]: 0 @start[14473]: 0 @start[11563]: 0 @start[7681]: 0 @start[7756]: 0 Thanks, Steve