mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ronald Warsow <rwarsow@gmx.de>
To: linux-kernel@vger.kernel.org
Cc: stable@vger.kernel.org
Subject: Re: [PATCH 6.2 000/141] 6.2.7-rc1 review
Date: Wed, 15 Mar 2023 17:01:26 +0100	[thread overview]
Message-ID: <dc9c9c4b-809a-bb08-b3af-ddaf4518cdf8@gmx.de> (raw)

Hi Greg

6.2.7-rc1

compiles [1], boots and runs here on x86_64
(Intel i5-11400, Fedora 38 Beta)

Thanks

Tested-by: Ronald Warsow <rwarsow@gmx.de>


[1]
compiles *not* without warnings since compiler version change from
Fedora 37 => Fedora 38 *Beta*

It's *not* a regression from kernel 6.2.6 => 6.2.7-rc1 !

cause I'm no developer I can't decide what it is: code or compiler.

anyway I I filled a Red Hat bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=2178317

and place the warnings here in case it is coding.
if so, please let me know, so I could suggest to close the bug report !


compilers
=========
F38: gcc version 13.0.1 20230310 (Red Hat 13.0.1-0) (GCC)
F37: gcc-12.2.1-4.fc37

output compiling 6.2.7-rc1
==========================

  CC      fs/f2fs/file.o
In function ‘btrfs_show_u64’,
     inlined from ‘btrfs_space_info_show_disk_total’ at
fs/btrfs/sysfs.c:836:1:
fs/btrfs/sysfs.c:636:13: warning: array subscript -35 is outside array
bounds of ‘struct kobject[144115188075855871]’ [-Warray-bounds=]
   636 |         val = *value_ptr;
       |         ~~~~^~~~~~~~~~~~
In function ‘btrfs_show_u64’,
     inlined from ‘btrfs_space_info_show_bytes_may_use’ at
fs/btrfs/sysfs.c:832:1:
fs/btrfs/sysfs.c:636:13: warning: array subscript -44 is outside array
bounds of ‘struct kobject[144115188075855871]’ [-Warray-bounds=]
   636 |         val = *value_ptr;
       |         ~~~~^~~~~~~~~~~~
In function ‘btrfs_show_u64’,
     inlined from ‘btrfs_space_info_show_bytes_readonly’ at
fs/btrfs/sysfs.c:833:1:
fs/btrfs/sysfs.c:636:13: warning: array subscript -43 is outside array
bounds of ‘struct kobject[144115188075855871]’ [-Warray-bounds=]
   636 |         val = *value_ptr;
       |         ~~~~^~~~~~~~~~~~
In function ‘btrfs_show_u64’,
     inlined from ‘btrfs_space_info_show_bytes_zone_unusable’ at
fs/btrfs/sysfs.c:834:1:
fs/btrfs/sysfs.c:636:13: warning: array subscript -41 is outside array
bounds of ‘struct kobject[144115188075855871]’ [-Warray-bounds=]
   636 |         val = *value_ptr;
       |         ~~~~^~~~~~~~~~~~
In function ‘btrfs_show_u64’,
     inlined from ‘btrfs_space_info_show_disk_used’ at
fs/btrfs/sysfs.c:835:1:
fs/btrfs/sysfs.c:636:13: warning: array subscript -36 is outside array
bounds of ‘struct kobject[144115188075855871]’ [-Warray-bounds=]
   636 |         val = *value_ptr;
       |         ~~~~^~~~~~~~~~~~
In function ‘btrfs_show_u64’,
     inlined from ‘btrfs_space_info_show_flags’ at fs/btrfs/sysfs.c:827:1:
fs/btrfs/sysfs.c:636:13: warning: array subscript -34 is outside array
bounds of ‘struct kobject[144115188075855871]’ [-Warray-bounds=]
   636 |         val = *value_ptr;
       |         ~~~~^~~~~~~~~~~~
In function ‘btrfs_show_u64’,
     inlined from ‘btrfs_space_info_show_total_bytes’ at
fs/btrfs/sysfs.c:828:1:
fs/btrfs/sysfs.c:636:13: warning: array subscript -48 is outside array
bounds of ‘struct kobject[144115188075855871]’ [-Warray-bounds=]
   636 |         val = *value_ptr;
       |         ~~~~^~~~~~~~~~~~
In function ‘btrfs_show_u64’,
     inlined from ‘btrfs_space_info_show_bytes_used’ at
fs/btrfs/sysfs.c:829:1:
fs/btrfs/sysfs.c:636:13: warning: array subscript -47 is outside array
bounds of ‘struct kobject[144115188075855871]’ [-Warray-bounds=]
   636 |         val = *value_ptr;
       |         ~~~~^~~~~~~~~~~~
In function ‘btrfs_show_u64’,
     inlined from ‘btrfs_space_info_show_bytes_pinned’ at
fs/btrfs/sysfs.c:830:1:
fs/btrfs/sysfs.c:636:13: warning: array subscript -46 is outside array
bounds of ‘struct kobject[144115188075855871]’ [-Warray-bounds=]
   636 |         val = *value_ptr;
       |         ~~~~^~~~~~~~~~~~
In function ‘btrfs_show_u64’,
     inlined from ‘btrfs_space_info_show_bytes_reserved’ at
fs/btrfs/sysfs.c:831:1:
fs/btrfs/sysfs.c:636:13: warning: array subscript -45 is outside array
bounds of ‘struct kobject[144115188075855871]’ [-Warray-bounds=]
   636 |         val = *value_ptr;
       |         ~~~~^~~~~~~~~~~~

...

   CC      drivers/usb/core/devio.o
fs/super.c: In function ‘alloc_super’:
fs/super.c:234:21: warning: array subscript 2 is outside the bounds of
an interior zero-length array ‘struct lock_class_key[3]’
[-Wzero-length-bounds]
   234 |                 if (__percpu_init_rwsem(&s->s_writers.rw_sem[i],
       |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   235 |                                         sb_writers_name[i],
       |                                         ~~~~~~~~~~~~~~~~~~~
   236 |                                         &type->s_writers_key[i]))
       |                                         ~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/linux/highmem.h:5,
                  from ./include/linux/bvec.h:10,
                  from ./include/linux/blk_types.h:10,
                  from ./include/linux/blkdev.h:9,
                  from fs/super.c:26:
./include/linux/fs.h:2549:31: note: while referencing ‘s_writers_key’
  2549 |         struct lock_class_key s_writers_key[SB_FREEZE_LEVELS];
       |                               ^~~~~~~~~~~~

...


             reply	other threads:[~2023-03-15 16:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-15 16:01 Ronald Warsow [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-03-15 12:11 Greg Kroah-Hartman
2023-03-15 15:13 ` Daniel Díaz
2023-03-16  8:04   ` Greg Kroah-Hartman
2023-03-15 17:18 ` Markus Reichelt
2023-03-15 17:53 ` Conor Dooley
2023-03-15 21:47 ` Justin Forbes
2023-03-15 22:42 ` Florian Fainelli
2023-03-15 23:20 ` Ron Economos
2023-03-15 23:53 ` Shuah Khan
2023-03-16  7:32 ` Bagas Sanjaya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dc9c9c4b-809a-bb08-b3af-ddaf4518cdf8@gmx.de \
    --to=rwarsow@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®