From patchwork Tue Feb 7 11:20:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saurav Kashyap X-Patchwork-Id: 652309 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 555F4C636CC for ; Tue, 7 Feb 2023 11:20:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229847AbjBGLUV (ORCPT ); Tue, 7 Feb 2023 06:20:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjBGLUT (ORCPT ); Tue, 7 Feb 2023 06:20:19 -0500 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFAB2126F5 for ; Tue, 7 Feb 2023 03:20:17 -0800 (PST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 317BEKr6030464 for ; Tue, 7 Feb 2023 03:20:17 -0800 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3nhqrtjxjf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 07 Feb 2023 03:20:16 -0800 Received: from m0045851.ppops.net (m0045851.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 317Aj9oV010082 for ; Tue, 7 Feb 2023 03:20:15 -0800 Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2041.outbound.protection.outlook.com [104.47.51.41]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3nhqrtjxja-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Feb 2023 03:20:15 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XNtswqu7AfURXsp8TDO2mmwqjgM4epn/38OYn4q5CcwiodEJIsZJhaMHWmJraZvnmvhbFn6VPkMC8iT8RoRXHguhotx15G20LBogdIF6OjA0Y4GCEp6TfliEYXR2Jg+qIWkR1w6DEnHS48d0DdtzHOY8oPcvliJ8KbfeSqBFHbDULQebhC4v0zhlc5+dNPkCRp1GSQCjYfavPQ4Fn6UCDga94en9CRQkMKV2wylu31JrFdV6rvYkef6Tp6plbB16q3xkiTOeWR4vFvDDdt3WKbeuBNVTFel59uIk9sFlk0DJbN5wKF5/rPy1TUFJ9Dlga91qf86XaWeVGmpee8DYKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=M6gM7TiaUUiOJqYaDXkX7z4d6lhIuDEnGlndTXnpQ40=; b=alF/TJ9F8hEzu8mTky6UON3jan9Ht+BNOlRLz158t50fNFpiXvcGF3yUL4lT9aZowzhkT1Faza34XpMSt33OO1vyAzOalxH28X46jAGdhmwpYCkzVdGI5PpsOKnLoSZzPjixJMlTNNqgQRz4A18gGWrw7LoDVAvT25wW4NbVTTS4FHegAoPv4/JYtaKileC1/4kKRFH0Qk/2YG224t7zn8UdAaeBVnMz5w8N9+//EOMV/Aue0FK8yExTRBOr+/1LfS19H/W2OBHLF+bfdnR8P+bGu7L0/wWbcBIU0pQNMOStvZYd5S6uae9qUpbVw9ZgnTRb7gyUiaPRVyj29fDKMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M6gM7TiaUUiOJqYaDXkX7z4d6lhIuDEnGlndTXnpQ40=; b=bjeip+a5Mik5sLuPCg8G7hNIoGBH7JYGezHHwoU2PEVa0ajD+RucDZqe5N0DGttMoez8qwx+Bu2Dmklhjwa0N4ouzk3drIY5eDqCQ/p2qpCzxE5ogi9POuGJb6iWGHogn1X6CJuWuMM4ob7l92zixKyfTv4lOybxmShcuuNZVQA= Received: from DM4PR18MB5220.namprd18.prod.outlook.com (2603:10b6:8:53::16) by MW3PR18MB3658.namprd18.prod.outlook.com (2603:10b6:303:54::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.35; Tue, 7 Feb 2023 11:20:12 +0000 Received: from DM4PR18MB5220.namprd18.prod.outlook.com ([fe80::bbcc:7359:7a4d:3e3b]) by DM4PR18MB5220.namprd18.prod.outlook.com ([fe80::bbcc:7359:7a4d:3e3b%3]) with mapi id 15.20.6064.036; Tue, 7 Feb 2023 11:20:12 +0000 From: Saurav Kashyap To: "Martin K. Petersen" CC: linux-scsi , Girish Basrur Subject: IO error on DIF/DIX supported array Thread-Topic: IO error on DIF/DIX supported array Thread-Index: Adk65h58aAJPomO/QEKOGTaF0/rqJA== Date: Tue, 7 Feb 2023 11:20:11 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcc2thc2h5YXBcYXBwZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTM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FBQUFBQUFBQUFBQUFBQUFBQUFBQUFBRUFBQUFBQUFBQUFnQUFBQUFBIi8+PC9tZXRhPg== x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR18MB5220:EE_|MW3PR18MB3658:EE_ x-ms-office365-filtering-correlation-id: ac9832de-a88f-421c-a17a-08db08fd475b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: eDA6BmXZAI4gfuUgHTit5YknQSbPKUvDX77k9I/mkSyrzkSlIl7XgOowwlXD0rnzqTeYtrLShQhPShkzl4UteTQrKBUvmqzg3UFEWQBNJCUhK/pCad+Sd8PVDG2vPAlbaogYW3npwcJ4irRYTjWnkMYsVjS7JRu3Ha6jTYozvMfg2/gP48TQNC6JXXCclhRYg9Lg7sITaV6G2z1sxDO8ItZYEzvVIQ9GaofX23851IMLKOYaVBpooINVKLb/7H9uyBS7kyjiWDy0jV/CmSYFM9tCtVLs08zH/maQX3eMzrfdaOvSFx24QTdA1nXV/5spcnvVSrxytBxH1OmqQGUGaMKg7sMsW0/4DSOAShNDCzOO3mgbzS7e8IrQC1Ac4nvSdzsJPZTjL+nDO2FOaYylkXGxs7VYmRBNCFY9aq0/Jehq266VhYsRmYWSB+loBVA+5QMVyfWAq1SQKDCKRwDoRlV2S+T/B7KxtZ5xOI6akgKUDet59L7ncta9mcmLlGbT3pg3R3LdVY7fJAFl8wwnkm4+bRzJYm7hjeczcuV0PyrErTCQYuW2vLMLYP3OtUhjXn16WUyVGghSZBzqTVAdudqM7cK+ppXdFOmCgXILlVpJlLXIcBJ3ZnmM4pUuYs8XYc+U437m1kESwjGnwnNip3//X3bEpvIEYKazy0K+KaBUlcMhJ5gXfPFZlEMad+cHfDo1aI15UfuNcylFJPEmqQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR18MB5220.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(396003)(346002)(376002)(136003)(366004)(451199018)(52536014)(5660300002)(33656002)(2906002)(38070700005)(41300700001)(8936002)(86362001)(316002)(9686003)(66556008)(186003)(54906003)(38100700002)(6916009)(66476007)(66446008)(64756008)(66946007)(478600001)(8676002)(122000001)(55016003)(76116006)(4326008)(107886003)(26005)(83380400001)(7696005)(6506007)(71200400001)(66899018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: JjtaXd+MldEyab1smT1enQFINgaQw175avZSqi87XHPL5D94lV3ZP96zH2fkc4ekRMCScXGdh3i4J2fvW62jjaGDZ3Op51/LfY0hnXW+3Nl0382DbtJW4iEmRuX4JRXjKz3nbloDPNDt+ewTYRavjtayTPC47KebFKFl9hJ6+ffr3aguCluXaf11eJZZZYCwH2RNO4FQxGxT95w0KbcYeFRnOVL0+9lWsgDSMPaMI/EAVou8HjD5FHy0y4vgkMev09jptmObJhK7eW374JWdlkfrfgb1hY/fM0adbMjb1jwI+3H4nVrk8UtbNGrUezdZwigscITtID6sKgG9va5D2rqc3k9oxxyOsJoMwaPlQaAakV47h//2fWO6HK7YK+8lKFdmv2/yisFKUSaM8VfmRn3DVLi05uwB/P8W3BMr/xdUEm+M9ObWAiAUyHE0z8UQpvx81QAtkTLgVfkgGkIxwx+2cQ69myC0aNiaYHWNk5nQUkk/wetPTMMjblqNRuBHsFrCDouvH3B/+Qf2Lg7io0VSBP83SiyP1jXMaSM2Ataz0rkY375Vf6Byz1mqBHAL0V1rjY4JHf+HhOVnOSaFmZTJ+BOKAQ+FfXSbsY2vIRpuau4VDnw+KK2dTu9FEt5P9IzeAiNRWrnMCmsPogzwzImqfJxCb+7DvPJiZoQCqCStBQ6vffB/2EmolappJbOXMd6oqUX7HEalfMj2ySeM7ytNyLV6UNiGkJtwXfSjfo61w8JyCpTu8aK46LD5nvBDMqtjMVqe9Z0wJnEBy+9wDXNHAZ4NvqRZzKWJdNBwIhOyIJD8VZAjjfS9KsKortULhutVI1OYHREVqqz2Fx0hFamD4298Ql3YbXFxz7Y4yLPKGICIfVCYIpDH8ehxdybg7bTCl5A0vGW62h+kr51U+IoddOUUJ+SZWGFO5xq+KdM8AXqCQ9oJgMr0fahoTscVT6P8cqeqx72sEyzr+rXxokMAfHZ2ct2BLoqPGQ5JPfvQ2Gm17NWnEwftqE1essOZcpiFreYNmYXmRrwKBKq2uf5FtAaPFlkdqc6KvOB6nwJzFmzR3He5vRPFTk+chlaonZZT+SQ4sV7cO2dyk3bGCse61A19CfSfMeXTdlyKW607hL+EDxmjUljaGQuIhguDWm+CDpVVrd3Q2bL/P+vFvwTO7AUoFJ6Da/7si2BfaO4oJqo+OWCqaeUpOXZucBJwSLzwLTklWr3h/8lFPDXepfGvVee9Caf2zVaChUsQuGhNaa+muzQNPZl2tDXyEl6VBLbaAl7RIi3M0WXBswRq/rGhCEB8wVQB26+LZP1Av+dg5vdLBJ4vSOAzvP2QL/4UTbmOvzfIuagRRjqD7B3mEk4jdZx1uxY/kI0vrFdR5zotL2n10vNcBFU1wssGb7p6/rE5BUOtIoMUeZX0uWD2gsnhyFMB0S7YRpL7Rrk1HEGh4xer7YaLFQqjeUim+FEPExCZEKLFjNrt7T0C1doymW3ulXVXRXbPnoZ4tP7KddSFxjjiKI1d9q8Fuf1+/VwkpljsbsuUeWaEXeW32hSeQYD+QfFO5jlvF6U4P1HJkiRsGFUy8FVB2rHGdC4HAy14 MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR18MB5220.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac9832de-a88f-421c-a17a-08db08fd475b X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Feb 2023 11:20:11.9680 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 4kR9fNZOM8469jV/M1mchhYHxVLk6w4JgLcZBHwjX8yCkYxT9WrDmpTSTnhK3RZLtukn+iHt2cB26dyz4c7Ocw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR18MB3658 X-Proofpoint-GUID: zk9XXJ-GDJNoakMZXhErC4e81yRtys1_ X-Proofpoint-ORIG-GUID: 2-FPFnLyx4fcXwWz2aae6esP6Bq8P_qc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-02-07_03,2023-02-06_03,2022-06-22_01 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Hi Martin, We have observed IO failure on 3PAR array that supports DIF/DIX with upstream code. An error is only seen when IOs are done on DM devices, no error observed if IO is done on /dev/sdX. I added some prints to understand the problem and figured out that SCSI_PROT_IP_CHECKSUM flag is not set in scmnd->prot_flags. Ideally it should be set as BIP_IP_CHECKSUM should be set. ------------------------------------ [Mon Feb 6 17:54:56 2023] SK: bio_integrity_prep setting IP_CHECKSUM bio=ffff976f8d19c300 bip_flags=0x11 [Mon Feb 6 17:54:56 2023] SK: sd_setup_protect_cmnd setting IP_CHECKSUM bio=ffff976f8d19c300 bip_flags=0x11 [Mon Feb 6 17:54:56 2023] SK: bio_integrity_prep setting IP_CHECKSUM bio=ffff976f8d19c300 bip_flags=0x11 [Mon Feb 6 17:54:56 2023] SK: sd_setup_protect_cmnd setting IP_CHECKSUM bio=ffff976f8d19c300 bip_flags=0x11 ------------------------------------ ------------------------------------- [Mon Feb 6 17:55:13 2023] SK: bio_integrity_prep setting IP_CHECKSUM bio=ffff976f8d19c300 bip_flags=0x11 [Mon Feb 6 17:55:13 2023] SK: sd_setup_protect_cmnd else IP_CHECKSUM bio=ffff976fa15fa490 bip_flags=0x0 [Mon Feb 6 17:55:13 2023] dm-10: guard tag error at sector 0 (rcvd 0000, want ffff) [Mon Feb 6 17:55:13 2023] SK: bio_integrity_prep setting IP_CHECKSUM bio=ffff978f0752c180 bip_flags=0x11 [Mon Feb 6 17:55:13 2023] SK: sd_setup_protect_cmnd else IP_CHECKSUM bio=ffff976fc87fef10 bip_flags=0x0 [Mon Feb 6 17:55:13 2023] dm-10: guard tag error at sector 0 (rcvd 0000, want ffff) [Mon Feb 6 17:55:13 2023] Buffer I/O error on dev dm-10, logical block 0, async page read ----------------------------------------- Its noticed that bio pointer get changed when IO is done through dm device. I added more debug prints in bio_clone and bio_integrity_clone and concluded that bip_flags are not getting copied in bio_integrity_clone routine. -------------------- [Tue Feb 7 14:15:47 2023] SK: bio_integrity_prep setting IP_CHECKSUM bio=ffff891ecc5fa840 bip_flags=0x11 [Tue Feb 7 14:15:47 2023] SK: __bio_clone: bio=ffff891ed97b5990 bio_src=ffff891ecc5fa840 [Tue Feb 7 14:15:47 2023] SK: bio_integrity_clone: bip=ffff891ecc5fd500 bip_src=ffff891ecc5fcb40 bip_flags=0x0 src_bip_flags=0x11 [Tue Feb 7 14:15:47 2023] SK: sd_setup_protect_cmnd else IP_CHECKSUM bio=ffff891ed97b5990 bip_flags=0x0 [Tue Feb 7 14:15:47 2023] dm-3: guard tag error at sector 0 (rcvd 0000, want ffff) [Tue Feb 7 14:15:47 2023] Buffer I/O error on dev dm-3, logical block 0, async page read ---------------------------------- If I add the change to copy the flags, following BUG_ON in slub.c is reported ------------------------------- ------------------------------- -------------------------------- [ 751.838432] kernel BUG at mm/slub.c:435! [ 751.838440] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI [ 751.838443] CPU: 49 PID: 981 Comm: kworker/49:1H Kdump: loaded Not tainted 6.2.0-rc1+ #14 [ 751.838447] Hardware name: Dell Inc. PowerEdge R7525/0590KW, BIOS 2.5.6 10/06/2021 [ 751.838448] Workqueue: kintegrityd bio_integrity_verify_fn [ 751.838458] RIP: 0010:__slab_free+0x1ae/0x300 [ 751.838467] Code: 4c 89 e6 48 89 ef 5d 41 5c 41 5d 41 5e 41 5f e9 d8 fb ff ff 48 83 c4 60 4c 89 f7 5b 5d 41 5c 41 5d 41 5e 41 5f e9 62 3b 00 00 <0f> 0b 80 4c 24 4b 80 e9 ea fe ff ff 4c 89 fa 4d 89 d7 4c 8b 54 24 [ 751.838469] RSP: 0018:ffffbb674fcf7dd0 EFLAGS: 00010246 [ 751.838472] RAX: ffff9c320d3546e0 RBX: ffff9c325302e480 RCX: 000000008040003f [ 751.838473] RDX: ffffffc10e1546c0 RSI: ffffdfb30434d500 RDI: ffff9c3200042500 [ 751.838475] RBP: ffff9c3200042500 R08: 0000000000000001 R09: ffffffffb4fbf08a [ 751.838476] R10: ffffbb674fcf7ca0 R11: ffffffffb65e4ac8 R12: ffffdfb30434d500 [ 751.838477] R13: ffff9c320d3546c0 R14: ffff9c320d3546c0 R15: ffff9c320d3546c0 [ 751.838479] FS: 0000000000000000(0000) GS:ffff9c70ff840000(0000) knlGS:0000000000000000 [ 751.838481] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 751.838482] CR2: 00007fe84efedb00 CR3: 000000015472a000 CR4: 0000000000350ee0 [ 751.838484] Call Trace: [ 751.838485] [ 751.838487] ? bio_integrity_process+0x14f/0x1c0 [ 751.838494] ? __pfx_t10_pi_type1_verify_ip+0x10/0x10 [t10_pi] [ 751.838501] bio_integrity_free+0xaa/0xb0 [ 751.838504] bio_integrity_verify_fn+0x40/0x50 [ 751.838507] process_one_work+0x1e5/0x3b0 [ 751.838513] ? __pfx_worker_thread+0x10/0x10 [ 751.838515] worker_thread+0x50/0x3a0 [ 751.838518] ? __pfx_worker_thread+0x10/0x10 [ 751.838520] kthread+0xd9/0x100 [ 751.838525] ? __pfx_kthread+0x10/0x10 [ 751.838528] ret_from_fork+0x2c/0x50 [ 751.838535] ------------------------------------- Queries 1) Is there a specific reason for not copying the bip_flags in bio_integrity_clone function? 2) If bip_flags needs to be copied then is there something else needs to be done that will take care of BUG_ON? 3) if not, then what should be right solution for fix an IO error because of SCSI_PROT_IP_CHECKSUM flag not set. Thanks, ~Saurav diff --git a/block/bio-integrity.c b/block/bio-integrity.c index 3f5685c00e36..07e7443c7be3 100644 --- a/block/bio-integrity.c +++ b/block/bio-integrity.c @@ -418,6 +418,7 @@ int bio_integrity_clone(struct bio *bio, struct bio *bio_src, bip->bip_vcnt = bip_src->bip_vcnt; bip->bip_iter = bip_src->bip_iter; + bip->bip_flags = bip_src->bip_flags; return 0; }