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: <CA+G9fYvkpmqGr6wjBNHY=dRp71PLCoi2341JxOudi60yqaeUdg@mail.gmail.com>
Date: Thu, 21 Aug 2025 19:13:18 +0530
From: Naresh Kamboju <naresh.kamboju@...aro.org>
To: open list <linux-kernel@...r.kernel.org>, linux-mips@...r.kernel.org, 
	lkft-triage@...ts.linaro.org, Linux Regressions <regressions@...ts.linux.dev>
Cc: Anders Roxell <anders.roxell@...aro.org>, 
	Thomas Bogendoerfer <tsbogend@...ha.franken.de>, Arnd Bergmann <arnd@...db.de>, 
	Ben Copeland <benjamin.copeland@...aro.org>, Dan Carpenter <dan.carpenter@...aro.org>
Subject: Re: next-20250821 cacheflush.h:61:3: error: incompatible pointer
 types passing 'memdesc_flags_t *' to parameter of type 'volatile unsigned
 long *' [-Werror,-Wincompatible-pointer-types]

On Thu, 21 Aug 2025 at 16:26, Naresh Kamboju <naresh.kamboju@...aro.org> wrote:
>
> The following build warnings / errors noticed with mips defconfig with
> clang-20 and gcc-12 toolchains.
>
> Regression Analysis:
> - New regression? yes
> - Reproducibility? yes
>
> Build regression: next-20250821 cacheflush.h:61:3: error: incompatible
> pointer types passing 'memdesc_flags_t *' to parameter of type
> 'volatile unsigned long *' [-Werror,-Wincompatible-pointer-types]

Anders bisected and found this,

# first bad commit:
   [30f45bf18d55a411f576afe48d50e78a2eef7e23]
    mm: introduce memdesc_flags_t

>
> Reported-by: Linux Kernel Functional Testing <lkft@...aro.org>
>
> * mips, build
>   - clang-nightly-allnoconfig
>   - clang-nightly-defconfig
>   - clang-nightly-lkftconfig-hardening
>   - clang-nightly-lkftconfig-lto-full
>   - clang-nightly-lkftconfig-lto-thing
>   - clang-nightly-tinyconfig
>   - gcc-12-allnoconfig
>   - gcc-12-ath79_defconfig
>   - gcc-12-bcm47xx_defconfig
>   - gcc-12-bcm63xx_defconfig
>   - gcc-12-cavium_octeon_defconfig
>   - gcc-12-defconfig
>   - gcc-12-malta_defconfig
>   - gcc-12-rt305x_defconfig
>   - gcc-12-tinyconfig
>   - gcc-13-lkftconfig-hardening
>   - gcc-8-allnoconfig
>   - gcc-8-ath79_defconfig
>   - gcc-8-bcm47xx_defconfig
>   - gcc-8-bcm63xx_defconfig
>   - gcc-8-cavium_octeon_defconfig
>   - gcc-8-defconfig
>   - gcc-8-lkftconfig-hardening
>   - gcc-8-malta_defconfig
>   - gcc-8-rt305x_defconfig
>   - gcc-8-tinyconfig
>
>
> ## Build error mips
> In file included from include/linux/cacheflush.h:5:
> arch/mips/include/asm/cacheflush.h:61:3: error: incompatible pointer
> types passing 'memdesc_flags_t *' to parameter of type 'volatile
> unsigned long *' [-Werror,-Wincompatible-pointer-types]
>    61 |                 folio_set_dcache_dirty(folio);
>       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> arch/mips/include/asm/cacheflush.h:42:27: note: expanded from macro
> 'folio_set_dcache_dirty'
>    42 |         set_bit(PG_dcache_dirty, &(folio)->flags)
>       |                                  ^~~~~~~~~~~~~~~
> arch/mips/include/asm/bitops.h:89:70: note: passing argument to
> parameter 'addr' here
>    89 | static inline void set_bit(unsigned long nr, volatile unsigned
> long *addr)
>       |                                                                      ^
>
> In file included from include/linux/cacheflush.h:5:
> arch/mips/include/asm/cacheflush.h:70:3: error: incompatible pointer
> types passing 'memdesc_flags_t *' to parameter of type 'volatile
> unsigned long *' [-Werror,-Wincompatible-pointer-types]
>    70 |                 folio_set_dcache_dirty(page_folio(page));
>       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> arch/mips/include/asm/cacheflush.h:42:27: note: expanded from macro
> 'folio_set_dcache_dirty'
>    42 |         set_bit(PG_dcache_dirty, &(folio)->flags)
>       |                                  ^~~~~~~~~~~~~~~
> arch/mips/include/asm/bitops.h:89:70: note: passing argument to
> parameter 'addr' here
>    89 | static inline void set_bit(unsigned long nr, volatile unsigned
> long *addr)
>       |                                                                      ^
> 2 errors generated.
>
> ## Source
> * Kernel version: 6.17.0-rc2
> * Git tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next.git
> * Git describe: next-20250821
> * Git commit: 7fa4d8dc380fbd81a9d702a855c50690c9c6442c
> * Architectures: mips
> * Toolchains: clang-20 gcc-12
> * Kconfigs: defconfig
>
> ## Build
> * Build log: https://qa-reports.linaro.org/api/testruns/29616797/log_file/
> * Build details mips:
> https://regressions.linaro.org/lkft/linux-next-master/next-20250821/build/clang-nightly-defconfig/
> * Build plan: https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/builds/31aRYnoYJbpEW0zZyTGvO2w7OCn
> * Build link: https://storage.tuxsuite.com/public/linaro/lkft/builds/31aRYnoYJbpEW0zZyTGvO2w7OCn/
> * Kernel config:
> https://storage.tuxsuite.com/public/linaro/lkft/builds/31aRYnoYJbpEW0zZyTGvO2w7OCn/config
>
> --
> Linaro LKFT
> https://lkft.linaro.org

- Naresh

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ