From patchwork Wed Aug 6 12:01:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Shilovsky X-Patchwork-Id: 4685321 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4C2539F375 for ; Wed, 6 Aug 2014 12:01:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 455B520172 for ; Wed, 6 Aug 2014 12:01:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3597E20136 for ; Wed, 6 Aug 2014 12:01:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753523AbaHFMB2 (ORCPT ); Wed, 6 Aug 2014 08:01:28 -0400 Received: from mail-la0-f43.google.com ([209.85.215.43]:65088 "EHLO mail-la0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753060AbaHFMB2 (ORCPT ); Wed, 6 Aug 2014 08:01:28 -0400 Received: by mail-la0-f43.google.com with SMTP id hr17so1867546lab.16 for ; Wed, 06 Aug 2014 05:01:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=CqLJJNhjSFnf22jCRWe6ikPe+OS/wAvZitt3YUEJnQE=; b=AkU2cG8DdEC+2vqHQQugSau45GOO+fjT6yhNkkdP6YuPMoTn4qUjE5lId2GZJruqIP IcDkdPg6SkDE0y1NkBuixz1LdI4Iwd8aGlwzRn594gEwinwD2C+zr3kwoxLQxMuu5dC5 sl7HRl1UQ/C6qaX6jOLlW5tWnWfgrLf+8oSmpL/uXlzLjPZbRtFkjkk4bKIYfOpLCpQP AgKfQq9ofbtCP6F1OXuoEoyUCcUtzyBr+H0BrNw+RebCddPK2VbEPjIlQYWi0uzWVni8 n5oLTg/ysH4A0hf1f2M0aoMv99zrrzhpxvu85clEf1Zl4xDx8LuAPNv1VMErCR4C4tIH FsjA== X-Received: by 10.152.243.43 with SMTP id wv11mr10985807lac.52.1407326486239; Wed, 06 Aug 2014 05:01:26 -0700 (PDT) Received: from localhost.localdomain ([92.43.3.121]) by mx.google.com with ESMTPSA id xl2sm1136496lbb.47.2014.08.06.05.01.24 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Aug 2014 05:01:25 -0700 (PDT) From: Pavel Shilovsky To: Steve Dickson Cc: linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, Jeff Layton , Jeff Layton Subject: [PATCH 1/5] tlock: munmap missed before close Date: Wed, 6 Aug 2014 16:01:08 +0400 Message-Id: <1407326472-13853-2-git-send-email-pshilovsky@samba.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1407326472-13853-1-git-send-email-pshilovsky@samba.org> References: <1407326472-13853-1-git-send-email-pshilovsky@samba.org> Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jeff Layton test13 mmaps the testfile, but doesn't munmap it before returning. Signed-off-by: Jeff Layton Signed-off-by: Pavel Shilovsky --- lock/tlock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lock/tlock.c b/lock/tlock.c index 39a6ad9..6e19a3d 100644 --- a/lock/tlock.c +++ b/lock/tlock.c @@ -1509,6 +1509,7 @@ test13() FATAL); test(13, 4, F_TLOCK, (off_t)mappedlen - 2, (off_t)END, lock1err, WARN); + testmunmap(); close_testfile(DO_UNLINK); childfree(0);