Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5171223imm; Tue, 19 Jun 2018 06:18:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIJRfZN5J7CKMdcTrpxmHTAlKO864EV4Esj74USIWca1damzultm34HqVMGyrV/7quNUtTu X-Received: by 2002:a65:6397:: with SMTP id h23-v6mr14888278pgv.380.1529414293085; Tue, 19 Jun 2018 06:18:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529414293; cv=none; d=google.com; s=arc-20160816; b=VlkigDxenBiVQMZoWwbXh3XZXX0KFOiw9ka8KVU4f3KrqTd8DCGQpdogBJm07uQ9W5 7Jp5wny9soBxpZdm24wlGmzD37xUL2lBI2AaNltvqV78v+di3haRd7UtOzPP6Dxb/Pet 85SX/1f0bylp35azdTgv6Sij6Knyt0qfdA20dzm0V3k8XlVsImKeL7oxPSu3EjYI+Lub 3pw5qp67FRO9EdrkltqUfh6dQDdmyo9QSziTeYYbObEQ7f+BaI2NyVYk4dOY48JOn1YH JwGM+YV9sFrTTVzhnfwYbAkiSI5aJBllQsC5z5CS/mIg2lf45xcgr/fDVZEpIEYTUD+F WyEQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=JGHpAec035pn7EWQUeWVNHXsdxbfHmwPOrB1M3nA4YY=; b=rvWCFfQebyrEfBA4pNhgN2Ja5DSwOBFFk+pu2YAwB1CwA/+ZrX2vYRn13ZTex4OcsP Jbbi+Kx6DLEvR9joSxwK9LXLL4VSsRqsv7460cvIK+GNkWA56hDZ1mfQWcwZoRXL6xvt Y66uZk3/kp/ZTzFcJe7RQD+Vm7AhVLvy9c+eWR466r9bJ8Fbvl5qSH7feJ//dBz1SK1t llh48HPo7XJL8av6UBvejQXXmeRoWNaoK2RaJaBiR8vxIrseMBAryZR7o1aQ4ut4K3hg Ho3OpKFp1OhdXs5+6JXOpCisn86k+v88nUdXUtg4irUPLTWQQGskjMuCYLft8YfMKMEU VSLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZaRwBa6Y; 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 a33-v6si17235707pld.167.2018.06.19.06.17.59; Tue, 19 Jun 2018 06:18:13 -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=ZaRwBa6Y; 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 S1756935AbeFSNRV (ORCPT + 99 others); Tue, 19 Jun 2018 09:17:21 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:45349 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756675AbeFSNRT (ORCPT ); Tue, 19 Jun 2018 09:17:19 -0400 Received: by mail-pl0-f66.google.com with SMTP id c23-v6so10942327plz.12 for ; Tue, 19 Jun 2018 06:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JGHpAec035pn7EWQUeWVNHXsdxbfHmwPOrB1M3nA4YY=; b=ZaRwBa6YDFlxU5JzD6W8Dc3hLDlqG8UwGGEr5B0JHg/JtztD6gpFGantST5sH8YWcq d4BOPN1RxxMGxF82I5+twIR0n3TxtcLHePT3nM0EN5wwCJNq+4RRDEv7MpHh4rWqzdaa muJn0z4bgQCoUv6y34LL0G6fLs2KVkI/+CDoORKbVMERxg0C7ycmjZoCu+Avw9Z/j/eu LlmFyXwFzhUN4dlmHryeKUa5wpI8y/SdWaKSRpPaQchG/2N3RBSvFsgDeuarPbAmPHoE AzDvxRzTV0j8J0ISvpTd03zDKKKQ0YV3ia9unTYTAiQq95w8JWrtC2/RzzRl17w6Cezm WpeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=JGHpAec035pn7EWQUeWVNHXsdxbfHmwPOrB1M3nA4YY=; b=eW3U5zcM5Sx4qyzU92ZD1V9CFFJfxWV7IPWjjhgWuH4UJBFwCu+8DwQTEdKtPdVNs9 9rJd9oDUXCkq+yA6goQtWSNfnpvux6HGiTlS/jBVQ7n1ETus8JLTcYpdjAIP1QO2Ezn6 9ZiCWlrv5ZPzyyNXhORH8NT7S2hpocMMFYdmxgRp6vO4c7LoVP3g4KO63fcnj7zoHJMP c0A0eviUKmPQG9eC/GGoq/SZDIrBjHk4KcyP6Cf1x3i5ttYeIZMi0BuqeG61xuV7RiNH U/QU5jxTtWkjjnlxTeCUd8m+/8qovJJ13CBGyk5vT1HqKJUm9AfR2Z0nULkJ7o00392h OIzg== X-Gm-Message-State: APt69E2uI6NpB/mW1nib2mSPWpAcWTlGlZyZFgnKtIG4Bru8JOsV6KQs dG53r0xlam3qL6e480p1+nJ8TG/UQHETs93Irryo2g== X-Received: by 2002:a17:902:8491:: with SMTP id c17-v6mr18674320plo.97.1529414238787; Tue, 19 Jun 2018 06:17:18 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:de2:0:0:0:0 with HTTP; Tue, 19 Jun 2018 06:16:58 -0700 (PDT) In-Reply-To: References: From: Dmitry Vyukov Date: Tue, 19 Jun 2018 15:16:58 +0200 Message-ID: Subject: Re: Possible regression in "slab, slub: skip unnecessary kasan_cache_shutdown()" To: "Jason A. Donenfeld" Cc: Shakeel Butt , Andrey Ryabinin , Alexander Potapenko , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , kasan-dev , 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 3:04 PM, 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... Now the reasonable question is: does SLUB path of f9e13c0a5a33d1eaec374d6d4dab53a4f72756a0 have a bug? syzbot has stressed SLAB version to death, and any such issues would pop up very loudly, but I am not sure what is the amount of testing for SLUB.