diff options
| author | WANG Chao <[email protected]> | 2015-02-17 13:46:01 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-02-17 14:34:52 -0800 |
| commit | 34b47764297130b21aaeb4cc6119bb811814b8e3 (patch) | |
| tree | 895a40dc502eb407afd284b9fd4f38bc539eea80 /scripts/objdiff | |
| parent | b28c2ee868dbdc0baa89c60fb520be85d5e90a72 (diff) | |
vmcore: fix PT_NOTE n_namesz, n_descsz overflow issue
When updating PT_NOTE header size (ie. p_memsz), an overflow issue
happens with the following bogus note entry:
n_namesz = 0xFFFFFFFF
n_descsz = 0x0
n_type = 0x0
This kind of note entry should be dropped during updating p_memsz. But
because n_namesz is 32bit, after (n_namesz + 3) & (~3), it's overflow to
0x0, the note entry size looks sane and reserved.
When userspace (eg. crash utility) is trying to access such bogus note,
it could lead to an unexpected behavior (eg. crash utility segment fault
because it's reading bogus address).
The source of bogus note hasn't been identified yet. At least we could
drop the bogus note so user space wouldn't be surprised.
Signed-off-by: WANG Chao <[email protected]>
Cc: Dave Anderson <[email protected]>
Cc: Baoquan He <[email protected]>
Cc: Randy Wright <[email protected]>
Cc: Vivek Goyal <[email protected]>
Cc: Paul Gortmaker <[email protected]>
Cc: Fabian Frederick <[email protected]>
Cc: Vitaly Kuznetsov <[email protected]>
Cc: Rashika Kheria <[email protected]>
Cc: Greg Pearson <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions