Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751722AbbEUFAQ (ORCPT ); Thu, 21 May 2015 01:00:16 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:35599 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751063AbbEUFAM (ORCPT ); Thu, 21 May 2015 01:00:12 -0400 X-AuditID: cbfee68f-f793b6d000005f66-c0-555d665a5fda Date: Thu, 21 May 2015 05:00:03 +0000 (GMT) From: Maninder Singh Subject: [EDT][PATCH] kernel/exit.c : Fix missing read_unlock To: akpm@linux-foundation.org, oleg@redhat.com, mhocko@suse.cz, peterz@infradead.org, mingo@kernel.org, riel@redhat.com, ionut.m.alexa@gmail.com, peter@hurleysoftware.com, linux-kernel@vger.kernel.org, "v.narang@samsung.com" , AKHILESH KUMAR Reply-to: maninder1.s@samsung.com MIME-version: 1.0 X-MTR: 20150521044053063@maninder1.s Msgkey: 20150521044053063@maninder1.s X-EPLocale: en_US.windows-1252 X-Priority: 3 X-EPWebmail-Msg-Type: personal X-EPWebmail-Reply-Demand: 0 X-EPApproval-Locale: X-EPHeader: ML X-MLAttribute: X-RootMTR: 20150521044053063@maninder1.s X-ParentMTR: X-ArchiveUser: X-CPGSPASS: N X-ConfirmMail: N,general Content-type: text/plain; charset=windows-1252 MIME-version: 1.0 Message-id: <670017389.505251432184399737.JavaMail.weblogic@ep2mlwas07b> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGIsWRmVeSWpSXmKPExsWyRsSkTjcqLTbU4MN3VovLu+awOTB6fN4k F8AYxWWTkpqTWZZapG+XwJXx+slupoITXBU3p85gb2BcwNXFyMkhJKAmsWjvYzYQW0LAROLE vf+MELaYxIV764HiXEA1Sxklpkz/Ble0eN4BRojEHEaJEzueg3WwCKhKvP/2hgXEZhPQlzi7 dx0ziC0sYCsx+cd3ZpAGEYHHTBLHJvWzQaxWlFh/4wlYM6+AoMTJmU9YIDaoSDxduQy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MQagaTYkbUHdKCPBJrFn4lgWmftep5cwwu+5vmQvVKyGx teUJK4jNDHT+lO6H7BC2gcSRRXNY0b3CK+AhsfnFTrYJjDKzkKRmIWmfhaQdWc0CRpZVjKKp BckFxUnpFSZ6xYm5xaV56XrJ+bmbGMEJ59mSHYwNF6wPMQpwMCrx8HKox4YKsSaWFVfmHmKU 4GBWEuHNiQYK8aYkVlalFuXHF5XmpBYfYjQFxtREZinR5HxgMswriTc0NjE3NTa1MDA0NzdT Euf9fy43REggPbEkNTs1tSC1CKaPiYNTqoFx7kG/Z7JvWbiZuu9LH/wqvLjRIuu7N8f8Nx9M XbPjgizvn9Zp/5E3zfxtYCe3x2aJpfuefzM8kGI5RSGNMfJxyoWL0ntZ8iRD/sx0XzrxyI9S 3QAZ44OWDK/k3e7o3gnu15264OekNiNdCd2Z3f+X7DqtGbHpUc6no55cTLO/xa1Z9qG9ISxW iaU4I9FQi7moOBEALkBfyU4DAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id t4L50Z7x016759 Content-Length: 1144 Lines: 45 EP-F6AA0618C49C4AEDA73BFF1B39950BAB Hi, From: Maninder Singh Subject: [PATCH 1/1] kernel/exit.c : Fix missing task_unlock This patch adds missing read_unlock if do_wait_thread or ptrace_do_wait returns non zero. Signed-off-by: Maninder Singh Signed-off-by: Vaneet Narang Reviewd-by: Akhilesh Kumar --- kernel/exit.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/kernel/exit.c b/kernel/exit.c index 22fcc05..31a061f 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -1486,12 +1486,16 @@ repeat: tsk = current; do { retval = do_wait_thread(wo, tsk); - if (retval) + if (retval) { + read_unlock(&tasklist_lock); goto end; + } retval = ptrace_do_wait(wo, tsk); - if (retval) + if (retval) { + read_unlock(&tasklist_lock); goto end; + } if (wo->wo_flags & __WNOTHREAD) break; -- 1.7.1 Thanks Maninder Singh????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?