Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5943665rwr; Mon, 24 Apr 2023 11:08:29 -0700 (PDT) X-Google-Smtp-Source: AKy350ZJtL202WQZr7hxG0O7Nw2SGLrN2XJo6JQwRs7Kw5tbNDuxZNpP/GI+31JqxZG2P7hgjYgY X-Received: by 2002:a05:6a00:23c9:b0:63f:cfd:5d10 with SMTP id g9-20020a056a0023c900b0063f0cfd5d10mr17607931pfc.8.1682359708459; Mon, 24 Apr 2023 11:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682359708; cv=none; d=google.com; s=arc-20160816; b=esyMp1iWvCqc9CUO46oX1davewmsHOTqrAl3wm7YEAqCzwbxaDCV08evEg5To45cF3 RD3uFKfW+b/dF9+wmgO2e9O1mkY/bPc+d8JqcfBYBJpb9sI5GBj8AVJZaDgTTA9nJl9i OZoNSJcvsF+QsMBmJSccCa0xZMEzveP2QCVNRiL7aJBq0DUEsVJoLcu7p0F7oyTEUMQa kr6KYf9TN4cnw4EnkIiWaSajgnEcaF7up156Rzllafmp96SYYwQWvZQ2uBUcMZ1BkzPk 3zlEbIUGqeiD+W6oBuKZZM7K/tFEsxUM1/EAd5tn2lLl7ilM6RKFVz4J2NLqHMqyxqFW Cudw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:content-transfer-encoding:subject :from:cc:to:content-language:user-agent:mime-version:date:message-id :dkim-signature; bh=LDdbfV0FTymlREW57vx/yjHO76KrDdQYhhj7T88dg2A=; b=oUl56qQ7r3us2eHDVbEExxswUFBuxPeFwcBkIUSkwAkJMByqcfFO2MNZlziCS31Xw7 LEDrUxRXGYj8ReUkn35dV+0ZV2kh/TZwMHNKVHCZvP9onhxxrZ/U2sPDBq6NJNvl+pse llZwtBEHfQypPp7loGI/EtiDCAtcIQdVjCkbuBWFzqLKNCjeiz34RLRLxGIs3BtcE3q0 yaU8xcYhurMKnTb2uqEpICN8EIURtlY4F+HPbqpjRuvqofv+N8WZD1RWNjMVv7GTN9nC s4fucRVtOKVLJquOnidLGCI5m5QXBQErfE3hXjMFldzxEXLDjlxJVF1FfG8Dua1wbwS1 RmXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=jC6zVL4h; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a654b8d000000b00524f8b0f257si5742113pgq.102.2023.04.24.11.08.16; Mon, 24 Apr 2023 11:08:28 -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=@yahoo.com header.s=s2048 header.b=jC6zVL4h; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230500AbjDXSBs (ORCPT + 99 others); Mon, 24 Apr 2023 14:01:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230526AbjDXSBq (ORCPT ); Mon, 24 Apr 2023 14:01:46 -0400 Received: from sonic311-30.consmr.mail.ne1.yahoo.com (sonic311-30.consmr.mail.ne1.yahoo.com [66.163.188.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 475C66A42 for ; Mon, 24 Apr 2023 11:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1682359304; bh=LDdbfV0FTymlREW57vx/yjHO76KrDdQYhhj7T88dg2A=; h=Date:To:Cc:From:Subject:References:From:Subject:Reply-To; b=jC6zVL4hl8e3305nMOGFDf5d245P3M4DnOteFt+WuR3oGk/3MuQfeQBtO6yCkrVuDW6tzy+1jksuh9cUOCj1o2P4YLAJ2RHPmNLLTNJVixIBwAmFH1AisIWTgqgR7trzrXPFpNil0O8Ditkny8JKh4YsFHDnXz8ozVQ3Fcx/BcWpkIdEcL6EwOdfYFGYMUeHg9pQ2TALVxdgwb0774SMVzs/krB2lF65jxrQOq2Ex5JCTcnIznv346kRGPsRpKQnjeqANBBzsYuirHbkuLg9ZSzHdYxnrxJBpA2/UqoyU0pBapc5Lb5qwVlEwQ9JQjoYOt0zQrD7qXFlb1s51/e5qQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1682359304; bh=eVFhDHSbUoB2pmUAra4dDEQRX7R8G08k4lXsASPWyQZ=; h=X-Sonic-MF:Date:To:From:Subject:From:Subject; b=BYSIJ+jnjl2QSey38HMUlboGEMBU7G9FBwJexWdqUnGzG4cbaCnQ7RscVDfCVGnlmG3vbsSf/4oLmsLkUNFQ4E1xbYLxHBJwMQySGnwqkdgOHyw8zZKld9bzBUIyXNNMK9LIwpZIeabmeIFBZDSq9ezZuQm0tmjjg8weGZf2perzMWBVAKI0qWIgt9M+IjKgPw35tAiz6oavnVCSQJ8uIKifIqmzJPLxcO2pN8hiRAv+qt6e2B38LrCzH9Q5Wl5dBnl8/OtV8ZX3M38DTZtzwZywqg4DuaG23R8MQgpOw/gEP9+wFZWsKc7FUVvPugDTBhBz3f5ZxLfliq8zp7iKkg== X-YMail-OSG: zq2M8vAVM1m5SJpliuC8IxDLYUJFCjNvyQed1KYvU1e3H5oddcPT0P5tLcP8w9A lrwPODnxAqSfxVjhbecAmTPchcepumbPYvo_4AUJFdWgFPyh4P76MGcd9mZKVPpvBSS5o0p3i1Pj SUXoigzwg93vqTmL4426pxgbbCNGJI.SRnMaCYvkUHMwonuE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ZNBROkZGSQeTeO T_A-- X-Sonic-MF: X-Sonic-ID: 88875046-ed5d-424d-96d0-d75325c6c71d Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Mon, 24 Apr 2023 18:01:44 +0000 Received: by hermes--production-bf1-5f9df5c5c4-84ds6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 277c7ed0f5ba8fcd32580b947df2f797; Mon, 24 Apr 2023 18:01:42 +0000 (UTC) Message-ID: Date: Mon, 24 Apr 2023 11:01:40 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US To: Linus Torvalds Cc: LSM List , Linux kernel mailing list , Casey Schaufler , XU pengfei From: Casey Schaufler Subject: [GIT PULL] Smack patches for v6.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: X-Mailer: WebService/1.1.21365 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Hello Linus, Here is the Smack pull request for v6.4. There are two changes. One is the removal of an unnecessary cast. The other is more substantial. The mount option processing introduced with the mount rework makes copies of mount option values. There is no good reason to make copies of Smack labels, as they are maintained on a list and never removed. The code now uses pointers to entries on the list, reducing processing time and memory use. These changes have been in the next branch and pass all tests. Thank you. The following changes since commit fe15c26ee26efa11741a7b632e9f23b01aca4cc6: Linux 6.3-rc1 (2023-03-05 14:52:03 -0800) are available in the Git repository at: https://github.com/cschaufler/smack-next tags/Smack-for-6.4 for you to fetch changes up to de93e515db306767549bb29a926f523ca2a601ab: Smack: Improve mount process memory use (2023-04-05 08:46:14 -0700) ---------------------------------------------------------------- Smack updates for v6.4 ---------------------------------------------------------------- Casey Schaufler (1): Smack: Improve mount process memory use XU pengfei (1): smack_lsm: remove unnecessary type casting security/smack/smack_lsm.c | 64 +++++++++++++++++----------------------------- 1 file changed, 24 insertions(+), 40 deletions(-)