From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 64BC81E515 for ; Mon, 9 Dec 2024 20:55:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733777757; cv=none; b=gyN6lQ/1A8Det/SqEFPWStM4MRBY319m5yF3xdiH7N5ew8fpwhBmJ32u25ibskx5aWNO9COMVY0v1ibwsXWKzetKnC0Ss1j6XbF8AdDVSHNqEzQZVXH6/L7zfCY3V0rKNIILaM5RcvhHg5mxwG5TvN8dAokN0v8ra89HwVoE06E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733777757; c=relaxed/simple; bh=8qynSQVTIOsAtmTBwLQ1W6Qi80FQ7H0nrq4o3S67mHw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CQ66r3/rkkPLccPy0xhJKgdwv1t8+mOxfST5kli6boiTr+2UOTCvGUyn6jrsnrOhwkbFPfwpeI994dUdgE93YetnKd2GYP1Xc9Y1WZnz4mlqKEVjLorZmVq4bp88FvDDSSXeZ9CgrSmkk+/QNI7hTreF+Ui4EwvU83mElZGFvVU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=utVxAhrW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="utVxAhrW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FF7AC4CED1; Mon, 9 Dec 2024 20:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733777756; bh=8qynSQVTIOsAtmTBwLQ1W6Qi80FQ7H0nrq4o3S67mHw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=utVxAhrW00AMIBkNUng9GeSZJ/CM6OTQKxTnme3CQYBGiOHMokL4ew9h6AVRKzQLg 8WlHKbhXk7K8YVcC0+VEHFEH+bb1w1G1fl8AcNWiNamMZdXFpKxNgSGUvVVxLV8QRB SGIbmbBN5sWo51xCJgyyurPiwDWzGzSvaa2XrzJntJ9WKrB87RdEd5vnrIkvCuYAMm wc3kU4x84ThdwniVRWSUghCd7+CzW7wy/qDWaBZTyWSJb+D89pYx8Fy/ZrEk51StsH 2HJ0LSlQYuMz7J+HSxPdrI1C7OMbg0TWYdLUEig36ussReq/dWoeLxgw2yUfyOHV96 rvA2ZL39B5Lrg== From: Sasha Levin To: stable@vger.kernel.org Cc: Vasiliy Kovalev , Sasha Levin Subject: Re: [PATCH 5.15.y] scsi: core: Fix scsi_mode_select() buffer length handling Date: Mon, 9 Dec 2024 15:55:55 -0500 Message-ID: <20241209132628-c75f8be7ddfda850@stable.kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241209165340.112862-1-kovalev@altlinux.org> References: Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit [ Sasha's backport helper bot ] Hi, The upstream commit SHA1 provided is correct: a7d6840bed0c2b16ac3071b74b5fcf08fc488241 WARNING: Author mismatch between patch and upstream commit: Backport author: Vasiliy Kovalev Commit author: Damien Le Moal Status in newer kernel trees: 6.12.y | Present (exact SHA1) 6.6.y | Present (exact SHA1) 6.1.y | Present (exact SHA1) 5.15.y | Not found Note: The patch differs from the upstream commit: --- 1: a7d6840bed0c2 ! 1: 16b532ea81441 scsi: core: Fix scsi_mode_select() buffer length handling @@ Metadata ## Commit message ## scsi: core: Fix scsi_mode_select() buffer length handling + commit a7d6840bed0c2b16ac3071b74b5fcf08fc488241 upstream. + The MODE SELECT(6) command allows handling mode page buffers that are up to 255 bytes, including the 4 byte header needed in front of the page buffer. For requests larger than this limit, automatically use the MODE @@ Commit message Link: https://lore.kernel.org/r/20210820070255.682775-3-damien.lemoal@wdc.com Signed-off-by: Damien Le Moal Signed-off-by: Martin K. Petersen + Signed-off-by: Vasiliy Kovalev ## drivers/scsi/scsi_lib.c ## @@ drivers/scsi/scsi_lib.c: scsi_mode_select(struct scsi_device *sdev, int pf, int sp, int modepage, --- Results of testing on various branches: | Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-5.15.y | Success | Success |