Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-17 Thread Richard Weinberger
Am 17.04.2017 um 17:27 schrieb Ralph Sennhauser: > Hi Amir, Richard > > Looks like the fix didn't make it into 4.11-rc7 either, isn't it time > to just disable O_TMPFILE support in ubifs for now? Giving plenty > time for the proper fix. As I said to Amir, don't panic. I'm *very* busy right now

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-17 Thread Richard Weinberger
Am 17.04.2017 um 17:27 schrieb Ralph Sennhauser: > Hi Amir, Richard > > Looks like the fix didn't make it into 4.11-rc7 either, isn't it time > to just disable O_TMPFILE support in ubifs for now? Giving plenty > time for the proper fix. As I said to Amir, don't panic. I'm *very* busy right now

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-17 Thread Ralph Sennhauser
On Tue, 11 Apr 2017 18:04:50 +0300 Amir Goldstein wrote: > On Tue, Apr 11, 2017 at 1:50 PM, Richard Weinberger > wrote: > > Hi! > > > > Am 11.04.2017 um 12:20 schrieb Amir Goldstein: > >> On Thu, Apr 6, 2017 at 3:26 PM, Richard Weinberger > >>

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-17 Thread Ralph Sennhauser
On Tue, 11 Apr 2017 18:04:50 +0300 Amir Goldstein wrote: > On Tue, Apr 11, 2017 at 1:50 PM, Richard Weinberger > wrote: > > Hi! > > > > Am 11.04.2017 um 12:20 schrieb Amir Goldstein: > >> On Thu, Apr 6, 2017 at 3:26 PM, Richard Weinberger > >> wrote: > >>> Am 06.04.2017 um 14:09 schrieb

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-11 Thread Amir Goldstein
On Tue, Apr 11, 2017 at 1:50 PM, Richard Weinberger wrote: > Hi! > > Am 11.04.2017 um 12:20 schrieb Amir Goldstein: >> On Thu, Apr 6, 2017 at 3:26 PM, Richard Weinberger wrote: >>> Am 06.04.2017 um 14:09 schrieb Richard Weinberger: > Were you able to make any

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-11 Thread Amir Goldstein
On Tue, Apr 11, 2017 at 1:50 PM, Richard Weinberger wrote: > Hi! > > Am 11.04.2017 um 12:20 schrieb Amir Goldstein: >> On Thu, Apr 6, 2017 at 3:26 PM, Richard Weinberger wrote: >>> Am 06.04.2017 um 14:09 schrieb Richard Weinberger: > Were you able to make any progress? still working on this?

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-11 Thread Richard Weinberger
Hi! Am 11.04.2017 um 12:20 schrieb Amir Goldstein: > On Thu, Apr 6, 2017 at 3:26 PM, Richard Weinberger wrote: >> Am 06.04.2017 um 14:09 schrieb Richard Weinberger: Were you able to make any progress? still working on this? If this is too complicated to get in for this

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-11 Thread Richard Weinberger
Hi! Am 11.04.2017 um 12:20 schrieb Amir Goldstein: > On Thu, Apr 6, 2017 at 3:26 PM, Richard Weinberger wrote: >> Am 06.04.2017 um 14:09 schrieb Richard Weinberger: Were you able to make any progress? still working on this? If this is too complicated to get in for this cycle, better

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-11 Thread Amir Goldstein
On Thu, Apr 6, 2017 at 3:26 PM, Richard Weinberger wrote: > Am 06.04.2017 um 14:09 schrieb Richard Weinberger: >>> Were you able to make any progress? still working on this? >>> If this is too complicated to get in for this cycle, better send a patch >>> to disable O_TMPFILE

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-11 Thread Amir Goldstein
On Thu, Apr 6, 2017 at 3:26 PM, Richard Weinberger wrote: > Am 06.04.2017 um 14:09 schrieb Richard Weinberger: >>> Were you able to make any progress? still working on this? >>> If this is too complicated to get in for this cycle, better send a patch >>> to disable O_TMPFILE support for ubifs and

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-06 Thread Richard Weinberger
Am 06.04.2017 um 14:09 schrieb Richard Weinberger: >> Were you able to make any progress? still working on this? >> If this is too complicated to get in for this cycle, better send a patch >> to disable O_TMPFILE support for ubifs and fix the problem properly on >> followup merge cycle. >> Because

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-06 Thread Richard Weinberger
Am 06.04.2017 um 14:09 schrieb Richard Weinberger: >> Were you able to make any progress? still working on this? >> If this is too complicated to get in for this cycle, better send a patch >> to disable O_TMPFILE support for ubifs and fix the problem properly on >> followup merge cycle. >> Because

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-06 Thread Richard Weinberger
Amir, Am 06.04.2017 um 14:06 schrieb Amir Goldstein: > On Thu, Mar 30, 2017 at 3:27 PM, Richard Weinberger wrote: >> Am 30.03.2017 um 13:57 schrieb Adrian Hunter: Reading deeper into the proved that I was wrong. AFAIKT UBIFS' journal has currently no way to revive a

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-06 Thread Richard Weinberger
Amir, Am 06.04.2017 um 14:06 schrieb Amir Goldstein: > On Thu, Mar 30, 2017 at 3:27 PM, Richard Weinberger wrote: >> Am 30.03.2017 um 13:57 schrieb Adrian Hunter: Reading deeper into the proved that I was wrong. AFAIKT UBIFS' journal has currently no way to revive a deleted inode.

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-06 Thread Amir Goldstein
On Thu, Mar 30, 2017 at 3:27 PM, Richard Weinberger wrote: > Am 30.03.2017 um 13:57 schrieb Adrian Hunter: >>> Reading deeper into the proved that I was wrong. >>> AFAIKT UBIFS' journal has currently no way to revive a deleted inode. >>> So, we have to think about a new solution.

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-04-06 Thread Amir Goldstein
On Thu, Mar 30, 2017 at 3:27 PM, Richard Weinberger wrote: > Am 30.03.2017 um 13:57 schrieb Adrian Hunter: >>> Reading deeper into the proved that I was wrong. >>> AFAIKT UBIFS' journal has currently no way to revive a deleted inode. >>> So, we have to think about a new solution. >> >> Deleting

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Richard Weinberger
Am 30.03.2017 um 13:57 schrieb Adrian Hunter: >> Reading deeper into the proved that I was wrong. >> AFAIKT UBIFS' journal has currently no way to revive a deleted inode. >> So, we have to think about a new solution. > > Deleting the orphan looks right. Just need to understand whether the >

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Richard Weinberger
Am 30.03.2017 um 13:57 schrieb Adrian Hunter: >> Reading deeper into the proved that I was wrong. >> AFAIKT UBIFS' journal has currently no way to revive a deleted inode. >> So, we have to think about a new solution. > > Deleting the orphan looks right. Just need to understand whether the >

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Adrian Hunter
On 30/03/17 13:23, Richard Weinberger wrote: > Am 30.03.2017 um 11:49 schrieb Richard Weinberger: >> Am 30.03.2017 um 11:32 schrieb Adrian Hunter: diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index 0858213a4e63..0139155045fe 100644 --- a/fs/ubifs/dir.c +++ b/fs/ubifs/dir.c

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Adrian Hunter
On 30/03/17 13:23, Richard Weinberger wrote: > Am 30.03.2017 um 11:49 schrieb Richard Weinberger: >> Am 30.03.2017 um 11:32 schrieb Adrian Hunter: diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index 0858213a4e63..0139155045fe 100644 --- a/fs/ubifs/dir.c +++ b/fs/ubifs/dir.c

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Richard Weinberger
Amir, Am 30.03.2017 um 12:35 schrieb Amir Goldstein: >> Reading deeper into the proved that I was wrong. >> AFAIKT UBIFS' journal has currently no way to revive a deleted inode. >> So, we have to think about a new solution. >> > > Not that I know anything about ubifs, but why do you need the

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Richard Weinberger
Amir, Am 30.03.2017 um 12:35 schrieb Amir Goldstein: >> Reading deeper into the proved that I was wrong. >> AFAIKT UBIFS' journal has currently no way to revive a deleted inode. >> So, we have to think about a new solution. >> > > Not that I know anything about ubifs, but why do you need the

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Amir Goldstein
On Thu, Mar 30, 2017 at 1:23 PM, Richard Weinberger wrote: > Am 30.03.2017 um 11:49 schrieb Richard Weinberger: >> Am 30.03.2017 um 11:32 schrieb Adrian Hunter: diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index 0858213a4e63..0139155045fe 100644 --- a/fs/ubifs/dir.c

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Amir Goldstein
On Thu, Mar 30, 2017 at 1:23 PM, Richard Weinberger wrote: > Am 30.03.2017 um 11:49 schrieb Richard Weinberger: >> Am 30.03.2017 um 11:32 schrieb Adrian Hunter: diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index 0858213a4e63..0139155045fe 100644 --- a/fs/ubifs/dir.c +++

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Hyunchul Lee
Richard, On Thu, Mar 30, 2017 at 10:56:21AM +0200, Richard Weinberger wrote: > It is perfectly fine to link a tmpfile back using linkat(). > Since tmpfiles are created with a link count of 0 they appear > on the orphan list, upon re-linking the inode has to be removed > from the orphan list

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Hyunchul Lee
Richard, On Thu, Mar 30, 2017 at 10:56:21AM +0200, Richard Weinberger wrote: > It is perfectly fine to link a tmpfile back using linkat(). > Since tmpfiles are created with a link count of 0 they appear > on the orphan list, upon re-linking the inode has to be removed > from the orphan list

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Richard Weinberger
Am 30.03.2017 um 11:49 schrieb Richard Weinberger: > Am 30.03.2017 um 11:32 schrieb Adrian Hunter: >>> diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c >>> index 0858213a4e63..0139155045fe 100644 >>> --- a/fs/ubifs/dir.c >>> +++ b/fs/ubifs/dir.c >>> @@ -748,6 +748,11 @@ static int ubifs_link(struct

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Richard Weinberger
Am 30.03.2017 um 11:49 schrieb Richard Weinberger: > Am 30.03.2017 um 11:32 schrieb Adrian Hunter: >>> diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c >>> index 0858213a4e63..0139155045fe 100644 >>> --- a/fs/ubifs/dir.c >>> +++ b/fs/ubifs/dir.c >>> @@ -748,6 +748,11 @@ static int ubifs_link(struct

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Richard Weinberger
Am 30.03.2017 um 11:32 schrieb Adrian Hunter: >> diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c >> index 0858213a4e63..0139155045fe 100644 >> --- a/fs/ubifs/dir.c >> +++ b/fs/ubifs/dir.c >> @@ -748,6 +748,11 @@ static int ubifs_link(struct dentry *old_dentry, struct >> inode *dir, >>

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Richard Weinberger
Am 30.03.2017 um 11:32 schrieb Adrian Hunter: >> diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c >> index 0858213a4e63..0139155045fe 100644 >> --- a/fs/ubifs/dir.c >> +++ b/fs/ubifs/dir.c >> @@ -748,6 +748,11 @@ static int ubifs_link(struct dentry *old_dentry, struct >> inode *dir, >>

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Adrian Hunter
On 30/03/17 11:56, Richard Weinberger wrote: > It is perfectly fine to link a tmpfile back using linkat(). > Since tmpfiles are created with a link count of 0 they appear > on the orphan list, upon re-linking the inode has to be removed > from the orphan list again. > > Cc:

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Adrian Hunter
On 30/03/17 11:56, Richard Weinberger wrote: > It is perfectly fine to link a tmpfile back using linkat(). > Since tmpfiles are created with a link count of 0 they appear > on the orphan list, upon re-linking the inode has to be removed > from the orphan list again. > > Cc: > Cc: Ralph

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Richard Weinberger
Amir, Am 30.03.2017 um 10:59 schrieb Amir Goldstein: > On Thu, Mar 30, 2017 at 11:56 AM, Richard Weinberger wrote: >> It is perfectly fine to link a tmpfile back using linkat(). >> Since tmpfiles are created with a link count of 0 they appear >> on the orphan list, upon

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Richard Weinberger
Amir, Am 30.03.2017 um 10:59 schrieb Amir Goldstein: > On Thu, Mar 30, 2017 at 11:56 AM, Richard Weinberger wrote: >> It is perfectly fine to link a tmpfile back using linkat(). >> Since tmpfiles are created with a link count of 0 they appear >> on the orphan list, upon re-linking the inode has

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Ralph Sennhauser
On Thu, 30 Mar 2017 11:59:17 +0300 Amir Goldstein wrote: > On Thu, Mar 30, 2017 at 11:56 AM, Richard Weinberger > wrote: > > It is perfectly fine to link a tmpfile back using linkat(). > > Since tmpfiles are created with a link count of 0 they appear > > on

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Ralph Sennhauser
On Thu, 30 Mar 2017 11:59:17 +0300 Amir Goldstein wrote: > On Thu, Mar 30, 2017 at 11:56 AM, Richard Weinberger > wrote: > > It is perfectly fine to link a tmpfile back using linkat(). > > Since tmpfiles are created with a link count of 0 they appear > > on the orphan list, upon re-linking the

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Richard Weinberger
Amir, Am 30.03.2017 um 11:07 schrieb Amir Goldstein: > On Thu, Mar 30, 2017 at 12:03 PM, Richard Weinberger wrote: >> Amir, >> >> Am 30.03.2017 um 10:59 schrieb Amir Goldstein: >>> On Thu, Mar 30, 2017 at 11:56 AM, Richard Weinberger wrote: It is perfectly

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Richard Weinberger
Amir, Am 30.03.2017 um 11:07 schrieb Amir Goldstein: > On Thu, Mar 30, 2017 at 12:03 PM, Richard Weinberger wrote: >> Amir, >> >> Am 30.03.2017 um 10:59 schrieb Amir Goldstein: >>> On Thu, Mar 30, 2017 at 11:56 AM, Richard Weinberger wrote: It is perfectly fine to link a tmpfile back using

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Amir Goldstein
On Thu, Mar 30, 2017 at 12:03 PM, Richard Weinberger wrote: > Amir, > > Am 30.03.2017 um 10:59 schrieb Amir Goldstein: >> On Thu, Mar 30, 2017 at 11:56 AM, Richard Weinberger wrote: >>> It is perfectly fine to link a tmpfile back using linkat(). >>> Since tmpfiles

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Amir Goldstein
On Thu, Mar 30, 2017 at 12:03 PM, Richard Weinberger wrote: > Amir, > > Am 30.03.2017 um 10:59 schrieb Amir Goldstein: >> On Thu, Mar 30, 2017 at 11:56 AM, Richard Weinberger wrote: >>> It is perfectly fine to link a tmpfile back using linkat(). >>> Since tmpfiles are created with a link count

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Amir Goldstein
On Thu, Mar 30, 2017 at 11:56 AM, Richard Weinberger wrote: > It is perfectly fine to link a tmpfile back using linkat(). > Since tmpfiles are created with a link count of 0 they appear > on the orphan list, upon re-linking the inode has to be removed > from the orphan list again.

Re: [PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Amir Goldstein
On Thu, Mar 30, 2017 at 11:56 AM, Richard Weinberger wrote: > It is perfectly fine to link a tmpfile back using linkat(). > Since tmpfiles are created with a link count of 0 they appear > on the orphan list, upon re-linking the inode has to be removed > from the orphan list again. > Looks good.

[PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Richard Weinberger
It is perfectly fine to link a tmpfile back using linkat(). Since tmpfiles are created with a link count of 0 they appear on the orphan list, upon re-linking the inode has to be removed from the orphan list again. Cc: Cc: Ralph Sennhauser Cc:

[PATCH] ubifs: Fix O_TMPFILE corner case in ubifs_link()

2017-03-30 Thread Richard Weinberger
It is perfectly fine to link a tmpfile back using linkat(). Since tmpfiles are created with a link count of 0 they appear on the orphan list, upon re-linking the inode has to be removed from the orphan list again. Cc: Cc: Ralph Sennhauser Cc: Amir Goldstein Tested-by: Ralph Sennhauser