Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2459897imu; Sun, 27 Jan 2019 05:38:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN77SkwbiwU72tvWX0IW5gXwT4JSo4mLmWjU39ECRA00oehMVQvsHlXW8FEl7Wfdlfz9aXUh X-Received: by 2002:a63:6bc1:: with SMTP id g184mr16799043pgc.25.1548596300214; Sun, 27 Jan 2019 05:38:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548596300; cv=none; d=google.com; s=arc-20160816; b=z/YqJTt6f71Y0knGaECuzgAaspdqUrUa/J1fG3/zADQelBqBIEUA1KNsJZAPjnAhQD ePwE8QjnhALZNE95u2TaBhFve78cgn7jrEXixKuErSYhGtf+bOmofX0DrCn5IGhqrGw0 mJ9H5dX01+hybXoE/1hF9fBXkDAyYQmaKPn8uDqogBjhGN1HcacLAU+nB1dLg7JeYcJf 7s8OuzNlKxyv8ftVTp3uqgcVypkMEvR0gbXuLFDcIq7lVAN8jRlb994OseBJzeFTYn7d 6P+DJzxrDc1U9mgfnyUHd8AFc2hfGrHuR6PG6r8g0LBAYFp57gXYvQTrH0tvRAMN2QBE gRog== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=0t8jTWZDEYo+Yt4XC5Knr5JwLIvHmprPwkJs/XNpzcw=; b=J0Xwyqhh0eVqPiEPSbFgXcmzqMYXR4kp35zhdwGL50WFidspVSVt4G3brWj0aFUTxf /5Xyxm4ZGYVNZkoaLOhuroa9ajtn72Dt4WO0pHGpQYFiAzFpwrkWaBoy+j84DeMc+7FY 55zfRbEnugTUzqZvai7zxUS+gTAobIRyYD/bxi/AqeoUMQ9ZJx3JeRpGXKuvWBBP7nVb 6KqpWVJTKhcoD0d4Iv92QVGIAb6ZJuNF57LNmPJ/DPxP4FLLf0ViL5ETqb7d1ppDJD/a IuUfn6LGS7MK3rWnB1nB+NdXTF4Lh0FQj1wyk/NnFtzceJ1Qp7aFm6CP1CU/6dhnVuCX 7dNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=MZPHg0tk; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t77si4206090pgb.51.2019.01.27.05.37.31; Sun, 27 Jan 2019 05:38:20 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=MZPHg0tk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726683AbfA0NfX (ORCPT + 99 others); Sun, 27 Jan 2019 08:35:23 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:37336 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726521AbfA0NfW (ORCPT ); Sun, 27 Jan 2019 08:35:22 -0500 Received: by mail-pg1-f193.google.com with SMTP id c25so6095934pgb.4 for ; Sun, 27 Jan 2019 05:35:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0t8jTWZDEYo+Yt4XC5Knr5JwLIvHmprPwkJs/XNpzcw=; b=MZPHg0tk4gp8CD0e30v6fPbcn3q2tjH34SuTas9igmjK92QXAbNWpTGevFfzvA9v/4 x44XbW8asiH6Zb6o+J+owDFyoJbozaaKzfo4aQw6yo6dQ5oLX6lItL1hVXqQ+4EhH5Ar PJKoNgzLu6vSCRTRkcP4eoNGvjBWYoQtq14lSLjnOLdW2S3jJryA8gPEQkxUe3p8Zq01 C0MQjJP9FhqwbcH6bXIdLTY9sIQnVmxWmDTdqsUtOMIldiE/kHfCareZakK04oFeRQAG fIr/UeuiVxltEWnX5OXf8XwBleF002IBxUwtNYIFauJCIFJ1N4gV9Uek0BEP6kRN40A/ m9Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0t8jTWZDEYo+Yt4XC5Knr5JwLIvHmprPwkJs/XNpzcw=; b=bCSrPDjxinM9Mvz5GhR9l5SCLm5CP3aPHclQIo4vvLzHXc/5W8qtISzVD4TpwyCTP5 wMoOltB1+x/L4GO3GCFwTX4MmQ5u80h/ZW1N10l/fykD1/ey0JZBQVbwc8/LueHzxQXR X2w2Vw5RzAGsbxlluM22mRsdsKbIVCNxlgAVbjBTY2znI1+BWxeXPdeSR7Yu/XfkIBt4 /jaMquOrqGGiiXRmQ6Ax5vQjOad6xSE7TMX8xU70ZUIWcwGjhGThNDRT+WUJcLqF1bh5 82tFrgZ1USG2Y9cTirHj/Jb1nhp5Fvh/MH1Q2JGPOqcfREJByq4u0SMUkyDYzrva3gPg gY4Q== X-Gm-Message-State: AJcUukcneu9IJdnJ1v2oZf8x/17KvYA5JPKnyLtOmhnanyUTziY9oDB/ ljMPCKzsd4n+lCLYE8BbHTp5vA== X-Received: by 2002:a63:df50:: with SMTP id h16mr16624276pgj.421.1548596121636; Sun, 27 Jan 2019 05:35:21 -0800 (PST) Received: from [192.168.1.121] (66.29.188.166.static.utbb.net. [66.29.188.166]) by smtp.gmail.com with ESMTPSA id m85sm47295276pfj.171.2019.01.27.05.35.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Jan 2019 05:35:20 -0800 (PST) Subject: Re: upstream boot error: can't ssh into the instance (2) To: Dmitry Vyukov , linux-block@vger.kernel.org, LKML Cc: syzkaller-bugs , syzbot , Ming Lei References: <00000000000027601e05806bf6be@google.com> From: Jens Axboe Message-ID: Date: Sun, 27 Jan 2019 06:35:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/27/19 1:05 AM, Dmitry Vyukov wrote: > On Sun, Jan 27, 2019 at 9:01 AM syzbot > wrote: >> >> Hello, >> >> syzbot found the following crash on: >> >> HEAD commit: 7930851ef10c Merge tag 'scsi-fixes' of git://git.kernel.or.. >> git tree: upstream >> console output: https://syzkaller.appspot.com/x/log.txt?x=1002c77f400000 >> kernel config: https://syzkaller.appspot.com/x/.config?x=505743eba4e4f68 >> dashboard link: https://syzkaller.appspot.com/bug?extid=4df6ca820108fd248943 >> compiler: gcc (GCC) 9.0.0 20181231 (experimental) >> >> Unfortunately, I don't have any reproducer for this crash yet. >> >> IMPORTANT: if you fix the bug, please add the following tag to the commit: >> Reported-by: syzbot+4df6ca820108fd248943@syzkaller.appspotmail.com > > > Mainline tree crashes on boot. > +generic_make_request maintainers > > [ 7.485069] ================================================================== > [ 7.486411] BUG: KASAN: use-after-free in generic_make_request+0x14dd/0x1810 > [ 7.487539] Read of size 2 at addr ffff8880a39618d4 by task swapper/0/1 > [ 7.488689] Ah duh, not sure how I missed that: + bio_set_flag(bio, BIO_QUEUE_ENTERED); ret = q->make_request_fn(q, bio); + bio_clear_flag(bio, BIO_QUEUE_ENTERED); Ming, we can't touch bio after ->make_request_fn(), it could very well be completed already. -- Jens Axboe