Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp196802ybk; Tue, 12 May 2020 20:08:55 -0700 (PDT) X-Google-Smtp-Source: APiQypK4IEeHUGmbuTRHQ3Y/bRCD0K68/Ax4f55AhnpF/5rsDuM0aS2TOO+6MARGOADSzsnJ74fA X-Received: by 2002:a05:6402:1b91:: with SMTP id cc17mr19774339edb.46.1589339335021; Tue, 12 May 2020 20:08:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1589339335; cv=pass; d=google.com; s=arc-20160816; b=APh1N6b4Q6th4ahM6Uy/7Snf96decK4czOhyvTBCX6Gxpj8/jogidVcPq/e8VGkQDt q2oqmEPcoC4Sv/ZDSM85Ct8Z6tvpvHXtm/tTUbg9kvbqKiMCtw8+77/ORURpEHLVWGkt I8ooEwJPfWk0jcspGmn6MFwemJxhXp0+SBnnbI9K2/tnQCYbD2aGBvmcubnb/L71GUgC N1hUY0aTFPxd2Uk9OVGzrJXbHSz8UBpMqGRnFI8GaNlCt7JnCWJwpmP23jMXvs0jZf9U kqFzxpfJcr8FrTUkNymXOM+KRMBE1qcqIztgJR0qEGzUtFga8fmxlhE7uBKRvfZqTjlS JuFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:user-agent:date:message-id:subject:from:cc:to :dkim-signature; bh=LKh6GJ4hX7qEOZAij/iGFCcbh4HlEgXnaObz5tB8Beo=; b=meJLBvHGhvxL5MIHn82L2IruWUheOMwN07moaMIxNb6D170WBOV11pQTeUZtHq9out MWcsHCbHrZay9TYxRzkuULtrrcAqvlOGLw2qQarLO8EPuAqOKkcWX4v6/tQMNM/BhLdh UVIKP4mtvYOini4i1hA/3BS+OL6Dj4Y9eY9yE7itk5T8041s846kYbti2/myvCRXWOZ8 SmPul5of0gloJYoOPtWckYisft2ngkwUQ62U5bvqBf/NxjxuJJ+4b3ArNpqHYHpXaMJy e9lGM0tbeT53BPTvmyn5zw1ZlzzjfZwX4QPq1n7g+5gUTDkpuAH5bnGeXjQHuT/MsLWb KiXA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b="hgVDjH4/"; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t9si8558652ejr.422.2020.05.12.20.08.31; Tue, 12 May 2020 20:08:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b="hgVDjH4/"; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728581AbgEMCmS (ORCPT + 99 others); Tue, 12 May 2020 22:42:18 -0400 Received: from mail-co1nam11on2071.outbound.protection.outlook.com ([40.107.220.71]:6044 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725898AbgEMCmQ (ORCPT ); Tue, 12 May 2020 22:42:16 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AAP4bKfM7c78178VLESafdZkP8rKKiuL7g+OooRGhAdoKRk01m1NhrqZJik6x9QyxCkfWHBnaQ79TOwHxbGW5+U5LOEDHZ/90KnCAvnEVdouCIgZlEOV1tmrhD04RUCkVlpZ/o5VwtM9kPkBuw1qPMkejg3fFc/f3rOOb8Ig7aDtJfjZA5dOJ8nFoUOL5K0rUOMOXn26zIGW5AxwLQFoptfXCcRwKHoqatt4oBcbPVUcmm4l7k1Dpo4kH8pKRSickoWNg+BZXDFgLlUdFq2sTmVvIPjjWN+x/WbgNKdF8XfIG4v8A1djnI2eqGe6sanKIKWvo3l7Tayl3IXm7z4V8Q== 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-SenderADCheck; bh=LKh6GJ4hX7qEOZAij/iGFCcbh4HlEgXnaObz5tB8Beo=; b=AGCntAP9gkORucdDdzoool0g0kJBG+TtC1RYkooCZJLKH85PqJ1dnLkFdB7VqnLwRO/aJSaKah2nME/zgoos5DqjMg+sjzR5WgjDNDsecQPaz6zhOx9vldSDfmATIxyU35FqQPlS6P81OWHMVepkRCUMNS1hRZIVB3ZDBP7/HsF2uZo4VUxVv10hCjFbjCuAibVwVgSgb1GhJ8rc8xNQhAb3ifyuuo2MxxVHMNvh+4/NN96VBLoCqqJHjneEWJQqP+cl0DPQVVxvWToEWSVuYK3sZvzxzgKizqhXflz2zC2xpadh/xIg5taLwZdybwrIaXyz5q4hYNlDzkeXgIMhmw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriversystems.onmicrosoft.com; s=selector2-windriversystems-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LKh6GJ4hX7qEOZAij/iGFCcbh4HlEgXnaObz5tB8Beo=; b=hgVDjH4/aGjwryEXjkUIKNGpLkHiNjPm7zvyAEcViYpgi5q2LuhkLlp0OZs73pB+2bYZjZe6BLagbLAauA7gUh2I0UCRo/Ovj2XoySQbAwGH3dlp4iYYNUZyf8SJEpxZkbKas5OFE4q0TuXEadr45867e3NLq0F1Aieudlrmhvo= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=windriver.com; Received: from BY5PR11MB4241.namprd11.prod.outlook.com (2603:10b6:a03:1ca::13) by BY5PR11MB3909.namprd11.prod.outlook.com (2603:10b6:a03:191::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.34; Wed, 13 May 2020 02:42:14 +0000 Received: from BY5PR11MB4241.namprd11.prod.outlook.com ([fe80::21d0:98fe:1248:b562]) by BY5PR11MB4241.namprd11.prod.outlook.com ([fe80::21d0:98fe:1248:b562%7]) with mapi id 15.20.3000.016; Wed, 13 May 2020 02:42:14 +0000 To: Jens Axboe Cc: LKML , linux-block@vger.kernel.org From: "Xu, Yanfei" Subject: [loop]efcfec579: BUG:blk_update_request: I/O error, dev loop6, sector 49674 op 0x9:(WRITE_ZEROES) Message-ID: <3df7e30a-2495-544e-1ac2-3b0afd3e7324@windriver.com> Date: Wed, 13 May 2020 10:42:07 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: HK2PR02CA0208.apcprd02.prod.outlook.com (2603:1096:201:20::20) To BY5PR11MB4241.namprd11.prod.outlook.com (2603:10b6:a03:1ca::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [128.224.162.160] (60.247.85.82) by HK2PR02CA0208.apcprd02.prod.outlook.com (2603:1096:201:20::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20 via Frontend Transport; Wed, 13 May 2020 02:42:13 +0000 X-Originating-IP: [60.247.85.82] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d5487637-59a0-4d73-6490-08d7f6e73e80 X-MS-TrafficTypeDiagnostic: BY5PR11MB3909: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2512; X-Forefront-PRVS: 0402872DA1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iHFI7AJ/R5WTaDexGIQs0qWOPhYk4/yffhg4FZG55xebQtumScy7PTHY1JSjiygL/7IhgYvknNrTRBOuRAc17iygGnYGxAkTCnkQvpsL3L1h3pCWoiMm32w8OJh3Fi4y2VauYLQZYKcwapGnFpbRhxm3oZrSO+bnDawwnQQLBtzPBHj36Apg3XYT4LsVK91ZKXOHWX2+Ch+PVK0oar867FoxAQKZkVataA/asGDSNHQOIZBfpWCQh/9aISPnPtJzvGqMVxQvt5kqqDIcwRKE00QV+/Mk3hLLvB2DZ+T4LVmRPSt0UXL+oP0QcPPWQzOgGH7W+kW2eNlPeofQ8G5MSgiNH6bFRBCSszDW2UlMmKLqaPmVcmYNnwvGkY4h8lOCnupv5Nyb/ssHqkD6Y+Rb+R9CRnQs0KHjJhwnFhuKN/32tgfkK4o1ZXuZEeXYyeleIT9CgWFUEvIuMv2y6pwNhue/zBP9p910hW9jMv5Z3irm2GKdhJ5fPGQrMI6g487mfncZDjKwo5BY95WKJAAJWqcojhgA+uZKSyvASpxF//anzYUiRbOWJtdRM3h7JzxHEUabeDuHJwsft3xMNh7CevLbVBRGVidX9oJRN+Y+0wFJSgBC3ZiTj1yUk2pyZI/v X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR11MB4241.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(366004)(346002)(136003)(396003)(376002)(39850400004)(33430700001)(956004)(16526019)(2906002)(8936002)(66556008)(2616005)(8676002)(31686004)(6706004)(66946007)(316002)(186003)(16576012)(26005)(66476007)(31696002)(478600001)(36756003)(6916009)(52116002)(86362001)(5660300002)(33440700001)(4326008)(6486002)(6666004)(78286006)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: uPpKKYaz5TMQ9uoxxYj1ev72HkasS/BuUDfvC8vgsiMO2RVNpeSWyyGCcLcOBdTRipD7xCAeo6l54CzWR+ctE9t5inZ1cVmfG9+xQXPI1G3YuQ/SagdSThNBehh2OXIhUSh+lFSx5fSQnKEl4UOTYlXqE4WCbxAnKXmMnN0KST4n+AXdYW5UelHLQAE/JcFNo29CFjJxInCf2nqgrhu6y4K6qIW7pAHlacF1jcXgQx7OtOeBDeLcUiO2vocInne4RzzKWUs0OWWycEZdmVJKFACTjg7gQm6TY73zaqu1nH5SVZNIAjxTMt9stUgPSnCX3jYLGPJ8NqiyrUGBSp4jNALYWdgH1+jKyAGkomPn4ku2kpIKl1FMb8jsfmBEAx7BUk34T2DnZug03Q9pSNHb9AhGXOUMePrUjOl183NGivrwN7JNdCmKXlV4aKBd+W3o0WFfn42M6DSN7CgS+TQY2zzqJn6q//1CBoFU0HBT970= X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5487637-59a0-4d73-6490-08d7f6e73e80 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2020 02:42:14.3913 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /4VYmLc8/zWPHq0208Po+6DkiH7Xk+u9Qlcx/X8wBe+V4+XPBjk15vuXW+B6A2EMc18bDZXv70cDr22KV2sw7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB3909 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, After operating the /dev/loop which losetup with an image placed in tmpfs, I got the following ERROR messages: ----------------[cut here]--------------------- [ 183.110770] blk_update_request: I/O error, dev loop6, sector 524160 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 [ 183.123949] blk_update_request: I/O error, dev loop6, sector 522 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 [ 183.137123] blk_update_request: I/O error, dev loop6, sector 16906 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 [ 183.150314] blk_update_request: I/O error, dev loop6, sector 32774 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 [ 183.163551] blk_update_request: I/O error, dev loop6, sector 49674 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 [ 183.176824] blk_update_request: I/O error, dev loop6, sector 65542 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 [ 183.190029] blk_update_request: I/O error, dev loop6, sector 82442 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 [ 183.203281] blk_update_request: I/O error, dev loop6, sector 98310 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 [ 183.216531] blk_update_request: I/O error, dev loop6, sector 115210 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 [ 183.229914] blk_update_request: I/O error, dev loop6, sector 131078 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 I have found the commit which introduce this issue by git bisect : commit :efcfec57[loop: fix no-unmap write-zeroes request behavior] Kernrel version: Linux version 5.6.0 Frequency: every time steps to reproduce: 1.git clone mainline kernel 2.compile kernel with ARCH=x86_64, and then boot the system with it (seems other arch also can reproduce it ) 3.make an image by "dd of=/tmp/image if=/dev/zero bs=1M count=256" 4.place the image in tmpfs directory 5.losetup /dev/loop6 /PATH/image 6.mkfs.ext2 /dev/loop6 Any comments will be appreciated. Thanks, Yanfei