From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 70C3F3858C83; Thu, 26 Jan 2023 19:06:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70C3F3858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674760006; bh=Pfha+GdM8yEsuTLZESTwS33WKLg/Eyk5f8My96pdYGY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=c8UC9DZXZN5139AAYabYwMjtKUTZFh6R2wUk5rhTLvZlhOPoN4AUEsE0zedZvGa/T u96I7hwiQ6L3d1s5K3204y6xV+j1gMzYQYZ6iOeBfrDqMtcYXsbeOYRW+qmuNKl2CF ua5wEnM/4y9qq7bYHLPpph6SzM40DRIj5QH9pynI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108552] Linux i386 kernel 5.14 memory corruption for pre_compound_page() when gcov is enabled Date: Thu, 26 Jan 2023 19:06:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108552 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|1 |0 Status|WAITING |UNCONFIRMED --- Comment #11 from Andrew Pinski --- The generated IR from the trunk: [local count: 118111600]: PROF_edge_counter_113 =3D __gcov0.set_compound_page_dtor[1]; PROF_edge_counter_114 =3D PROF_edge_counter_113 + 1; __gcov0.set_compound_page_dtor[1] =3D PROF_edge_counter_114; MEM[(struct page *)page_12(D) + 40B].D.14083.D.14061.compound_dtor =3D 1; PROF_edge_counter_47 =3D __gcov0.prep_compound_page[8]; PROF_edge_counter_48 =3D PROF_edge_counter_47 + 1; __gcov0.prep_compound_page[8] =3D PROF_edge_counter_48; PROF_edge_counter_96 =3D __gcov0.set_compound_order[0]; PROF_edge_counter_97 =3D PROF_edge_counter_96 + 1; __gcov0.set_compound_order[0] =3D PROF_edge_counter_97; _98 =3D (unsigned char) order_8(D); MEM[(struct page *)page_12(D) + 40B].D.14083.D.14061.compound_order =3D _= 98; if (order_8(D) > 31) goto ; [0.00%] else goto ; [100.00%] [local count: 105119324]: _176 =3D (long unsigned int) page_12(D); _95 =3D _176 + 1; pretmp_94 =3D __gcov0.prep_compound_page[7]; _179 =3D pretmp_94 + 1; ivtmp.1725_211 =3D (unsigned long long) _179; _155 =3D page_12(D) + 40; ivtmp.1730_157 =3D (unsigned int) _155; _135 =3D (unsigned int) nr_pages_11; _134 =3D _135 + 4294967294; _132 =3D (unsigned long long) _134; _89 =3D (unsigned long long) pretmp_94; _76 =3D _89 + 2; _19 =3D _76 + _132; [local count: 955630225]: # ivtmp.1725_77 =3D PHI # ivtmp.1730_178 =3D PHI p_16 =3D (struct page *) ivtmp.1730_178; MEM [(union *)p_16 + 12B] =3D 1024B; MEM[(volatile long unsigned int *)p_16 + 4B] =3D{v} _95; PROF_edge_counter_46 =3D (long long int) ivtmp.1725_77; __gcov0.prep_compound_page[7] =3D PROF_edge_counter_46; ivtmp.1725_69 =3D ivtmp.1725_77 + 1; ivtmp.1730_168 =3D ivtmp.1730_178 + 40; if (_19 !=3D ivtmp.1725_69) goto ; [89.00%] else goto ; [11.00%]=