From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7FAC23858C31; Wed, 3 May 2023 13:55:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7FAC23858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1683122137; bh=JXIyZOReCB/jphLn9SZXhqtGGxhmmYUd5ddra4Md2KA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tMJmPqnfexPMjNlsvJVGrJEIso/ZzQaD2MBpYruKBoKcxIPZnCVJNFaZh5rZcBUfM e+LnS7AbHqUtbWKyXIQ1XTzKJJVFaezMOIb9754G7QJFua5OG06/fE6P8yiXOY8GYH 6QhdTi9tb4KnjqxWGcLQu4/TzEZ8sRYG9P0+QDng= From: "serhei at serhei dot io" To: systemtap@sourceware.org Subject: [Bug translator/30395] Regex code has invalid memory reads caught by KASAN Date: Wed, 03 May 2023 13:55:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: serhei at serhei dot io X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30395 Serhei Makarov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |serhei at serhei dot io --- Comment #5 from Serhei Makarov --- Taking a look at this problem. At first glance, it may be a case of stapregex-dfa.cxx emit_final() needing to work differently when it is calle= d as a result of seeing the end NUL byte. It has some cases that continue on to = the next character if we accept in the middle of a string, which might be trigg= ered erroneously. Will need to go through the generated code more closely. (The stapregex code is, in fact, a from-the-ground-up rewrite of the re2c codebase which was... stylistically mismatched from our own coding style, to put it mildly. So there is no option to 'just upgrade', alas.) --=20 You are receiving this mail because: You are the assignee for the bug.=