Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp56865iol; Fri, 10 Jun 2022 21:24:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjd187WLfg4XRi7qDDbpU5PMunr+4EFYp9PxI6CA1zfb46biq1G8PTJDsMzu0tQBHOuEQs X-Received: by 2002:a05:6a00:2386:b0:51c:3ca7:b185 with SMTP id f6-20020a056a00238600b0051c3ca7b185mr22905169pfc.8.1654921470889; Fri, 10 Jun 2022 21:24:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654921470; cv=none; d=google.com; s=arc-20160816; b=0kwdVcpYSjQyjg3Fwke4unAspj9TmZhMAivGYgze88we/g2wmpx0dIqg6XQQ31pw/M RjN0vkvqK684fSZ5eYAJXcQEAV7l+TMVNLYMkZoUEQE/BcWTsAVzFb0RIeksfsUueMvv RekTuMrKWeQe1fkrqkdjPW6VUHWhPblkYGBgG9zXUw4qdWgrano06rThV3RTN1MllYn/ 8vV9UIZYjbvX/X/nZ2hXZGvdHSIgwUXDsb4Hqw1g0dWrohnV7+0UtOdoqwYF/1dayY/3 WJZoAEyLEigSenoll43w2uzt/kU4+YhtB2HgOpce/VLKAh7Y4sRbWDdrH7lOL/Iu6nDO VSng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Kw7TRV3xOMpDRMX1N3uOp8oZ0RQsxX0dduWqnPe/SfA=; b=cmz4b43NGTj1EIeBuwErQrje7bXqFMauTBQDXO/l6a3X7rSGQyY8Z5e6lNMp3Xug6G tYM6CujjH5xq29JskJxBjm+wr2/KUcXMZADft6fREQ9VIEivAhCvPvDryCiQXCkADB1A TBHAoQI9SgUDUdK4BORnyqTtzP2oTrTS4Le1L6yAeIgdGZF4o0HQNTaFGjXMbRd67MwE nW7sSQcb8qP+GUwDc2gOmAaswkdTQ7qGHhnqA2b9bc6n8zOMmjnczOpv3wlI8nSQQk5V kuyl0+ES6PmnSoMH1ePTpKnTNcXBCfc7UOEYwHkDi8xv5UeXkONPlty3zTP6ug222gRy v/Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=LYXeKAgC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=openvz.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020a056a0015c900b0051b98c3d62asi863639pfu.233.2022.06.10.21.24.11; Fri, 10 Jun 2022 21:24:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@openvz-org.20210112.gappssmtp.com header.s=20210112 header.b=LYXeKAgC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=openvz.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350204AbiFKEKN (ORCPT + 99 others); Sat, 11 Jun 2022 00:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349333AbiFKEKK (ORCPT ); Sat, 11 Jun 2022 00:10:10 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1117C114A for ; Fri, 10 Jun 2022 21:10:09 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id y32so1279238lfa.6 for ; Fri, 10 Jun 2022 21:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz-org.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=Kw7TRV3xOMpDRMX1N3uOp8oZ0RQsxX0dduWqnPe/SfA=; b=LYXeKAgCayDc/nJfujFDaBTqICD7A563ebLFUcySAszO1SOjZQmmraGE0qYCD8alwJ VzPPaaNJPudxvDmDsYJ6KhPyIoz2dqwWi19NkNVu9ZGqxAkmRm4UJ0pO5HfE0ZSYDl/P Blh1HPOtPxFaSjk4QrymUQ+xh4eTz2ystGy6IlOOvZZg0vLEmi2ffZaNIEJXf97bKaeg tP0xKymrQE3zWhM8Dt8eWHTSHHFONpmh4HePTJM8oYnqKUn0qzjWx5ZijeyHooquSpks mv8ZAE1+HqQq5u+DNBG6Ke6gwYwdAWfuCv9nTlVY5LaZdTDfBWuoa9gKQlbo2T1AVduV LUSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Kw7TRV3xOMpDRMX1N3uOp8oZ0RQsxX0dduWqnPe/SfA=; b=e/79ycl1n9oCRDWU1SxOMMz6p74INW0UJJa7pnmJNgquAW/5/vleT0QPez8Vus57uX OL40I46fE70dvWLvSjV7D9BIqz9uxwsQ+hMv1Ot5BDdX0YWwJ/Pn4yV5pMwg1nxnhX4L i/em6UpWJKLaaYzXK/H5+59DDvhEkOEn+wRdK+4UZEjBootfu8dhhWHUESjgLYhuStef 3rSsFwPEfWDMolMRFf0SA6v6qDGZWFMk8tsQN0wd8u5H56icDMjmH1oldA0L4etY/n0d 9nIY6A68fHbdyUHWplT/2arb35yr8DN0YwefzZ5ADOeHJRZ1pl5HKl9QNBW7A+VLiIKf EuQA== X-Gm-Message-State: AOAM531ZSYQBArVepmNHsb+7cAA1mwvEpKoo2mU8oILqqSq4b9CJLOuk unGr7RRKuFrPaL0wZe52h4LmHg== X-Received: by 2002:a05:6512:31c3:b0:479:3c8a:b39f with SMTP id j3-20020a05651231c300b004793c8ab39fmr18530160lfe.111.1654920607427; Fri, 10 Jun 2022 21:10:07 -0700 (PDT) Received: from [192.168.1.65] ([46.188.121.129]) by smtp.gmail.com with ESMTPSA id m12-20020a2e934c000000b00255cb942318sm212291ljh.110.2022.06.10.21.10.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Jun 2022 21:10:07 -0700 (PDT) Message-ID: <355332ef-838b-3847-5a95-de5017b0301d@openvz.org> Date: Sat, 11 Jun 2022 07:10:06 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] mm: kmem: make mem_cgroup_from_obj() vmalloc()-safe Content-Language: en-US To: Roman Gushchin , Andrew Morton Cc: linux-kernel@vger.kernel.org, Naresh Kamboju , Qian Cai , Kefeng Wang , Linux Kernel Functional Testing , Shakeel Butt References: <20220610180310.1725111-1-roman.gushchin@linux.dev> From: Vasily Averin In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/10/22 21:10, Roman Gushchin wrote: > On Fri, Jun 10, 2022 at 11:03:10AM -0700, Roman Gushchin wrote: >> Currently mem_cgroup_from_obj() is not working properly with objects >> allocated using vmalloc(). It creates problems in some cases, when >> it's called for static objects belonging to modules or generally >> allocated using vmalloc(). >> >> This patch makes mem_cgroup_from_obj() safe to be called on objects >> allocated using vmalloc(). >> >> It also introduces mem_cgroup_from_slab_obj(), which is a faster >> version to use in places when we know the object is either a slab >> object or a generic slab page (e.g. when adding an object to a lru >> list). >> >> Suggested-by: Kefeng Wang >> Signed-off-by: Roman Gushchin >> Tested-by: Linux Kernel Functional Testing >> Acked-by: Shakeel Butt > > Andrew, > > this patch is supposed to fix boot issues on arm introduced by > the commit "net: set proper memcg for net_init hooks allocations". > > But as no I don't see this commit in linux-next or any mm branches, > so I'm not sure if it's in stable or not. So I didn't add the Fixes > tag. If it isn't in stable yet, I'd just put the fix before the problematic > commit. Roman, Andrew dropped "net: set proper memcg for net_init hooks allocations" few days ago, but I hope he will re-apply it again after your patch. Thank you very much for your help! Vasily Averin