Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp146881imn; Tue, 2 Aug 2022 21:37:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Q901W8UFdUBKvuwquMAxeHVIWwkjv0uRML8poMlt9JekfK24oDDEEs66slqVnt73dMW7G X-Received: by 2002:a05:6402:f17:b0:43e:4700:f63e with SMTP id i23-20020a0564020f1700b0043e4700f63emr725047eda.190.1659501477407; Tue, 02 Aug 2022 21:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659501477; cv=none; d=google.com; s=arc-20160816; b=oU6A5XPavd2VPBgUJ/wDymUHbEUX9vMgu4TpK2oHdabCQGD6NnnY1UdqLgkNv+Rdt/ sVOSP2B2mBJy6WWsVqD188KQ/0COjK6d7u9tUrYDCCINJrkNY3tE71V4l+72PHnLl2kw o514heALP2LX2ZZpAKl7wJUq8UJI2oEUUo4wYVmDb1EzxkRcs8YJ+KQmH/bqNcbg2VnD Fsakvj/2s/5eWWP/5fQqXcWJGkATa5l3salAShCgGuaBoamCYnNMiN3npjVcXItZ032X eNBBhmUBD+08059sMw06LjMttxikhsfFT08wGqRmT7Uu9IHefPAiRDi0ZLk5wrR4+LtT 07ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=e601r7aQtm63YR/Q2KTOLtIR59/LR0BeHovAza5GMeY=; b=g1Y+/koYQdvNSNimCzKxa6aY3VTGXen/cgWQpgGon4WlFeLJdqkDv6UN+ELh4TQlzd T0Uqjs+hmPyte16TljIQKVdiSwbVRFvWmWgsb9uQdXP1rsRGKicak/Xt/PVwQFCc67ew 4FRaMUDLUFTSZoGkPHrB0/jvTyh57Mg6Ij0WRVxTxlwYWgL9XlbFf6Vz7WfJ+Vb7VSq8 9cv5C9sAdigRpFws2rUX/E4na8dQw+lKTdiU58A6Ps9voE0cgrT9n7hEZIEheHIaQosp xBJETUdvVQbh5aH6nVqYvBhhAvlU0scKbQiRMPT07It/3ENNQTuS3FKkZ52WuuVXvrmA 5CHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V24iMXsY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bs6-20020a056402304600b0043d9e2e699csi3157748edb.540.2022.08.02.21.37.33; Tue, 02 Aug 2022 21:37:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V24iMXsY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233627AbiHCEJj (ORCPT + 99 others); Wed, 3 Aug 2022 00:09:39 -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> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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