From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A8D0739540E3; Tue, 28 Apr 2020 15:02:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A8D0739540E3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588086146; bh=B0wAipQhdEM+5CJINiB0tZF126U8JeYwka9K2xnulXs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QH+d+3uPa9qKg7dx94LeGJ7KeNz+wLcdCVYVH+SPJuCsCutxaE80vdZrPeY/mu0Di c9PyOcb+WNS075RIOyEL+8qDtUsEzkyOZHxohNWHFfNgZMBiQ04N74blGUz1KAoGun xavZ//0OWIy3RGVk9UD8soFyvnv3KbQYcr7QBT+w= From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/93654] Inappropriate "-fcf-protection and -mindirect-branch=thunk are incompatible on x86_64" restriction Date: Tue, 28 Apr 2020 15:02:26 +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: 9.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2020 15:02:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D93654 --- Comment #3 from H.J. Lu --- Please DO disable -fcf-protection in the kernel build. We are enabling CET for the user space first. The kernel CET will be the next. I am enclosing a proposal to make -fcf-protection compatible with retpoline. It targets user space. It can be made compatible with kernel.=