Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp821156imm; Thu, 31 May 2018 09:57:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK35wm08s/09eGDwcrO4YMousZ8wFGxQERB5+4M1jQ4oe23qfOUfisSr104Ptp9BzhqejP3 X-Received: by 2002:a63:6d05:: with SMTP id i5-v6mr6206090pgc.321.1527785879825; Thu, 31 May 2018 09:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527785879; cv=none; d=google.com; s=arc-20160816; b=FXD05WFas9tUfM+GlbwHbvcg3unXR1oRk+GjncSmp+5hXcB1M8wzQi4BdFxUDjFQkf +b8BWeD5eITHpST6fyZqM62N8jyqySGPSYpNg96kQ1t7NNdMemOZwNyvjj8sj2Q7Q2LV d7XsTrbu9q9H2uTTnKjX8JFUxzNOD9ZGQa1/JlM88ivLesxEv7W/NM5QTEsk4Jf/u39j yeC07dhwr7ruN+q4qbi7BBat95fvANgLzbBT1HdfsXecWidhR12/+15VymtgIxsCZjaZ Z+ZX/bGRF6zwRCBl8BsMdqyibwrInhX2h49FndZEfKterSxxD7xNbzDj2T2Pa6Qd5WtO sPoA== 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 :arc-authentication-results; bh=DqnXiovQ842QAx8AQywUyOOPRvhb9cksphisLV+q4IU=; b=GC70bn+kcquDgaiHjT5/KIZorIZis9EcRbF9khdu5777t/0ykLVcygNj2W3lF5fNdu InB3HMBm5swd3pDbShlKlLAD+dEwNROqnmZQ6w48QVZiujvmbae08vlCf0lOEnHmXGZB MwhBsokZlyvXjvld7F9RXB+ZtIqwm0D+eG7bmb5W2NLU8nzHOB3XAIhjLdpdOGT2ggf8 GKGQ5u0EjyflhBpuwFWyqiMzqwLeW1M/fRb5lOhdw64r9Jr7p6kL5hMlxKc/P6Nr5wrY c+TdjhOjAQbvMUlzvtWUH3vCS8UIniKanPS5VAarwX4ZBQpZ0O6f7TrHzpkh25L7etcq W3qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=AxtJ6UTt; 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 f131-v6si36454870pfc.316.2018.05.31.09.57.46; Thu, 31 May 2018 09:57:59 -0700 (PDT) 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=AxtJ6UTt; 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 S1755725AbeEaQ4T (ORCPT + 99 others); Thu, 31 May 2018 12:56:19 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:36526 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755506AbeEaQ4Q (ORCPT ); Thu, 31 May 2018 12:56:16 -0400 Received: by mail-it0-f68.google.com with SMTP id e20-v6so28894602itc.1 for ; Thu, 31 May 2018 09:56:16 -0700 (PDT) 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=DqnXiovQ842QAx8AQywUyOOPRvhb9cksphisLV+q4IU=; b=AxtJ6UTtSNq/E+VW3kmkCoFXK5bZR2BSqwIhxBLoNCmiVOvAbKmMF3xsd1zscKDcc3 szJbErYQbhXXR6lg/h3yGTlt9U0b+zOVAZyVNxnlL4WhDk/n+whZ8Uwen9KwqT35XCxa z9JU/EH/fP6+aCZ/r0ThecJER/do2BTNdO+CyoCWP/RoKPS1NJTcwHLfqH5+zFfVasK1 3uq4gXbRzU35IfEF+q8Mwj6gxW4ktEBezGD+KTryW3+ygtlawUSnqQfJKaWla65Sm1sJ Sypy81ntJaAmlkX/E7wkWErkQ3tsypFye7ILKbWUZJV5LGCJ6mQHyVU9f3k6Zkf1Pb+s ygsA== 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=DqnXiovQ842QAx8AQywUyOOPRvhb9cksphisLV+q4IU=; b=b9RwEDTWx6hAoJaS5c/+DMm5FlLVXdfomZvbTTZkGpmi6OuqmfNX294HhMlCTEkflp 7jYm9uR0DY/M2aFOEGiEMwJGJsrjQg1aF0l7t3BxVGRLKiIgQQmybewd+HRZqa6DHXXH yLgF69VctnFGAWvEZhAN6AoHUUe49ULy44jv5LyxCA2X33IOjnMSpC4Ca6y7Wej9eqLQ nNIr7vjFuxUWiIvAs6UUtgZyUbuTnku6qZ9UR2/aBV1nHHUGkr4gugCIADLaFwnYfM71 XwG7dB9cLnSjWv4xfvSPdjip7nhXm8+MNawrSTbrSmgx10OrDWJbM7iU9YZwpQOZ2P1d PZfA== X-Gm-Message-State: APt69E3yldl89nqqSCL1xBrlli/77UDeoM/xFOeF1htcqgaKduT8BqNM hlQCbwmY9rYqKMOtRzm+kJNOtA== X-Received: by 2002:a24:9ec5:: with SMTP id p188-v6mr767551itd.79.1527785775990; Thu, 31 May 2018 09:56:15 -0700 (PDT) Received: from [192.168.1.168] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id r24-v6sm638931iob.38.2018.05.31.09.56.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 09:56:14 -0700 (PDT) Subject: Re: general protection fault in wb_workfn (2) To: Jan Kara , Tetsuo Handa Cc: syzbot , syzkaller-bugs@googlegroups.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, tj@kernel.org, david@fromorbit.com, linux-block@vger.kernel.org, Dmitry Vyukov References: <000000000000cbd959056d1851ca@google.com> <0c7c5dea-7312-8a59-9d1b-5467f69719bf@I-love.SAKURA.ne.jp> <20180528133503.awomzj6djozbo5bv@quack2.suse.cz> <2dda7a11-3f6b-bdba-a68a-7c0694806cc4@I-love.SAKURA.ne.jp> <20180531114228.6zx27xxurmz27pke@quack2.suse.cz> <20180531134212.oo4ra4ypuruab3xp@quack2.suse.cz> From: Jens Axboe Message-ID: Date: Thu, 31 May 2018 10:56:13 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180531134212.oo4ra4ypuruab3xp@quack2.suse.cz> 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 5/31/18 7:42 AM, Jan Kara wrote: > On Thu 31-05-18 22:19:44, Tetsuo Handa wrote: >> On 2018/05/31 20:42, Jan Kara wrote: >>> On Thu 31-05-18 01:00:08, Tetsuo Handa wrote: >>>> So, we have no idea what is happening... >>>> Then, what about starting from temporary debug printk() patch shown below? >>>> >>>> >From 4f70f72ad3c9ae6ce1678024ef740aca4958e5b0 Mon Sep 17 00:00:00 2001 >>>> From: Tetsuo Handa >>>> Date: Wed, 30 May 2018 09:57:10 +0900 >>>> Subject: [PATCH] bdi: Add temporary config for debugging wb_workfn() versus >>>> bdi_unregister() race bug. >>>> >>>> syzbot is hitting NULL pointer dereference at wb_workfn() [1]. But due to >>>> limitations that syzbot cannot find reproducer for this bug (frequency is >>>> once or twice per a day) nor we can't capture vmcore in the environment >>>> which syzbot is using, for now we need to rely on printk() debugging. >>>> >>>> [1] https://syzkaller.appspot.com/bug?id=e0818ccb7e46190b3f1038b0c794299208ed4206 >>>> >>>> Signed-off-by: Tetsuo Handa >>> >>> Hum a bit ugly solution but if others are fine with this, I can live with >>> it for a while as well. Or would it be possible for syzkaller to just test >>> some git tree where this patch is included? Then we would not even have to >>> have the extra config option... >> >> If syzbot can reproduce this bug that way. While it is possible to add/remove >> git trees syzbot tests, frequently adding/removing trees is bothering. >> >> syzbot can enable extra config option. Maybe the config name should be >> something like CONFIG_DEBUG_FOR_SYZBOT rather than individual topic. >> >> I think that syzbot is using many VM instances. I don't know how many >> instances will be needed for reproducing this bug within reasonable period. >> More git trees syzbot tests, (I assume that) longer period will be needed >> for reproducing this bug. The most reliable way is to use the shared part >> of all trees (i.e. linux.git). > > I understand this, I'd be just a bit reluctant to merge temporary debug > patches like this to Linus' tree only to revert them later just because > syzkaller... What do others think? I guess I don't understand why having it in Linus's tree would make a difference to syzkaller? If there is a compelling reason why that absolutely has to be done, I don't think it should be accompanied by a special Kconfig option for it. It should just be on unconditionally, with the intent to remove it before release. -- Jens Axboe