[patch 5/5] openmosix/__pkt_read-list-init-fix.patch
Florian Delizy <[email protected]> Sat, 25 Nov 2006 00:19:03 +0100
| Newsgroups | gmane.linux.cluster.openmosix.devel |
|---|---|
| Message-ID | <[email protected]> |
packet list were not initialized, and in some cases this lead to kernel memory corruption ... thanks to a user that reported a 'strange' bug on his box, we finally found the problem :) Thanks raw ! this bug submission really helped :) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ openMosix-devel mailing list openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/openmosix-devel
__pkt_read-list-init-fix.patch
(text/x-patch, 798 B)
Subject: [patch @num@/@total@] @name@ packet list were not initialized, and in some cases this lead to kernel memory corruption ... thanks to a user that reported a 'strange' bug on his box, we finally found the problem :) Thanks raw ! this bug submission really helped :) Index: linux/hpc/kcomd.c =================================================================== --- linux.orig/hpc/kcomd.c 2006-11-24 22:55:33.000000000 +0100 +++ linux/hpc/kcomd.c 2006-11-24 23:04:25.000000000 +0100 @@ -399,10 +399,12 @@ goto error_delete_packet; } } - + INIT_LIST_HEAD(&((*recv_kcom_pkt)->list)); return 0; error_delete_packet: + /* Since the list may contain junk, we must init it */ + INIT_LIST_HEAD(&((*recv_kcom_pkt)->list)); kcom_pkt_delete(*recv_kcom_pkt); *recv_kcom_pkt = NULL;