Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2061187imm; Thu, 24 May 2018 05:15:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZptgwMSVl1KekutdWKM9T+qZsVGuLiXqrofYFuXZ8xLs9MRxZMV/mqwXax08QbE8HPK0PIk X-Received: by 2002:a63:9205:: with SMTP id o5-v6mr5699527pgd.233.1527164115108; Thu, 24 May 2018 05:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527164115; cv=none; d=google.com; s=arc-20160816; b=ZbBM3GwO0kLRV4dY+UeZtfMcfIN4RFESmqqqNlzCDDkfmihjgDabs9tOfjLbECIGtn SNqdUi1EquQKBVGu0a75ntmEGc1Hxh20N25/KoPhn4/k8dZdHBfSw+FREgakq/keyith iwA9seE2Ou2CvTnmMlSEfXsLl/ss+MZiHofnfhmgkhf5PeeeEdIz41yi8VsfjQERwFq+ Se+/jq1dO2RWn0GmU8nhgYNFtFi8ch9lcs8EC3wt2f7w/WfWv+3ETYtlmfS/OpkPSsbG n2yUjmb4DA5yR88QWBVU2eM8ocH2G+mXuGGepcYQUyAEVGuvy78Qi+0ZyuNRPynuYMfz kAEA== 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=CU0hqyJa0tAGIW4cMZW3znGhpD3KRle9XnaW354nQRo=; b=Gboz9Oio5IL//vAxrE6KYlP4twfUnl8NiWILxTbj8/sBygjJdi6c53fwKuwmTUE6kB 2jNxgojC9uoZSaNic4Kr7FLac9pGGtELjR/JXqOmSkJk4Ijs9s6G9Al+jbN8LsVMND4v 7fvnCPG3v+DdX1ZLpaREA5DXGkjXS83RHg/X1wkWzyFfbtnsFYOGOmivWg01McZcpmMK BQsFWIfO+0UCWMShAFWdjdzl7L9dFo8O40bVX4s4z+RpL5BLmLaqUF+Kgpk8Bo+//ERq qI236zP1ovmu5TK33z+ujIGEXpy34kAfbndJNxnWtFfxZ3B1OstUqKM5MVAc1G7NIo27 Uqkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=g5myucmc; 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 q4-v6si14298796pgc.43.2018.05.24.05.14.58; Thu, 24 May 2018 05:15:15 -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=g5myucmc; 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 S966351AbeEXJmb (ORCPT + 99 others); Thu, 24 May 2018 05:42:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:54056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966326AbeEXJm0 (ORCPT ); Thu, 24 May 2018 05:42:26 -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 1151E20892; Thu, 24 May 2018 09:42:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527154945; bh=veajh/FXVwrmQ209WoiYj5crhUlte8UyQ1fRqACmgzw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g5myucmcBuKwjf9XMxQhxlrKX0Ru1w0LQVTN4S+/wAzga0sttIKH4SvHdRmoZHNJp avyXC16A5v8mYSF8SOpHkj7K1Vo4sUlDPE5tHBRitIIBQ35LGS2UsVJCffrK/SuHHl KWwKYGFRDvlzxEB67nXSkQVQDQQwXIi+ufQwjR6w= 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 3.18 44/45] hfsplus: stop workqueue when fill_super() failed Date: Thu, 24 May 2018 11:38:52 +0200 Message-Id: <20180524093126.635869942@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093120.599252450@linuxfoundation.org> References: <20180524093120.599252450@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 3.18-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 @@ -582,6 +582,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);