Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp857999rdb; Thu, 15 Feb 2024 19:08:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWF79PZlrHcDPEMvA9HLMXb6Y5LS0gwNyuE/Vp6/YYZZlgvtrHQzj3t/PbX/nVBIvyCvqgrfsF9vfqCkkHKkHTX+bjX564+WaBG2hovCw== X-Google-Smtp-Source: AGHT+IHerbf2Uyc6ph4ggj0sZ41A4LJDhi7d9J0TfS/hKnGDBYyY7+FC1bLjRYExFPHawhVQDRKU X-Received: by 2002:a05:6830:1258:b0:6e4:2875:666c with SMTP id s24-20020a056830125800b006e42875666cmr3690000otp.2.1708052921457; Thu, 15 Feb 2024 19:08:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708052921; cv=pass; d=google.com; s=arc-20160816; b=N/sz+WFaEXLk9Zx+qNxrep2wGl/Kh1BiJYPg7aLqxZ0uwzHL0JT2U/fq3ti9L8o4h3 DOH3DwFbQYiUTMUj4oSIPRasNhMSEl5/YZwTCMd/HbqqNNcdGCq7X4/nS3iYB3KxrQ27 0WRhw8BjHrh5R6td2HbufTFr/SikXqCRenr73sfp+aQqZAI8Zc6sr1fxkKc1zF+Ovf4e 2PYhCugmbKiyAz2MvCZa6H3kduCG/FCVS59chjep7tRhGf/7VWeomL+870A6zSWNGy5h ih7/LFPs4Bw232biiz0xNSf9Wa4qd7dy6rgP1nNFQnTIY/SGjwNkXYmQzDxk+CxY3Ub5 ipKg== 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:date :subject:cc:to:from:message-id:dkim-signature; bh=KM/2SxIvi3sdxAANb2LES0IEDaLLu1dAqWsSF6vtL10=; fh=8Y7GceyNINPY4OZQX560OlCIUzQR5zcCvgN1sV98HVQ=; b=p2eM3zykEC8bX4vct/hklo7pNJkg0bUQfVmRucbJ5HZYcg9nYFA012G6YxQFZoX/gY +Joy+UTdofhRjF3q45O6ZGP2OqFY/4jhr+U9oIBHpH7HXPkr6VT7eeFQPv7nS14N5dgM Q/MQPqjIKH2NbDCI2hQuWudMWaE3YjghYFF2WSfuJs3KZeggU6ZotA+FOuzP13skG0jp ATxsnZRNdmw+MwF/jjiR0kKPqA1Dmz/2g8s57gCCobmoPOyteFn7KhaJSgvk/ytC+VPI yb6C0tn3E3yuC1yHvB6Pw6Vv4oWFT74d1Gu5j/ItXYDHmtsttS+xiGhL4ajo48drOxd+ vz9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=YDzA8ziX; arc=pass (i=1 spf=pass spfdomain=qq.com dkim=pass dkdomain=qq.com dmarc=pass fromdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-67985-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=qq.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h21-20020a633855000000b005cec86b7a50si2208556pgn.570.2024.02.15.19.08.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 19:08:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67985-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=YDzA8ziX; arc=pass (i=1 spf=pass spfdomain=qq.com dkim=pass dkdomain=qq.com dmarc=pass fromdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-67985-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=qq.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B7CFDB22A93 for ; Fri, 16 Feb 2024 03:08:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3600FBE5; Fri, 16 Feb 2024 03:08:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="YDzA8ziX" Received: from out162-62-58-216.mail.qq.com (out162-62-58-216.mail.qq.com [162.62.58.216]) (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 EAF6DDF6B for ; Fri, 16 Feb 2024 03:08:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.62.58.216 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708052909; cv=none; b=tLjBfizsLX9aFNYGDLr0tKO1JvdYWg+LRi5qsbkJDI+83aSovtILaC+m3DeF7+DT/wtKgu+TpcfHF8xlnLlMWHYAI7ZJOt40qfA1i4vMruq6q+elcZHCWPUssmCxSjjfFyBfsSRysQe2c5hTWx+ndAjWivns/1pZNbJg3iJ468U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708052909; c=relaxed/simple; bh=1YttCzjE6mOrF3+LP/4DSNa0r7I7TpydBBW2aaDUmpY=; h=Message-ID:From:To:Cc:Subject:Date:In-Reply-To:References: MIME-Version; b=hPVV1KlD17HW/JKPOXEOq1srbb6PJTwCbzUDAQcc6H+xNfVMDFYvT+w2BSDg565xIAwteX9tuOKbt/P6wa0CfZ8/h6uYcTHsVMTpx/MzN+pfRqRwqasnfQjD0YuIDPzI6XuCG4HS7aqyKuTZ5VvKIzTC8Ik7dNZS/mn06zFsOMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=qq.com; spf=pass smtp.mailfrom=qq.com; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b=YDzA8ziX; arc=none smtp.client-ip=162.62.58.216 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=qq.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qq.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1708052601; bh=KM/2SxIvi3sdxAANb2LES0IEDaLLu1dAqWsSF6vtL10=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=YDzA8ziXQ7tJYnPHiStukWadpKK1ufZ9K876FV/HHy2Yvs74pdMtNj2mcMdC7IVZF lmMugg9B4IKvKnsE2FxsraUJJ4zccW8mhaaHww9350O/Y5kbRSuEkczQsEwZPrxvKx pl75UihAQPrQ7OY2V5ZQUkAD4F9apIrIRnG8I8TY= Received: from pek-lxu-l1.wrs.com ([36.129.58.158]) by newxmesmtplogicsvrszc5-2.qq.com (NewEsmtp) with SMTP id D334A69; Fri, 16 Feb 2024 11:03:19 +0800 X-QQ-mid: xmsmtpt1708052599tie84jb6e Message-ID: X-QQ-XMAILINFO: NDgMZBR9sMmaeBpgQMl54R3Z8CrkN+EM7/P2rzUNOfzb2xcjHzAo3snq0OVeUP qacUQTeCfS2Uxi/8Qfv0A9pB8IhEccEyjo3kPI3zFqvfyoLblIyAHqT7nQugG9JaptJeUeP3QTz+ vIjk02mhkjDOMD+w+jPq4mrWxFWN4GHJk1VdaAGh01tr4eKYxklt+ZdlAeIOYeTjTdODJopYtxey gZkmKwQQ+1d7pk+qsSbULfqwR5v+oYWiom15ywI/NjjvwvRB0z0UxvS05ii0LA3GRQ5RT0rhLttg pHsIY16Viu8T4nr5bEkch7wUCbUAdBg6cqIj0qz504cTq4caf2hHptQitlQ005tQXlqatQI56iZA pbSjCNXI5zr3CgQ4yAG9xoJZTV9N0htvJqBRXPTMJVSbgkvJnS8jbebb5YTTB0o67P4i67qNluHj uazlJBiMeFDtGudG5ju/Lz8a4YjzvoU8FrLxObnA/HjUcAGb2me3JqImABVXki8f6mYyAS7oQnQz pYNOLij/3mfOCnoECrp9fbyVekX1/1/6yfv6PQDzgZcRoqXijerOnVXuhFL7dAhDaeN+IFcVZ8oV jna347lvNLn328/c8wiJTJrwquxanQ2c9L6qZ4MQ+GX+VJMflosygTnZ8Vvl3F1HB5eyqMrBmDDm y2BSI2whKI/gmgUjI5SpMe7o5Je2Un/zUjH7j83IbSVtbdQuBLed1nAr36Q7LdsFPrjGSfQ8LWvU DtyV8ZwBByMXRnC8Tv0c+fi3SP5h5eLNY/oEmSTyaiFXarDkI1erDYgJXAnGpq3JKiCkkWN0zz22 3VbGS3EbiT7/cCX/0XfQDyxTCGb8mpn2GUbsGOJYtSv32mWCiFgK2F1d8F5EbIn06xAEW6l0ari1 uCnViqcDdwhCehj5sz0jCZ5t/hRl8BZQ3s5rvFHyQjcz2t9ikvVTg= X-QQ-XMRINFO: OWPUhxQsoeAVDbp3OJHYyFg= From: Edward Adam Davis To: syzbot+ce750e124675d4599449@syzkaller.appspotmail.com Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [pvrusb2?] KASAN: slab-use-after-free Read in pvr2_context_set_notify (2) Date: Fri, 16 Feb 2024 11:03:19 +0800 X-OQ-MSGID: <20240216030318.910216-2-eadavis@qq.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <00000000000028b68806103b4266@google.com> References: <00000000000028b68806103b4266@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit please test uaf in pvr2_context_set_notify #syz test https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing diff --git a/drivers/media/usb/pvrusb2/pvrusb2-context.c b/drivers/media/usb/pvrusb2/pvrusb2-context.c index 1764674de98b..e93bca93ce4c 100644 --- a/drivers/media/usb/pvrusb2/pvrusb2-context.c +++ b/drivers/media/usb/pvrusb2/pvrusb2-context.c @@ -267,9 +267,9 @@ static void pvr2_context_exit(struct pvr2_context *mp) void pvr2_context_disconnect(struct pvr2_context *mp) { pvr2_hdw_disconnect(mp->hdw); - mp->disconnect_flag = !0; if (!pvr2_context_shutok()) pvr2_context_notify(mp); + mp->disconnect_flag = !0; }