Fix general protection fault in uninitialized mem.
Following are test log on x86:
----------------------------------------------------------
root@d610-2:/opt/ltp-full/testcases/bin> ./rt_sigsuspend01 Segmentation
fault
and messages of rt_sigsuspend01 when dmesg:
root@d610-2:/opt/ltp-full/testcases/bin> dmesg | tail
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing unused kernel memory: 344k freed
intel_rng: FWH not detected
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 10
SCTP: Hash tables configured (established 16384 bind 32768)
eth0: no IPv6 routers present
***rt_sigsuspend01[865] general protection ip:bfa8b780 sp:bfa8b120
error:0
After apply the patch:
root@d610-2:/opt/ltp-full/testcases/bin> ./rt_sigsuspend01
rt_sigsuspend01 1 TPASS : rt_sigsuspend PASSED
Signed-off-by: Yingang Fu <Yingang.Fu@windriver.com>
Acked-by: Garrett Cooper <yanegomi@gmail.com>
1 file changed