lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJZ5v0jyPKoQM6DCqKtXR11ZwBrs64Nd8BApjcFk1Gv7F0YPpg@mail.gmail.com>
Date: Fri, 12 Jul 2024 19:25:07 +0200
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: Dave Jiang <dave.jiang@...el.com>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>, "Huang, Ying" <ying.huang@...el.com>, 
	Nathan Chancellor <nathan@...nel.org>, Andrew Morton <akpm@...ux-foundation.org>, 
	Len Brown <lenb@...nel.org>, Ho-Ren Chuang <horen.chuang@...ux.dev>, 
	Jonathan Cameron <Jonathan.Cameron@...wei.com>, linux-acpi@...r.kernel.org, 
	linux-kernel@...r.kernel.org, kernel test robot <lkp@...el.com>, 
	Dan Williams <dan.j.williams@...el.com>
Subject: Re: [PATCH] ACPI: HMAT: Mark hmat_set_default_dram_perf() as __init

On Fri, Jul 12, 2024 at 6:59 PM Dave Jiang <dave.jiang@...el.com> wrote:
>
>
>
> On 7/12/24 2:40 AM, Rafael J. Wysocki wrote:
> > On Thu, Jul 11, 2024 at 8:56 AM Huang, Ying <ying.huang@...el.com> wrote:
> >>
> >> Nathan Chancellor <nathan@...nel.org> writes:
> >>
> >>> After commit 4dc70b711dbc ("memory tier: consolidate the initialization
> >>> of memory tiers"), there is a modpost warning when
> >>> hmat_set_default_dram_perf() is not inlined into its callsite, as it
> >>> appears that default_dram_nodes may be accessed after its memory has
> >>> been freed.
> >>>
> >>>   WARNING: modpost: vmlinux: section mismatch in reference: hmat_set_default_dram_perf+0x18 (section: .text) -> default_dram_nodes (section: .init.data)
> >>>
> >>> The single callsite, hmat_init(), is __init, so this warning is not a
> >>> problem in reality but it is easily solvable by marking
> >>> hmat_set_default_dram_perf() as __init, which should have been done when
> >>> this function was added in commit 3718c02dbd4c ("acpi, hmat: calculate
> >>> abstract distance with HMAT").
> >>
> >> Good catch!  Thanks for your fix!  If it's necessary, feel free to add
> >>
> >> Reviewed-by: "Huang, Ying" <ying.huang@...el.com>
> >
> > Thanks for the patch and the review!
> >
> > I'm expecting Dan/Dave to take care of it (or please let me know if
> > I'm expected to pick it up).
> >
> >>> Reported-by: kernel test robot <lkp@...el.com>
> >>> Closes: https://lore.kernel.org/oe-kbuild-all/202406292310.hlRATeZJ-lkp@intel.com/
> >>> Signed-off-by: Nathan Chancellor <nathan@...nel.org>
> >>> ---
> >>> I left off a fixes tag as I assume this is going to be squashed into the
> >>> former change mentioned above, as it is still in mm-unstable, but feel
> >>> free to add one if the patch is going to be standalone.
>
> Should this be picked up by Andrew instead since it's already in mm-unstable?

This works too as long as someone picks it up. :-)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ