Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp809775imm; Tue, 15 May 2018 09:28:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoLYYctYy7W3ZsTxGtGvys637uNOQ31oLzTn9FLsM04ilgHFa6I1E6rRLivnmDAdZ7jopGd X-Received: by 2002:a17:902:8f8b:: with SMTP id z11-v6mr15079987plo.203.1526401705386; Tue, 15 May 2018 09:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526401705; cv=none; d=google.com; s=arc-20160816; b=grnv38AHkmKVtdlpwTEYtBaEZe2NJa51bvSCOdgncYdnd8eyN9qTY37EI755PbEVqF zPNBf5BCrZmVjtICgVGv5/C14qJjFjJadAvOwIKse7GBvhVTDd00QJnBG9ykpMfZLEaj cf11zIHtiyyeFEo87J7a8ZYzYrRPUhWj+GSh0ZixpV5f7KvrJPt4j48z5j4KFaTmpA9+ HtR9SslSapHi/fvyT/cYvomgGlpqTk7S+vaTjZineH5UZNmIlrg6AtFqrrUAuB/5+nJF 0KdfIBsWlUVLKSzjEjk34xs/WyDKecRe7R/OzQO4+fbRefRVFIlHRtwaffTBP1dM4gYr mVSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=EFHyL3T9Pb1zMAoaRlqUvDyyPVCHvQ4NXTJ414NM/WA=; b=l0B30FG7u9S29+pYu7O74MhNfEZIzMoaia8MRDqRfe0sFTv0UdVmzRcV11QcoCkub+ jd7RpR5tW4RR+CS9/3QJcWEL203xZ14aNajbY/bvNs5W9TfBlCtGgKt3Ou6z5WWqVbEZ SZ7PACBYFs0fWUfuaj+4XjyM+L+2F2z54YSGkGM9MxMw7vOvJ33kvWBkRMVG79enQfPd VUzY37YdFG0eISY6yuzy5+vea0VBKcTF+YGMeOzw8MXc49/tVBBDbwpcratRf2tE/UTS JdI6Sw5zikozt1OpT3p7p7hYPfQBFuIg15yVpd3MdfC7D8wKpWzC0Kev/Ms7f1zwb/yP qBKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KbLRzTvZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z25-v6si290453pge.483.2018.05.15.09.28.10; Tue, 15 May 2018 09:28:25 -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=@gmail.com header.s=20161025 header.b=KbLRzTvZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754164AbeEOQ0a (ORCPT + 99 others); Tue, 15 May 2018 12:26:30 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:45915 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753581AbeEOQ01 (ORCPT ); Tue, 15 May 2018 12:26:27 -0400 Received: by mail-qt0-f195.google.com with SMTP id j42-v6so1016256qtj.12; Tue, 15 May 2018 09:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=EFHyL3T9Pb1zMAoaRlqUvDyyPVCHvQ4NXTJ414NM/WA=; b=KbLRzTvZMK1DiVYpzwF4WwUUSwQkAuSaXovXuE6dapi8m4HFvqeT7+QVXBtWYpQAvW 3pLDJ+MlknZEiKLbbTlLIxrBTatPhTm0F5k3zMEUpBqRMiSvGw4FvqNWgHNTE80+oGwg OB1cgVeCG4W9MV9TksgkE3BPVToaSOHOZ2RsVNFIqg59MXsTUvOkpay0E0KHd0IhqtVF CegHRib66z+zB/5v+e8tGlIzR9swMy1G7yZvjnNMB7+Xap8eylMKvynRxYtH8fGIuKni iTxxgVdfSYbuj82muV2zcEeRIa6uegM/6LM94Wk7aMrYLQm7MgneVXC1lhhyqbrUw4zi uT8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=EFHyL3T9Pb1zMAoaRlqUvDyyPVCHvQ4NXTJ414NM/WA=; b=QmAMqzCcNq13Ag/xDjYD3frTZumAk0A7B2uGb241REG3HjpxgxNiZx4WVXsYNUmdeP Ow9GGigWqyVNSAsWDJZTTL7d22wFf5vGyPCjmOqeGoEfKS5ijXbgPu/S44qtWGq3BY7G e2bJwZnoOvztffaV7rbpula7FUGZddjqPVro3mGMY8adnTlUJn0lTcD4x4nmctXUYUzm 3paXvn4VAW71yH/Hk/C4O9EEzlVx1cs6X8VTMeGZHtrkKu2cskqib2x9LFu/lNc4o/pP MkVr4g1W5lKo8GO53dw+iR7X5TUAPoH8qo3MyUv/u+Sh9KUMYMycBM0juWYper0+8OuZ nMQQ== X-Gm-Message-State: ALKqPwet690B3jKTmd/FV2MuwGNZ7oVmxyokVLk/PbviboD8e5D3a79h GjQiX0Xswk4TmwgeCYuxO8uJWw== X-Received: by 2002:aed:24c2:: with SMTP id u2-v6mr13910020qtc.235.1526401586422; Tue, 15 May 2018 09:26:26 -0700 (PDT) Received: from eaf ([181.47.179.0]) by smtp.gmail.com with ESMTPSA id n6-v6sm302950qte.36.2018.05.15.09.26.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 09:26:25 -0700 (PDT) Date: Tue, 15 May 2018 13:26:21 -0300 From: Ernesto =?utf-8?Q?A=2E_Fern=C3=A1ndez?= To: Tetsuo Handa Cc: syzbot , syzkaller-bugs@googlegroups.com, Al Viro , akpm@linux-foundation.org, dhowells@redhat.com, ernesto.mnd.fernandez@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, slava@dubeyko.com Subject: Re: [PATCH] hfsplus: stop workqueue when fill_super() failed Message-ID: <20180515162619.wx7p5vk37nmansww@eaf> References: <089e08e567a5b24ae90568bb75d6@google.com> <964a8b27-cd69-357c-fe78-76b066056201@I-love.SAKURA.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <964a8b27-cd69-357c-fe78-76b066056201@I-love.SAKURA.ne.jp> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 15, 2018 at 07:11:06PM +0900, Tetsuo Handa wrote: > From ffd64dcf946502e7bb1d23c021ee9a4fc92f9312 Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa > Date: Tue, 15 May 2018 12:23:03 +0900 > Subject: [PATCH] hfsplus: stop workqueue when fill_super() failed > > syzbot is reporting ODEBUG messages at hfsplus_fill_super() [1]. > This is because hfsplus_fill_super() forgot to call > cancel_delayed_work_sync(). > > As far as I can see, it is hfsplus_mark_mdb_dirty() from > hfsplus_new_inode() in hfsplus_fill_super() that calls > queue_delayed_work(). Therefore, I assume that hfsplus_new_inode() does not > fail if queue_delayed_work() was called, and the out_put_hidden_dir label > is the appropriate location to call cancel_delayed_work_sync(). > > [1] https://syzkaller.appspot.com/bug?id=a66f45e96fdbeb76b796bf46eb25ea878c42a6c9 > > Signed-off-by: Tetsuo Handa > Reported-by: syzbot > Cc: Al Viro > --- > fs/hfsplus/super.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c > index 9e690ae..80abba5 100644 > --- a/fs/hfsplus/super.c > +++ b/fs/hfsplus/super.c > @@ -590,6 +590,7 @@ static int hfsplus_fill_super(struct super_block *sb, void *data, int silent) > return 0; > > out_put_hidden_dir: > + cancel_delayed_work_sync(&sbi->sync_work); > iput(sbi->hidden_dir); > out_put_root: > dput(sb->s_root); > -- > 1.8.3.1 > > I sent this same patch a couple of weeks ago: https://www.spinics.net/lists/linux-fsdevel/msg125240.html I should probably have sent it in reply to syzbot to prevent this kind of duplication of work. Sorry about that.