public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Something badly broken with the latest XFS changeset in all stable kernels?
@ 2016-06-13 21:57 Thomas D.
  2016-06-15  0:02 ` Dave Chinner
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas D. @ 2016-06-13 21:57 UTC (permalink / raw)
  To: xfs

Hi,

can anybody confirm if there's something broken with the latest XFS
change set which is now applied on all stable kernels?

I found https://forums.grsecurity.net/viewtopic.php?t=4489&p=16355 and
grsec changelog says

> commit 1f621dc42acbabb71bd69f6ba606cee56e7ad3bc
> Author: Brad Spengler <spender@grsecurity.net>
> Date:   Sat Jun 11 08:14:32 2016 -0400
> 
>     Fix Greg KH's broken XFS backport, caused a benign case to be detected
>     as disk corruption
>     Problem was due to a tree-wide conversion of error codes to their negative
>     counterparts, which would likely never be backported to older kernels, but
>     the backports didn't account for the change
> 
>  fs/xfs/xfs_inode.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

This is the change grsec applied:

> diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
> index fb8579d..af807d8 100644
> --- a/fs/xfs/xfs_inode.c
> +++ b/fs/xfs/xfs_inode.c
> @@ -3098,7 +3111,7 @@ xfs_iflush(
>  	 */
>  	error = xfs_imap_to_bp(mp, NULL, &ip->i_imap, &dip, &bp, XBF_TRYLOCK,
>  			       0);
> -	if (error == -EAGAIN) {
> +	if (error == EAGAIN) {
>  		xfs_ifunlock(ip);
>  		return error;
>  	}

The bad commit according to grsec's statement is

> From b1438f477934f5a4d5a44df26f3079a7575d5946 Mon Sep 17 00:00:00 2001
> From: Dave Chinner <dchinner@redhat.com>
> Date: Wed, 18 May 2016 13:53:42 +1000
> Subject: [PATCH] xfs: xfs_iflush_cluster fails to abort on error

Would be nice to get some clarification.

Thanks.


-- 
Regards,
Thomas

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2016-06-15  7:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-13 21:57 Something badly broken with the latest XFS changeset in all stable kernels? Thomas D.
2016-06-15  0:02 ` Dave Chinner
2016-06-15  1:30   ` Greg KH
2016-06-15  5:28     ` Willy Tarreau
2016-06-15  6:51       ` Dave Chinner
2016-06-15  7:14         ` Willy Tarreau
2016-06-15  7:00       ` Jiri Slaby
2016-06-15  6:40     ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox