Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp461176ybr; Fri, 22 May 2020 10:38:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIkPP7veOacLxwG3ykmYMqAE8m49R7oF6JaHXD34L3EPFsRKhVEfh+KG22ZytfGzpr7xmX X-Received: by 2002:a17:906:aecc:: with SMTP id me12mr9819228ejb.525.1590169119752; Fri, 22 May 2020 10:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590169119; cv=none; d=google.com; s=arc-20160816; b=qrquAzHmTgO48+7YTRRNDKwmvAmnwJPdiKpYvxKtT0k+sMCgUTKX08X072Goz2v5cm Bw6AV3UiA03O7ShR0dfzyfhBif+1RXCKzTpW0Grvt11G1SeaMlLMzKIDERSJFmzsPRPm 415xMDv1I4cpzgq0fJ18amY4pmDctx9hnw6v7MHkAavVSEW+Io1iz0flXYIZqnf4QV9q j+g4WQuLj2Fahp31GxakHHpJgNNjt6EjlxNKd4lbISxRObeKVu+7+epj+vVKu5Rm0G/f WBRBTWBD41oJDn5rld2YQxbSSJ++gwiVik96f+uDb++ApPkHHPrNGntdmJIBNixgbxs8 J6rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:user-agent :in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:dkim-signature; bh=YMDvPhOSSBDOsPM4POJYLC9keau/1OeHBRMQGe8Fa54=; b=O555lu3g/ANMZhHY67pasBrAxalFiNVq/qVjvtZ9iGP4iLUesp7y7Fn/tMhx11jYqo 2G5Y9HIFzH/a01Hpi92Uy2R1HeNk73WYCECtnsRpInT4aoWTlkKHlEGLW4DrV0QJvk6Z u+1x6CwnIrMexnLRjJ4wAhRIGkN0UOno6oxxFv0bkLdL9GppYg99Pn+zzqe1fj4z0P2y CWQbApRCztRGNCsMbi3E2ksUxp/k3wJSURziBhrh5TPHmErki++nwcaByo3PaHdqEEIP YPfJQEBFUZFNtb8Z4orjRPzslZA6RIPXWKdga4bAB7J0pM1gDO9B5qbKPMbgppWK94FR 5yUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=BeLXgfkA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sd27si5635611ejb.65.2020.05.22.10.38.16; Fri, 22 May 2020 10:38:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=BeLXgfkA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730741AbgEVRgx (ORCPT + 99 others); Fri, 22 May 2020 13:36:53 -0400 Received: from mout.gmx.net ([212.227.15.19]:35025 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730572AbgEVRgw (ORCPT ); Fri, 22 May 2020 13:36:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1590168963; bh=L8OHkKiGCB/f+IXGOvXlrA5dVZpPxKv0KWhPeCEfQiU=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=BeLXgfkAIYebk7dPy/b/dHEAFaJjpOKqtoTzjnKVAW06ogNORfIBepC20GqIxMD4h zFf8XH+aqqUE9rOOAVt7tRhQ8iAzw1u9Fn/jzKYz3gz5wy76dVx5rnFmiyYWgXqG/8 zS41n3XBx7P/lOPsGptgJBPdUEv4ekgyuFVGwTos= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from ubuntu ([83.52.229.196]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MmULr-1jCEVO1rBh-00iRzC; Fri, 22 May 2020 19:36:03 +0200 Date: Fri, 22 May 2020 19:35:49 +0200 From: Oscar Carter To: Takashi Sakamoto , keescook@chromium.org, mchehab@kernel.org, clemens@ladisch.de, tiwai@suse.de, perex@perex.cz Cc: Oscar Carter , kernel-hardening@lists.openwall.com, linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, levonshe@gmail.com, alsa-devel@alsa-project.org, stefanr@s5r6.in-berlin.de Subject: Re: [PATCH 0/2] firewire: obsolete cast of function callback toward CFI Message-ID: <20200522173549.GA3059@ubuntu> References: <20200520064726.31838-1-o-takashi@sakamocchi.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200520064726.31838-1-o-takashi@sakamocchi.jp> User-Agent: Mutt/1.10.1 (2018-07-13) X-Provags-ID: V03:K1:FBWJEV1Z+urCsYOxGe/qn+1ueZnIfzXJgXzE4sYXx2E6pTYxzTv z+vuWi/c+ugAv7NWN04Ae5Py94IM94abNLP1X0yCKYKEFIpu63slErlj9Fhy71e4OHzYglB +lQqRKUx5IjQ07W1dZ28vMOnrvIxckwJzFlxHK/OLsyentYpWqqW6H0z/J+wo+Rho3M4EOR yy6Jf31X/2ADUl48LCMBA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:qQZnxhBV1OE=:rHKO2Cr/IEWABaxDAPPKV6 o3uezfePqPg8YTDyafPdmkb+4ckMJPNxVRQkNHKzYeHo+Os6qkNQUSxxTHCmQFDhfBQb0jNHh BdBqwZG+aGRrCkMv5CdCwkQ/d4GyQt9bgCR4jlFZ3jv49X5MW7L0b7Dmpbpa8g1BZ6mcyNDVH JFRDJGUlEAZFnnpwaHhJCBD3LS5z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IFobfRvFTtpOLP Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, May 20, 2020 at 03:47:24PM +0900, Takashi Sakamoto wrote: > Hi, > > Oscar Carter works for Control Flow Integrity build. Any cast > of function callback is inconvenient for the work. Unfortunately, > current code of firewire-core driver includes the cast[1] and Oscar > posted some patches to remove it[2]. The patch is itself good. However, > it includes changes existent kernel API and all of drivers as user > of the API get affects from the change. > > This patchset is an alternative idea to add a new kernel API specific > for multichannel isoc context. The existent kernel API and drivers is > left as is. > > Practically, no in-kernel drivers use the additional API. Although the > API is exported in the patchset, it's better to discuss about unexportin= g > the API. > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/t= ree/drivers/firewire/core-cdev.c#n985 > [2] https://lore.kernel.org/lkml/20200519173425.4724-1-oscar.carter@gmx.= com/ > > Regards > > Takashi Sakamoto (2): > firewire-core: add kernel API to construct multichannel isoc context > firewire-core: obsolete cast of function callback > > drivers/firewire/core-cdev.c | 44 +++++++++++++++++++----------------- > drivers/firewire/core-iso.c | 17 ++++++++++++++ > include/linux/firewire.h | 3 +++ > 3 files changed, 43 insertions(+), 21 deletions(-) > > -- > 2.25.1 > Thanks for your work and new proposal. I've done a test build an it cleans= the -Wcast-function-type warning without the need to change the current API. S= o, it looks good to me. Thanks, Oscar Carter