From patchwork Mon Jun 26 03:42:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Winston Wen X-Patchwork-Id: 13292320 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 8B589EB64D7 for ; Mon, 26 Jun 2023 03:43:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229777AbjFZDna (ORCPT ); Sun, 25 Jun 2023 23:43:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbjFZDn3 (ORCPT ); Sun, 25 Jun 2023 23:43:29 -0400 Received: from smtpbgbr1.qq.com (smtpbgbr1.qq.com [54.207.19.206]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05ABD189 for ; Sun, 25 Jun 2023 20:43:25 -0700 (PDT) X-QQ-mid: bizesmtp77t1687750991t98fphgg Received: from localhost.localdomain ( [113.57.152.160]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 26 Jun 2023 11:43:10 +0800 (CST) X-QQ-SSF: 01400000000000F0H000000A0000000 X-QQ-FEAT: 4g9JbZ7lBbEdxKiVdvUE0lRRUtKekc3NXg7csNxZN/HgbCBLhq542jT6pD8UV 80FxoqNQ2OaC1aRA5GHeLEGLJNqLCpOOO2f5sLbNArtzEL/uL8rpndnZkyABOCnpflMBpwj SVKkYY0MFviFPH6fUzvXfvrBeRG6D+7HoG59ocxuc+ZSf6PiPz6yZL96tS7jPdk5Z6jC8qw i20hSpHK7ZSyg37SzaVEF+ZQ51cKbA21VN1I/nKatNPdiBZH/U914NY8BYNg8zgKm+xlCZ8 Jo++CoqNRveIfvmm/mcWBdm6NYHTAI7KrtcrP59SnRyIHkBHffwWL3vCbjAgf0n9Rypya6D UHVy1ZoywrgDPkWW9tgSrHg2LqqW+3KxRH6dd4THJ05Bud3qhJa2ZqSGqEdJT9VJ/gKJTXC X-QQ-GoodBg: 1 X-BIZMAIL-ID: 204597781179879045 From: Winston Wen To: sfrench@samba.org, linux-cifs@vger.kernel.org, pc@manguebit.com, sprasad@microsoft.com Subject: [PATCH 0/3] cifs: fix session state checks to avoid use-after-free issues Date: Mon, 26 Jun 2023 11:42:54 +0800 Message-Id: <20230626034257.2078391-1-wentao@uniontech.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybglogicsvrgz:qybglogicsvrgz6a-1 Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org The patchset has 3 patches that fix some problems related to session state check/transition to avoid use-after-free issues. Winston Wen (3): cifs: fix session state transition to avoid use-after-free issue cifs: fix session state check in reconnect to avoid use-after-free issue cifs: fix session state check in smb2_find_smb_ses fs/smb/client/connect.c | 7 ++++--- fs/smb/client/smb2pdu.c | 6 ++++++ fs/smb/client/smb2transport.c | 7 +++++++ 3 files changed, 17 insertions(+), 3 deletions(-)