Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3161424lqp; Tue, 26 Mar 2024 00:53:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEsi99ofCNq1pS8TWcDwDOwj6g341Tcq6zW+Pk4cgBR9OzybGrLMk5ajfQxVv0Niard4k7v4/qpwnsyehwLxwUon2cV8jRjuHQSalWZA== X-Google-Smtp-Source: AGHT+IFrI21FuyQxkAXJ25i73OlyITEpy0pLHleBvzassLnxV4FU+42XGwCheQo+UCDaV3OilG96 X-Received: by 2002:a17:902:e552:b0:1e0:a615:c2f with SMTP id n18-20020a170902e55200b001e0a6150c2fmr10615115plf.27.1711439591073; Tue, 26 Mar 2024 00:53:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711439591; cv=pass; d=google.com; s=arc-20160816; b=Q7Ughc0j1gdZ8P8dV73rkJU5BUV3NbNknBq9hcniPtTOqz+gg19A69ByWswjHM4lod HvC1G/l1Kw/Of5MCs3UCjLG7hPwOh+J+CfSlx+OzXebfOHjJEkcRsnbljRC31Z2Dy8oM v1j2u1y/e1jOcB+FeU7pRQvRQTpz19ic4MkR8Lq98jgWAqaGN1r+BWsM4a2vsI6AnDZI w1U2HM/73VaJRvJmVfREcelQJF/HGBytGbAjhHwmOUwVpDvMNyvNu6ioJ6M8fe+ECfw0 fIZRgrvXqEEWqnP/wx7VSQBIB5THSg2IuFkn+0tKO2PyfLQ3hOyFyK6EjxVHnZZTZ2xd njBQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=shklYWkLA2oyBqnlJsmv6lUxL/P85ZOYE2ckd/gba5w=; fh=iD2T2l80fAI5qaBuXW/FseoRPfv8I2c/wDL9Xp8fHyo=; b=kjIGtQIzzDI/oGLOxt/j/2Vywsybdaw2VJPQrG3El3q40lKo5HYU3QJiIXuthIh/gT RIa8k3epW4MhDix/4Dxt5LqfaNA0IA5Pr2MpQkljCTj4IYAQXczzuQMmR4fCjEhoGVk7 5M4y0iKuUs1SM7NnC4p16VgD0bFx/0X0GZoU61cCJu8SXvPBFlN0ZGg9egdBXCBzy3n1 AQSo6Kql2JHEHeiInyfjR/AM0Kb3psA/PTrsqf/7iCmEpdY1NMbupaI3pQ3M8vI0x7LZ BgRq2Dk6b4aN8dUo1Xf7mcNzaoEaqHPEMFt60hAcF+8mKE0EcRLZS5jqJ1h9gtkhTpdE /Gjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="AoR/K3A9"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-118489-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118489-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n2-20020a170902d2c200b001e0c8089de7si2853931plc.591.2024.03.26.00.53.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 00:53:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118489-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="AoR/K3A9"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-118489-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118489-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6B498B22E87 for ; Tue, 26 Mar 2024 07:51:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A560133983; Tue, 26 Mar 2024 07:51:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="AoR/K3A9" Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29D7B1332BC for ; Tue, 26 Mar 2024 07:51:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711439498; cv=none; b=RioXOwDHVX7Ovpmnhdn6xw5EzkSYvnmyqf69o38VStze9maJojEvc/VR6JnZaswPg4CW7ECCVKCNtxJEW0raP+p+kZJfq3jhO8O04PvhfrGjSATOB6gAhutNB3ClU/TImPPw0CagERFG/KeShg3fHOLUPgZz802yekiIMQO4eT0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711439498; c=relaxed/simple; bh=qQOLO5yzYREaf6V5UZ46t3ExCwuenEVvpk1QDbdYz28=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=t2irJ4dpFBDW6yvna4Db/gzMNQzXQSe74o71lAE5DEM2WS8AB3odOZ0jK1KDOwAlRLQVU8142kUsOlmkikymCPqtINSM2HmpwIhHg67VXs8nD1ULUlP1lxNm/2DI8MoOjngus5YA3W49aA3fUpBu1ZgNi+eMJAu3oeU8ErnR5vY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=AoR/K3A9; arc=none smtp.client-ip=209.85.219.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-dcc80d6004bso5109634276.0 for ; Tue, 26 Mar 2024 00:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711439495; x=1712044295; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=shklYWkLA2oyBqnlJsmv6lUxL/P85ZOYE2ckd/gba5w=; b=AoR/K3A9wZgTr/H35zji2Ryw+JLZD17t8Szk3uZ0qBgeAWIMB4NN/BJPJl3JEUN120 JR/dFikYMYTHog58UqZeWY3abyXSZUyAQhcJeeiKJpnr/q3iy4u2x+ZiWRmiFXTuY4d0 +wc6Q4UTQkI1gwn3NZpEbigkgcPaUHuCPwDkFXgLpseEsrvifg9T5Hl2k2OELRZjb6IO 7HhpJaXTkfsKZer7xANqdvBDRaIHRAYTWZTqNzDY69XWEL0E6/FXTCmnffr7tHBlV5uz EdplvUVUqmH07En2kwV6V3HDpPDo4hp6r0Czwxmv6qUgkvmaDs7Irw3eU/uoAoJFXx2u w+jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711439495; x=1712044295; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=shklYWkLA2oyBqnlJsmv6lUxL/P85ZOYE2ckd/gba5w=; b=j5NOo4cZi4hWj+LJfh1AY6ZJKXw6PFsy3n0y9q9RdCTWvuBeHdqrverYBnfi7apw8+ 72bM0EBXPzhCbci5pgPysOK9yXjUmpLcYVhS62+BiB74UhzJlAHs07/+Q9gwPkhIebZe cnOKZomo0uqDsKdnbhge5RQsRJ7rmtd21DlCfB7NZeD9hV4w/1L+tM8pH5guQ4lqbvVR vZyC2rEMrSJqCi8I4P80h9F1+Fing9c2aJDuyJ/4znFDL8ruf+YUXGThZfhQSM2xsVPe FYd55pMNpLQQz1I+I1LEYiFu830VR8Nmh/y+JFEIAjauIvBJwgMSJj9Vc5JQfE0Jyzdr q3Fg== X-Forwarded-Encrypted: i=1; AJvYcCUwfxQzNV4OZMMaHhO2Sxq48cUYVpV3Gi0pzpoH9Q5sSNGbffAeZBV2arhp4AJIFs0YcPP9BgDr4H6pnw5QZP65An8H7Us6dEAizWI7 X-Gm-Message-State: AOJu0YyGim5Ea6wuO/y+04LJHHzWwQ+zGp84gkqvN/SfRexurR2tOViN gVSWF7/i7H8Hhw4eI+Uh5Pp7yyc4pUr5snoEOBcXTrFmY2S1w8KgTgJfWfqCpYgKtQ/2mxXCeGn lER784891zWVfI2X2QMzlR477oxyo+lcp1Rp2 X-Received: by 2002:a5b:181:0:b0:dce:2e9:a637 with SMTP id r1-20020a5b0181000000b00dce02e9a637mr7603025ybl.20.1711439494844; Tue, 26 Mar 2024 00:51:34 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240325182007.233780-1-sj@kernel.org> In-Reply-To: <20240325182007.233780-1-sj@kernel.org> From: Suren Baghdasaryan Date: Tue, 26 Mar 2024 00:51:21 -0700 Message-ID: Subject: Re: [PATCH v6 30/37] mm: vmalloc: Enable memory allocation profiling To: SeongJae Park Cc: vbabka@suse.cz, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, penguin-kernel@i-love.sakura.ne.jp, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, jhubbard@nvidia.com, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, vvvvvv@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, songmuchun@bytedance.com, jbaron@akamai.com, aliceryhl@google.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Mar 25, 2024 at 11:20=E2=80=AFAM SeongJae Park wrot= e: > > On Mon, 25 Mar 2024 10:59:01 -0700 Suren Baghdasaryan = wrote: > > > On Mon, Mar 25, 2024 at 10:49=E2=80=AFAM SeongJae Park = wrote: > > > > > > On Mon, 25 Mar 2024 14:56:01 +0000 Suren Baghdasaryan wrote: > > > > > > > On Sat, Mar 23, 2024 at 6:05=E2=80=AFPM SeongJae Park wrote: > > > > > > > > > > Hi Suren and Kent, > > > > > > > > > > On Thu, 21 Mar 2024 09:36:52 -0700 Suren Baghdasaryan wrote: > > > > > > > > > > > From: Kent Overstreet > > > > > > > > > > > > This wrapps all external vmalloc allocation functions with the > > > > > > alloc_hooks() wrapper, and switches internal allocations to _no= prof > > > > > > variants where appropriate, for the new memory allocation profi= ling > > > > > > feature. > > > > > > > > > > I just noticed latest mm-unstable fails running kunit on my machi= ne as below. > > > > > 'git-bisect' says this is the first commit of the failure. > > > > > > > > > > $ ./tools/testing/kunit/kunit.py run --build_dir ../kunit.out= / > > > > > [10:59:53] Configuring KUnit Kernel ... > > > > > [10:59:53] Building KUnit Kernel ... > > > > > Populating config with: > > > > > $ make ARCH=3Dum O=3D../kunit.out/ olddefconfig > > > > > Building with: > > > > > $ make ARCH=3Dum O=3D../kunit.out/ --jobs=3D36 > > > > > ERROR:root:/usr/bin/ld: arch/um/os-Linux/main.o: in function = `__wrap_malloc': > > > > > main.c:(.text+0x10b): undefined reference to `vmalloc' > > > > > collect2: error: ld returned 1 exit status > > > > > > > > > > Haven't looked into the code yet, but reporting first. May I ask= your idea? > > > > > > > > Hi SeongJae, > > > > Looks like we missed adding "#include " inside > > > > arch/um/os-Linux/main.c in this patch: > > > > https://lore.kernel.org/all/20240321163705.3067592-2-surenb@google.= com/. > > > > I'll be posing fixes for all 0-day issues found over the weekend an= d > > > > will include a fix for this. In the meantime, to work around it you > > > > can add that include yourself. Please let me know if the issue stil= l > > > > persists after doing that. > > > > > > Thank you, Suren. The change made the error message disappears. How= ever, it > > > introduced another one. > > > > Ok, let me investigate and I'll try to get a fix for it today evening. > > Thank you for this kind reply. Nonetheless, this is not blocking some re= al > thing from me. So, no rush. Plese take your time :) I posted a fix here: https://lore.kernel.org/all/20240326073750.726636-1-surenb@google.com/ Please let me know if this resolves the issue. Thanks, Suren. > > > Thanks, > SJ > > > Thanks, > > Suren. > > > > > > > > $ git diff > > > diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c > > > index c8a42ecbd7a2..8fe274e9f3a4 100644 > > > --- a/arch/um/os-Linux/main.c > > > +++ b/arch/um/os-Linux/main.c > > > @@ -16,6 +16,7 @@ > > > #include > > > #include > > > #include > > > +#include > > > > > > #define PGD_BOUND (4 * 1024 * 1024) > > > #define STACKSIZE (8 * 1024 * 1024) > > > $ > > > $ ./tools/testing/kunit/kunit.py run --build_dir ../kunit.out/ > > > [10:43:13] Configuring KUnit Kernel ... > > > [10:43:13] Building KUnit Kernel ... > > > Populating config with: > > > $ make ARCH=3Dum O=3D../kunit.out/ olddefconfig > > > Building with: > > > $ make ARCH=3Dum O=3D../kunit.out/ --jobs=3D36 > > > ERROR:root:In file included from .../arch/um/kernel/asm-offsets.c= :1: > > > .../arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no p= revious prototype for =E2=80=98foo=E2=80=99 [-Wmissing-prototypes] > > > 9 | void foo(void) > > > | ^~~ > > > In file included from .../include/linux/alloc_tag.h:8, > > > from .../include/linux/vmalloc.h:5, > > > from .../arch/um/os-Linux/main.c:19: > > > .../include/linux/bug.h:5:10: fatal error: asm/bug.h: No such fil= e or directory > > > 5 | #include > > > | ^~~~~~~~~~~ > > > compilation terminated. > > > > > > > > > Thanks, > > > SJ > > > > > > [...] > > > > -- > To unsubscribe from this group and stop receiving emails from it, send an= email to kernel-team+unsubscribe@android.com. >