Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp574211rdh; Sun, 24 Sep 2023 02:45:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGedhhmQwPsCeGN/U3p/PAvfOTjtf4mSx6FAlkJTHCV7SFUJWWXQmrXMdoG2q1Rp4fKbgyq X-Received: by 2002:a25:da02:0:b0:d7f:362:1d9a with SMTP id n2-20020a25da02000000b00d7f03621d9amr3783533ybf.2.1695548749701; Sun, 24 Sep 2023 02:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695548749; cv=none; d=google.com; s=arc-20160816; b=bU4B7tNnUtkOu+al2EbnMgTBPxBFaqXSN0jnQ8KE+HW4niCFp6HN26rW8BdmzeUSjR jNsBhJ39dR6zGBtay4D0g9+fjW0mJtkk+G0G5yi1DQzSIHD/CfxHkz87tfz5iMe2ywD/ jLwbhkzt1PcEKUosT4XRNb5X4LmQv/D/AFJIHkjIFg0o61B8n0XYRE0pBekOEEJHmPep 1j1SBGohHmYDcarURxv99lqLxJHZOddFlb4MEQ2AmYZQg56Zi5Fo9R+Gug9CO80hFGMw 2lT90k8CbT8RXdLaSooQzVVOLWrLOmBdbwBC9tPnztVizOs1g3QBDRKBTc5ovQxMrU+I +U1A== 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=rZwu9dBgxB9XTozz+dOuBpu6Ch9tJ8eHS8AQgwkfztg=; fh=b6Ngo9FIaGRV1kJU5smNgjoaJzRDOA6t33Al2AQbcvQ=; b=OLgvZ2aLmWSKp/PhXofb3WoGglouuN5lBxfSeCF5wfwhMV6v8dJfHexvpIH72v4w8p z1fyxjzS5KBcZAeyW1XbGm1T0cywvSBlu+U+laOUt3mu4dWPCSs6Ktnrjr2AyQqNW5VR 39jwtqtQ51er4mGJgCgaPL4IOP60yskwY6tGmDfczc30+Slwr72Gc9CzoKtyRa8TDPeF YhxI4gmJZUWtYuzKmN9OvJbEfrwgFOFk+dnA/WcEhd9y/aGZ5TBmoLBXQCCRrhFRHop9 p+BM6hlzoXR1am1nXdsu6Zv9mgkkEVV2Yx+P5+cAC4i0mgE/vyElu3xMun8Lv8qoZMEx NHxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZlyGDYOL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id bs193-20020a6328ca000000b005526bd0c526si7175236pgb.641.2023.09.24.02.45.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 02:45:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZlyGDYOL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 50767807CF5A; Sun, 24 Sep 2023 02:45:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229520AbjIXJpW (ORCPT + 99 others); Sun, 24 Sep 2023 05:45:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjIXJpV (ORCPT ); Sun, 24 Sep 2023 05:45:21 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AF91F1 for ; Sun, 24 Sep 2023 02:45:15 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 833ADC433C8; Sun, 24 Sep 2023 09:45:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695548714; bh=LzXtXNSrED4dMzen6Q/uURvpZAZL8E9Bv/zlsiifUII=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZlyGDYOLKcdOI7ErZN7x3cEp1epP1Z/Z3Ba7up5RSWSUq0KLw2R+0+1ANgitmvj4P QZ74tclE1yJ4rfJgn1l0QZnYAZ3lCFGLzexHP47RxgiuDjZDM1tRXRbq8fWdqtCSvi soo+5Q8vY70nDyo3NvUSfwRev0vbcS6gfpzjQM0fVn9BnoO9wO0dI9YsghbetekJr/ UZFR4oKcU6XNQDnvMktSngOQU63SUCgB/tlYHXWWdNZxowRRxquMcT98surVnDqBrD nbkZ58dGvz5F7xM50ntR76IU71sheGal5jC6xHMo5vKMB6I+oXcTe+CTQ2FPFPXO6Q hdqEJOCzhREyQ== From: Christian Brauner To: Kees Cook Cc: Christian Brauner , Randy Dunlap , Al Viro , Jonathan Corbet , Siddh Raman Pant , Mauro Carvalho Chehab , Qian Cai , Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-hardening@vger.kernel.org, David Howells Subject: Re: [PATCH] watch_queue: Annotate struct watch_filter with __counted_by Date: Sun, 24 Sep 2023 11:45:06 +0200 Message-Id: <20230924-fass-bass-7b1f7aa70dd3@brauner> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230922175407.work.754-kees@kernel.org> References: <20230922175407.work.754-kees@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1237; i=brauner@kernel.org; h=from:subject:message-id; bh=LzXtXNSrED4dMzen6Q/uURvpZAZL8E9Bv/zlsiifUII=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaQKsLJ+VWk8O3WrfU6JsPL0Sq3cRXuX5S86vlXvZtll8T/P HExaOkpZGMS4GGTFFFkc2k3C5ZbzVGw2ytSAmcPKBDKEgYtTACaSJsLwP/T830PVzxO/SBaxnjv9u1 xP9FfmkxNJlpX3jWsdfdZ+AanQUu6oPc5ndTmwZnf2kd/fvlWKxC5Zcu3aYk/Ho117KpkB X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sun, 24 Sep 2023 02:45:25 -0700 (PDT) On Fri, 22 Sep 2023 10:54:08 -0700, Kees Cook wrote: > Prepare for the coming implementation by GCC and Clang of the __counted_by > attribute. Flexible array members annotated with __counted_by can have > their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS > (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family > functions). > > As found with Coccinelle[1], add __counted_by for struct watch_filter. > > [...] Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.misc [1/1] watch_queue: Annotate struct watch_filter with __counted_by https://git.kernel.org/vfs/vfs/c/6b601adb5e79