From patchwork Thu Oct 27 19:03:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 11924 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp406977wru; Thu, 27 Oct 2022 12:05:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4XjFDMzv94Hpe1RENaM0nHxFdI5f+yWH4rub6laP/pt1aLQ9r2NWD/sakZyimK/MvPQGHF X-Received: by 2002:a05:6a00:15c8:b0:565:bc96:1c5b with SMTP id o8-20020a056a0015c800b00565bc961c5bmr50679892pfu.52.1666897530367; Thu, 27 Oct 2022 12:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666897530; cv=none; d=google.com; s=arc-20160816; b=dJ+cTt4zE84Nd1fsP3vH4ssnqYG6p6ftfMbhbNuZJFWVXmBuJPeamzHQTWrqsDyPkM Oh+UZGRpSjpaoDNln2HfGFZVnI9/IakWOYE76eXz9APhUlbEgPKBTiP8FKprH6z8q7+C wdpelYLmj0RURxd95s0Kh4bq8SwBwsixN6GIUriWiyN6Q47qrsZjmBrPlo/BQZ0JvD3t eYxd7kt6JXdtnEPnKETg5e2lGOmsbHmWVk1jhOT+EyfN5b/eyAcfYIXBkxy1YSiI/BFn 9ex0DbHsDEYsgxHJyNVRHgD0jc3vbg5rnAlTGTE7Ce3BgTK4eI1sZukHVa4dUOQ/E5Y0 VmiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=u9re30L3Qf1nWwfY1dsIhAySAPn0ZrFVWEIZ6hesyg0=; b=L2vAmMMTu/Dd4cPByFthrowCl5XfpWV7P8ECzmI5F6FkFLXflMrmzE9Yw1ZlAJwWnU f9GX5JvuKwOeW0IZlzbTuCkOrzv3Cz1dqB+nTCQUqEwlIe316MA7qZ1WgWD1I892UFIM e3P5ODbMjxTqtqbMSuyOk7qg1PXwxkM80yf7cnTarNurmXpFABSFYeXsFCwA4G+RS29H 5OrPyjoZ/8zbA1rdQiQqb5Tc50ArOx78JnMNPjuN3Ef5w3pCCw7/7oscECI0xZnMnkYC CXRKoFJwbvjte9xOhHW5yYpFlaObBGCvMfEsnfKfBJ+5D/fHQJ/xn4od7SRJPPZnt0cZ v9YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fnIImG0i; 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=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oc17-20020a17090b1c1100b0020169c73d8bsi3149938pjb.2.2022.10.27.12.05.17; Thu, 27 Oct 2022 12:05:30 -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=@chromium.org header.s=google header.b=fnIImG0i; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235372AbiJ0TDc (ORCPT + 99 others); Thu, 27 Oct 2022 15:03:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234920AbiJ0TDa (ORCPT ); Thu, 27 Oct 2022 15:03:30 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEB5C5F90 for ; Thu, 27 Oct 2022 12:03:29 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id p3so2518244pld.10 for ; Thu, 27 Oct 2022 12:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=u9re30L3Qf1nWwfY1dsIhAySAPn0ZrFVWEIZ6hesyg0=; b=fnIImG0iDucSTCyvxGTxY3d9lDdBvL7ROo88gDYrVx3xsPfdBvt1S2y+w/INuTYEWz FtNj8P0QY4I+xSWJssWO3K96FRG7Xcdw9VF/dwMA7x7XsCoenHjoq94xVVxrfqn1cvwG VA5mWwTUi7/N9k0hUuttlg+nynQ7Fixhdd/to= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=u9re30L3Qf1nWwfY1dsIhAySAPn0ZrFVWEIZ6hesyg0=; b=NF7HrOnAA+ok2+4KAlNqvfFKm0xsV6hzibS6pUBeMoHmVy8XMr1A4gaEdnvI8XEaxw HzJsxzveR3IcSEBZE9z/G3QZk+CVq+lrIXavwq/Zu2BuxuRLJR91ULd4Cf7eC9m6J7rN TXXCAKUwmWIdivqPASfocIy9sqOYB1bE9UUx67uRaXSDZD1y+om8LVQGffHp3y/O8clV qVqO6tbSnjYGdEJps707K3otN2ExLB6yd05kJA81gqgcTuvth0PDlNuP0WG7BK6UOsIe bt68iBqEXbbMjOUq2s8n3s+me6UC0IuXJCqrmeTF1FmT51p+yepDZQMFd8aeOuvTuMxC NeKg== X-Gm-Message-State: ACrzQf0C5xOc1ryfMq/moyJwvmWzeKw4YBcsrJIaZx11stWwzICk+Uyy /8DcQZQifLc0RzNv8R5sGFMQ/A== X-Received: by 2002:a17:902:f683:b0:184:d45b:a096 with SMTP id l3-20020a170902f68300b00184d45ba096mr49382092plg.23.1666897409281; Thu, 27 Oct 2022 12:03:29 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id x15-20020a17090a46cf00b0020a0571b354sm1276584pjg.57.2022.10.27.12.03.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 12:03:28 -0700 (PDT) Date: Thu, 27 Oct 2022 12:03:27 -0700 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Akira Yokosawa , Daniel Latypov , "Gustavo A. R. Silva" , Gwan-gyeong Mun , Jonathan Corbet , Kees Cook , linux-doc@vger.kernel.org, linux-hardening@vger.kernel.org, llvm@lists.linux.dev, Nathan Chancellor , Nick Desaulniers , Tom Rix Subject: [GIT PULL] hardening fixes for v6.1-rc3 Message-ID: <202210271203.1CABE4152@keescook> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747868744396746048?= X-GMAIL-MSGID: =?utf-8?q?1747868744396746048?= Hi Linus, Please pull these hardening fixes for v6.1-rc3. Thanks! -Kees The following changes since commit 9abf2313adc1ca1b6180c508c25f22f9395cc780: Linux 6.1-rc1 (2022-10-16 15:36:24 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v6.1-rc3 for you to fetch changes up to 72c3ebea375c39413d02113758319b74ecd790bd: overflow: Refactor test skips for Clang-specific issues (2022-10-25 14:57:42 -0700) ---------------------------------------------------------------- hardening fixes for v6.1-rc3 - Fix older Clang vs recent overflow KUnit test additions. (Nick Desaulniers, Kees Cook) - Fix kern-doc visibility for overflow helpers. (Kees Cook) ---------------------------------------------------------------- Kees Cook (2): overflow: Fix kern-doc markup for functions overflow: Refactor test skips for Clang-specific issues Nick Desaulniers (1): overflow: disable failing tests for older clang versions Documentation/core-api/kernel-api.rst | 6 +++++ Documentation/driver-api/basics.rst | 3 --- include/linux/overflow.h | 38 ++++++++++++---------------- lib/overflow_kunit.c | 47 +++++++++++++++++++++++++++-------- 4 files changed, 58 insertions(+), 36 deletions(-)