From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4270C3858C74; Fri, 27 Jan 2023 10:56:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4270C3858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674816987; bh=O5Rvsk+SwhF1rUGMdXpmNL+cuIABiRqrX4COmWaiVY8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HxOy5jOgLE9cB4AcssGXO4jwGiK+2EEsDffVlDSJRQxgvqRP7Ng/tiv+k9XSm8pwk me+twl6W+x7Uw7GKSiTwtr0JRQDbSEvovq/dxrnI9rEQWao4blCQ3x9ZvYy3Phhaml tmkKicvU4gFYlfWn1iYFICf5pHEPrUTKQoCn7fnQ= 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 10:56:27 +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 #15 from Uro=C5=A1 Bizjak --- Sorry, %esi/%edi is the correct order. -24(%ebp): some value previously saved to stack frame %ecx: address to write to %eax/%edx: loop iterator %esi/%edi: termination value .L1469: movl %eax, __gcov0.prep_compound_page+56 movl -24(%ebp), %ebx addl $1, %eax <- increase loop iterator (low word)... movl %edx, __gcov0.prep_compound_page+60 adcl $0, %edx <- ... and high word addl $40, %ecx <- increase address pointer movl $1024, -28(%ecx) <- write to address movl %ebx, -36(%ecx) < movl %edi, %ebx <- loop exit test: %eax/%edx =3D=3D %esi= /%edi xorl %edx, %ebx < movl %ebx, -20(%ebp) < movl %esi, %ebx < xorl %eax, %ebx < orl -20(%ebp), %ebx < jne .L1469 <=