Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2894482pxj; Mon, 17 May 2021 12:23:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIpmkADWP64HCp1NKFYDOG8/B28FH3+GrWrQIwrnfRIkL/t7/h5x4Zb2gw80wCpyFx3ORF X-Received: by 2002:a05:6e02:92c:: with SMTP id o12mr1063548ilt.256.1621279436058; Mon, 17 May 2021 12:23:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621279436; cv=none; d=google.com; s=arc-20160816; b=o4NXsOKuZLpee7sK8B5skiggJg1OjkErIitogJlM3WET2JyaIszLjhRRIhbubXxjYA JYKOGzHG+o0Jj8dwaSL9auNXGzpY4UWu6O+WLTrYsSHIX2gKtEN6vOk3JQnjNAVqIT3m vL6+TKgJidBjUvAQASDkkMSMveytUCMNWrLNOkJcOifYTJ2M84obw8KjpoL3lVkoYl6H KOG2ZqaK086mVHUTF2TN9fTG1uF8ZTbNVnXzXyufpArZuVhdgGMyI7MTmJiWP2oU9Qeq plh4Pg5/vX0agzaxhxsA8D0IlgARyzXNAEz8BorZ03SNtxNoUxMa9JhL7fQBoqWIKulF omrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LlsNU2ligv/TIt6tqFHJ1ilb9r5vG7LEjQVUSS3/pS8=; b=dM/gAQWySusTKQQ3QPTXTqrUQo7dszCMY6AXzEN+aQDWwiPdDn4fY2j7We/9EfwXPw 5HhqLXWJERM5sSKuey5e3xpsEOSNMyVgzmLOpoMJF3llS0C1sT5joJIN8uNqtaxsCuU+ 1BG4/btKYCwzBrRz9rjoXtg/MvsWzI/io5yzgS4saLfW0m+GLXTuFP/XBUbJ4xXui5Zy k+tUTsQIngwJWQfX55w2fwMG30sTD/yy7tyqt6atJ9q7w5y+PzP8yPNBHdTCnriw5ce9 avJjffWHSzsi452C5XlCOKgdqf5L8DIajjfXxaUgWSK2SmHEGch5nLB3kAJxVHNgJ4k/ Z8Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DEaIx5MP; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a5si5409529ilj.12.2021.05.17.12.23.43; Mon, 17 May 2021 12:23:56 -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=@google.com header.s=20161025 header.b=DEaIx5MP; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237120AbhEQMvK (ORCPT + 99 others); Mon, 17 May 2021 08:51:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237117AbhEQMvK (ORCPT ); Mon, 17 May 2021 08:51:10 -0400 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26B59C061756 for ; Mon, 17 May 2021 05:49:53 -0700 (PDT) Received: by mail-qv1-xf29.google.com with SMTP id c13so1803727qvx.5 for ; Mon, 17 May 2021 05:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LlsNU2ligv/TIt6tqFHJ1ilb9r5vG7LEjQVUSS3/pS8=; b=DEaIx5MPBTHEf+xaDgTV5TJyqnSM2yfwZGaiFTzorMqB1Pp1jbBoXmY4PS1v91kha3 IIft2NRUSYyEb/BEkT0n12aATKKOyQJtz/KvsflBkQo+0SW5COYVHnGKQhHonAVn1vkw q5EcQHPSeeBp5/ZwXBZmdjaBb48rwGpQHLmzVAn181l1H0YIC+hI/6/VKy1pYrhDLGYW XHUFPluJSJyO7avnIGuYLLoQXSL+wiFYGcGUCq4DZPWcCtqbRJaKajT0/OfeDuveziN6 PKfQZes4UEMkNdWZl14j8LA/PO8DjSsLqLS0HDA+sQh6X9S8LE67l7TLwy76W0lxZLpd 7t9A== 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=LlsNU2ligv/TIt6tqFHJ1ilb9r5vG7LEjQVUSS3/pS8=; b=sBRMfNN/BcHNCgVtTaA1EL0AWwPLj+4coDs3W11AM9VmA1dkM+3Aq3NJdLy1hJafB9 gSWcrbzISzG5waVWtx5AwfTzj9wfqfKX+mRfynseeHtwVw85UYkMLOjVt5LIkC0MDo5W sM/A/zYjPWNN8CQWqmbigSaCqbRd/Xi4w9xuMwsURXQcIZcY+DB5PlcM43Sogq0rjpJB W+Zu0dIHXRn9w2i83g3K9nEYECIOaSD+o8jdTosVF/E9PMkqmmLk9Ma6rcmmJsayTTOh gpu0iiwQh3urpp4Pa7YNmA5GsG3TkEbwnuOjc7TXVntGD6hR1LABER+D+ia9GTa63y1f J4NA== X-Gm-Message-State: AOAM532wV/ehrtpwzWox5YSMLyBEWFUL62ttgH3ZS3cIc8i05JMtWwuQ 5plUNW2hV7UmgH7HLCgbesL8LLqps28u7O6xthlnEQbw2XRCbg== X-Received: by 2002:a05:6214:6f1:: with SMTP id bk17mr20486174qvb.37.1621255792082; Mon, 17 May 2021 05:49:52 -0700 (PDT) MIME-Version: 1.0 References: <0000000000006d129905c284e02d@google.com> <20210517112815.GA11490@lst.de> In-Reply-To: <20210517112815.GA11490@lst.de> From: Dmitry Vyukov Date: Mon, 17 May 2021 14:49:40 +0200 Message-ID: Subject: Re: [syzbot] WARNING in blk_rq_append_bio To: Christoph Hellwig Cc: syzbot , Jens Axboe , Hannes Reinecke , linux-block , LKML , "Martin K. Petersen" , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 17, 2021 at 1:28 PM Christoph Hellwig wrote: > > This was fixed just a little later with "block: remove an incorrect check from > blk_rq_append_bio" Hi Christoph, Thanks for checking, let's tell syzbot: #syz fix: block: remove an incorrect check from blk_rq_append_bio > On Mon, May 17, 2021 at 04:27:20AM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit: 5103a5be Add linux-next specific files for 20210407 > > git tree: linux-next > > console output: https://syzkaller.appspot.com/x/log.txt?x=17b28e36d00000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=c278e8a8a7f47f4c > > dashboard link: https://syzkaller.appspot.com/bug?extid=1c24e3484e48799b2333 > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1232b5c9d00000 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17971a36d00000 > > > > The issue was bisected to: > > > > commit 393bb12e00580aaa23356504eed38d8f5571153a > > Author: Christoph Hellwig > > Date: Wed Mar 31 07:30:01 2021 +0000 > > > > block: stop calling blk_queue_bounce for passthrough requests > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=134e9381d00000 > > final oops: https://syzkaller.appspot.com/x/report.txt?x=10ce9381d00000 > > console output: https://syzkaller.appspot.com/x/log.txt?x=174e9381d00000 > > > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > > Reported-by: syzbot+1c24e3484e48799b2333@syzkaller.appspotmail.com > > Fixes: 393bb12e0058 ("block: stop calling blk_queue_bounce for passthrough requests") > > > > ------------[ cut here ]------------ > > WARNING: CPU: 1 PID: 25 at block/blk-map.c:488 blk_rq_append_bio+0x565/0x680 block/blk-map.c:488 > > Modules linked in: > > CPU: 0 PID: 25 Comm: kworker/u4:1 Not tainted 5.12.0-rc6-next-20210407-syzkaller #0 > > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 > > Workqueue: events_unbound async_run_entry_fn > > RIP: 0010:blk_rq_append_bio+0x565/0x680 block/blk-map.c:488 > > Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 de 00 00 00 48 8b 44 24 10 48 89 98 a0 00 00 00 45 31 e4 e9 3f fe ff ff e8 6b 3e bc fd <0f> 0b 41 bc ea ff ff ff e9 2d fe ff ff c7 44 24 08 00 00 00 00 e9 > > RSP: 0018:ffffc90000dff6d0 EFLAGS: 00010293 > > RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 > > RDX: ffff888011cbb900 RSI: ffffffff83b7ea55 RDI: 0000000000000003 > > RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000001 > > R10: ffffffff83b7e568 R11: 0000000000000000 R12: 0000000000000001 > > R13: 0000000000000008 R14: ffff88801c86e400 R15: ffff88801c86e400 > > FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 > > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > CR2: 00007fb8501cc930 CR3: 0000000023c21000 CR4: 00000000001506e0 > > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > > Call Trace: > > blk_rq_map_kern+0x5db/0x750 block/blk-map.c:653 > > __scsi_execute+0x4c1/0x600 drivers/scsi/scsi_lib.c:224 > > scsi_execute_req include/scsi/scsi_device.h:462 [inline] > > read_capacity_10+0x112/0x690 drivers/scsi/sd.c:2442 > > sd_read_capacity drivers/scsi/sd.c:2519 [inline] > > sd_revalidate_disk.isra.0+0x206c/0x7c00 drivers/scsi/sd.c:3203 > > sd_probe+0x9e5/0x1140 drivers/scsi/sd.c:3459 > > really_probe+0x291/0xf60 drivers/base/dd.c:576 > > driver_probe_device+0x298/0x410 drivers/base/dd.c:763 > > __device_attach_driver+0x203/0x2c0 drivers/base/dd.c:870 > > bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:431 > > __device_attach_async_helper+0x1c9/0x290 drivers/base/dd.c:896 > > async_run_entry_fn+0x9d/0x550 kernel/async.c:127 > > process_one_work+0x98d/0x1600 kernel/workqueue.c:2275 > > worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 > > kthread+0x3b1/0x4a0 kernel/kthread.c:292 > > ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 > > > > > > --- > > This report is generated by a bot. It may contain errors. > > See https://goo.gl/tpsmEJ for more information about syzbot. > > syzbot engineers can be reached at syzkaller@googlegroups.com. > > > > syzbot will keep track of this issue. See: > > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > > For information about bisection process see: https://goo.gl/tpsmEJ#bisection > > syzbot can test patches for this issue, for details see: > > https://goo.gl/tpsmEJ#testing-patches