Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4259097imm; Tue, 11 Sep 2018 09:10:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbI4IrpKLAtRESoWKkWW1CW4XJQN57cc0X0Vpshvh5B0c4bvzjxA3Q2s5QzdtTooZgZA1hS X-Received: by 2002:a63:5706:: with SMTP id l6-v6mr29929541pgb.118.1536682250957; Tue, 11 Sep 2018 09:10:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536682250; cv=none; d=google.com; s=arc-20160816; b=xsad89Rzv0IupSRiKnMu+Y8jfIq9N3416wChRH5IVpYA87FNDeAMDv64e70YSF3JFh TJtHH/oE0MLt3SvPvnaZ3+kVgDNMbi7FhAyOfPhI+HQqyBony7CyhpHKZ+zd8tt9+ySe RIjdGeu4QjjL1VXoEPiKAamxlem8S0CCh9jvyt6XP00jW04PvTPIIqGQOgYMn+nNiIKo PbVs2v4e2RVxgVEFOE2nkHBPmE1guDEM7HbZI3aUuTD4OBVc9bNJ2zR+ULS1QMeYfL1z imPClL3aNU0hDqk0Dqvz4XhIc5O63xTsF7QOetcGEo+NKmv/6qvrhXTGFB7IJcpmru6m Rjeg== 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; bh=kdQUiC7bpd5vbBlJ7GRQBgQSqfrL2yXOQL3N0xGBv3c=; b=kIuaWoxHJTQUkawP4Q6NcOAzdZ/VzVZAyxGjoZQg5Cub7TNWcwMdZjud06fLwgD3HL 9WQGZdYjuBHN6IsQSPlN+/vYdFqib52EJ6fcAvySQynjzKfDeQHjZzcTK0Vji7ru5/bz DN2P/OFDo8kLMXrMR6nJbHBwcvN/5gyeI+Z7mO5ycxBeoFKOI5czeJ0B2o+9ThWZvTay OQls/7HJsbImqviucJ6YoZsQyGYcGDd6lPG7iKmkUxbMMKu/AF1nXNH7r+b9ABGgJPk/ H2hDoXvL4t/K4rZqDjDXz74ln1cJF/F18GW+uLVKQ10Lsz6DnvBHB+SDyTaCCUwZUly9 dgFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=apVho8hZ; 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 34-v6si13906090pgt.95.2018.09.11.09.10.32; Tue, 11 Sep 2018 09:10:50 -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=apVho8hZ; 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 S1727730AbeIKVKI (ORCPT + 99 others); Tue, 11 Sep 2018 17:10:08 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:37542 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726622AbeIKVKI (ORCPT ); Tue, 11 Sep 2018 17:10:08 -0400 Received: by mail-it0-f65.google.com with SMTP id h20-v6so2232469itf.2 for ; Tue, 11 Sep 2018 09:10:08 -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=kdQUiC7bpd5vbBlJ7GRQBgQSqfrL2yXOQL3N0xGBv3c=; b=apVho8hZVL3Lo4Mnu4IW1bcNTHZKUGbmiPLVuzlpFQxuePNX+W/SDgI3PtOjrEOeBE HhVFqNE0LDzXV8V3lhd9/ZPim9SnyK7yWRhJ2I2OLXeN2H/m1qRlFuEXhj5HUEVffoyz EfGreZt2adFuX/R6fPbGG7KYCcUJ6Cqg/PrkJSIcLEgKRN0Zk6xiwbAfBRVuIWP5KWw5 JMIKjONJLIc2/7yyvk22IqCdNRqPcaIxcfYsvuFnwok9NK7IKnNbxFVnxNkWqt4dboRM x2I6GH1yU9CvUOk6At9v56b/UVlrVBCNroZhOhENHsL/pmQpPO1SX4KGJYGCMdH7CSsG u4fA== 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=kdQUiC7bpd5vbBlJ7GRQBgQSqfrL2yXOQL3N0xGBv3c=; b=nbeKIf5lk40+nEjeLOFkYmEV+R76YmuRblPtqjOhppuYV1MyF0WIaXDRHTmnU0SkIN SNLo7MbbSBSMbMiTiWzvXbE90pR71+Kbyn1AR7VesITXNQe1g6y6yC+D/85YYaRJ+GSU c0uH7aABjllRdizreA7g3y4qtoG4qMTIR4IgGnpqHekqsKQjVLhN8efF582BX3vyoyuZ cAS/7Xx0EDYh+/anDecuSVZPO0UGfO2R246gXK0IypYSUiOvkVb0pen109YRUaALcYrY /4WTOw5Ez45I3cA1WYuG+YOKRISstjDq3wxWlhP8+Dg2x6MwJPRAH7VO6lR+FbuwkGyg UEBg== X-Gm-Message-State: APzg51BegSBwV+UvKdPUl0iSwNgyrSjh+jSE6XdxI9C8EL9b25SruMQK YLMbpXrpSYGpFw2uMzavprMpG1iGo/PrzbFCU+t5IQ== X-Received: by 2002:a24:5f92:: with SMTP id r140-v6mr2108193itb.95.1536682207651; Tue, 11 Sep 2018 09:10:07 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:c54e:0:0:0:0:0 with HTTP; Tue, 11 Sep 2018 09:10:07 -0700 (PDT) In-Reply-To: <3f2dee71-1615-4a34-d611-3ccaf407551e@virtuozzo.com> References: <3f2dee71-1615-4a34-d611-3ccaf407551e@virtuozzo.com> From: Andrey Konovalov Date: Tue, 11 Sep 2018 18:10:07 +0200 Message-ID: Subject: Re: [PATCH v6 16/18] khwasan, mm, arm64: tag non slab memory allocated via pagealloc To: Andrey Ryabinin Cc: Alexander Potapenko , Dmitry Vyukov , Catalin Marinas , Will Deacon , Christoph Lameter , Andrew Morton , Mark Rutland , Nick Desaulniers , Marc Zyngier , Dave Martin , Ard Biesheuvel , "Eric W . Biederman" , Ingo Molnar , Paul Lawrence , Geert Uytterhoeven , Arnd Bergmann , "Kirill A . Shutemov" , Greg Kroah-Hartman , Kate Stewart , Mike Rapoport , kasan-dev , linux-doc@vger.kernel.org, LKML , Linux ARM , linux-sparse@vger.kernel.org, Linux Memory Management List , Linux Kbuild mailing list , Kostya Serebryany , Evgeniy Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Jann Horn , Mark Brand , Chintan Pandya , Vishwath Mohan 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 Fri, Sep 7, 2018 at 6:06 PM, Andrey Ryabinin wrote: > > > On 08/29/2018 02:35 PM, Andrey Konovalov wrote: > >> void kasan_poison_slab(struct page *page) >> { >> + unsigned long i; >> + >> + if (IS_ENABLED(CONFIG_SLAB)) >> + page->s_mem = reset_tag(page->s_mem); > > Why reinitialize here, instead of single initialization in alloc_slabmgmt()? Hm, don't see why I did it this way, looks odd to me as well. Will fix in v7, thanks!