Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp45618imn; Thu, 28 Jul 2022 21:55:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR6kRNu1RBdmIR85MbLGL2OgUmaFUE+XDSEZlkMMqcYveGCEYvYQR+gU7Z8l/ry8HnahzYZ/ X-Received: by 2002:a17:90b:3c47:b0:1f2:feea:db9b with SMTP id pm7-20020a17090b3c4700b001f2feeadb9bmr2168753pjb.7.1659070555542; Thu, 28 Jul 2022 21:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659070555; cv=none; d=google.com; s=arc-20160816; b=Z8o/kAgDPbRVkbmMjBM1jphZAOdyA74dzmqWs27lkeQUxzbuYkhm2UYUn3bnJOdrgb +tb9ibutTkYJAyVO8/qXG1q2J3Q5AMY7Q5CFvdzP6K9VguQn4T1Jt3Gm+pJF0Zau16Tp Jj6fD8m4Q6XjvRY1GDu7rw4ADd/ek90yPHylXjJ8axTzQd8H8BkCYBEf4fC4C9/vaMf1 voSXwl7Umn85s65SQz56/+fmCQEp7wJ3zAG4xPDoC4szZKPUaS0Zz+M/kQFySxWnD0r4 UxT27e5wmz6dpBBs9pQJvR09fkO1ITvT8qCAP5YCrBPhBezsv/AGO8fIg0BDY+k+w/nK hlBQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Nih3CQ3bvbr3caRHPwLofzDk9DoHwlUp15C4DMS5PBo=; b=yCwBrUiJKNuVUUE/d8x+yOVvVOwEZnS2Lp9khJOiXTAPx8OvTU7Nu7llWmy/8XIzUO 8x5GsIO84j5EhKq11ofHSINCLCxQqaKH4B0NCHVxOKYgCZnL8uSCqucc8+SLKYUssbr/ 4fOxM+PDeXQfw1seYXm0QzD5dG9VxJqQgDsYPTGu1HKDMDu78Dc/DZag28+Mwo2PDp+d BYyE7IpGlqMZIPV5zy0mIlv+sQqjjO7r9oVPvdbcUXittd+jQBOQswD1dWl8SFx7KE+Z 6jN7SUjJMnG5plDJUW14Q10+NscwETq6TuW/ZZgGHAjAzCt0PA/rNw/81eFLkhR74D3r 1mhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bYfPignO; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw1-20020a17090b180100b001f2c4502044si3382931pjb.62.2022.07.28.21.55.40; Thu, 28 Jul 2022 21:55:55 -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=bYfPignO; 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 S233813AbiG2EwI (ORCPT + 99 others); Fri, 29 Jul 2022 00:52:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbiG2EwF (ORCPT ); Fri, 29 Jul 2022 00:52:05 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31A6A54C95 for ; Thu, 28 Jul 2022 21:52:04 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id q7-20020a17090a7a8700b001f300db8677so4168382pjf.5 for ; Thu, 28 Jul 2022 21:52:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Nih3CQ3bvbr3caRHPwLofzDk9DoHwlUp15C4DMS5PBo=; b=bYfPignOi/MJPMQdVA/EDZTpDmKF3LvDAsd4Fr7HsUJTIoRn+/bz86QDgO7OfGBmm1 /Eg3uORkuQT3yF+ysMYvDC7VhVQQuT9l9+eMm8cyWdIxuRIia5S28G/ms1A6hytHKlKJ NkjI/sPYggb67XCLFSpJE1AVxLnxqzShpbWtI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Nih3CQ3bvbr3caRHPwLofzDk9DoHwlUp15C4DMS5PBo=; b=VgLjPd0ejxKXSiGJ9/vEkAbMebeBoj5DjstY6xqRVfGNJc1d+q4f163dB0lg01XgFS K04JrzHghDGUaSU/MjC/guD7e7pNCmAHed5IiaEVW3nnVM7BlBEl+Yl6qPUzqfo9AO73 BtbC5mPCZPVFSBhn6zyhBDQw4Qjzv9gw51Mz3SgkFyaxrwYiFWtVVq7yI9ygY4QiZBYt OQl6RqvlYuYx3FdAyWRK94n4Nl0rTjrvoPlFhhu1kVhD3y/ne5DCdvfw03Xql+AkLSog P9QsTL31rv18Oyvf0qEkurrUHD5fMQQTKHAuQ0rMHMEF5EInUwiG9DvXofnpU7/b/9La tuZg== X-Gm-Message-State: ACgBeo1fCIng4jvtigOv5IA5fyzL4sQ4MLnCfljPB/X+iyD0qa+RWBON jg8O/wNiAbYdeZ4lEqFUUjCgAu433FV8Ag== X-Received: by 2002:a17:90b:3c42:b0:1f3:2e03:d9dc with SMTP id pm2-20020a17090b3c4200b001f32e03d9dcmr2228881pjb.8.1659070323606; Thu, 28 Jul 2022 21:52:03 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id 200-20020a6304d1000000b004126fc7c986sm1808648pge.13.2022.07.28.21.52.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 21:52:03 -0700 (PDT) From: Kees Cook To: mka@chromium.org, jmorris@namei.org, agk@redhat.com, serge@hallyn.com, snitzer@kernel.org Cc: Kees Cook , gmazyland@gmail.com, sfr@canb.auug.org.au, song@kernel.org, dianders@chromium.org, dm-devel@redhat.com, linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH] dm: verity-loadpin: Drop use of dm_table_get_num_targets() Date: Thu, 28 Jul 2022 21:51:55 -0700 Message-Id: <165907031305.2130609.16869003416171682751.b4-ty@chromium.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220728085412.1.I242d21b378410eb6f9897a3160efb56e5608c59d@changeid> References: <20220728085412.1.I242d21b378410eb6f9897a3160efb56e5608c59d@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 On Thu, 28 Jul 2022 08:54:41 -0700, Matthias Kaehlcke wrote: > Commit 2aec377a2925 ("dm table: remove dm_table_get_num_targets() > wrapper") in linux-dm/for-next removed the function > dm_table_get_num_targets() which is used by verity-loadpin. Access > table->num_targets directly instead of using the defunct wrapper. > > Applied to for-next/hardening, thanks! [1/1] dm: verity-loadpin: Drop use of dm_table_get_num_targets() https://git.kernel.org/kees/c/27603a606fda -- Kees Cook