Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6161784rwi; Tue, 18 Oct 2022 08:50:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6wH+jxv4MsxmNdeXhP+NPNkRgFNI5lukHYiaDc4+M+VinUe3cyUxictnz/Nm5J0qsvYjii X-Received: by 2002:a17:907:6e24:b0:791:905f:7881 with SMTP id sd36-20020a1709076e2400b00791905f7881mr2979271ejc.120.1666108220722; Tue, 18 Oct 2022 08:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666108220; cv=none; d=google.com; s=arc-20160816; b=grx0+dwzqdyZN18M5OPpMXfv21+vRfO6O/bzuZMCElHzLsfGn8DPuSxpXUySJFyVKp 3rPXA42g0VNyB1ogedyZmy9SgHGGbmdrbZdH5mNSHZZur9F8wTrk9Ym8Sjtq6XO2eSXf UoOSe006u7aZIr0+9BNvLB6iTUhYX9srCrSt8ChH659C0Z2EGXTqF+a+tC/tk3dhuO5j WAXfEJSVa07LiWLY5es2czBM62j31sIf5xMkWUwFFfhxKot836nZXO5t8MFOHQemHR7s 1oKycxr18KZe/huG1VT34mqM7iciCrGxgJ/rLhu0jnAefsTWQO94GLTthYwAKd/lz/QE H3zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=SRYylEZeRuVVqd0c15PAeuCQVBWM0hCRP4NHHMHr49U=; b=e6q8nJRTRJrb57PrtMWVcXelbuQf8PwghKB5sbgRaSDShL5wrwQLnXV5grxVylWXSh AuOpgoYSneTj+obYXdr8xanjmKqLxPoWeln02VK+3Za/J+K0CilxBfh5/cv0SAZC9ZdZ r44OMYkyTJedh6lfA6IrACD38g2BqpumFJLWgzXSgzLO62FN90P+S+v/X+OaYxu3YI3Z 9SqPmvl3soXQBgw7/dxiD95d36OcOO2UNVQqtqV4Qvpdryw08ORkP967U1QRDv5cs2+Q B7QoOd5N9LzqZAyLYzytd2CdxLIdD7nzOry7OufYxzodtMu5yd6GAaff7RD+XlfqVWbs m7Ag== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb26-20020a1709077e9a00b0078dcddc1b8csi11684479ejc.788.2022.10.18.08.49.54; Tue, 18 Oct 2022 08:50:20 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230026AbiJROnK convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Oct 2022 10:43:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229763AbiJROnI (ORCPT ); Tue, 18 Oct 2022 10:43:08 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44D26659E2 for ; Tue, 18 Oct 2022 07:43:07 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-277-g_jMUdj-PZ6mad37cXs9sg-1; Tue, 18 Oct 2022 15:43:03 +0100 X-MC-Unique: g_jMUdj-PZ6mad37cXs9sg-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 18 Oct 2022 15:43:01 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.042; Tue, 18 Oct 2022 15:43:01 +0100 From: David Laight To: 'Peter Zijlstra' , "x86@kernel.org" CC: Kees Cook , Sami Tolvanen , Joao Moreira , "linux-kernel@vger.kernel.org" , Mark Rutland , Josh Poimboeuf Subject: RE: [PATCH] x86/ibt: Implement FineIBT Thread-Topic: [PATCH] x86/ibt: Implement FineIBT Thread-Index: AQHY4vaTWxnEUTsnZEq6+EVM+oAeM64UOHoQ Date: Tue, 18 Oct 2022 14:43:01 +0000 Message-ID: <9bb036e48580454b81e6de7224c5f006@AcuMS.aculab.com> References: In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 From: Peter Zijlstra > Sent: 18 October 2022 14:36 > > Implement an alternative CFI scheme that merges both the fine-grained > nature of kCFI but also takes full advantage of the coarse grained > hardware CFI as provided by IBT. Does the hash value for kCFI only depend on the function type? Or is there something like a attribute that can also be included? Otherwise all void (*)(void *) functions have the same hash. Any such additional check would also improve compile-time checks. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)