Bug 2178317 - regression compile homebrewed kernel 6.2.6
Summary: regression compile homebrewed kernel 6.2.6
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 38
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-14 20:25 UTC by Ronald Warsow
Modified: 2024-05-07 16:00 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ronald Warsow 2023-03-14 20:25:23 UTC
Description of problem:
compiling vanilla kernel 6.2.6 with Fedora's 38 gcc runs in an error.
with F37 all was fine. 

Version-Release number of selected component (if applicable):
F38: gcc version 13.0.1 20230310 (Red Hat 13.0.1-0) (GCC) 
F37: gcc-12.2.1-4.fc37 

How reproducible:
compile vanilla kernel under Fedora 38


Actual results:

...
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: error: array subscript -35 is outside array bounds of ‘struct kobject[144115188075855871]’ [-Werror=array-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: error: array subscript -44 is outside array bounds of ‘struct kobject[144115188075855871]’ [-Werror=array-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: error: array subscript -43 is outside array bounds of ‘struct kobject[144115188075855871]’ [-Werror=array-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: error: array subscript -41 is outside array bounds of ‘struct kobject[144115188075855871]’ [-Werror=array-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: error: array subscript -36 is outside array bounds of ‘struct kobject[144115188075855871]’ [-Werror=array-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: error: array subscript -34 is outside array bounds of ‘struct kobject[144115188075855871]’ [-Werror=array-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: error: array subscript -48 is outside array bounds of ‘struct kobject[144115188075855871]’ [-Werror=array-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: error: array subscript -47 is outside array bounds of ‘struct kobject[144115188075855871]’ [-Werror=array-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: error: array subscript -46 is outside array bounds of ‘struct kobject[144115188075855871]’ [-Werror=array-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: error: array subscript -45 is outside array bounds of ‘struct kobject[144115188075855871]’ [-Werror=array-bounds=]
  636 |         val = *value_ptr;
      |         ~~~~^~~~~~~~~~~~
...

Comment 1 Ronald Warsow 2023-03-15 02:04:56 UTC
setting kernel config option "CONFIG_WERROR" to NO and the kernel builds

Comment 2 Ronald Warsow 2023-08-25 19:43:43 UTC
seems to be fixed

please close this bug

Comment 3 Aoife Moloney 2024-05-07 16:00:32 UTC
This message is a reminder that Fedora Linux 38 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '38'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 38 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.


Note You need to log in before you can comment on or make changes to this bug.