Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1999133imm; Thu, 24 May 2018 04:16:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoEz64D7u8HAjOSkbmhggQiYnpa8Qh06CMP2OhdrakhPYgIzrMYpeeeBR4ZSgW7L7L/K+Bg X-Received: by 2002:aa7:819a:: with SMTP id g26-v6mr6890243pfi.210.1527160600155; Thu, 24 May 2018 04:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527160600; cv=none; d=google.com; s=arc-20160816; b=xGEV2zxncoYObr7mCI8aD+SEhJAsaoNCPVMBRmlIcbgiQZvsD4j5Dco8qbfnPRajok WLNeBKvVPQgkPkFbwQ/s2lKYbXCNljisQC3vmTWCXbjpxCFG/Vpna/c1LFXFUfndUBTe V0qd3WWJpYJnGPkZPtKY1gK8folHeEJvJliB+cgiY/K49sLDKA4nkuMUXuhQyW9WNtWK A5893sZgcmqbaaQubfq0jhuh3MWUcPc/8n3NleL4KwBAMQdCXHB/iK4UQx0Sj0/7eFiJ WGiZKox2E6MntaZRLUYEVIZSPn4rAH8J0BMxdk3jeIVQDX3sbkzlmPh3WoEPVflzVhyA wlsA== 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=BAF+52YCD3VGSdHFWJHhh5OIlbYoNI5aOqbSg72NrVQ=; b=CzH6Eq0rYmoFra/kDvgty0MwFeWOXyy2c6r8CU9Zm5mnmY0IfHDqofoyMbUDEov2zM RhcQKwr2amHUE0QidO6cbrX8C7r4+QYdlS81PmoEMBAP0i9C4vtMZeqhfXRDXEMfCQUh +8P8wZ0hc3xXYXyOVOsvkPaiuFhUMdgB1LaqqTaZXEE0mbjwWoP148aL7vZlBxwOzril FBJ6PuYX3I1HAXodXRHTbGXc4/c0E7FxV/w25M5s2w+ONP9UBmuiP+PfZ36r4wQUOuhP bt9EC0WG7HnQNpth8u3e6KwPvMWBVlQGjSm1loF1ybU+TVzP/zmpzfgwHpnVQwqdyhDG 9OcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bktt73oA; 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 g5-v6si20159265pfh.271.2018.05.24.04.16.25; Thu, 24 May 2018 04:16:40 -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=bktt73oA; 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 S968070AbeEXJxm (ORCPT + 99 others); Thu, 24 May 2018 05:53:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:59734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967570AbeEXJx3 (ORCPT ); Thu, 24 May 2018 05:53:29 -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 91B0F20891; Thu, 24 May 2018 09:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155609; bh=uIBKHDZUyfYtjUK+hkJeyx/8YTM/EIpNfw+4qhfuRd0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bktt73oAJof3ekCE4xG9dM+KYEIhAxoIMgWtsHs8yxi+Xq/ZB+b1j+6GxcUkEVrat LIsndOVszC8Q9+j8gpQU70FxZ9L7ZLzlvK/EyYFvIuw0yWGbcPtFHAVt3LZ0umqMjQ PIdNTYUm2Z1/KfXnJl8yKXiCLNxno9dRwbUxI0iY= 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.14 052/165] hfsplus: stop workqueue when fill_super() failed Date: Thu, 24 May 2018 11:37:38 +0200 Message-Id: <20180524093624.128429328@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093621.979359379@linuxfoundation.org> References: <20180524093621.979359379@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.14-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);