stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v2] firewire: Remove function callback casts
       [not found]   ` <20200522174308.GB3059@ubuntu>
@ 2020-05-23  6:10     ` greg
  2020-05-23  6:10     ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: greg @ 2020-05-23  6:10 UTC (permalink / raw)
  To: Oscar Carter
  Cc: stable, Takashi Sakamoto, Kees Cook, Stefan Richter,
	Mauro Carvalho Chehab, Clemens Ladisch, Jaroslav Kysela,
	Takashi Iwai, kernel-hardening, linux1394-devel, linux-kernel,
	linux-media, alsa-devel, Lev R . Oshvang .

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?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] firewire: Remove function callback casts
       [not found]   ` <20200522174308.GB3059@ubuntu>
  2020-05-23  6:10     ` [PATCH v2] firewire: Remove function callback casts greg
@ 2020-05-23  6:10     ` Greg KH
  2020-05-23  7:58       ` Takashi Sakamoto
  1 sibling, 1 reply; 3+ messages in thread
From: Greg KH @ 2020-05-23  6:10 UTC (permalink / raw)
  To: Oscar Carter
  Cc: stable, Takashi Sakamoto, Kees Cook, Stefan Richter,
	Mauro Carvalho Chehab, Clemens Ladisch, Jaroslav Kysela,
	Takashi Iwai, kernel-hardening, linux1394-devel, linux-kernel,
	linux-media, alsa-devel, Lev R . Oshvang .

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?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] firewire: Remove function callback casts
  2020-05-23  6:10     ` Greg KH
@ 2020-05-23  7:58       ` Takashi Sakamoto
  0 siblings, 0 replies; 3+ messages in thread
From: Takashi Sakamoto @ 2020-05-23  7:58 UTC (permalink / raw)
  To: Greg KH
  Cc: Oscar Carter, stable, Kees Cook, Stefan Richter,
	Mauro Carvalho Chehab, Clemens Ladisch, Jaroslav Kysela,
	Takashi Iwai, kernel-hardening, linux1394-devel, linux-kernel,
	linux-media, alsa-devel, Lev R . Oshvang .

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-23  7:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200519173425.4724-1-oscar.carter@gmx.com>
     [not found] ` <20200520061624.GA25690@workstation>
     [not found]   ` <20200522174308.GB3059@ubuntu>
2020-05-23  6:10     ` [PATCH v2] firewire: Remove function callback casts greg
2020-05-23  6:10     ` Greg KH
2020-05-23  7:58       ` Takashi Sakamoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).