Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2033820imm; Thu, 24 May 2018 04:52:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoy8RfDTco8l24y/SBgll9FKtbzJT0RQMlVMkIpPF9wHqUP1b0ZpUqM0lxhTptVFx94qeCa X-Received: by 2002:a65:4642:: with SMTP id k2-v6mr5705234pgr.305.1527162768319; Thu, 24 May 2018 04:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527162768; cv=none; d=google.com; s=arc-20160816; b=zJWo1nmF2q7XwfWKvi0JxgCN6PQMaQYKu8jrfG3E6VM5ghvC3uz03/tnfxV0WUsGHo 31pElahn1VVIq1nXGwiEynHnnnO8Bl3d8kTfrrHZ0qUpcZa7FisoxOZQN3rnQYJ+SlA4 4Giae+zyj2gXYBxwiJPrSkCNooY1iaYLxKKy4Bky1ujOO40INg5C/nnMc1rol8JqkxYm MhaoSdYFvriqKY583CgcxQOcFIsPoNiwhq71UEvU/Us0SXRhbXPH2aoeX7nQdA6JAJDC R7AbR3Bg0wosym9+XIB6qD8xVwmlKSj9mwSj1flOF2Eu3h4yS8aSDsbntedgBap3ls/X 6KlQ== 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=hjooRdtEZ74zPu1m0MeoVJhe8LAIK/IwisLLazU3EVo=; b=bBujdlFSYQXM94P9aF9ZeYdHqgYcNSgBP2/GFqyi3m4WAeloXAEEQ/Svg1fQVgKRVn 3iABy0c6ps5f0fNDTCPLOWnf/u/b+6vTr/Vc4EfmP/eO3iN20z9ueJM3gKzk+8n5eS29 lNAru2fGio30gRZeQk9FVdd2iVGZEqQTTWqMfsojazUkuWgc3cGeb2inv4B938T1OOZm oNAFany+4xTnEzvfs4DYJK5b1iYreHmPibP7I5/NO36gKwFjMFmLVSjdNJFl9+6lOv2Z si1mtF4ae/k3kE76Nt2yl0PLt4J3VNUjgwL455B5kabglucYqDPTHF1lSFYf9Rcdm0Vl vqSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GJFwE99n; 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 b9-v6si20062652pli.427.2018.05.24.04.52.33; Thu, 24 May 2018 04:52:48 -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=GJFwE99n; 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 S966949AbeEXJql (ORCPT + 99 others); Thu, 24 May 2018 05:46:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:58046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966941AbeEXJqh (ORCPT ); Thu, 24 May 2018 05:46:37 -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 28B22208C4; Thu, 24 May 2018 09:46:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155196; bh=tS23xJhwx41RY6PsOIPDDsLIDMKx2o1eqaVRzR+kBBM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GJFwE99nhPZmsrnrFr2ke6Hmc84iZ5SURHxVvueRmR7LMJZDRzuTYZH8UCwmDAF6G IbF9rQ7hQ/Ag8e8pcZsDTHeEIpkV92sjzCzoQhCHTFiyVLZKfjF+hgqklN3jjWi3uf ts8//M3jgsdYTbI9UyG+xafFH43pKuWGORVUcCTI= 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.4 91/92] hfsplus: stop workqueue when fill_super() failed Date: Thu, 24 May 2018 11:39:08 +0200 Message-Id: <20180524093207.886343038@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093159.286472249@linuxfoundation.org> References: <20180524093159.286472249@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.4-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 @@ -585,6 +585,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);