Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5295309imm; Tue, 19 Jun 2018 08:09:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKIv1gbWCX5tv4v41B5JtBSgiIiCMUSv5ADf4WrKCdllnQTsny0PvY+bv9Et/l17SddkIfI X-Received: by 2002:a62:f705:: with SMTP id h5-v6mr18728788pfi.169.1529420989173; Tue, 19 Jun 2018 08:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529420989; cv=none; d=google.com; s=arc-20160816; b=wE8j2MTuXqNNuQQaEuwiK3zDl17qZ37R8LHv6XwjDJwXQ46Te5ABtao8/LnGd1hYQ5 zzBJ8ckQhtwKBD3lV8ZotiKhHfeE53cnIc9yDSQ0+EGs7c09+rVIU030oWGPfbVLgWAp M45Hsjp8od1bJOlvs/mWg4WBOMkfJXBrqGn7rp8zQ8YwpgvSGlNP1Od+VcoUNw9uOVyh 0HJ+F4fhmOjeYPlAcQ6K9MWAUa0DKHmd2SrGG9t4FvwzFo1thqGAHPjejkP9r+MLX/jZ OFnOxd74ZAI/M+7lwzVqTCsZpmYSBgdmi/BXwt+ciEQVj/LSn+fLNJ1WCCGdta9Mga5U nBYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=opJoBFuvvDtEnN7Pz8o9xKJnsr6HvUDmf8Lm5gbV+xI=; b=jSMlIb0Y0O4cPXwC1Q/5ksJ/+YRcLTZ1K/NiYR+NrFAdHo2gzONe05XjKjalhcxfDb ttu/a4D/wZ5Tu5vjkYr9MJFv341qLQL5yvlg5z13hPiXq65E6ojmRi9yFKbLsLHi9ddO 8TczSsPFqhScPgyrea7b9mlQln3oqKuZ6d/EZ2va0ieDnaH0bRtSoWV92e9BtlHotSLM H4ohCQTOCnvWAG5MukkhZnbJO4yeoUJURJHKcTiWp1YjqgWbZz+UPLc0dtIHw7hhe29X LuKm9e27fqi+9Bx9HmZxcSNY92p5AdF+I68J6nmk2m9lWwWimofmes2/u1ANPS2pynld Z2dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VUHCFEpV; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12-v6si14570904pgt.384.2018.06.19.08.09.23; Tue, 19 Jun 2018 08:09:49 -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=@google.com header.s=20161025 header.b=VUHCFEpV; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757260AbeFSPIm (ORCPT + 99 others); Tue, 19 Jun 2018 11:08:42 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:43258 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756749AbeFSPIl (ORCPT ); Tue, 19 Jun 2018 11:08:41 -0400 Received: by mail-wr0-f193.google.com with SMTP id d2-v6so3914wrm.10 for ; Tue, 19 Jun 2018 08:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=opJoBFuvvDtEnN7Pz8o9xKJnsr6HvUDmf8Lm5gbV+xI=; b=VUHCFEpV25krnCLg2LqpIo5Wnq+yd+zaTTFFUmJWa7g9e+TXPdkoUHRIHiFUMvZG7V A1lYa9ntAObWRiqnjJbJ+IOl0XYr+XgRXAlJdqk/UBilY4YGoRgjgk2pANtdvA3K91Sa gHqS2DwSZLLZ/YH8w19o/Rf+sbi9FH6RWIo0RwqVvd7bUyXStl7uOx0PwmxUv6ewvkpD dvW/L/jbYeh/3BXs+rhvWXBVxIKiym5CVv9kqBrdz6UluGrnhpIbobRC6sKvQOFoN3cr K+vxMcJ5Hp82MxVgwox9NvCuqHDoev3E3M3lROUxrD/Lr5B46M60avIc1eT89aiAYyCV KGIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=opJoBFuvvDtEnN7Pz8o9xKJnsr6HvUDmf8Lm5gbV+xI=; b=lFv9VfDt2iqLIjBqyvn2biiHH0ro8IN2NMSC4av2jX/0m3gfGEGJxzgvgsF611rc72 5JG4Tm6XEcizMZo1iSR0WrcGyrt3/WVoc+M+5WIwuVnjGhbt35uDH9z6m+pPNENZVmzc uYS6suLas96ookcpavh2c1Dl/MjvYI3CfMCRqkyjY1ONh1/X/s+AvzNCaftKBcm9CXIG YF+LcDkYfd7KjnVjJ5XslFzKA6vP48lo3bvN+2kvx7chL9IWLNyZtM+JB9TBIsTGV0jk xkCf28wtLB5MTqI5tZMltYQY5Tl1sE9nlqzT3tBdoY5xumKyTtrO4xI1LPQYf8rEsOht XTvQ== X-Gm-Message-State: APt69E0t4ay6QwyV3wL9CCZW2PqU9SYTWb92bj9cz1uIlv4Tt2ExPy1J 6IQZF+ckegrkvePO6IQoVdEDjxjc8Y0v3haRv/ZmNg== X-Received: by 2002:adf:9525:: with SMTP id 34-v6mr13603463wrs.99.1529420919649; Tue, 19 Jun 2018 08:08:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Shakeel Butt Date: Tue, 19 Jun 2018 08:08:27 -0700 Message-ID: Subject: Re: Possible regression in "slab, slub: skip unnecessary kasan_cache_shutdown()" To: Jason@zx2c4.com Cc: Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , kasan-dev@googlegroups.com, Linux MM , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 19, 2018 at 6:05 AM Jason A. Donenfeld wrote: > > HI Dimitry, > > On Tue, Jun 19, 2018 at 6:55 AM Dmitry Vyukov wrote: > > Your code frees all entries before freeing the cache, right? If you > > add total_entries check before freeing the cache, it does not fire, > > right? > > Yes, certainly. > > > Are you using SLAB or SLUB? We stress kernel pretty heavily, but with > > SLAB, and I suspect Shakeel may also be using SLAB. So if you are > > using SLUB, there is significant chance that it's a bug in the SLUB > > part of the change. > > Nice intuition; I am indeed using SLUB rather than SLAB... > Can you try once with SLAB? Just to make sure that it is SLUB specific.