From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAF91C19F28 for ; Wed, 3 Aug 2022 04:09:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233810AbiHCEJk (ORCPT ); Wed, 3 Aug 2022 00:09:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231321AbiHCEJh (ORCPT ); Wed, 3 Aug 2022 00:09:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C31E725C78 for ; Tue, 2 Aug 2022 21:09:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 65845612AC for ; Wed, 3 Aug 2022 04:09:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93B06C433C1; Wed, 3 Aug 2022 04:09:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659499775; bh=7IbobPPIX3Vzf8Jpo8GKur5xflthRgqIQ+AaGpXTX+Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V24iMXsYTQWwgJ4n1FVn7wTAgz5twUAaI8PGSY1OfomvFI/BlvrJtVIZPeiPtPlr+ Nc2gYCOcLnEsAScAKzhBHlPURI37u9jUUDYNAYSwpwWntDCslwu6+ywzsPW9DboL97 vBhoE5rF6TG6ynyN8hL7eTJsuY6LYj4bzlIPlXB9snJ+ou3k+h46As9t1K6kACJA1O TL/YWLYLcXQTwHNlFwB1WHAtLiJ9MTadJMZIQ4S8b1iDXxuR1WeAlUPLVd1ZH13KuG 8RWpiop0cXYgl8jaIYpTO3/Knr+tAbdEJwOOqKiWhEQO5CzmRBQZlp97tix1e+JyjZ iGAiffYzIolQA== Date: Tue, 2 Aug 2022 21:09:34 -0700 From: Eric Biggers To: Siddh Raman Pant Cc: syzbot , hdanton , linux-kernel , syzkaller-bugs Subject: Re: [syzbot] KASAN: use-after-free Read in post_one_notification Message-ID: References: <20220801103533.972-1-hdanton@sina.com> <000000000000c7a83905e52bd127@google.com> <18261e01068.4a2910f2403165.1226720997594524412@siddh.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18261e01068.4a2910f2403165.1226720997594524412@siddh.me> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 03, 2022 at 09:34:10AM +0530, Siddh Raman Pant wrote: > On Wed, 03 Aug 2022 03:57:19 +0530 Eric Biggers wrote: > > It appears this was already fixed, so no need for any more activity on this bug: > > > > #syz fix: watchqueue: make sure to serialize 'wqueue->defunct' properly > > > > - Eric > > It doesn't address the dangling pointer remaining in the watch_queue, > which was the root cause of this crash. The use-after-free happened > because the pipe was freed but a dangling pointer of it remained in > a watch_queue, and an attempt to dereference it was there. > I don't think that's true; the pointer doesn't get dereferenced after watch_queue::defunct is set. See my message on the other thread where I explained this: https://lore.kernel.org/lkml/YunKlJCDlmyn2hJ4@sol.localdomain Of course, if you actually have a reproducer, or a KASAN report, or anything at all that shows there is still a problem, then please post it. - Eric