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>] [day] [month] [year] [list]
Date:   Wed, 15 Mar 2023 17:01:26 +0100
From:   Ronald Warsow <rwarsow@....de>
To:     linux-kernel@...r.kernel.org
Cc:     stable@...r.kernel.org
Subject: Re: [PATCH 6.2 000/141] 6.2.7-rc1 review

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@....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];
       |                               ^~~~~~~~~~~~

...

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ