diff options
author | David Teigland <teigland@redhat.com> | 2009-03-04 11:17:23 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2009-03-11 12:23:59 -0500 |
commit | 1fecb1c4b62881e3689ba2dcf93072ae301b597c (patch) | |
tree | bd0a111ea40bfaa0697e7b0c341660cd970a23a3 /fs/quota | |
parent | a536e38125fe5da8ed49690f30c30a8f651cf1f5 (diff) | |
download | linux-1fecb1c4b62881e3689ba2dcf93072ae301b597c.tar.gz linux-1fecb1c4b62881e3689ba2dcf93072ae301b597c.tar.bz2 linux-1fecb1c4b62881e3689ba2dcf93072ae301b597c.zip |
dlm: fix length calculation in compat code
Using offsetof() to calculate name length does not work because
it does not produce consistent results with with structure packing.
This caused memcpy to corrupt memory by copying 4 extra bytes off
the end of the buffer on 64 bit kernels with 32 bit userspace
(the only case where this 32/64 compat code is used).
The fix is to calculate name length directly from the start instead
of trying to derive it later using count and offsetof.
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/quota')
0 files changed, 0 insertions, 0 deletions