[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100602.081846.66727112.davem@davemloft.net>
Date: Wed, 02 Jun 2010 08:18:46 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: xiaosuo@...il.com
Cc: hadi@...erus.ca, netdev@...r.kernel.org
Subject: Re: cls_u32: check unaligned data access
From: Changli Gao <xiaosuo@...il.com>
Date: Wed, 2 Jun 2010 23:15:47 +0800
> check unaligned data access
>
> before accessing data, check if the corresponding address is aligned, and if
> not, return -1.
>
> Signed-off-by: Changli Gao <xiaosuo@...il.com>
The user will find out when he gets warnings in his kernel log
messages on platforms where this matters.
And, if anything, silently just skipping over things is not
acceptable. And imposing a 4-byte alignment could break
existing setups that actually work on x86 and powerpc which
are platforms that don't have alignment issues.
I basically tried to explain to you earlier that I wasn't going to
accept patches that try to deal with alignment in any way here in this
code, we explicitly and intentionally blindly dereference the data.
--
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