All of lore.kernel.org
 help / color / mirror / Atom feed
* Initramfs FSID altered in 3.14
@ 2014-04-03 17:57 Dave Reisner
  2014-04-03 18:13 ` Thomas Bächler
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Dave Reisner @ 2014-04-03 17:57 UTC (permalink / raw)
  To: linux-kernel; +Cc: tj

Hi,

[This is a repost of a G+ post at Tejun's request]

With Linux 3.14, you might notice in /proc/self/mountinfo that your
root's parent FSID is now 0, instead of the 1 that it's been for the
last N years. Tejun wrote the change (9e30cc9595303b27b48) that caused
this, but the change comes in a rather innocuous way. Instead of an
internal kernel mount of sysfs being assigned 0, it's now the initramfs.

So far, this has already caused switch_root and findmnt (from
util-linux) to break, cp (from coreutils) to break when using the -x
flag in early userspace, and it's also been pointed out that systemd's
readahead code makes assumptions about a device number of 0.

Are we now supposed to go and change all the assumptions in userspace
about 0 being special? I'm conflicted. The kernel isn't supposed to
break userspace, but it seems to me that FSIDs were never something to
rely on -- similar to the block device numbering scheme.

Cheers,
Dave

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

* Re: Initramfs FSID altered in 3.14
  2014-04-03 17:57 Initramfs FSID altered in 3.14 Dave Reisner
@ 2014-04-03 18:13 ` Thomas Bächler
  2014-04-03 19:16   ` Tejun Heo
  2014-04-03 18:57 ` Initramfs FSID altered in 3.14 Pádraig Brady
  2014-04-03 19:13 ` Tejun Heo
  2 siblings, 1 reply; 15+ messages in thread
From: Thomas Bächler @ 2014-04-03 18:13 UTC (permalink / raw)
  To: Dave Reisner, linux-kernel; +Cc: tj

[-- Attachment #1: Type: text/plain, Size: 1897 bytes --]

Am 03.04.2014 19:57, schrieb Dave Reisner:
> Hi,
> 
> [This is a repost of a G+ post at Tejun's request]
> 
> With Linux 3.14, you might notice in /proc/self/mountinfo that your
> root's parent FSID is now 0, instead of the 1 that it's been for the
> last N years. Tejun wrote the change (9e30cc9595303b27b48) that caused
> this, but the change comes in a rather innocuous way. Instead of an
> internal kernel mount of sysfs being assigned 0, it's now the initramfs.
> 
> So far, this has already caused switch_root and findmnt (from
> util-linux) to break, cp (from coreutils) to break when using the -x
> flag in early userspace, and it's also been pointed out that systemd's
> readahead code makes assumptions about a device number of 0.
> 
> Are we now supposed to go and change all the assumptions in userspace
> about 0 being special? I'm conflicted. The kernel isn't supposed to
> break userspace, but it seems to me that FSIDs were never something to
> rely on -- similar to the block device numbering scheme.

Most of these bugs were not caused by rootfs' FSID being different from
1, but rather because there was a file system with FSID 0.

Only util-linux/switch_root assumed that rootfs always had exactly FSID
1 - which is IMO a wrong assumption.

However, tt seems that people have been assuming that st_dev > 0 for a
while. If we want to revert this in the kernel, this patch (untested)
should be sufficient:

diff --git a/fs/super.c b/fs/super.c
index 80d5cf2..d9fddde 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -802,7 +802,7 @@ void emergency_remount(void)
 static DEFINE_IDA(unnamed_dev_ida);
 static DEFINE_SPINLOCK(unnamed_dev_lock);/* protects the above */
-static int unnamed_dev_start = 0; /* don't bother trying below it */
+static int unnamed_dev_start = 1; /* don't bother trying below it */
 int get_anon_bdev(dev_t *p)
 {



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]

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

* Re: Initramfs FSID altered in 3.14
  2014-04-03 17:57 Initramfs FSID altered in 3.14 Dave Reisner
  2014-04-03 18:13 ` Thomas Bächler
@ 2014-04-03 18:57 ` Pádraig Brady
  2014-04-03 19:13 ` Tejun Heo
  2 siblings, 0 replies; 15+ messages in thread
From: Pádraig Brady @ 2014-04-03 18:57 UTC (permalink / raw)
  To: Dave Reisner; +Cc: linux-kernel, tj

On 04/03/2014 06:57 PM, Dave Reisner wrote:
> Hi,
> 
> [This is a repost of a G+ post at Tejun's request]
> 
> With Linux 3.14, you might notice in /proc/self/mountinfo that your
> root's parent FSID is now 0, instead of the 1 that it's been for the
> last N years. Tejun wrote the change (9e30cc9595303b27b48) that caused
> this, but the change comes in a rather innocuous way. Instead of an
> internal kernel mount of sysfs being assigned 0, it's now the initramfs.
> 
> So far, this has already caused switch_root and findmnt (from
> util-linux) to break, cp (from coreutils) to break when using the -x
> flag in early userspace, and it's also been pointed out that systemd's
> readahead code makes assumptions about a device number of 0.

For reference we've changed coreutils not to assume 0 is an invalid device ID:
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=d0294ff3

> Are we now supposed to go and change all the assumptions in userspace
> about 0 being special? I'm conflicted. The kernel isn't supposed to
> break userspace, but it seems to me that FSIDs were never something to
> rely on -- similar to the block device numbering scheme.

I would say the kernel doesn't care what the value is,
so to ease compat worries just use >= 1.

cheers,
Pádraig

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

* Re: Initramfs FSID altered in 3.14
  2014-04-03 17:57 Initramfs FSID altered in 3.14 Dave Reisner
  2014-04-03 18:13 ` Thomas Bächler
  2014-04-03 18:57 ` Initramfs FSID altered in 3.14 Pádraig Brady
@ 2014-04-03 19:13 ` Tejun Heo
  2 siblings, 0 replies; 15+ messages in thread
From: Tejun Heo @ 2014-04-03 19:13 UTC (permalink / raw)
  To: Dave Reisner
  Cc: linux-kernel, Greg Kroah-Hartman, thomas, P, alexandre.f.demers

Hello, Dave.

On Thu, Apr 03, 2014 at 01:57:44PM -0400, Dave Reisner wrote:
> With Linux 3.14, you might notice in /proc/self/mountinfo that your
> root's parent FSID is now 0, instead of the 1 that it's been for the
> last N years. Tejun wrote the change (9e30cc9595303b27b48) that caused
> this, but the change comes in a rather innocuous way. Instead of an
> internal kernel mount of sysfs being assigned 0, it's now the initramfs.
> 
> So far, this has already caused switch_root and findmnt (from
> util-linux) to break, cp (from coreutils) to break when using the -x
> flag in early userspace, and it's also been pointed out that systemd's
> readahead code makes assumptions about a device number of 0.
> 
> Are we now supposed to go and change all the assumptions in userspace
> about 0 being special? I'm conflicted. The kernel isn't supposed to
> break userspace, but it seems to me that FSIDs were never something to
> rely on -- similar to the block device numbering scheme.

I think this is the same problem Alexandre Demers reported.  Arch was
failing to boot with the commit.  There's already a patch pending to
reinstate the internal mount but I think what Thomas is proposing -
just starting allocating FSID from 1 is a better solution.  Alexandre,
can you please test Thomas' patch?

Thanks.

-- 
tejun

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

* Re: Initramfs FSID altered in 3.14
  2014-04-03 18:13 ` Thomas Bächler
@ 2014-04-03 19:16   ` Tejun Heo
  2014-04-03 19:20     ` Theodore Ts'o
  2014-04-03 19:49     ` [PATCH] fs: Don't return 0 from get_anon_bdev Thomas Bächler
  0 siblings, 2 replies; 15+ messages in thread
From: Tejun Heo @ 2014-04-03 19:16 UTC (permalink / raw)
  To: Thomas Bächler
  Cc: Dave Reisner, linux-kernel, Greg Kroah-Hartman, thomas, P,
	alexandre.f.demers

Hello,

On Thu, Apr 03, 2014 at 08:13:50PM +0200, Thomas Bächler wrote:
> Most of these bugs were not caused by rootfs' FSID being different from
> 1, but rather because there was a file system with FSID 0.
> 
> Only util-linux/switch_root assumed that rootfs always had exactly FSID
> 1 - which is IMO a wrong assumption.
> 
> However, tt seems that people have been assuming that st_dev > 0 for a
> while. If we want to revert this in the kernel, this patch (untested)
> should be sufficient:
> 
> diff --git a/fs/super.c b/fs/super.c
> index 80d5cf2..d9fddde 100644
> --- a/fs/super.c
> +++ b/fs/super.c
> @@ -802,7 +802,7 @@ void emergency_remount(void)
>  static DEFINE_IDA(unnamed_dev_ida);
>  static DEFINE_SPINLOCK(unnamed_dev_lock);/* protects the above */
> -static int unnamed_dev_start = 0; /* don't bother trying below it */
> +static int unnamed_dev_start = 1; /* don't bother trying below it */
>  int get_anon_bdev(dev_t *p)
>  {

Alexandre, this is the one line change that should fix it.  Can you
please test it?

Thomas, can you please write proper patch description with reference
to the following thread and stable # 3.14 tag?

 http://lkml.kernel.org/g/CAPEhTTFP3N-ReasmgL5n82mve8p8M3crqmaMvzV+F2p5JCSRbQ@mail.gmail.com

Thanks.

-- 
tejun

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

* Re: Initramfs FSID altered in 3.14
  2014-04-03 19:16   ` Tejun Heo
@ 2014-04-03 19:20     ` Theodore Ts'o
  2014-04-03 22:02       ` Alexandre Demers
  2014-04-03 19:49     ` [PATCH] fs: Don't return 0 from get_anon_bdev Thomas Bächler
  1 sibling, 1 reply; 15+ messages in thread
From: Theodore Ts'o @ 2014-04-03 19:20 UTC (permalink / raw)
  To: Tejun Heo
  Cc: Thomas Bächler, Dave Reisner, linux-kernel,
	Greg Kroah-Hartman, P, alexandre.f.demers

I agree with Tejun that we should fix it up, and not force
distributions to have to send out emergency releases of various
userspace utilities --- especially since the fix is so simple.

     	 	   	       	       		 - Ted

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

* [PATCH] fs: Don't return 0 from get_anon_bdev
  2014-04-03 19:16   ` Tejun Heo
  2014-04-03 19:20     ` Theodore Ts'o
@ 2014-04-03 19:49     ` Thomas Bächler
  2014-04-03 19:51         ` Tejun Heo
                         ` (2 more replies)
  1 sibling, 3 replies; 15+ messages in thread
From: Thomas Bächler @ 2014-04-03 19:49 UTC (permalink / raw)
  To: tj
  Cc: d, linux-kernel, gregkh, P, alexandre.f.demers,
	Thomas Bächler, 3.14

Commit 9e30cc9595303b27b48 removed an internal mount. This
has the side-effect that rootfs now has FSID 0. Many
userspace utilities assume that st_dev in struct stat
is never 0, so this change breaks a number of tools in
early userspace.

Since we don't know how many userspace programs are affected,
make sure that FSID is at least 1.

References: http://article.gmane.org/gmane.linux.kernel/1666905
References: http://permalink.gmane.org/gmane.linux.utilities.util-linux-ng/8557
Cc: 3.14 <stable@vger.kernel.org>
Signed-off-by: Thomas Bächler <thomas@archlinux.org>
---
 fs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/super.c b/fs/super.c
index 80d5cf2..d9fddde 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -802,7 +802,7 @@ void emergency_remount(void)
 
 static DEFINE_IDA(unnamed_dev_ida);
 static DEFINE_SPINLOCK(unnamed_dev_lock);/* protects the above */
-static int unnamed_dev_start = 0; /* don't bother trying below it */
+static int unnamed_dev_start = 1; /* don't bother trying below it */
 
 int get_anon_bdev(dev_t *p)
 {
-- 
1.9.1


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

* Re: [PATCH] fs: Don't return 0 from get_anon_bdev
  2014-04-03 19:49     ` [PATCH] fs: Don't return 0 from get_anon_bdev Thomas Bächler
@ 2014-04-03 19:51         ` Tejun Heo
  2014-04-03 20:21       ` [PATCH] " H. Peter Anvin
  2014-04-03 23:41       ` Alexandre Demers
  2 siblings, 0 replies; 15+ messages in thread
From: Tejun Heo @ 2014-04-03 19:51 UTC (permalink / raw)
  To: Thomas Bächler; +Cc: d, linux-kernel, gregkh, P, alexandre.f.demers, 3.14

On Thu, Apr 03, 2014 at 09:49:55PM +0200, Thomas Bächler wrote:
> Commit 9e30cc9595303b27b48 removed an internal mount. This
> has the side-effect that rootfs now has FSID 0. Many
> userspace utilities assume that st_dev in struct stat
> is never 0, so this change breaks a number of tools in
> early userspace.
> 
> Since we don't know how many userspace programs are affected,
> make sure that FSID is at least 1.
> 
> References: http://article.gmane.org/gmane.linux.kernel/1666905
> References: http://permalink.gmane.org/gmane.linux.utilities.util-linux-ng/8557
> Cc: 3.14 <stable@vger.kernel.org>
> Signed-off-by: Thomas Bächler <thomas@archlinux.org>

Provided Alexandre confirms the fix.

 Acked-by: Tejun Heo <tj@kernel.org>

> ---
>  fs/super.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/super.c b/fs/super.c
> index 80d5cf2..d9fddde 100644
> --- a/fs/super.c
> +++ b/fs/super.c
> @@ -802,7 +802,7 @@ void emergency_remount(void)
>  
>  static DEFINE_IDA(unnamed_dev_ida);
>  static DEFINE_SPINLOCK(unnamed_dev_lock);/* protects the above */
> -static int unnamed_dev_start = 0; /* don't bother trying below it */
> +static int unnamed_dev_start = 1; /* don't bother trying below it */

Maybe a comment saying that userland considers fsid 0 to be invalid
would be nice?

Thanks.

-- 
tejun

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

* Re: [PATCH] fs: Don't return 0 from get_anon_bdev
@ 2014-04-03 19:51         ` Tejun Heo
  0 siblings, 0 replies; 15+ messages in thread
From: Tejun Heo @ 2014-04-03 19:51 UTC (permalink / raw)
  To: Thomas Bächler; +Cc: d, linux-kernel, gregkh, P, alexandre.f.demers, 3.14

On Thu, Apr 03, 2014 at 09:49:55PM +0200, Thomas B�chler wrote:
> Commit 9e30cc9595303b27b48 removed an internal mount. This
> has the side-effect that rootfs now has FSID 0. Many
> userspace utilities assume that st_dev in struct stat
> is never 0, so this change breaks a number of tools in
> early userspace.
> 
> Since we don't know how many userspace programs are affected,
> make sure that FSID is at least 1.
> 
> References: http://article.gmane.org/gmane.linux.kernel/1666905
> References: http://permalink.gmane.org/gmane.linux.utilities.util-linux-ng/8557
> Cc: 3.14 <stable@vger.kernel.org>
> Signed-off-by: Thomas B�chler <thomas@archlinux.org>

Provided Alexandre confirms the fix.

 Acked-by: Tejun Heo <tj@kernel.org>

> ---
>  fs/super.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/super.c b/fs/super.c
> index 80d5cf2..d9fddde 100644
> --- a/fs/super.c
> +++ b/fs/super.c
> @@ -802,7 +802,7 @@ void emergency_remount(void)
>  
>  static DEFINE_IDA(unnamed_dev_ida);
>  static DEFINE_SPINLOCK(unnamed_dev_lock);/* protects the above */
> -static int unnamed_dev_start = 0; /* don't bother trying below it */
> +static int unnamed_dev_start = 1; /* don't bother trying below it */

Maybe a comment saying that userland considers fsid 0 to be invalid
would be nice?

Thanks.

-- 
tejun

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

* [PATCHv2] fs: Don't return 0 from get_anon_bdev
  2014-04-03 19:51         ` Tejun Heo
  (?)
@ 2014-04-03 19:55         ` Thomas Bächler
  2014-04-03 20:32             ` Greg KH
  -1 siblings, 1 reply; 15+ messages in thread
From: Thomas Bächler @ 2014-04-03 19:55 UTC (permalink / raw)
  To: tj
  Cc: d, linux-kernel, gregkh, P, alexandre.f.demers,
	Thomas Bächler, 3.14

Commit 9e30cc9595303b27b48 removed an internal mount. This
has the side-effect that rootfs now has FSID 0. Many
userspace utilities assume that st_dev in struct stat
is never 0, so this change breaks a number of tools in
early userspace.

Since we don't know how many userspace programs are affected,
make sure that FSID is at least 1.

References: http://article.gmane.org/gmane.linux.kernel/1666905
References: http://permalink.gmane.org/gmane.linux.utilities.util-linux-ng/8557
Cc: 3.14 <stable@vger.kernel.org>
Signed-off-by: Thomas Bächler <thomas@archlinux.org>
---
 fs/super.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/fs/super.c b/fs/super.c
index 80d5cf2..7624267 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -802,7 +802,10 @@ void emergency_remount(void)
 
 static DEFINE_IDA(unnamed_dev_ida);
 static DEFINE_SPINLOCK(unnamed_dev_lock);/* protects the above */
-static int unnamed_dev_start = 0; /* don't bother trying below it */
+/* Many userspace utilities consider an FSID of 0 invalid.
+ * Always return at least 1 from get_anon_bdev.
+ */
+static int unnamed_dev_start = 1;
 
 int get_anon_bdev(dev_t *p)
 {
-- 
1.9.1


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

* Re: [PATCH] fs: Don't return 0 from get_anon_bdev
  2014-04-03 19:49     ` [PATCH] fs: Don't return 0 from get_anon_bdev Thomas Bächler
  2014-04-03 19:51         ` Tejun Heo
@ 2014-04-03 20:21       ` H. Peter Anvin
  2014-04-03 23:41       ` Alexandre Demers
  2 siblings, 0 replies; 15+ messages in thread
From: H. Peter Anvin @ 2014-04-03 20:21 UTC (permalink / raw)
  To: Thomas Bächler, tj
  Cc: d, linux-kernel, gregkh, P, alexandre.f.demers, 3.14

On 04/03/2014 12:49 PM, Thomas Bächler wrote:
> Commit 9e30cc9595303b27b48 removed an internal mount. This
> has the side-effect that rootfs now has FSID 0. Many
> userspace utilities assume that st_dev in struct stat
> is never 0, so this change breaks a number of tools in
> early userspace.
> 
> Since we don't know how many userspace programs are affected,
> make sure that FSID is at least 1.
> 
> References: http://article.gmane.org/gmane.linux.kernel/1666905
> References: http://permalink.gmane.org/gmane.linux.utilities.util-linux-ng/8557
> Cc: 3.14 <stable@vger.kernel.org>
> Signed-off-by: Thomas Bächler <thomas@archlinux.org>
> ---
>  fs/super.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Acked-by: H. Peter Anvin <hpa@zytor.com>

It is worth noting that zero has been documented as a null device number
since at least 1995, probably more like 1993.

	-hpa



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

* Re: [PATCHv2] fs: Don't return 0 from get_anon_bdev
  2014-04-03 19:55         ` [PATCHv2] " Thomas Bächler
@ 2014-04-03 20:32             ` Greg KH
  0 siblings, 0 replies; 15+ messages in thread
From: Greg KH @ 2014-04-03 20:32 UTC (permalink / raw)
  To: Thomas Bächler; +Cc: tj, d, linux-kernel, P, alexandre.f.demers, 3.14

On Thu, Apr 03, 2014 at 09:55:37PM +0200, Thomas Bächler wrote:
> Commit 9e30cc9595303b27b48 removed an internal mount. This
> has the side-effect that rootfs now has FSID 0. Many
> userspace utilities assume that st_dev in struct stat
> is never 0, so this change breaks a number of tools in
> early userspace.
> 
> Since we don't know how many userspace programs are affected,
> make sure that FSID is at least 1.
> 
> References: http://article.gmane.org/gmane.linux.kernel/1666905
> References: http://permalink.gmane.org/gmane.linux.utilities.util-linux-ng/8557
> Cc: 3.14 <stable@vger.kernel.org>
> Signed-off-by: Thomas Bächler <thomas@archlinux.org>
> ---
>  fs/super.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/fs/super.c b/fs/super.c
> index 80d5cf2..7624267 100644
> --- a/fs/super.c
> +++ b/fs/super.c
> @@ -802,7 +802,10 @@ void emergency_remount(void)
>  
>  static DEFINE_IDA(unnamed_dev_ida);
>  static DEFINE_SPINLOCK(unnamed_dev_lock);/* protects the above */
> -static int unnamed_dev_start = 0; /* don't bother trying below it */
> +/* Many userspace utilities consider an FSID of 0 invalid.
> + * Always return at least 1 from get_anon_bdev.
> + */
> +static int unnamed_dev_start = 1;
>  
>  int get_anon_bdev(dev_t *p)
>  {

Very nice, I'll go queue this one up instead of the other patch from
Tejun.

greg k-h

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

* Re: [PATCHv2] fs: Don't return 0 from get_anon_bdev
@ 2014-04-03 20:32             ` Greg KH
  0 siblings, 0 replies; 15+ messages in thread
From: Greg KH @ 2014-04-03 20:32 UTC (permalink / raw)
  To: Thomas Bächler; +Cc: tj, d, linux-kernel, P, alexandre.f.demers, 3.14

On Thu, Apr 03, 2014 at 09:55:37PM +0200, Thomas B�chler wrote:
> Commit 9e30cc9595303b27b48 removed an internal mount. This
> has the side-effect that rootfs now has FSID 0. Many
> userspace utilities assume that st_dev in struct stat
> is never 0, so this change breaks a number of tools in
> early userspace.
> 
> Since we don't know how many userspace programs are affected,
> make sure that FSID is at least 1.
> 
> References: http://article.gmane.org/gmane.linux.kernel/1666905
> References: http://permalink.gmane.org/gmane.linux.utilities.util-linux-ng/8557
> Cc: 3.14 <stable@vger.kernel.org>
> Signed-off-by: Thomas B�chler <thomas@archlinux.org>
> ---
>  fs/super.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/fs/super.c b/fs/super.c
> index 80d5cf2..7624267 100644
> --- a/fs/super.c
> +++ b/fs/super.c
> @@ -802,7 +802,10 @@ void emergency_remount(void)
>  
>  static DEFINE_IDA(unnamed_dev_ida);
>  static DEFINE_SPINLOCK(unnamed_dev_lock);/* protects the above */
> -static int unnamed_dev_start = 0; /* don't bother trying below it */
> +/* Many userspace utilities consider an FSID of 0 invalid.
> + * Always return at least 1 from get_anon_bdev.
> + */
> +static int unnamed_dev_start = 1;
>  
>  int get_anon_bdev(dev_t *p)
>  {

Very nice, I'll go queue this one up instead of the other patch from
Tejun.

greg k-h

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

* Re: Initramfs FSID altered in 3.14
  2014-04-03 19:20     ` Theodore Ts'o
@ 2014-04-03 22:02       ` Alexandre Demers
  0 siblings, 0 replies; 15+ messages in thread
From: Alexandre Demers @ 2014-04-03 22:02 UTC (permalink / raw)
  To: Theodore Ts'o, Tejun Heo, Thomas Bächler, Dave Reisner,
	linux-kernel, Greg Kroah-Hartman, P, Alexandre Demers

I'll be testing it later tonight. It was either that or I would have
been completing my Qemu image. ;)

Stay tuned.

Alexandre

On Thu, Apr 3, 2014 at 3:20 PM, Theodore Ts'o <tytso@mit.edu> wrote:
> I agree with Tejun that we should fix it up, and not force
> distributions to have to send out emergency releases of various
> userspace utilities --- especially since the fix is so simple.
>
>                                                  - Ted

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

* Re: [PATCH] fs: Don't return 0 from get_anon_bdev
  2014-04-03 19:49     ` [PATCH] fs: Don't return 0 from get_anon_bdev Thomas Bächler
  2014-04-03 19:51         ` Tejun Heo
  2014-04-03 20:21       ` [PATCH] " H. Peter Anvin
@ 2014-04-03 23:41       ` Alexandre Demers
  2 siblings, 0 replies; 15+ messages in thread
From: Alexandre Demers @ 2014-04-03 23:41 UTC (permalink / raw)
  To: Thomas Bächler, tj; +Cc: d, linux-kernel, gregkh, P, 3.14

It works over here, tested on 3.14-rc8 which was previously failing. You 
have my

Tested-by: Alexandre Demers

Alexandre Demers

On 04/03/2014 03:49 PM, Thomas Bächler wrote:
> Commit 9e30cc9595303b27b48 removed an internal mount. This
> has the side-effect that rootfs now has FSID 0. Many
> userspace utilities assume that st_dev in struct stat
> is never 0, so this change breaks a number of tools in
> early userspace.
>
> Since we don't know how many userspace programs are affected,
> make sure that FSID is at least 1.
>
> References: http://article.gmane.org/gmane.linux.kernel/1666905
> References: http://permalink.gmane.org/gmane.linux.utilities.util-linux-ng/8557
> Cc: 3.14 <stable@vger.kernel.org>
> Signed-off-by: Thomas Bächler <thomas@archlinux.org>
> ---
>   fs/super.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/super.c b/fs/super.c
> index 80d5cf2..d9fddde 100644
> --- a/fs/super.c
> +++ b/fs/super.c
> @@ -802,7 +802,7 @@ void emergency_remount(void)
>   
>   static DEFINE_IDA(unnamed_dev_ida);
>   static DEFINE_SPINLOCK(unnamed_dev_lock);/* protects the above */
> -static int unnamed_dev_start = 0; /* don't bother trying below it */
> +static int unnamed_dev_start = 1; /* don't bother trying below it */
>   
>   int get_anon_bdev(dev_t *p)
>   {


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

end of thread, other threads:[~2014-04-03 23:41 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-03 17:57 Initramfs FSID altered in 3.14 Dave Reisner
2014-04-03 18:13 ` Thomas Bächler
2014-04-03 19:16   ` Tejun Heo
2014-04-03 19:20     ` Theodore Ts'o
2014-04-03 22:02       ` Alexandre Demers
2014-04-03 19:49     ` [PATCH] fs: Don't return 0 from get_anon_bdev Thomas Bächler
2014-04-03 19:51       ` Tejun Heo
2014-04-03 19:51         ` Tejun Heo
2014-04-03 19:55         ` [PATCHv2] " Thomas Bächler
2014-04-03 20:32           ` Greg KH
2014-04-03 20:32             ` Greg KH
2014-04-03 20:21       ` [PATCH] " H. Peter Anvin
2014-04-03 23:41       ` Alexandre Demers
2014-04-03 18:57 ` Initramfs FSID altered in 3.14 Pádraig Brady
2014-04-03 19:13 ` Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.