Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1945199imm; Thu, 24 May 2018 03:22:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp80QmIMj+5ofSz64Qm/ZcfTVQl0X+IkNPdRV36ghfLFfMyrfiHxL0opxxRjfpyuVeVoJBN X-Received: by 2002:a62:428f:: with SMTP id h15-v6mr6650583pfd.156.1527157372979; Thu, 24 May 2018 03:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527157372; cv=none; d=google.com; s=arc-20160816; b=d8Ove39cI59ONEQLdfSw7eArNE08ZFvKZFF7EIIDDmAuyjyhPpgjcAVNIiz1vbq7Md mUklzap5mnQZC+4OSH45F/wLKxiWXaha6/PqB36JsadoomoslBCX8xbo4RZmW6rVOfqY G0eBdWnO5kyyGdR6amyf7NY8SUmOUAbdf7cMzf9Behwkv5oYy5i/e5f3c6ORYJmXu3SR NSJJehhhZvMxe2OC7YpvHAr2av/A5k8wceFbvH3fH96gT63kidoXly01D5jOMRzjKjaH Vz3FNME4hbfE4wLz8jGuzHZVKziKpjgK2QF5M4N1A0xYLRL+Ynf33M/c5fNtX9pMRlG4 vSaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=carjZJkaWhlEN5gkxTkpJJ/CvIYqNQGP1cRFXeg/Foo=; b=CEfMuYCQGHCBxjlaDLTqUWUwhg+Iu9pfbwNaGWdJuKX2giwZD76Qf4Y1DOv9viL8Ye 6G/V/LAfFzRS+xGai4AJpsuAh93rVF4VMLhpPvN4ci29YVIQdI3+QrSBVFWs/v8xMCh9 cbCMbHNhZQI3CAXJzbBvNQzlso0YEtuETTRJv6Cfiego/Xl+OUHw8AmDlTCBfaTUs9yF Cb6Wz6MnURCFxn04LaSl0TbTU8PTqNCtlx7+BP0SPJCxeb/Ms5Z640t/Ee4UWfaM26uA sUDNH9S91KHj3xYdHtWaCwqsab7fYIPrOzjNN/GRVFN+dbg1+B15rKcKKq6Lm6a1VhNM T+Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZweO5Ou8; 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 89-v6si21358674plb.154.2018.05.24.03.22.38; Thu, 24 May 2018 03:22:52 -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.org header.s=default header.b=ZweO5Ou8; 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 S1031188AbeEXKC4 (ORCPT + 99 others); Thu, 24 May 2018 06:02:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:51006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031157AbeEXKCt (ORCPT ); Thu, 24 May 2018 06:02:49 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3AEA82088E; Thu, 24 May 2018 10:02:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527156168; bh=k/3ix4BzpzjFujmQkzGmdZAyJ/Wu7pc90PqTBTHVUnI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZweO5Ou8eeEttUqMiGptFrFl/cdXGAFh+1djC6xw8DTFmF2SGSxRHiZmmXB10yytM RezNegkxlxSbxOf/+3jVSO4o3jo+VeMmnjG+Y+YeJGSal1ihyyEfXVxFoHrAyUSVpZ 5GbY23GW9OaTgMAQpW1dQ6PyIpQpOjItgw/IJdwc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tetsuo Handa , syzbot , Al Viro , David Howells , "Ernesto A. Fernandez" , Vyacheslav Dubeyko , Andrew Morton , Linus Torvalds Subject: [PATCH 4.16 088/161] hfsplus: stop workqueue when fill_super() failed Date: Thu, 24 May 2018 11:38:33 +0200 Message-Id: <20180524093028.992571455@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093018.331893860@linuxfoundation.org> References: <20180524093018.331893860@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tetsuo Handa commit 66072c29328717072fd84aaff3e070e3f008ba77 upstream. 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 Link: http://lkml.kernel.org/r/964a8b27-cd69-357c-fe78-76b066056201@I-love.SAKURA.ne.jp Signed-off-by: Tetsuo Handa Reported-by: syzbot Cc: Al Viro Cc: David Howells Cc: Ernesto A. Fernandez Cc: Vyacheslav Dubeyko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- fs/hfsplus/super.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c @@ -588,6 +588,7 @@ static int hfsplus_fill_super(struct sup return 0; out_put_hidden_dir: + cancel_delayed_work_sync(&sbi->sync_work); iput(sbi->hidden_dir); out_put_root: dput(sb->s_root);