Received: by 10.213.65.68 with SMTP id h4csp891804imn; Wed, 28 Mar 2018 15:07:42 -0700 (PDT) X-Google-Smtp-Source: AIpwx48h0HxFdmKhp1w8HN+Jp1zhIBJqWK3l9SZovL8ccloMgtwx8gwk1Ro+OIo/5SBRYmEa5lKd X-Received: by 10.99.0.200 with SMTP id 191mr3711200pga.33.1522274862372; Wed, 28 Mar 2018 15:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522274862; cv=none; d=google.com; s=arc-20160816; b=RkZ65EAqdYAGLOmSVv2fTPz3J7527ETQKQBBbrnJYYWSAswtRpjbI7mtWD0adeqTD4 3rYMP2QyOsIveEX8sNL79TlS6t/3MaFQq0fEuvmsIIHQ77EWaxH2fpqVDkx9fl518r7W GOzngcKhOWBAyutD6h3RBhllGiolkshakybVrLVFn90FoQOe7VdJB7dkpMZtQ5fW4lLE sDOcniA08xXNmQhvkLkVu1pU5xcJPQGF+0GdpsD7HnDgmOC79kKQvReoTBm+NuHMQwMF Ns2WAQDx730mxc6sVW3adGv41lTSXXPBMOG63wj2kIbjSvjyTl+8in+x4N/6akLupJD5 AZpg== 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 :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=LrR8qOTyc2FmTQPvvkOVS0/SFIVMfkSPNGsvgWhRQX4=; b=MzbVT0SRtteEnMTMF0Rz+h1ts73Ac91Mbpw571ksMACIG0DhjMvWM7hQDKwu/U4ITL M7hH0xwR7IfaC9zuCsrXvEs8PNgmN9fljoPR2TPSZekFmBPH0x6n15vnmRuzHrVyRpdd NZg7VPL6s/Hs0K76jGbD1pzary8gSt+wNBSUVsUeTBtfqVnS2d10JsflJp5H/R9DQ7XO T2xBqJwmSio3DC1ttDrRJl9QAiMtO8byTmt2OBw/UQlY9z16UFoB6UEKUsJ0X6k5AcJ/ QEzPDTvB5Eq4sK5uQ6sxUZdIhSOCJgDcbAz3HExqiX4TFJtr0EFF0NSsClc58ejktneE NUsA== ARC-Authentication-Results: i=1; mx.google.com; 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 1-v6si4330489plx.463.2018.03.28.15.06.57; Wed, 28 Mar 2018 15:07:42 -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; 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 S1753311AbeC1WAu (ORCPT + 99 others); Wed, 28 Mar 2018 18:00:50 -0400 Received: from resqmta-ch2-11v.sys.comcast.net ([69.252.207.43]:53560 "EHLO resqmta-ch2-11v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752738AbeC1WAt (ORCPT ); Wed, 28 Mar 2018 18:00:49 -0400 Received: from resomta-ch2-16v.sys.comcast.net ([69.252.207.112]) by resqmta-ch2-11v.sys.comcast.net with ESMTP id 1J7gfBJQBqtFm1J7gfGEMQ; Wed, 28 Mar 2018 22:00:48 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-16v.sys.comcast.net with SMTP id 1J7ffx2DLcPEa1J7fft2Z7; Wed, 28 Mar 2018 22:00:48 +0000 Received: by gentwo.org (Postfix, from userid 1001) id 01ABA1161753; Wed, 28 Mar 2018 17:00:46 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id F28E81161730; Wed, 28 Mar 2018 17:00:46 -0500 (CDT) Date: Wed, 28 Mar 2018 17:00:46 -0500 (CDT) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Shakeel Butt cc: Andrey Ryabinin , Vladimir Davydov , Alexander Potapenko , Greg Thelen , Dmitry Vyukov , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] slab, slub: skip unnecessary kasan_cache_shutdown() In-Reply-To: <20180327230603.54721-1-shakeelb@google.com> Message-ID: References: <20180327230603.54721-1-shakeelb@google.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfIm8wOy0fVHbrEK7c4LQ6CLQMvQH6VB76EdtC50D+iRjSImjqcsfmh2dTW/HkCf368F4LYraN43YZ5vtAQy+oqdC5u6lhL72o5TZ+BP9nIX/xKB9WgWP kkDjW08V9ncjq/WoE/C8wjLmI3siQL0/A0QcbcnOIacnmQ4nz94q08lRlb1qh1hX7tqGceS0601iDr9bSzkSbwxpYWkPeyiDL5pp8vlzSIhi7bp9jzxtpZTG q/2DBpkqwIdNhAhtmRjQf7AHuZtiWppICr5d5gCqtxpOZYcKo0UjKZqe0BQkZL6BXu9uUCRThtqZiRUdt2T4+oxmht6WT955d/IuMVgVQWFbsmrf0o6q5W+h IgoFOLm1KjAQYjAuwZq8LF3iaRb4bLAiP2ihPoxh1Ok4cejVJC1b6W9aFKAmC9TQoJmUjnj1M5iOdQdc0h04WWn/2z9MZdVyEzXug9D+cUMPGinnk5zb9mVU XoE3nYb/dQUtMIcQBGFs5RUQynguafj607GcF2dOaqVVRwBQ8YrrL6e5gxE= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 27 Mar 2018, Shakeel Butt wrote: > The kasan quarantine is designed to delay freeing slab objects to catch > use-after-free. The quarantine can be large (several percent of machine > memory size). When kmem_caches are deleted related objects are flushed > from the quarantine but this requires scanning the entire quarantine > which can be very slow. We have seen the kernel busily working on this > while holding slab_mutex and badly affecting cache_reaper, slabinfo > readers and memcg kmem cache creations. Acked-by: Christoph Lameter