Re: A race condition between debugfs and seq_file operation

2015-06-10 Thread gre...@linuxfoundation.org
mailto:gre...@linuxfoundation.org] > >>> Sent: 2015年6月10日 5:12 > >>> To: Lisa Du > >>> Cc: linux-kernel@vger.kernel.org > >>> Subject: Re: A race condition between debugfs and seq_file operation > >>> > >>> On Mon, Jun 08, 20

Re: A race condition between debugfs and seq_file operation

2015-06-10 Thread Matthias Schiffer
t;> To: Lisa Du >>> Cc: linux-kernel@vger.kernel.org >>> Subject: Re: A race condition between debugfs and seq_file operation >>> >>> On Mon, Jun 08, 2015 at 04:28:10AM +, Lisa Du wrote: >>>> Hi, All >>>> Recently I met one rac

RE: A race condition between debugfs and seq_file operation

2015-06-09 Thread Lisa Du
> -Original Message- > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > Sent: 2015年6月10日 13:20 > To: Lisa Du > Cc: linux-kernel@vger.kernel.org > Subject: Re: A race condition between debugfs and seq_file operation > > On Wed, Jun 10, 2015 a

Re: A race condition between debugfs and seq_file operation

2015-06-09 Thread gre...@linuxfoundation.org
On Wed, Jun 10, 2015 at 05:00:03AM +, Lisa Du wrote: > > -Original Message- > > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > > Sent: 2015年6月10日 5:12 > > To: Lisa Du > > Cc: linux-kernel@vger.kernel.org > > Subject: Re:

RE: A race condition between debugfs and seq_file operation

2015-06-09 Thread Lisa Du
> -Original Message- > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > Sent: 2015年6月10日 5:12 > To: Lisa Du > Cc: linux-kernel@vger.kernel.org > Subject: Re: A race condition between debugfs and seq_file operation > > On Mon, Jun 08, 2015 at 0

Re: A race condition between debugfs and seq_file operation

2015-06-09 Thread gre...@linuxfoundation.org
On Mon, Jun 08, 2015 at 04:28:10AM +, Lisa Du wrote: > Hi, All > Recently I met one race condition related to debugfs. > > Take an example from ion.c in kernel3.14: > static int ion_debug_client_open(struct inode *inode, struct file *file) > { > return single_open(file, ion_debug_client_

A race condition between debugfs and seq_file operation

2015-06-07 Thread Lisa Du
Hi, All Recently I met one race condition related to debugfs. Take an example from ion.c in kernel3.14: static int ion_debug_client_open(struct inode *inode, struct file *file) { return single_open(file, ion_debug_client_show, inode->i_private); } static const struct file_operations debug