Received: by 10.192.165.156 with SMTP id m28csp1680267imm; Tue, 17 Apr 2018 03:45:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Tj2/J7OvKp2lM//C33+NoARS/odO+3R9N8gytHlmOPMk0qIo0S1AxL/YwKmhDR5dBb5sa X-Received: by 10.99.116.76 with SMTP id e12mr1352988pgn.270.1523961937859; Tue, 17 Apr 2018 03:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523961937; cv=none; d=google.com; s=arc-20160816; b=m/qIOcAHo7Y65qVaxXdohzXscqJktNClOEJyHYN47xdUuRyNkEgUgjfZexVSt33Kti 3/I7dgm7JBXnEWudX+uUoTgyxWYBts47SfSiFLF6tTiP9CxJQNRvo1NbcvnjzbP1Owhg wSokVM7MK+vP3bybCx5zAG/JmWVOSGXScKeqMWaL3mZJE8+PypiGiquHw7/h/JfxSufe 667kUpZAX2NUcGa2rdxdmjyzl9hxqFixLz3S7O5bwuZ0Z/gX+1fUiahDNb4N8JOmEoXx bDqqURetSK9fLxdZ3Tcs8EMoDarjwyMGek4othtUCIMqDhoJe3IrZPUX6JZcDpSkXD9H OvGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=ZeD7gGKtbfmoRD2wQnTuiAdmmEyF9bQ4pasIDF54E0E=; b=XZCb0ebc2545bxQ812ZXrnvraEPRQfCODdmub1JDOnppIkmJDW4+h2xxXUF/mSvYwh G7XW4/4y0EpXNIf5sOtC/eqqP5rfabFkt2msd7RIoJmzNwPVxC8m7Vu9PMiUY9emjpEz CPhk51FXTtOsd/uDCTqSsoeBzxFqFaEJ5nyAe2gphf9uTvP3RWEwDpxeM42OSkcFxmqo CWpNUnr91Kz/OJMe5hz2fESk+4ybnkqMc7DidxH4t87gTH0hNNTucbG1v3DhJ6au+9Zy W2BxO5EpG7XnUl2XgVWOqaQb42T48j63dN4/QK+6CCEvzHTT9CtPDr8v1DLHAIyyvwb+ AXUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=iMgY3+N7; dkim=pass header.i=@codeaurora.org header.s=default header.b=Q6h0MlIP; 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 l5si11391990pgs.605.2018.04.17.03.45.23; Tue, 17 Apr 2018 03:45:37 -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=@codeaurora.org header.s=default header.b=iMgY3+N7; dkim=pass header.i=@codeaurora.org header.s=default header.b=Q6h0MlIP; 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 S1752503AbeDQKoH (ORCPT + 99 others); Tue, 17 Apr 2018 06:44:07 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54126 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751865AbeDQKoF (ORCPT ); Tue, 17 Apr 2018 06:44:05 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 917F66090E; Tue, 17 Apr 2018 10:44:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523961845; bh=SmJ0XcIg44Pn/+VFC1d/xq8hcivNRp1Xjx1N0vqi85Q=; h=From:To:Cc:Subject:Date:From; b=iMgY3+N7KXstJyLRYU/aHx9UXZQx2FoK6w8Fb49Vp55QWCqE+WyeAhurkO2X6u8fI nC8ZBraN/Lfbs+2agBZss4yDWMcqk9lk54wcl/HUMx4hhdfySdpYrqas7GnKaiEznx YyDT8KfiuhMZNGb4IT0XmjWx4hHaBVCudvbEBSsQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from cpandya-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: cpandya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id EA1EB603AF; Tue, 17 Apr 2018 10:43:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523961844; bh=SmJ0XcIg44Pn/+VFC1d/xq8hcivNRp1Xjx1N0vqi85Q=; h=From:To:Cc:Subject:Date:From; b=Q6h0MlIP/JUl9g8b3XfkONMvwnwXyVDDxm1uRKyjn+KuCo+up225cdscvkeBtwWT8 4vsx1PZSW5N8Zv8XgxXR+SSHsDkKfGNNLEROa5y1mjnSE/N5fEWqIG7HavVYu9HsXE EK2yvxFY4qQW+ZNU8fHADrVADHYYb3TTIbarXIS8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EA1EB603AF Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=cpandya@codeaurora.org From: Chintan Pandya To: vbabka@suse.cz, labbott@redhat.com, catalin.marinas@arm.com, hannes@cmpxchg.org, f.fainelli@gmail.com, xieyisheng1@huawei.com, ard.biesheuvel@linaro.org, richard.weiyang@gmail.com, byungchul.park@lge.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, khandual@linux.vnet.ibm.com, mhocko@kernel.org, Chintan Pandya Subject: [PATCH v2 0/2] vunmap and debug objects Date: Tue, 17 Apr 2018 16:13:46 +0530 Message-Id: <1523961828-9485-1-git-send-email-cpandya@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I'm not entirely sure, how debug objects are really useful in vmalloc framework. I'm assuming they are useful in some ways. So, there are 2 issues in that. First patch is avoiding possible race scenario and second patch passes _proper_ args in debug object APIs. Both these patches can help debug objects to be in consistent state. We've observed some list corruptions in debug objects. However, no claims that these patches will be fixing them. If one has an opinion that debug object has no use in vmalloc framework, I would raise a patch to remove them from the vunmap leg. Below 2 patches are rebased over tip + my other patch in review "[PATCH v2] mm: vmalloc: Clean up vunmap to avoid pgtable ops twice" Chintan Pandya (2): mm: vmalloc: Avoid racy handling of debugobjects in vunmap mm: vmalloc: Pass proper vm_start into debugobjects From V1->V2: - Incorporated Anshuman's comment about missing corrections in vm_unmap_ram() mm/vmalloc.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project