Skip to content

min_t type casting bug fixes

[email protected] kexec lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Introduce new macros min_lt and max_lt for comparing with larger typeinclude/linux/kernel.h+13 -02 replies
2/2proc-vmcore: wrong data type casting fixfs/proc/vmcore.c+3 -22 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] min_t type casting bug fixes

Hi,

We found a min_t type casting issue in fs/proc/vmcore.c, it uses smaller type in min_t so that during i386 PAE testing 64bit value was trucated and then cause saving vmcore failure and BUG() for mmap case.

I introduced new macros min_lt and max_lt to select the larger data type in x and y. Then use it in 2nd patch.

Any comments are appreciated.

Thanks
Dave