From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56108: 29.0.50; ASAN use-after-free in re_match_2_internal Date: Wed, 22 Jun 2022 17:24:18 +0300 Message-ID: <831qvgkc8d.fsf@gnu.org> References: <83mte7kv7c.fsf@gnu.org> <32e548cc-ffd3-4669-ad9a-317c130b0c93@Spark> <83a6a4kec0.fsf@gnu.org> <6e56407a-b564-4aa9-b74c-78883727ef09@Spark> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12606"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56108@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 22 16:25:40 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o41IY-00034y-Ee for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Jun 2022 16:25:38 +0200 Original-Received: from localhost ([::1]:41462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o41IV-0000A0-Nw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Jun 2022 10:25:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o41Hy-00009s-35 for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2022 10:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42333) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o41Hx-0004zH-QX for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2022 10:25:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o41Hx-0002dc-In for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2022 10:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Jun 2022 14:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56108 X-GNU-PR-Package: emacs Original-Received: via spool by 56108-submit@debbugs.gnu.org id=B56108.165590787610101 (code B ref 56108); Wed, 22 Jun 2022 14:25:01 +0000 Original-Received: (at 56108) by debbugs.gnu.org; 22 Jun 2022 14:24:36 +0000 Original-Received: from localhost ([127.0.0.1]:36230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o41HY-0002cr-5U for submit@debbugs.gnu.org; Wed, 22 Jun 2022 10:24:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o41HV-0002cd-Br for 56108@debbugs.gnu.org; Wed, 22 Jun 2022 10:24:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o41HQ-0004wj-4z; Wed, 22 Jun 2022 10:24:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=vuCsTQKsQ4s74JO79lw9kIrd0Vu+15I/XVXhufiGgFM=; b=grCbKDfq/IU71cIe53ox e1dRMP0wi1gZT2lawSPZZuMpHRXHYq23SDxOMdimpxKrbBa88+OGQoP8sSPaRyANWNm1ubj4EhSrG rlxZ/36w8t0YExI/8UPYU2nKEW83ZUFWMR+umaamTaQCu/zf0gIQSQE5l2C0Kc024V7dOhg6jGcd1 WFSZCaBWgGhzjFSlXTnZwlj+fJlkV/Hnjpdue82hSmQX1xhiGiP7IuGovMCFhoBTTLwepTa7ffKQB bvSuWel8o0p2xIAEa5jpGYWWjt0PNFPCBB/sShEdaPJ9xU+tB1vjvckQNgUC2Dptw0xXS8BMCHMT2 HjwhX9fxyz67fg==; Original-Received: from [87.69.77.57] (port=1490 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o41HP-0004jH-Km; Wed, 22 Jun 2022 10:24:27 -0400 In-Reply-To: <6e56407a-b564-4aa9-b74c-78883727ef09@Spark> (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Wed, 22 Jun 2022 16:10:23 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:235029 Archived-At: > Date: Wed, 22 Jun 2022 16:10:23 +0200 > From: Gerd Möllmann > Cc: 56108@debbugs.gnu.org > > Functions fast_string_match_internal* don't freeze in the sense you explained. What I don't see so far is > what could lead to a GC in these cases, between the compile_pattern and the use of its result... I don't know if something inside re_match_2_internal can call something that would trigger GC. There's too much stuff going on there, what with syntax tables and whatnot. > Did you find other places where there's no freeze? string_match_1, I think.