Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7272524rwd; Mon, 19 Jun 2023 21:55:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ66mjDlMK12/ePeQsoLHMkbEoyuAdEhf9tWhbsSa3yvxnD27XOs1b8Ca2uUpJ1HqABcQWQz X-Received: by 2002:a05:6a20:394b:b0:121:97f4:d063 with SMTP id r11-20020a056a20394b00b0012197f4d063mr6193563pzg.16.1687236913115; Mon, 19 Jun 2023 21:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687236913; cv=none; d=google.com; s=arc-20160816; b=RSYZ/bmACgvjO6s6IGkbRHNV1KdgX6PAWhamK8zpSFqDoyE2k2upCZ63CfzYklGgcn Afs7oG6bogALjRlDiJQBUt0BR5nOozrGFt2Tx96FEmmVNjANLrDUSFquXG+58SwG1qXF 0lQVDMqAhxWk89+AAb09B0jClQXAae31LHNbRejlnvxY2ZNyVnoZb1OVetPr1YwfrvZc 9n52Tre0qSORrxk8suWa3SXGef2LJZg62ragU/2fP7XN0yyEfy6mejhIl5eQoXkbgvsu qQpxr5MT6cEBIbg5Egcb+x9PiCmO+9C/KuRosSPTJiHjtvIwQop3CeA/r5gu2vpHJ5Yu gARw== 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:mime-version :dkim-signature; bh=/LSn6ut/KlRF0j/GAnYc/CKJzMww10Za5lKAV1z62hM=; b=pwssK6QSN/XrFx7Mlj5lPdYy9JMFZ5FAAz9Qbo9f5oAxOqA1O0ESPHgch+p514NLYS MgeM1fKZs7QQ8CO/GoXqMA13FiIIuOy6Mpcq+MOm8bIx3Hl2ykJeHli/QulD56CgSoKy gt3OfmzrJgJ3HmnPHf1yBXjbK5SdDsG/PKPW7sRKpAgyUtQ3mQp/dn61AxAhXcZTnL2q z2ib2qzE28TquZc8h9ppqmWW00s4GNA5f1VrMzfiTvZt3zphLngT4j7VVWNWk0WR3DCw ACLlDE55GRcN0UkDAUsZtdtvRyB+SLFRUi7nCjMMllxNXN0lcw7lylp9XPX0iIrUhdVR dcAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ca5TIJd4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l28-20020a63701c000000b0055339507f67si908334pgc.836.2023.06.19.21.55.00; Mon, 19 Jun 2023 21:55:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ca5TIJd4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229970AbjFTEpU (ORCPT + 99 others); Tue, 20 Jun 2023 00:45:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjFTEpS (ORCPT ); Tue, 20 Jun 2023 00:45:18 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8977B10C7; Mon, 19 Jun 2023 21:45:17 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2b45b6adffbso54484991fa.3; Mon, 19 Jun 2023 21:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687236316; x=1689828316; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=/LSn6ut/KlRF0j/GAnYc/CKJzMww10Za5lKAV1z62hM=; b=ca5TIJd4ZAMVapntSy0xa37I5K+i9yuQihk8WfptSMItYiTtSmcRx/b6t7LzfEmq16 0IiT/YcFHsxWMop7Z7m1qoFgz6LjTtxOZz0u75WkYZVqQqAxmE/QCRTOOsP77o229Hk0 SqFwUagC51FsYMAjYREsJ2Zr2tHVTgGZR0Ov2e3qLnsoftLEZuPmxebJxClz4OfUDgpq OoiSIfth66UYF1RGCO14GqEvaOu7ajvVncNtkVinxig+WCiiz84/UGWsZXHU75KVBpJ2 EJWlLvWiyPxVm0eWt8WJcXi0xgGyEr9O1TY8LmRyOmWwLUiHuvn9q6HtSLYGf5b6/m7A dtuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687236316; x=1689828316; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/LSn6ut/KlRF0j/GAnYc/CKJzMww10Za5lKAV1z62hM=; b=CxekWNyIySDzr/wBseb8gGO2a19ezRgYweWaMMxvSBCosYuorlZCsvr6qRn2JVoBad oMM5uDxMRIcp4K3f873i9TI/c3pfZ2u4/G1sr86JkcTQt76cMmfoS8OONg43ArXzQ7WR fjuOfAU2ZjNhswHNAku/fBhz0MZh3yndoErlNVp/O44WgV6+IGQtAOOgAO5UQx86XAmw mv3AC9uJwFpv0bvxTj5sNet8jkzsHTMHcyNbtIfh9ypltBJ4dQdt/+G9uRqbH8xt7mnV 3qbmprcsZbzKFJvY7HVZpWml2BqN7et41xrvwoewi7ltj8KZ1imXyZZtMN3sNB/cl7rg voRQ== X-Gm-Message-State: AC+VfDyhn7Wr7YQJruzqK7MsqLVlrlNPTFBatPYExQ7P8/G/YKDcxmZH xGnj6r2GFZo3xEpIp8yPnFuWO4xjG+eFXHLd/kM= X-Received: by 2002:a2e:9789:0:b0:2b4:5b65:c904 with SMTP id y9-20020a2e9789000000b002b45b65c904mr6339409lji.52.1687236315517; Mon, 19 Jun 2023 21:45:15 -0700 (PDT) MIME-Version: 1.0 From: Steve French Date: Mon, 19 Jun 2023 23:45:04 -0500 Message-ID: Subject: [GIT PULL] ksmbd server fixes To: Linus Torvalds Cc: LKML , CIFS , Namjae Jeon Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please pull the following changes since commit 858fd168a95c5b9669aac8db6c14a9aeab446375: Linux 6.4-rc6 (2023-06-11 14:35:30 -0700) are available in the Git repository at: git://git.samba.org/ksmbd.git tags/6.4-rc6-smb3-server-fixes for you to fetch changes up to 5005bcb4219156f1bf7587b185080ec1da08518e: ksmbd: validate session id and tree id in the compound request (2023-06-16 21:04:51 -0500) ---------------------------------------------------------------- Four smb3 server fixes, all also for stable - fix potential oops in parsing compounded requests - fix various paths (mkdir, create etc) where mnt_want_write was not checked first - fix slab out of bounds in check_message and write ---------------------------------------------------------------- Namjae Jeon (4): ksmbd: validate command payload size ksmbd: add mnt_want_write to ksmbd vfs functions ksmbd: fix out-of-bound read in smb2_write ksmbd: validate session id and tree id in the compound request fs/smb/server/server.c | 33 +++++++++++++--------- fs/smb/server/smb2misc.c | 33 +++++++++++++--------- fs/smb/server/smb2pdu.c | 70 ++++++++++++++++++++++++++++++++------------- fs/smb/server/smbacl.c | 10 +++---- fs/smb/server/vfs.c | 117 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------- fs/smb/server/vfs.h | 17 ++++++----- fs/smb/server/vfs_cache.c | 2 +- 7 files changed, 196 insertions(+), 86 deletions(-) -- Thanks, Steve