From patchwork Mon Nov 7 23:10:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Moore X-Patchwork-Id: 16766 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2352238wru; Mon, 7 Nov 2022 15:11:20 -0800 (PST) X-Google-Smtp-Source: AMsMyM76s29cC8HA1cQhV8KFH4ApNzutR8cAzmpxiJhruxNvjAnaz1s1KQr1QGp5ZbMxXy+tUQGZ X-Received: by 2002:a17:90b:4ac6:b0:213:ef82:b111 with SMTP id mh6-20020a17090b4ac600b00213ef82b111mr41741790pjb.170.1667862680610; Mon, 07 Nov 2022 15:11:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667862680; cv=none; d=google.com; s=arc-20160816; b=c4W+XVDVeOnz4VHBXYLCMUCXkPWFsxWFo0XaHJ16G34z44v7KPmIVj5h6ThTUftjjw TMfjxl98xD9Djxwh4SHv5IJYIOyBLEHgZJ9gqc7IIbxuX4ux9830UqB2+PkBRX3UoHBn gh+05vPZOgE3ABW90V74zK40IUj+/YWtkgopre7k7SXJs/9QAqDgEeKM12qlbzTqUGeC EeumuM787yIgZTT11H2OGHqMcD4fydJq1GCSlzKyQsGRHRXtX1rjbWay5fgp0pkysvk3 B1vIrNhFXz5UHyrGC3PylQ+WnO9SBstMoIVj4qTGtXhR7mCv4/F90Gl+gnlz26V3RESc vlEw== 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=b3/fVZYQ2JVpTiGx6skt/0tkMTqCCwQ5hILAeoHIzSs=; b=Ka908FlOKU72uTCe/yUCOj5hHmDGyaedwjsPJeegCnkUXZRi4arbUIz+gX8oaxD/fz QjKaAQtBZuBcpLIjBTWWOn2324GB8xaGb6TocCmLUrhBPs6lIfl68CA8Bz+P2C/sETLx po05uhDDHmehdbAvryNKUhdAwTGSIon/rp1Qp6nuijEIV28R0wCvoskL+qN7MHrQ3Xgz C9cqHpjL9DwwIVlAuqBj33tClG9BtPi1D1ow1yLcmwSkOZq7kQlLO3OBtBuP11lKpuyb z5wXNrpicMxZZQmWgQsHFFU01azh7cOpFPmFqeo5LNR5k2WR8Hghm7Cw/ylcA0tB9fST a9hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20210112.gappssmtp.com header.s=20210112 header.b=J23GC8EY; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iw12-20020a170903044c00b00186ab03eebfsi12034947plb.418.2022.11.07.15.11.06; Mon, 07 Nov 2022 15:11:20 -0800 (PST) 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=@paul-moore-com.20210112.gappssmtp.com header.s=20210112 header.b=J23GC8EY; 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 S232781AbiKGXK3 (ORCPT + 99 others); Mon, 7 Nov 2022 18:10:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232416AbiKGXKZ (ORCPT ); Mon, 7 Nov 2022 18:10:25 -0500 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA7EA23164 for ; Mon, 7 Nov 2022 15:10:24 -0800 (PST) Received: by mail-ot1-x32f.google.com with SMTP id w26-20020a056830061a00b0066c320f5b49so7446854oti.5 for ; Mon, 07 Nov 2022 15:10:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=b3/fVZYQ2JVpTiGx6skt/0tkMTqCCwQ5hILAeoHIzSs=; b=J23GC8EYhjiHcauLwHf3AkHmpNjY+UGFWDCJ575jzVT/d14snbPbn+Vgxzh3MLJCi2 H0Fc2LrcQtdGr+3N+jICTx3q3HLad5BGDFRmXZNJ84dVJBseNtE+f+SHdfG5T18xg/77 sgFNoNw0X7whV+ZxFfD+4x8/6UFiCefWYtqkcfrZivAfydaRlpfB1OrDuFq8IAz6NsYU VvMR3RnGsDcb6QYap/zqk9xl7M1XwonqFizZ6/oMx+8LQdSYve7DQRvaMJWewOLni+8u pQzpCwVmDTSUENjmAhAs6QMoRn9EKRaWHywGyv3sIB10roPMW0hbW4LtRwcbdpFHAolz Vt8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=b3/fVZYQ2JVpTiGx6skt/0tkMTqCCwQ5hILAeoHIzSs=; b=41rvoh1+3LB/zvq1/mJhAjeiqbD8mNvGKuYmfYcJFwgIKv/Imjn98z2AuTrBOPNb0a VbwKxBgiQ+eW7Fj7HZEczFfADHBgUit7xFXRyteTuQn3c0YJa0idRHREhj+IcK5/vhDU AO3hte7GBWcyeceo3Etv4zoP35urIF1qTZ/s3NKy9JG3wQyKZwv2CIspUPgvtNJMdjYJ RBLK9yVWrLwMKMcLAyJ9QbcPMVUV5ldvYko8jFru4SUvuE6/9eJeQ0w4ScIUAwSFLDDU GYQ9E8BhAWoPfoWRQidTOHthtMPjoxbSSry/4NsoK44utxE/znH71/QisV1J52bJkuPY E8aw== X-Gm-Message-State: ACrzQf07hgGOW0xtKpQ7f63htY3fJ81kqxCQBKoQYTFFImz4FeQ8/O3C KSYUeW4SAZA0fieFbDvnnAkCyCTMM+oTxue0GaAGCJDFrYDU X-Received: by 2002:a9d:7f84:0:b0:66c:53ef:e555 with SMTP id t4-20020a9d7f84000000b0066c53efe555mr20871959otp.34.1667862624045; Mon, 07 Nov 2022 15:10:24 -0800 (PST) MIME-Version: 1.0 From: Paul Moore Date: Mon, 7 Nov 2022 18:10:13 -0500 Message-ID: Subject: [GIT PULL] LSM fixes for v6.1 (#2) To: Linus Torvalds Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org 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 autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748880778464841770?= X-GMAIL-MSGID: =?utf-8?q?1748880778464841770?= Hi Linus, A small capability patch to fix an instance of undefined behavior in a shift operator caused when shifting a signed value too far. While the fix is trivial and I can't imagine it causing a problem in a backport, I'm not explicitly marking it for stable on the off chance that there is some system out there which is relying on some wonky unexpected behavior which this patch could break; *if* it does break, IMO it's better that to happen in a minor or -rcX release and not in a stable backport. Please merge for v6.1-rcX. -Paul --- The following changes since commit 8cf0a1bc12870d148ae830a4ba88cfdf0e879cee: capabilities: fix potential memleak on error path from vfs_getxattr_alloc() (2022-10-28 06:44:33 -0400) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm.git tags/lsm-pr-20221107 for you to fetch changes up to 46653972e3ea64f79e7f8ae3aa41a4d3fdb70a13: capabilities: fix undefined behavior in bit shift for CAP_TO_MASK (2022-11-0501:25:57 -0400) ---------------------------------------------------------------- lsm/stable-6.1 PR 20221107 ---------------------------------------------------------------- Gaosheng Cui (1): capabilities: fix undefined behavior in bit shift for CAP_TO_MASK include/uapi/linux/capability.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)