Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp909027ybr; Sat, 23 May 2020 01:01:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3L39wevvib4C5Fq9X6tT37bUZQjHegCGq84gM7GtdXA1AIhQuMBTuNL1cWguoeHHX1MBP X-Received: by 2002:a17:906:e090:: with SMTP id gh16mr11682564ejb.41.1590220904916; Sat, 23 May 2020 01:01:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590220904; cv=none; d=google.com; s=arc-20160816; b=mnPMdzpps813mCHGpCXJrxVHzeZLBszOIsre1kSpC5gqbuDxy0yAZcAQtgoHUeW+tV ctz6/0U8U7mkS3fDtZyjhJYSmxRMGZMjVqnegS697S+a3JHbHqoAV/VzhN/yC6A/biQZ mO/4FYx/vBMbfAJUE1m571iLa8kFslvjmCIX9hnUsueypo3hylmvC/baPjcLLY45mUgT Au+ZwOUKZ4Rg9ONCKoxEnX/rANkV2s/a1vp+z5QqkGMsxvTBO02zMUMqQchO8gF+E35D pLN+WBScnvcGBuXaThYGvFyPbxLLSBsLrNuTIQiY4NMDpaFuI1VM/K37IQnn8OpCHVXJ IErA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature:dkim-signature; bh=K9bdneoooJ1uSBw5jkomBqz3iW0HsoKgOxHBuN88dzA=; b=ApWpFD89ZADrcjiodLJjSa8N8GkJFbKVKB8DPjNeMy4LUX3hEWkjBSwiKfpiQvTagK v780LPnYzUY/Po6j+5WQTYVSMQOx/A/FR1SdFyr6NxLzVOqeZz01A1vq48wsmkIIO/LA u0P4W+qmyIYxk9DfC+WfcCO1EoSymIG5P8AaPZ99fwNv2//oN89biz+KGBAT6J2Hdxz5 6qr/kpNdiX3ouD1z7HmJh3AQev8QfmY8uwap/oxoBhY+tSVu1oYIg6nwb9eJ8DJ+/WP5 j28I3yovm01qrB8Ayhn3u/x+zxELz7P4FO6otserIJsWkc2VVIq6S78MBJCq0gU1NS1a QBdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b=H3rWb5HU; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=CcVRcc9i; 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 n16si6014767eje.540.2020.05.23.01.01.19; Sat, 23 May 2020 01:01:44 -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=@sakamocchi.jp header.s=fm1 header.b=H3rWb5HU; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=CcVRcc9i; 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 S2387741AbgEWH7G (ORCPT + 99 others); Sat, 23 May 2020 03:59:06 -0400 Received: from wnew1-smtp.messagingengine.com ([64.147.123.26]:51307 "EHLO wnew1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387725AbgEWH7D (ORCPT ); Sat, 23 May 2020 03:59:03 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.west.internal (Postfix) with ESMTP id A0D13874; Sat, 23 May 2020 03:59:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 23 May 2020 03:59:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=K9bdneoooJ1uSBw5jkomBqz3iW0 HsoKgOxHBuN88dzA=; b=H3rWb5HUYcQn7iZXb7kBxoSo164u2D2hVvlNCeXfw33 vPfXrucVHEPaNFgPKynsNfLu9sswkct6TBU+ulxNIaw6VejbT3wIjZSh1SBgRWed 37G/3vgYwnuytM7AUt8VmRelj55JNfHGl1DFJBnkktNp8gbthsSgRqUD1vb3Dioo oApBMjnbaUmoQHmdsXR/FXiAtvFI3xc/C56alJZluumRtFOFuQWhJ6VtYXGn29mx /uHQLUxc7EcEWeJSmD0RVHQVwxL4y6E+vJ36WC4ktDt+GWzQYna8G67frcbar58V WkkaAGX9eKQ7ZdE0czbjq4KF00ZmXPj+KX9G9WSf7qA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=K9bdne oooJ1uSBw5jkomBqz3iW0HsoKgOxHBuN88dzA=; b=CcVRcc9iulo5FrFWsvMwNI lnO1f6CwgY494tKBtmumqn8rFALyNsIivbS9xjEuFDxNvieYN9l7bH8WRLr+piIR Hj1jylf3k9X9SMeOYOzEMKd1s/EJHu1VdQ7/+FqtPUVATE/KUoEHME8/ctLx+itm eagXQ48TrSjcTD6En5e10/SVYN8DPtqRQZIwzDFDZ6T4+ggwg+Z5pKCf5SwFjZNy H1xpeXO1XhBuis4MzAWZOClWQIJIggq4HU8TTMcNqQr+dMJbbRE/O5YaYggluu+v hkouwGdlZiV8+Gw6yhghDLUytmFQ+kUM8upUDnJlv3Gq1dPGRi5Cmr7Q6VFMCqQA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddugedguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepvfgrkhgr shhhihcuufgrkhgrmhhothhouceoohdqthgrkhgrshhhihesshgrkhgrmhhotggthhhird hjpheqnecuggftrfgrthhtvghrnhephfefleekfeevgffhhfehudetkeeivdeuvdelgeej jefhffegkeffffdugfevudetnecuffhomhgrihhnpehgihhthhhusgdrtghomhdprghlsh grqdhprhhojhgvtghtrdhorhhgnecukfhppedukedtrddvfeehrdefrdehgeenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehoqdhtrghkrghshh hisehsrghkrghmohgttghhihdrjhhp X-ME-Proxy: Received: from workstation (ad003054.dynamic.ppp.asahi-net.or.jp [180.235.3.54]) by mail.messagingengine.com (Postfix) with ESMTPA id 747FB328005E; Sat, 23 May 2020 03:58:56 -0400 (EDT) Date: Sat, 23 May 2020 16:58:54 +0900 From: Takashi Sakamoto To: Greg KH Cc: Oscar Carter , stable , Kees Cook , Stefan Richter , Mauro Carvalho Chehab , Clemens Ladisch , Jaroslav Kysela , Takashi Iwai , kernel-hardening@lists.openwall.com, linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, alsa-devel@alsa-project.org, "Lev R . Oshvang ." Subject: Re: [PATCH v2] firewire: Remove function callback casts Message-ID: <20200523075854.GA170441@workstation> Mail-Followup-To: Greg KH , Oscar Carter , stable , Kees Cook , Stefan Richter , Mauro Carvalho Chehab , Clemens Ladisch , Jaroslav Kysela , Takashi Iwai , kernel-hardening@lists.openwall.com, linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, alsa-devel@alsa-project.org, "Lev R . Oshvang ." References: <20200519173425.4724-1-oscar.carter@gmx.com> <20200520061624.GA25690@workstation> <20200522174308.GB3059@ubuntu> <20200523061033.GB3131938@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200523061033.GB3131938@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Sat, May 23, 2020 at 08:10:33AM +0200, Greg KH wrote: > On Fri, May 22, 2020 at 07:43:08PM +0200, Oscar Carter wrote: > > Hi, > > > > On Wed, May 20, 2020 at 03:16:24PM +0900, Takashi Sakamoto wrote: > > > Hi, > > > > > > I'm an author of ALSA firewire stack and thanks for the patch. I agree with > > > your intention to remove the cast of function callback toward CFI build. > > > > > > Practically, the isochronous context with FW_ISO_CONTEXT_RECEIVE_MULTICHANNEL > > > is never used by in-kernel drivers. Here, I propose to leave current > > > kernel API (fw_iso_context_create() with fw_iso_callback_t) as is. > > If it's not used by anyone, why is it still there? Can't we just delete > it? For this patchset, I followed to the theory to keep backward compatibility when adding any change, and it's what I'd like to discuss. The isoc context of multichannel mode is also available for userspace applications, and libhinoko[1] uses it. In a point of backward compatibility for userspace, we can't delete the mode. (Practically, the mode is useful for the purpose of packet sniffing in bus and helpful to my work for development of ALSA firewire stack[2].) On the other hand, there's no unit driver to use the mode in upstream kernel. It's unlikely to use the mode for unit driver since the mode is not specific to unit functionality. In my opinion, it's reasonable to lose backward compatibility slightly by hiding the multichannel mode from in-kernel unit driver. I'll post v2 patchset later and I'd like you to merge them if no objections from the others for the loss of backward compatibility. [1] https://github.com/takaswie/libhinoko [2] https://mailman.alsa-project.org/pipermail/alsa-devel/2019-April/147862.html Regards Takashi Sakamoto