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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdWwDK0bB2B7iFXqMhkZrmw26vKDFZEv+z+mYYTavp5-Eg@mail.gmail.com>
Date:   Mon, 15 Nov 2021 08:58:51 +0100
From:   Geert Uytterhoeven <geert@...ux-m68k.org>
To:     Kees Cook <keescook@...omium.org>
Cc:     Tony Luck <tony.luck@...el.com>,
        Anton Vorontsov <anton@...msg.org>,
        Colin Cross <ccross@...roid.com>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] pstore/blk: Use "%lu" to format unsigned long

Hi Kees,

On Tue, Jun 29, 2021 at 11:12 PM Kees Cook <keescook@...omium.org> wrote:
> On Tue, 29 Jun 2021 12:37:00 +0200, Geert Uytterhoeven wrote:
> > On 32-bit:
> >
> >     fs/pstore/blk.c: In function ‘__best_effort_init’:
> >     include/linux/kern_levels.h:5:18: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
> >       5 | #define KERN_SOH "\001"  /* ASCII Start Of Header */
> >         |                  ^~~~~~
> >     include/linux/kern_levels.h:14:19: note: in expansion of macro ‘KERN_SOH’
> >        14 | #define KERN_INFO KERN_SOH "6" /* informational */
> >         |                   ^~~~~~~~
> >     include/linux/printk.h:373:9: note: in expansion of macro ‘KERN_INFO’
> >       373 |  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
> >         |         ^~~~~~~~~
> >     fs/pstore/blk.c:314:3: note: in expansion of macro ‘pr_info’
> >       314 |   pr_info("attached %s (%zu) (no dedicated panic_write!)\n",
> >         |   ^~~~~~~
>
> Applied to for-next/pstore, thanks!

Thanks!

> [1/1] pstore/blk: Use "%lu" to format unsigned long
>       https://git.kernel.org/kees/c/c5d4fb2539ca

Looks like this still hasn't made upstream, although it has been in
linux-next since the end of June?  The issue is still present (and
now an error with -Werror), but hidden due to commit d07f3b081ee63226
("mark pstore-blk as broken").

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ