Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp24490rdb; Fri, 26 Jan 2024 17:07:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJkeT2YT6bkXnqcuW2LVP2KdIO2LW2cs+BxA0Sdak6EU2YK+ySyHDiWK1FLgYykcVrayBE X-Received: by 2002:a05:6830:1146:b0:6dc:944b:1ff9 with SMTP id x6-20020a056830114600b006dc944b1ff9mr591762otq.56.1706317621332; Fri, 26 Jan 2024 17:07:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706317621; cv=pass; d=google.com; s=arc-20160816; b=fkRmQ99iBvSorQsw9pNfQa7ViQrNT+qV49ZvduULlYk15DKkygbBYlADeGWwR6UK0t lIyIORYi9Ub99uCkHqwnWuxHqGM+0yCpPg7+AScHJTJg40efO/xRAAk+OzNy5LkxwLhv /GQhsGPArCttdfoyeI9U+Xy5nWpV3gNf7Q1derDrb0JKNNYzX8cEtUbHa8JRlpGDS8SH a4D+esoKpBmUMTjExqFHfsFSHuk6A6X7xJQ+UxQkYlW5o2BwagMt6O2dkx95alsVkUFm BOcDGdddBjc9r1PZCtrW4e79/HXYZE5fYL5ZUwoXiO4dcu1vV6tUyk22dqXjdr+qxKcc C7aA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=I8fLiLrH5VG4dzDjXgnXjKnS7HDcUKeqHKjydZvPuqk=; fh=r+c1iykW8cOtqdPdSXTAG1XQLfegf0/nA2FZ4LQGVcs=; b=oCb9cugPh2A+lSfNUmuoxoZh61bGplBb8onGc5k+j7VGfoRG3gQHRrn+KUvOjLZyXQ 2MYJg1F1M8PfRB3UhaVvO1YUrSa0JJIYXxhTxDO++52cL98PNn0tu1Vs4V6E9pzowUUe 2pgm8tzndJ/ebJC6BhElhI4Ek+pdh8sHIsSEhCWlkcsjf1xWNzB/BM2U5m1E1CnGo8tF W/jb+ej+wnSTYw6txiCQ4frtXNrrP/6s23Jnv+CRI6OLPzsVvgs1sm1KMQD3rqP5BvFC KLZ77NWpoX9AqE8Zj1jSXJ7jwziAod4QYzAvuXDGvI1OnbH/Ik3/0tR+SpPk5DFyAKJi Qt2Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=p+MW4oL2; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=CgAMysPH; arc=pass (i=1 spf=pass spfdomain=kroah.com dkim=pass dkdomain=kroah.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=kroah.com); spf=pass (google.com: domain of linux-kernel+bounces-40953-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40953-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i63-20020a62c142000000b006de04fc4719si1454618pfg.207.2024.01.26.17.07.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 17:07:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40953-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=p+MW4oL2; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=CgAMysPH; arc=pass (i=1 spf=pass spfdomain=kroah.com dkim=pass dkdomain=kroah.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=kroah.com); spf=pass (google.com: domain of linux-kernel+bounces-40953-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40953-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.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 85812B24266 for ; Sat, 27 Jan 2024 00:49:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B7C43C13; Sat, 27 Jan 2024 00:49:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="p+MW4oL2"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="CgAMysPH" Received: from new3-smtp.messagingengine.com (new3-smtp.messagingengine.com [66.111.4.229]) (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 3FEA12573; Sat, 27 Jan 2024 00:49:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.229 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706316565; cv=none; b=NhISQYgzDUo0vcAbYO3Nu5qTHZvGPfYn+BwZ9Sa6dZ0rgwMZDgdGrjGMz3NBdMw4Wln6VaXw8xljemis7/BQutdxrXJ62jwKar5CpJCV8aWFEN+EfSLphiqyMhDJYS2ipt1sa98TfDkIqe8MMeVPe4UzdnySPsDXVdd1k73kz8U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706316565; c=relaxed/simple; bh=/xI16sc9U7F43oPCBqcnzr7KshjKk+7xCXn9cY/h7h0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gXXa1/R94voE3zBCOWKJ3720nm68yJhfUV5fogc4Wqmphp35YBb7LruQUqHV3AoNEsc0VNKdD3Dt2tz4QrmIbo3sLoH09Aa01huzcsGqaJ2mXhu569cOT6Sp/UWdrmxk8gnfxiAhGu5qhlbB+xCXLQKMWIytABXunn71kiLbaGc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com; spf=pass smtp.mailfrom=kroah.com; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b=p+MW4oL2; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=CgAMysPH; arc=none smtp.client-ip=66.111.4.229 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kroah.com Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 1800458130F; Fri, 26 Jan 2024 19:49:22 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 26 Jan 2024 19:49:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1706316562; x=1706323762; bh=I8fLiLrH5V G4dzDjXgnXjKnS7HDcUKeqHKjydZvPuqk=; b=p+MW4oL2Eum3VGatHqbl5mM10m WWVYBB4bpdUTcMaT8G0ImWXY8uJ5k9fQUMGaA/KxGUl1Lzoq2NDqnZjG/x4DBF7r 7VKBSIHS6gMJpKXpNjm/sIxdIsQLlpObefAHYz+jNaseK4y4EgV21nK9Vi6vtQad 8gj4YTrunUUInDkEyLXDotpL577h9//m6qtEPJEJRUdu8zfAnP/ZUQpsr/I1bwqf q2M/KXqneYIOj6mJWHxM+fh/SGtWkSejd0kxApex9iR/DUmcPI+RcMsPvaOjgPvs j/H7a8AiYSa87R2IB9Bn26kE2CnsKEY+0239k/5getAgPq96XJTYTzRK+CsQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1706316562; x=1706323762; bh=I8fLiLrH5VG4dzDjXgnXjKnS7HDc UKeqHKjydZvPuqk=; b=CgAMysPHaW9fjpq4ue1QBo8a9k4ZTY25n3pPjUHpLcUW 8JJ0TbvnySOG/0kGu9bWvnoeonsI7mB4khABMrSJndvuXMek+1AII2KbWePKwKRA mMQWyWaR25tnSNi1OpOX49YQlxNkqdnPyNV4CjE40ZDkMqHvE6yADoDi5vKDISEB bGkYCzJvXiTONO4u+a5EjynO3KP2lpM3N6z2NcCLZZC5HqHUtTp07LBATLAuhpy7 5lcpTj327aI/E5kMsu1k+RZ6uiC0PSIlfzFK8h17QsUJwwzn9xlezjAKA/Hy6s+H ftPEHrIur9rK4jL/0KxcKxHcYQGVx6C4ZYOQyQWA9g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdelkedgvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhm qeenucggtffrrghtthgvrhhnpeegheeuhefgtdeluddtleekfeegjeetgeeikeehfeduie ffvddufeefleevtddtvdenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorg hhrdgtohhm X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 26 Jan 2024 19:49:21 -0500 (EST) Date: Fri, 26 Jan 2024 16:49:18 -0800 From: Greg KH To: kovalev@altlinux.org Cc: stable@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, keescook@chromium.org, sfrench@samba.org, corbet@lwn.net, natechancellor@gmail.com, ndesaulniers@google.com Subject: Re: [PATCH 0/2] smb: client: fix "df: Resource temporarily unavailable" on 5.10 stable kernel Message-ID: <2024012613-woozy-exhume-7b9d@gregkh> References: <20240126193143.245122-1-kovalev@altlinux.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240126193143.245122-1-kovalev@altlinux.org> On Fri, Jan 26, 2024 at 10:31:41PM +0300, kovalev@altlinux.org wrote: > After mounting a remote cifs resource, it becomes unavailable: > df: /mnt/sambashare: Resource temporarily unavailable > > It was tested on the following Linux kernels: > Linux altlinux 5.10.208-std-def-alt1 > Linux fedora 5.10.208-200.el8.x86_64 > > The error appeared starting from kernel 5.10.206 after adding > the commit [1] "smb: client: fix OOB in SMB2_query_info_init()", > in which the buffer length increases by 1 as a result of changes: > ... > - iov[0].iov_len = total_len - 1 + input_len; > + iov[0].iov_len = len; > ... > > [1] https://patchwork.kernel.org/project/cifs-client/patch/20231213152557.6634-2-pc@manguebit.com/ > > Error fixed by backported commits in next two patches adapted for the 5.10 kernel: > > [PATCH 1/2] stddef: Introduce DECLARE_FLEX_ARRAY() helper > [PATCH 2/2] smb3: Replace smb2pdu 1-element arrays with flex-arrays > > Now queued up, thanks. greg k-h