Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp914553rwd; Tue, 16 May 2023 09:11:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6F0pQed4IKbyd8gyb2w1iQbmYp7+zpHiePopLA0aPyfJ/8cEq/KD8NbQiX7N87caMCv8FW X-Received: by 2002:aca:f055:0:b0:395:ee08:792e with SMTP id o82-20020acaf055000000b00395ee08792emr4667196oih.3.1684253498490; Tue, 16 May 2023 09:11:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684253498; cv=none; d=google.com; s=arc-20160816; b=0WyPd7iA8kH2iOfHZX1j2LNMmS7IDTjQ/O8TIlwT9iuD95O51UaC6y43CRc/WxVQST U6Vtf30b8rOw5Q4JFsoQdRZQRqxyjcY9plvnBbMZMEzN8/N6U0/QDjOY3oAeaaa9Xmch Fxjm/AJ0/HDhDUX/ADqLb9X7xpmUxdehzn//J6mhSzlqsjENapWFkplb/x21AzJ4c5m7 3/cS/ZvCUSozLjleEKbZZYu6p56uH+ffMWEqLFR8iQhHU2XhSaMW76qXqOEasHD+Lzbh EdhQxn/oD+z1A+ngb0xmBJc+4YeRqHNgpeT+M6R/ZbPlEmai87PWwU3rnjZwWxzRW3kg pPmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=l9AzgEd9FVgYOtjPpkXOXkDV5Y0LT4iZYlTcb1nMxuA=; b=vmZieONSFUga1Y4xuFwIh2Dg2FrMRYjQQSZJ9lwTAccNo0jl2TcfbGxDj08M/bNx+s 7PbPa93+/62gR44G6687JYvPicBwTYUD3BfQbCHWZRdAMJ/cMowZEhkJc3/6Q2mc0/Bs HuMLDejEka+KLLqgKERXOrZGU/aXljQPDCRfKH+uOr3pcRNgiVz6QqWxCy2IMxU52teJ tEID8nLPTIuAYHSEQ7bVNvK3f38jAPOnKVtYDm4pMA3vAXqhg7ZvbJxJp4hpn99gS86k jwPZvGg5LgtOMCta/SDsDjK9Yng1/Y9mHxEfr5Pc5SiSlkQXxkQBy5oYAqwrOV3+Tiay bWDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=D8p65v5B; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s8-20020a056830438800b006aca17571dfsi6404869otv.45.2023.05.16.09.11.24; Tue, 16 May 2023 09:11:38 -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=@cirrus.com header.s=PODMain02222019 header.b=D8p65v5B; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229547AbjEPQJt (ORCPT + 99 others); Tue, 16 May 2023 12:09:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234418AbjEPQJR (ORCPT ); Tue, 16 May 2023 12:09:17 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60134D04D for ; Tue, 16 May 2023 09:08:43 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34GFMCac029111; Tue, 16 May 2023 11:07:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=l9AzgEd9FVgYOtjPpkXOXkDV5Y0LT4iZYlTcb1nMxuA=; b=D8p65v5BqeGGQqTGqw4LkpFUGeqxi2pLDAblHESA4QJehwhpl9+aB1ESgtjXT/O5ik47 ri4j6q94HEfN/1IReTlcqRetUWLOdjZVZHtw8Z47SIgCuZGXG+jzJ891TEJZ634ChKWj RtXcrROjzdKxqV+sf5amKAB+lKfJlZJmLT0/aZo523DHD0aEQQj6/rxofV1nr1O89FvW IlXWGt6jMZcGQvp0VML3nqPQG/Uuh2ApXfStlxDLrc3nWtQ4oNgjH7bWs94rlyOdself AIzK0ulmICW7rBqBxGmmHrXw45upKF1KK8vqGBjFJM4XelLCZXNzyJ6jQtX95dR0aVfC oA== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3qj6ymvnvm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 11:07:57 -0500 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Tue, 16 May 2023 11:07:56 -0500 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Tue, 16 May 2023 11:07:56 -0500 Received: from EDIN4L06LR3.ad.cirrus.com (EDIN4L06LR3.ad.cirrus.com [198.61.64.66]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id BFA99B38; Tue, 16 May 2023 16:07:55 +0000 (UTC) From: Richard Fitzgerald To: , CC: , , Richard Fitzgerald Subject: [PATCH 0/5] debugfs: Fixes and improvements to debugfs_create_str() Date: Tue, 16 May 2023 17:07:48 +0100 Message-ID: <20230516160753.32317-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 6vNdF13aEgD8RDfyQZReKc9I20BYKlQe X-Proofpoint-ORIG-GUID: 6vNdF13aEgD8RDfyQZReKc9I20BYKlQe X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Fix NULL-deference bug, kerneldoc errors, minor coding style error. Also add a wrapper to avoid having to cast a const pointer to non-const. Richard Fitzgerald (5): debugfs: Prevent NULL dereference reading from string property debugfs: Remove kerneldoc that says debugfs_create_str() returns a value debugfs: Update debugfs_create_str() kerneldoc to warn about pointer race debugfs: Move debugfs_create_str() export to correct location debugfs: Add debugfs_create_const_str() fs/debugfs/file.c | 21 +++++++++++---------- include/linux/debugfs.h | 27 +++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 10 deletions(-) -- 2.30.2