From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 49CC938582A0; Mon, 24 Oct 2022 09:25:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 49CC938582A0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666603560; bh=yGWh6ktUHPM/b0rX/CZ3s0OITWYAn8NJvRAZvNZEoU8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=q7pShRIwXO7gRuJRiJcuZ7gWggUD5z0ofa+7Gtgi+2US0RA0nK9K5ohJcqlYJv+uR oe76k02jzWm0NU8LoRwf6CpQa+f4sH8aqjeJeuHCWMssFkSOjZ5ITCUA0LB8L5b48v UnVjlfvxRM1jTkwpvGkg7W0mNjtV93Ahx/bjH6KU= From: "ashimida at linux dot alibaba.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107048] GCC lacks -fsanitize=kcfi Date: Mon, 24 Oct 2022 09:25:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ashimida at linux dot alibaba.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=3D107048 --- Comment #1 from ashimida --- (In reply to peterz from comment #0) > Please implement -fsanitize=3Dkcfi to match llvm/clang: >=20 >=20=20 > https://github.com/samitolvanen/llvm-project/commit/ > f7bf6a87c4fd945800115a17b8b61390541fabd0 >=20 > The Linux kernel patches are queued and slated for the next merge window. > Things like FineIBT rely on having this feature enabled. A related issue: Bug 107374 - Please expand the size of flag_sanitize to uint64_t Ref: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107374=