Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5636449pxb; Sun, 7 Nov 2021 16:55:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzKIb8ykiRTzolGwcOeEkiZ8bYbAJL7c2T59B7hzn2juGn6qrTgnAL+Cl/BoVL/uKVyRVe X-Received: by 2002:a17:906:11c5:: with SMTP id o5mr88417396eja.42.1636332935404; Sun, 07 Nov 2021 16:55:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636332935; cv=none; d=google.com; s=arc-20160816; b=psbh5kW8O+0dTkmwWpv6gDvxjWyrw+6cBTsDMt8Po/boFDhPOxoaQcXR1T/rmtgBZh GEj3VNLITBiub2BxrZgl5uQ36Ry8lD3UHiHNbpVE1CP90mdqica4+pbylI6taXGR1IHs kc/J0TmE7d8KNGsOorBle8Ar70T3OfogShhEkgca7IqsTRmFmZJYYEu9fOTr93RsyVRM eZ0b6V1l69M20QD2/8k1yeFYmZdWdIF4fcT6XYXcJ2WOcV+rBEbbSE5iNgmDu6XR0UAw V4jMSvMIzYSy6Ll0XX8DhS9RvFKlWOhVipuzzK0n6ocHfD+HHowTv2/X59fuMUkJjg52 u78Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:references :in-reply-to:mime-version:dkim-signature; bh=TipMEeXbLK71rqDUcKVBo/tOx+moJRr+RfW/8r72DaU=; b=Ik+/VuBynfQtECzm4AzpjGf78ByvPbuAHCCuwNxsKHplb+ldGuUG//dOrBsWcU97XR AoU5z8dqvW0cdPtKIJTo/2WbgUiQbklgFzaKu8vKBwy5ikEp894TB1xEFBSBys3rnLGe VNhWJK5Y1xOiOsYMM9eMssNYpm/srbHfgg0XmTJOBuI4z9KRKEG11e2yS9cqDs9ap6We h38Kpu6tjD43epXyEUWSoRGzqjLE2Ba2ow42j7uTpCohziEXrWcbeM/yfv8D25oUbxRa rT5+SrDunkONy62tbN6ekC+FO0gLvqElFDYYFGArHFqP8RvZ0AoK53f7aSsb7ViIf6Ig OuiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GRaC+dr3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp3si8851431ejc.279.2021.11.07.16.55.12; Sun, 07 Nov 2021 16:55:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GRaC+dr3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234752AbhKGUgV (ORCPT + 99 others); Sun, 7 Nov 2021 15:36:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:52922 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233254AbhKGUgU (ORCPT ); Sun, 7 Nov 2021 15:36:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7DE016137D; Sun, 7 Nov 2021 20:33:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636317217; bh=TipMEeXbLK71rqDUcKVBo/tOx+moJRr+RfW/8r72DaU=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=GRaC+dr35Xxuw3vS2yWcRXSF2SOySq3TBTibjAMxcN2YDdHMNq3GI6uiM2KiYN5tt CAhvR4ltb+TOmYAQIoSD89qG6u/7BlNmibsNay8xbXD0VgtULxN4V2/SUCMe1IMxnw /nR3ezMWnVjH6pU4xEmgTEgzqIiKN+WseF0HLU0zpi+ocnjxDVdpw4HLcwqhjlILHf adlsORYvJRh+s3KFKzJ/UnU8y4mOBWHeSvI6tiCoVLS+xHBrhQ07ZlNWtj6AgXMYva kxfY4UcWl+BKvpM7JNPfsrO7s6HxWp8A92ZRNZhjI1+ATbCFmqeQLMBQ95ZHspKfNG 9jAJN64kTYv5w== Received: by mail-ot1-f49.google.com with SMTP id v40-20020a056830092800b0055591caa9c6so22485255ott.4; Sun, 07 Nov 2021 12:33:37 -0800 (PST) X-Gm-Message-State: AOAM532CHAtwUTVXN6n9njEPTz9m2z4DzFsBwBXjACKqANYL1FrvaMmi qZ2dRykmQKZ44bua1oNsHanSvNrRkmqSwW/aUME= X-Received: by 2002:a9d:46a:: with SMTP id 97mr19692381otc.18.1636317216766; Sun, 07 Nov 2021 12:33:36 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ac9:4448:0:0:0:0:0 with HTTP; Sun, 7 Nov 2021 12:33:36 -0800 (PST) In-Reply-To: <17d0c2af6d0a35c2951f0ac5c7a1dfea04df410f.1636298480.git.christophe.jaillet@wanadoo.fr> References: <17d0c2af6d0a35c2951f0ac5c7a1dfea04df410f.1636298480.git.christophe.jaillet@wanadoo.fr> From: Namjae Jeon Date: Mon, 8 Nov 2021 05:33:36 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ksmbd: Fix an error handling path in 'smb2_sess_setup()' To: Christophe JAILLET Cc: senozhatsky@chromium.org, sfrench@samba.org, hyc.lee@gmail.com, mmakassikis@freebox.fr, linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2021-11-08 0:22 GMT+09:00, Christophe JAILLET : > All the error handling paths of 'smb2_sess_setup()' end to 'out_err'. > > All but the new error handling path added by the commit given in the Fixes > tag below. > > Fix this error handling path and branch to 'out_err' as well. > > Fixes: 0d994cd482ee ("ksmbd: add buffer validation in session setup") Cc: stable@vger.kernel.org # v5.15 > Signed-off-by: Christophe JAILLET Acked-by: Namjae Jeon Thanks!