public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y
@ 2021-09-16  9:59 dac324 at yahoo dot de
  2021-09-16 10:38 ` [Bug c/102361] " marxin at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: dac324 at yahoo dot de @ 2021-09-16  9:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

            Bug ID: 102361
           Summary: Errors compiling Linux kernel 5.14.4 with
                    CONFIG_FORTIFY=y
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dac324 at yahoo dot de
  Target Milestone: ---

GCC version: gcc (GCC) 12.0.0 20210910 (experimental)

With this version, it is not possible to compile the Linux kernel sources
(tested with both 5.14.1 and 5.14.4). 

Problem is that GCC 12 conflicts with CONFIG_FORTIFY=y.

Errors thrown with the 5.14.1 kernel sources:

In function 'memset',
    inlined from 'init_rock_state.part.0' at fs/isofs/rock.c:74:2:
./include/linux/fortify-string.h:172:17: error: call to '__write_overflow'
declared with attribute error: detected write beyond size of object passed as
1st parameter
  172 |                 __write_overflow();
      |                 ^~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:271: fs/isofs/rock.o] Error 1
make[1]: *** [scripts/Makefile.build:514: fs/isofs] Error 2

In function 'memcpy',
    inlined from 'tl_to_darg.part.0' at fs/ext4/fast_commit.c:1295:2:
./include/linux/fortify-string.h:187:25: error: call to '__read_overflow2'
declared with attribute error: detected read beyond size of object passed as
2nd parameter
  187 |                         __read_overflow2();
      |                         ^~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:271: fs/ext4/fast_commit.o] Error 1
make[1]: *** [scripts/Makefile.build:514: fs/ext4] Error 2


Error thrown with the 5.14.4 kernel sources:

In Function »memcpy«,
    inserted from von »tl_to_darg.part.0« bei fs/ext4/fast_commit.c:1295:2:
./include/linux/fortify-string.h:187:25: Error: call to »__read_overflow2«
declared with attribute error: detected read beyond size of object passed as
2nd parameter
  187 |                         __read_overflow2();
      |                         ^~~~~~~~~~~~~~~~~~


With GCC 11, these errors do not occur. Hence, I must assume that they are
related to the compiler version.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug c/102361] Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
@ 2021-09-16 10:38 ` marxin at gcc dot gnu.org
  2021-09-16 12:34 ` dac324 at yahoo dot de
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-09-16 10:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2021-09-16
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Please isolate a pre-processed source file (-E) option and attach it here
together with the used command line.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug c/102361] Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
  2021-09-16 10:38 ` [Bug c/102361] " marxin at gcc dot gnu.org
@ 2021-09-16 12:34 ` dac324 at yahoo dot de
  2021-09-16 12:36 ` jakub at gcc dot gnu.org
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dac324 at yahoo dot de @ 2021-09-16 12:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

--- Comment #2 from DAC324 <dac324 at yahoo dot de> ---
Please let me kindly ask you for instructions on how to do that. 
As described in the introduction, I was trying to compile the Linux kernel from
the usual source tarball available on kernel.org.

What I did after extracting the sources was:

make menuconfig
make

If I understand correctly, I will have to interrupt the make process to extract
a pre-processed source file?

Please let me kindly ask for additional guidance.

Thank you very much and kind regards.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug c/102361] Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
  2021-09-16 10:38 ` [Bug c/102361] " marxin at gcc dot gnu.org
  2021-09-16 12:34 ` dac324 at yahoo dot de
@ 2021-09-16 12:36 ` jakub at gcc dot gnu.org
  2021-09-16 13:29 ` dac324 at yahoo dot de
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-09-16 12:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
See https://gcc.gnu.org/bugs/
On the kernel side, I guess you want to use make V=1 so that it shows the
compiler command lines, then copy & paste relevant command both here and into
command line where you add -save-temps to it to get preprocessed source.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug c/102361] Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
                   ` (2 preceding siblings ...)
  2021-09-16 12:36 ` jakub at gcc dot gnu.org
@ 2021-09-16 13:29 ` dac324 at yahoo dot de
  2021-09-16 13:29 ` dac324 at yahoo dot de
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dac324 at yahoo dot de @ 2021-09-16 13:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

--- Comment #4 from DAC324 <dac324 at yahoo dot de> ---
Please let me kindly ask you for instructions on how to do that. 
As described in the introduction, I was trying to compile the Linux kernel from
the usual source tarball available on kernel.org.

What I did after extracting the sources was:

make menuconfig
make

If I understand correctly, I will have to interrupt the make process to extract
a pre-processed source file?

Please let me kindly ask for additional guidance.

Thank you very much and kind regards.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug c/102361] Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
                   ` (3 preceding siblings ...)
  2021-09-16 13:29 ` dac324 at yahoo dot de
@ 2021-09-16 13:29 ` dac324 at yahoo dot de
  2021-09-16 13:41 ` dac324 at yahoo dot de
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dac324 at yahoo dot de @ 2021-09-16 13:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

--- Comment #5 from DAC324 <dac324 at yahoo dot de> ---
OK, here we go:

make -f ./scripts/Makefile.build obj=mm/kfence \
 \
need-builtin=1 \
need-modorder=1
  gcc -Wp,-MMD,mm/.memcontrol.o.d -nostdinc -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include -I./arch/x86/include
-I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi
-I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi
-include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h
-include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./=
-Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration
-Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89
-mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64
-falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387
-mpreferred-stack-boundary=3 -mskip-rax-setup -march=sandybridge -mno-red-zone
-mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables
-mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables
-fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation
-Wno-format-overflow -Wno-address-of-packed-member -O2
-fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong
-Wimplicit-fallthrough=5 -Wno-unused-but-set-variable
-Wno-unused-const-variable -fno-stack-clash-protection -g -gdwarf-4 -pg
-mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla
-Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds
-Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized
-fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time
-Werror=incompatible-pointer-types -Werror=designated-init
-Wno-packed-not-aligned -fplugin=./scripts/gcc-plugins/structleak_plugin.so
-fplugin-arg-structleak_plugin-byref-all -DSTRUCTLEAK_PLUGIN   
-DKBUILD_MODFILE='"mm/memcontrol"' -DKBUILD_BASENAME='"memcontrol"'
-DKBUILD_MODNAME='"memcontrol"' -D__KBUILD_MODNAME=kmod_memcontrol -c -o
mm/memcontrol.o mm/memcontrol.c
In file included from ./include/linux/string.h:262,
                 from ./include/linux/bitmap.h:10,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/paravirt.h:17,
                 from ./arch/x86/include/asm/irqflags.h:63,
                 from ./include/linux/irqflags.h:16,
                 from ./include/linux/rcupdate.h:26,
                 from ./include/linux/rculist.h:11,
                 from ./include/linux/pid.h:5,
                 from ./include/linux/sched.h:14,
                 from ./include/linux/cgroup.h:12,
                 from ./include/linux/memcontrol.h:13,
                 from mm/memcontrol.c:29:
In function 'memset',
    inlined from 'uncharge_gather_clear.part.0' at mm/memcontrol.c:6835:2:
./include/linux/fortify-string.h:172:17: error: call to '__write_overflow'
declared with attribute error: detected write beyond size of object passed as
1st parameter
  172 |                 __write_overflow();
      |                 ^~~~~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:271: mm/memcontrol.o] Error 1
make: *** [Makefile:1851: mm] Error 2

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug c/102361] Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
                   ` (4 preceding siblings ...)
  2021-09-16 13:29 ` dac324 at yahoo dot de
@ 2021-09-16 13:41 ` dac324 at yahoo dot de
  2021-09-16 13:42 ` dac324 at yahoo dot de
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dac324 at yahoo dot de @ 2021-09-16 13:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

--- Comment #6 from DAC324 <dac324 at yahoo dot de> ---
Created attachment 51469
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51469&action=edit
File mm/memcontrol.c saved with -save-temps option

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug c/102361] Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
                   ` (5 preceding siblings ...)
  2021-09-16 13:41 ` dac324 at yahoo dot de
@ 2021-09-16 13:42 ` dac324 at yahoo dot de
  2021-09-16 13:45 ` dac324 at yahoo dot de
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dac324 at yahoo dot de @ 2021-09-16 13:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

--- Comment #7 from DAC324 <dac324 at yahoo dot de> ---
Created attachment 51470
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51470&action=edit
File mm/memcontrol.c saved with -save-temps option (2/2)

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug c/102361] Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
                   ` (6 preceding siblings ...)
  2021-09-16 13:42 ` dac324 at yahoo dot de
@ 2021-09-16 13:45 ` dac324 at yahoo dot de
  2021-09-16 22:57 ` [Bug middle-end/102361] " pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: dac324 at yahoo dot de @ 2021-09-16 13:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

--- Comment #8 from DAC324 <dac324 at yahoo dot de> ---
This is the first error; if make is used with -j greater than 1, several of
those errors occur (see introduction).

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/102361] Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
                   ` (7 preceding siblings ...)
  2021-09-16 13:45 ` dac324 at yahoo dot de
@ 2021-09-16 22:57 ` pinskia at gcc dot gnu.org
  2021-09-16 22:57 ` pinskia at gcc dot gnu.org
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-16 22:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
  <bb 20> [local count: 329188777]:
  uncharge_batch (ug_26(D));
  p_size_95 = __builtin_object_size (ug_26(D), 0);
  if (p_size_95 <= 39)
    goto <bb 22>; [0.00%]
  else
    goto <bb 21>; [100.00%]

  <bb 21> [local count: 329188777]:
  __builtin_memset (ug_26(D), 0, 40);
  goto <bb 23>; [100.00%]

  <bb 22> [count: 0]:
  uncharge_gather_clear.part.0 ();


uncharge_gather_clear.part.0 has

;; Function uncharge_gather_clear.part.0 (uncharge_gather_clear.part.0,
funcdef_no=6447, decl_uid=102103, cgraph_uid=6834, symbol_order=7294) (unlikely
executed)

__attribute__((no_instrument_function, unused, gnu_inline))
void uncharge_gather_clear.part.0 ()
{
  <bb 2> [count: 0]:
  __write_overflow ();
  fortify_panic (&__func__);

}

I Knew I had saw this before.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug middle-end/102361] Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
                   ` (8 preceding siblings ...)
  2021-09-16 22:57 ` [Bug middle-end/102361] " pinskia at gcc dot gnu.org
@ 2021-09-16 22:57 ` pinskia at gcc dot gnu.org
  2021-09-16 22:59 ` [Bug ipa/102361] " pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-16 22:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |UNCONFIRMED
     Ever confirmed|1                           |0

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug ipa/102361] Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
                   ` (9 preceding siblings ...)
  2021-09-16 22:57 ` pinskia at gcc dot gnu.org
@ 2021-09-16 22:59 ` pinskia at gcc dot gnu.org
  2021-09-16 22:59 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-16 22:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |94818

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Similar to PR 94818 and 92497.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94818
[Bug 94818] GCC emits dead bodies of functions whose all calls have been
eliminated by optimisations

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug ipa/102361] Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
                   ` (10 preceding siblings ...)
  2021-09-16 22:59 ` [Bug ipa/102361] " pinskia at gcc dot gnu.org
@ 2021-09-16 22:59 ` pinskia at gcc dot gnu.org
  2021-09-16 23:00 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-16 22:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |94818, 101941
             Blocks|94818                       |

--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #9)
> I Knew I had saw this before.

Yes I did, PR 101941.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94818
[Bug 94818] GCC emits dead bodies of functions whose all calls have been
eliminated by optimisations
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941
[Bug 101941] [12 Regression] Linux kernel build failure due to retaining
fnsplit fragment with __attribute__((__error__))

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug ipa/102361] Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
                   ` (11 preceding siblings ...)
  2021-09-16 22:59 ` pinskia at gcc dot gnu.org
@ 2021-09-16 23:00 ` pinskia at gcc dot gnu.org
  2021-09-17  7:24 ` [Bug ipa/102361] Errors compiling Linux kernel 5.14 " dac324 at yahoo dot de
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-16 23:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Actually this is an exact dup of bug 101941.

*** This bug has been marked as a duplicate of bug 101941 ***

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug ipa/102361] Errors compiling Linux kernel 5.14 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
                   ` (12 preceding siblings ...)
  2021-09-16 23:00 ` pinskia at gcc dot gnu.org
@ 2021-09-17  7:24 ` dac324 at yahoo dot de
  2021-09-17  7:41 ` pinskia at gcc dot gnu.org
  2022-01-18 10:36 ` pinskia at gcc dot gnu.org
  15 siblings, 0 replies; 17+ messages in thread
From: dac324 at yahoo dot de @ 2021-09-17  7:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

--- Comment #13 from DAC324 <dac324 at yahoo dot de> ---
Sorry for duplicate reporting. For me, the error message 

'__write_overflow' declared with attribute error: detected write beyond size of
object passed as 1st parameter

and its counterpart 

'__read_overflow2' declared with attribute error: detected read beyond size of
object passed as 2nd parameter

did not point me to using 

fnsplit fragment with __attribute__((__error__))

as a correct search term, in the first instance.
Please apologize for the inconvenience. 

Just FYI (although I assume you know this already):

With CONFIG_FORTIFY=n, you will be able to build the kernel but it will not run
satisfactorily, if able to boot at all.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug ipa/102361] Errors compiling Linux kernel 5.14 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
                   ` (13 preceding siblings ...)
  2021-09-17  7:24 ` [Bug ipa/102361] Errors compiling Linux kernel 5.14 " dac324 at yahoo dot de
@ 2021-09-17  7:41 ` pinskia at gcc dot gnu.org
  2022-01-18 10:36 ` pinskia at gcc dot gnu.org
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-17  7:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361

--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to DAC324 from comment #13)
> Sorry for duplicate reporting. For me, the error message 
> Please apologize for the inconvenience. 
It is ok, it is good that you filed the bug.  I have been doing a lot of
cleanup of GCC's bugzilla lately so I have some memory of some of the more
recent bugs filed.  Searching bugzilla to know if there was a dup filed is a
huge task even so I don't think most people will be doing it.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Bug ipa/102361] Errors compiling Linux kernel 5.14 with CONFIG_FORTIFY=y
  2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
                   ` (14 preceding siblings ...)
  2021-09-17  7:41 ` pinskia at gcc dot gnu.org
@ 2022-01-18 10:36 ` pinskia at gcc dot gnu.org
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-18 10:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102361
Bug 102361 depends on bug 101941, which changed state.

Bug 101941 Summary: [12 Regression] Linux kernel build failure due to retaining fnsplit fragment with __attribute__((__error__))
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-01-18 10:36 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-16  9:59 [Bug c/102361] New: Errors compiling Linux kernel 5.14.4 with CONFIG_FORTIFY=y dac324 at yahoo dot de
2021-09-16 10:38 ` [Bug c/102361] " marxin at gcc dot gnu.org
2021-09-16 12:34 ` dac324 at yahoo dot de
2021-09-16 12:36 ` jakub at gcc dot gnu.org
2021-09-16 13:29 ` dac324 at yahoo dot de
2021-09-16 13:29 ` dac324 at yahoo dot de
2021-09-16 13:41 ` dac324 at yahoo dot de
2021-09-16 13:42 ` dac324 at yahoo dot de
2021-09-16 13:45 ` dac324 at yahoo dot de
2021-09-16 22:57 ` [Bug middle-end/102361] " pinskia at gcc dot gnu.org
2021-09-16 22:57 ` pinskia at gcc dot gnu.org
2021-09-16 22:59 ` [Bug ipa/102361] " pinskia at gcc dot gnu.org
2021-09-16 22:59 ` pinskia at gcc dot gnu.org
2021-09-16 23:00 ` pinskia at gcc dot gnu.org
2021-09-17  7:24 ` [Bug ipa/102361] Errors compiling Linux kernel 5.14 " dac324 at yahoo dot de
2021-09-17  7:41 ` pinskia at gcc dot gnu.org
2022-01-18 10:36 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).