From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7D91D3858C74; Fri, 27 Jan 2023 12:23:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D91D3858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674822224; bh=yvQb6YpXby+oyIV0O7u+tOT681IDspUmy9/CT+5Zz7w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lGuh76nKwkPnW6lWWUP6Ggug5Kw/eNsPJCOm8aaarCuhLt8QO3QbgnsckHtgXLSv7 Yl2TEeW0tOQqj7JRgHKATC2E8RBWKpCEsy4tGls/p8OelYFPVX9xmMwzyURTBPSLkV UTOMk6ROjn6HvR7a7e9M1lXB5N35lS2Xg7QRWHAU= From: "ubizjak at gmail dot com" 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: Fri, 27 Jan 2023 12:23:44 +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: ubizjak at gmail dot com 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: 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 --- Comment #16 from Uro=C5=A1 Bizjak --- addl $1, __gcov0.prep_compound_page+48 adcl $0, __gcov0.prep_compound_page+52 cmpl $1, %ebx jle .L1470 leal 1(%edi), %eax movl __gcov0.prep_compound_page+60, %edx <- load %eax/%edx from= $ movl %eax, -24(%ebp) movl __gcov0.prep_compound_page+56, %eax leal 40(%edi), %ecx movl %edi, -32(%ebp) addl $1, %eax <- add $1 to %eax/%edx movl %eax, -20(%ebp) <- save to stack frame loc 20 adcl $0, %edx movl __gcov0.prep_compound_page+56, %eax <- load again %eax/%edx from $ movl %edx, -16(%ebp) movl __gcov0.prep_compound_page+60, %edx subl $2, %ebx <- subtract $2 to %ebx, zext to %ebx/%esi xorl %esi, %esi addl $2, %eax <- add $2 to %eax/%edx adcl $0, %edx addl %eax, %ebx <- move %eax/%edx to %ebx/%esi movl -20(%ebp), %eax <- load %eax/%edx from stack frame loc 20 adcl %edx, %esi movl -16(%ebp), %edx movl %esi, %edi <- move %ebx/%esi to %esi/%edi movl %ebx, %esi=