[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140414.162452.1169041476405438694.davem@davemloft.net>
Date: Mon, 14 Apr 2014 16:24:52 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: luto@...capital.net
Cc: dborkman@...hat.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, torvalds@...ux-foundation.org,
ast@...mgrid.com, eparis@...hat.com, james.l.morris@...cle.com,
keescook@...omium.org
Subject: Re: [PATCH] seccomp: fix populating a0-a5 syscall args in 32-bit
x86 BPF
From: Andy Lutomirski <luto@...capital.net>
Date: Mon, 14 Apr 2014 13:13:45 -0700
> I think this description is wrong. (unsigned long *) &sd->args[1] is
> the right location, at least on 32-bit little-endian architectures.
It absolutely is not.
The thing is a u64, and we must respect that type in a completely
portable way.
Daniel's change is %100 correct, portable, and doesn't have any
ugly ifdef crap.
If you want to optimize this, and potentially break it again, do
it in the next merge window not now.
I'm going to apply Daniel's patch.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists