Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5196183imm; Tue, 19 Jun 2018 06:41:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKVVrGdRMI+tQIXdXUISGLXwlYP1c0vBQm0kFVuInND1tlgJiBcWu12P9920Qg3YeVTT/dG X-Received: by 2002:a17:902:bd93:: with SMTP id q19-v6mr18698134pls.342.1529415714795; Tue, 19 Jun 2018 06:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529415714; cv=none; d=google.com; s=arc-20160816; b=b7SubfuyW1ggzDsUYovROtmKBsgEfMkIXwyDhJauNh12Pt5UpSr0qMWwbhuq8c6hRM R/ryafLrakjQkIc+aIvNVpj3qyiTYs6uimYfnNyMK7HBfvCnAWJHuoQ2vyONk9FRT2/q r3vRGibBXDJLkkRQ5CzK8GXEI3IEBLNhsP4N+U+TAJSsGI08xdOd2E917lPmyU80TU0Q mzMk8CgKSSdUpx05oVmADRIlbsljbkKlStqNTBogBFCMFmBVy7NG6zjTAUcqVYcbwTY9 +aVvYH+dAFLxeVGw4SclVz8SojhCK6aqPFbgKr4pEtYt2jlRKg2n3Ul32e9N7VfGtXTD kxYA== 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=MwcqPf4R8jm6gBUy+dsYMCf8NS25T3zzUFscgOrK8NA=; b=dflF0MH8ggm4DMAn000sVSNDs0xfXWaUmfngJ6JxpwOG2apAgcd9W+xsBoQq7bZw/0 aD3IHspKYr6VQAgc+GwrFOgy5i11LTe4hWelDocH7tIJAJYYSbxglxH7BULwpFYKFfOy SF6UMW+lm+tZ+3TEZtrVc0tTiIhRb+dLnkk932NlU944BMzTsBRP2EA/infnNjO/O/MQ 0L7I/LG/TMmOHsdnFmj5TXTQDK0L8Zc60/K/NUVDixl0APf8JMCD5q+lEb9WJml4yBJz NWrD1U7piGprJMMcONJyExXsbdm6OWUub6fXKDMs5XifABLTbsXD822LqlVXzhhVl0Fw GmRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=0vhqbVZV; 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=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj8-v6si16904021plb.439.2018.06.19.06.41.40; Tue, 19 Jun 2018 06:41:54 -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=@zx2c4.com header.s=mail header.b=0vhqbVZV; 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=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937580AbeFSNkm (ORCPT + 99 others); Tue, 19 Jun 2018 09:40:42 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:46275 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937365AbeFSNkl (ORCPT ); Tue, 19 Jun 2018 09:40:41 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 7a22384c for ; Tue, 19 Jun 2018 13:34:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=mail; bh=v4lhLQMfPfQOq8x4iO6yF01xxvg=; b=0vhqbV ZVop+fXlvrKVtZPMzOklLljrhAHTx2gZlr2vUcfkB0B3j5Wd1uS9N8xhIUgGFG3f JSHDszaHKuUI8Ge47S3Zpvv/dE2tHeuuYaDqKvytXAvkhxQXz33VqMMpnPc5NigG VTCU2UU/9EWvOOyc4ksQY/2SGbeviSNOFT5rv7cGIEW7kYHNxDo2TdENeS+kR4Lu vj4gfHCQipYXJbtVqyI75Bo7miWj/Rrrbmx2ptGEmedkDr1CsB6StbPrpPdqnzCG xv63mfd9G1wJJW255BwWBWF7jQlwKZdWfzViQVT3xra6prt3kizYuZfIuBG3Oo4G UbeU0eZsAbmAAH0A== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 61dcc413 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Tue, 19 Jun 2018 13:34:46 +0000 (UTC) Received: by mail-ot0-f171.google.com with SMTP id 92-v6so22576196otw.9 for ; Tue, 19 Jun 2018 06:40:38 -0700 (PDT) X-Gm-Message-State: APt69E23ri/aE1DSD3cCggvjfPJZUeDGubPgGH3DKKtx6jSNErevFQt+ 9uf4hqYuMkuH3eOV2uLknV2ftG0XgeDo0hocz8M= X-Received: by 2002:a9d:59ed:: with SMTP id u45-v6mr10896738otg.320.1529415637841; Tue, 19 Jun 2018 06:40:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Jason A. Donenfeld" Date: Tue, 19 Jun 2018 15:40:26 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Possible regression in "slab, slub: skip unnecessary kasan_cache_shutdown()" To: Dmitry Vyukov Cc: Shakeel Butt , aryabinin@virtuozzo.com, Alexander Potapenko , cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, 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 3:31 PM Dmitry Vyukov wrote: > Since I already looked at the code, if init and uninit can be called > concurrently, I think there is a prominent race condition between init > and uninit: a concurrent uninit can run concurrnetly with the next > init and this will totally mess things up. Good point; fixed. Though this doesn't have any effect on the issue here. :)