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] [thread-next>] [day] [month] [year] [list]
Message-ID: <cb49c1be-99a5-4aba-b3da-f902058a4996@linux.intel.com>
Date: Wed, 12 Nov 2025 13:20:50 +0800
From: "Mi, Dapeng" <dapeng1.mi@...ux.intel.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>,
 Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...nel.org>,
 "H. Peter Anvin" <hpa@...or.com>, Peter Zijlstra <peterz@...radead.org>
Cc: Kan Liang <kan.liang@...ux.intel.com>,
 Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
 Linux Next Mailing List <linux-next@...r.kernel.org>
Subject: Re: linux-next: build failure after merge of the tip tree


On 11/12/2025 12:42 PM, Stephen Rothwell wrote:
> Hi all,
>
> After merging the tip tree, today's linux-next build (i386 defconfig)
> failed like this:
>
> arch/x86/events/intel/ds.c: In function 'intel_pmu_drain_arch_pebs':
> arch/x86/events/intel/ds.c:2983:24: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
>  2983 |         top = (void *)((u64)cpuc->pebs_vaddr +
>       |                        ^
> arch/x86/events/intel/ds.c:2983:15: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>  2983 |         top = (void *)((u64)cpuc->pebs_vaddr +
>       |               ^
> cc1: all warnings being treated as errors

Thanks for reporting the issue. I suppose the below patch would fix the
building error. I would post it as an independent patch later.

diff --git a/arch/x86/events/intel/ds.c b/arch/x86/events/intel/ds.c
index c93bf971d97b..f695de9f7049 100644
--- a/arch/x86/events/intel/ds.c
+++ b/arch/x86/events/intel/ds.c
@@ -2979,7 +2979,7 @@ static void intel_pmu_drain_arch_pebs(struct pt_regs
*iregs,
        }

        base = cpuc->pebs_vaddr;
-       top = (void *)((u64)cpuc->pebs_vaddr +
+       top = (void *)((unsigned long)cpuc->pebs_vaddr +
                       (index.wr << ARCH_PEBS_INDEX_WR_SHIFT));

        index.wr = 0;


>
> Caused by commit
>
>   d21954c8a0ff ("perf/x86/intel: Process arch-PEBS records or record fragments")
>
> I have reverted commits
>
>   2093d8cf80fa ("perf/x86/intel: Optimize PEBS extended config")
>   02da693f6658 ("perf/x86/intel: Check PEBS dyn_constraints")
>   bd24f9beed59 ("perf/x86/intel: Add a check for dynamic constraints")
>   bb5f13df3c45 ("perf/x86/intel: Add counter group support for arch-PEBS")
>   52448a0a7390 ("perf/x86/intel: Setup PEBS data configuration and enable legacy groups")
>   e89c5d1f290e ("perf/x86/intel: Update dyn_constraint base on PEBS event precise level")
>   2721e8da2de7 ("perf/x86/intel: Allocate arch-PEBS buffer and initialize PEBS_BASE MSR")
>   d21954c8a0ff ("perf/x86/intel: Process arch-PEBS records or record fragments")
>
> for today.
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ