Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1936803lqa; Tue, 30 Apr 2024 04:02:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVol4UPDs25dKJxAJb46AND6s2n10tme3K9dJoblAQ0IrAvcTvU9/va1V/2bjf8L296/muIHSTnvwf+DMx1PfcT7sttruXl70298kOmQ== X-Google-Smtp-Source: AGHT+IFYi8XD8hBRB6R0FwgbAn2ftW0v07EiSu+Z7Z8rZ9R5UtPXC2nT5AJ5VU69c9mlMAOAOiMz X-Received: by 2002:ac2:5ec2:0:b0:519:2c84:2405 with SMTP id d2-20020ac25ec2000000b005192c842405mr6827950lfq.44.1714474953755; Tue, 30 Apr 2024 04:02:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714474953; cv=pass; d=google.com; s=arc-20160816; b=I9b0WJJoTE1kqiheZhV5uykaiT+IAWrkb1ZFThwXEKmz/ZBNUW25jMc+6sa1ojI/OY cjAKkPeu4XIb8bQGSx3NxHdOMOjZT9ST93tIwgRFW1ByXazCWVjk4SJpGbfTw5C1qPLa 9g5T+cP83lkvOlrdKorYz/OOyBdUQ07l2JZMrYJj3FlqTkDuUYP4+3/YMlvVoHnwaipe yzUnt4ZavofYMnPXbYTHdwTmWbblKF2fKw5p18SKfnoBu06IWiU1O6EX+/YFCa5yv6jb ls0jPxddikmsPfRVpGq9SXAhK93AfUB9c6/wug8IHuhAX4JJd/pYCaPdjeMNcDrw9kEf 0Xcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=SpMISBY1gsNwnIBTuwtvC5572mdFAxmN7LZt1Bq5xP8=; fh=BoQqT2m/IeuHEyoaT1kPZlqyoykul3L+h8jesBk5Wt0=; b=n8fvtOBPgim63hqmOm5vgzjKEmoIP9U/DsSssY5EBcUyOzkBQkKpskdum8GEGmjZxz MvTRF+GJvwqMexQA3fIqQydGEPLkNhdjblERY1vpG8kFtHLMfkoxgbQmdilapj35mPrS MyQExUP0aKYmeZgotYAB4KJJXXKtitod/RfttAz7atCxa4G+/d9QYlGZQhdOWGP8XMJn sLgPjAtSIL94F8V1hTCqEoPJZ6KVH/hQwWo4EX7lFnPpEKYC6Io6qSrHSstBHaKmCa79 Sfw48DL8gFHkr4B0yobEefTj1Dg7z+Di7erHX8ND+f4nUcB+Vroa89y1qFHPps22diUu ylDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-163815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163815-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c8-20020a509f88000000b005727d0860a2si2859847edf.577.2024.04.30.04.02.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 04:02:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-163815-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163815-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 88FCF1F22E8F for ; Tue, 30 Apr 2024 11:02:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3BFFD12C817; Tue, 30 Apr 2024 11:02:23 +0000 (UTC) Received: from mail78-58.sinamail.sina.com.cn (mail78-58.sinamail.sina.com.cn [219.142.78.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09E0612C487 for ; Tue, 30 Apr 2024 11:02:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=219.142.78.58 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714474942; cv=none; b=WFGsbdSzDqaJJzgCm0gZZgDiE/H8xpGWg/scfsl8hfATWICiMdM0ePbNnxx62Vzf/wcR/EdUmFbjJQbAzs6LF74X8vYR1ySS5/wN8tnyYjVCQGcK7OvtBeJg+2PX6wKy9Ph4JxRAoPHoP4VSxz3GmT1ZQ+RpvY5qxsOCH70xVXk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714474942; c=relaxed/simple; bh=3aQ/oV5Xqe4lYcMW7ZHlMIgcR6uw1+KtZHo0uDx65KQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HaGzIGXYBo+/G+WfnVe3DGsSWq1kn03kw7sxvl+h+za01fyw5CK1JN8p0LO1zTTmcIn8HD8UdEZ1Qyic+FJHYcPSzHHUvAjN4Ki8OkFQTdFJKYE0vlbsPCpttYw9+ehWoQL34XvBQ3KM6kfGkpRnnZu5JuaZzmOvEe7dsti22QI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=219.142.78.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([116.24.10.41]) by sina.com (172.16.235.25) with ESMTP id 6630CFAD00006272; Tue, 30 Apr 2024 19:02:07 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 49506434210283 X-SMAIL-UIID: CAA04C27511B4037B60B87A6B093AB38-20240430-190207-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [net?] [virt?] [kvm?] KASAN: slab-use-after-free Read in vhost_task_fn Date: Tue, 30 Apr 2024 19:02:09 +0800 Message-Id: <20240430110209.4310-1-hdanton@sina.com> In-Reply-To: <000000000000a9613006174c1c4c@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Tue, 30 Apr 2024 01:25:26 -0700 > syzbot found the following issue on: > > HEAD commit: bb7a2467e6be Add linux-next specific files for 20240426 > git tree: linux-next > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16c30028980000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git bb7a2467e6be --- x/kernel/vhost_task.c +++ y/kernel/vhost_task.c @@ -100,6 +100,8 @@ void vhost_task_stop(struct vhost_task * * freeing it below. */ wait_for_completion(&vtsk->exited); + mutex_lock(&vtsk->exit_mutex); + mutex_unlock(&vtsk->exit_mutex); kfree(vtsk); } EXPORT_SYMBOL_GPL(vhost_task_stop); --