Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2267788ybl; Thu, 19 Dec 2019 10:43:09 -0800 (PST) X-Google-Smtp-Source: APXvYqztZHAYrDOjJmjDZWi/wzfpa0ie/LoosJYkkGzaVr49l0Iy3tUumsyOD4tN7AeOfI1CTfIy X-Received: by 2002:a9d:7c8a:: with SMTP id q10mr9633756otn.124.1576780989684; Thu, 19 Dec 2019 10:43:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576780989; cv=none; d=google.com; s=arc-20160816; b=vcgn6eZHKYWDMaD9ztSS4RlukJAimMwzR7+A8ytzYmeRVcJK3We0Y3/o+Wr2awX3Rl UfkwBQRJ9HZwIdv/GFcGtsXPGgPwTFJ59agI7v0L84CBA6815s93cjoo/T/v9+sXMVxG Hd2XCmJ5hpiSuRdXqbOhPJ7IDiI0JKPl5uOtnEyQ2e2sX2E3AsXo3kWlVYCbWV3epaSE vStkA4+EBhwyX3GwNGLpcCoSwh2e2oaT4gvPCavNf9frIXV+VwT3hHFeAZ3pJeXFWDpN VuzsToNur9FCIiPYe/Kx0xlWjhwpqtSufw5viSvifWQujrUULfDKFm/HyhZFI3q24Tr2 lc7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KKKOPLsO0UozyDrjgRIgK6m+34t47E+GL5HDDZ8b8Is=; b=taI7aP8lWOKs0icv8NtOkOVZmRlkK1Pa842Z6IQ9AjjlinYigkcwHhYUgtVZ5KePNi THz4JarAJkcwHqBG8zXC3Bxc/G3przjBifldkM6zvjr6rhEYLm8WIlk6yOb3BkfnkUhq J1pvB5JenAZB48IoVsGwICBa9FqZNdbzOHEcqkb5s2stPA411QY9pfUbOXXB45goQPcZ xIBYg2yh44qLyZ1hBzH4eYXSYXcb/evmxzy+NCd7OP2cXHLOeaqDzEOIci0W4eIje2z2 4RuCR5HiAF8aFZr+dtkkMMvJzHTGiC1M3Rzoj8diqpRyNX6eOC6H2ETkGQCyENPipiID NEnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bTudzJET; 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 a10si3466980oia.232.2019.12.19.10.42.58; Thu, 19 Dec 2019 10:43:09 -0800 (PST) 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=bTudzJET; 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 S1728435AbfLSSku (ORCPT + 99 others); Thu, 19 Dec 2019 13:40:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:59600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728422AbfLSSkq (ORCPT ); Thu, 19 Dec 2019 13:40:46 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 87066222C2; Thu, 19 Dec 2019 18:40:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576780846; bh=SwpLH25gE//a3hnw9Qt4y7kv+wYvce0rzkSKNCSQccQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bTudzJETo/Cs4CMudycyQGqKitzddBl2oAiAlknGakLUGJNsOtb0LeUK62iqnwRNG NXjFznWyWIkFkw9KhNiIkSS10n9VscNBDY9TyHQZWTV8g1ZNx+CgZaJDAb6FL1JXLl e/oJz4u9mk5cep7UJHL/PDmDJvKjBnwFzxTgtmYE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tejun Heo , Qian Cai , Nobuhiro Iwamatsu Subject: [PATCH 4.4 140/162] workqueue: Fix missing kfree(rescuer) in destroy_workqueue() Date: Thu, 19 Dec 2019 19:34:08 +0100 Message-Id: <20191219183216.291082975@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191219183150.477687052@linuxfoundation.org> References: <20191219183150.477687052@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tejun Heo commit 8efe1223d73c218ce7e8b2e0e9aadb974b582d7f upstream. Signed-off-by: Tejun Heo Reported-by: Qian Cai Fixes: def98c84b6cd ("workqueue: Fix spurious sanity check failures in destroy_workqueue()") Cc: Nobuhiro Iwamatsu Signed-off-by: Greg Kroah-Hartman --- kernel/workqueue.c | 1 + 1 file changed, 1 insertion(+) --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -3975,6 +3975,7 @@ void destroy_workqueue(struct workqueue_ /* rescuer will empty maydays list before exiting */ kthread_stop(rescuer->task); + kfree(rescuer); } /* sanity checks */