Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2386688pxb; Mon, 20 Sep 2021 21:01:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoWhrLw1osDD3qZWCOVF0eB7lpdLUEhmN/X1SkNLeJ2jubfSw0WgQzl3qDg0i1wIxlqTQX X-Received: by 2002:a05:6e02:10c4:: with SMTP id s4mr18843705ilj.285.1632196886989; Mon, 20 Sep 2021 21:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632196886; cv=none; d=google.com; s=arc-20160816; b=TDeMF8ikKAka++DtLlEMU0s06T2iQM+TJf1gwnMkvaYB4HmudbyeZS+quc5yGgpDBK 0GzboK/2pDRf5ks1nx7XhnxQY7HoYlD2qZzulsIdiei7jTidWehttsPN6cCNekTLjYIl bsma0w8QUnYqvqhH2LW9Ux1DGPFIyQlETKCcktUMjJuNKKPYy6boNsGzyK7hIssDv2NU yc+/NKxawp6/cofwTD6VaO6jvC7xBS52W4w6eSs2nqQXDyviE5Vf+3BPkEkL50oZxFpw BebU5v0u73mSPu6xXAH4gs3D6jyc6HR1/BRXZ2u4Vo4UWz7iSElbCTPSXutmgeqoFT+p gmNA== 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=dKYtMG1M7HT7q8h/2F2W9SKuIVgYAAKbgp4qkM0hkq8=; b=T9yJ+GxO2WK48FRokRtCLv/DIHQuwaBrs142myibnMUg1Ur8WTkNns60P9Krb0+B2s q7OY7c398FaUNrEcOyUPE+UnnIVGKdd3XQoYwYBb5hvYlnG2UlwPHqUWuNHsp/8MtgE0 D56djiQgdvbnbs7hSn8Dt3g7kLeRUhXRiNnWE2G3EfW85jDTrBK6a9tRZiKKgjtYeHtF nenmZDlj0oMBWDVubiMVUyM48JqSPFwow1Lvp/X/EGPLDZN1Phtr17iL6faxJTT9AHfq Tkh/YVv3pSMhqeJ1EyWKrTad//qC97kWSR1rDaAGdit68pgrYYTyqHroJ8tRUMc/WvKH jP+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bpVZYC3j; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si644868ilj.16.2021.09.20.21.01.16; Mon, 20 Sep 2021 21:01:26 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=bpVZYC3j; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343499AbhIUCLv (ORCPT + 99 others); Mon, 20 Sep 2021 22:11:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238437AbhIUB50 (ORCPT ); Mon, 20 Sep 2021 21:57:26 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 929B3C093956; Mon, 20 Sep 2021 17:43:59 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id g41so42115206lfv.1; Mon, 20 Sep 2021 17:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=dKYtMG1M7HT7q8h/2F2W9SKuIVgYAAKbgp4qkM0hkq8=; b=bpVZYC3jvvyKyxCGVOURxtfkbBNd1Q5QdGWEZFATxHGnONqI/7rxQ492kNtWTiMLGm 4kcgJP/qfk8/uVFHkmgbllg9HvjDz1Ox7ASENylzxkkcQEoN0Qk+zI+LwlbSBwF3hDQj C4+hhT/07PYc+3QJLRxwk/zfIQfWyIaefo/tNzeVklbi4e9kZml2xt/t/d32hwCiUN4V Qfd2HjQ349r2KAFNgNnfPSWCfgDDqqq94Ddir3dMi2KhJsz7c7HAwBwhEIRKiP0zEBiE Qmey/j30dowsuHwEzJcH8RNgaSYshSuwUWAsK6UZWDRr63Xek3NbMCYJLJ6uGpsClZnY gWCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=dKYtMG1M7HT7q8h/2F2W9SKuIVgYAAKbgp4qkM0hkq8=; b=JphknETf2XWD2bIQh5tiArvG5xXqExi5X8PN89GiBnEfic8eZhSOxFQ+/7V/5OHq9f XNy8BEh05OtPqQUW3uXmjLjeLSjMXCjDRR/8YG/IiRRt4GbbtyjDQbblqQRjsltYoVoZ p5WdZZlBoa90qXEsvVaUDdcPuWWyZgQ7PhAgTtTJMLZlM0rUPowcBc+nz3rEO1peOZ9n ZfogWE3WsLFfgcdt9xsD6VyfcG8nouPwgMawzCH5bWhpYN2tEu8FTU3ElEzlIqDEbrvf natjjwon69gbEO50UHzFHnjDdFgyHzi14zOXLc6HbKPiI1VElNbU8zlDnFgJmRIdd10o 8IYw== X-Gm-Message-State: AOAM532AhwNzsUhBOyIDAqrVJF5h6bqUT2K/aKThC3aQVZJ69L/FXqMR 4DIe1egXbF5n9vouDYxX+8gozMZOekQ1EYqDWqz7zNs9nm0= X-Received: by 2002:a05:6512:3d93:: with SMTP id k19mr21982026lfv.545.1632185036666; Mon, 20 Sep 2021 17:43:56 -0700 (PDT) MIME-Version: 1.0 From: Steve French Date: Mon, 20 Sep 2021 19:43:45 -0500 Message-ID: Subject: [PATCH][ksmbd] log that module is experimental at load time To: CIFS Cc: LKML , ronnie sahlberg , Namjae Jeon Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While we are working through detailed security reviews of ksmbd server code we should remind users that it is an experimental module by adding a warning when the module loads. Currently the module shows as experimental in Kconfig and is disabled by default, but we don't want to confuse users. Although ksmbd passes a wide variety of the important functional tests (since initial focus had been largely on functional testing such as smbtorture, xfstests etc.), and ksmbd has added key security features (e.g. GCM256 encryption, Kerberos support), there are ongoing detailed reviews of the code base for path processing and network buffer decoding, and this patch reminds users that the module should be considered "experimental." Reviewed-by: Namjae Jeon Reviewed-by: Ronnie Sahlberg Signed-off-by: Steve French diff --git a/fs/ksmbd/server.c b/fs/ksmbd/server.c index e6a9f6aa47eb..2a2b2135bfde 100644 --- a/fs/ksmbd/server.c +++ b/fs/ksmbd/server.c @@ -584,6 +584,9 @@ static int __init ksmbd_server_init(void) ret = ksmbd_workqueue_init(); if (ret) goto err_crypto_destroy; + + pr_warn_once("The ksmbd server is experimental, use at your own risk.\n"); + return 0; err_crypto_destroy: -- Thanks, Steve