WANG Chao c4082f36fa vmcore: continue vmcore initialization if PT_NOTE is found empty
Currently when an empty PT_NOTE is detected, vmcore initialization
fails.  It sounds too harsh.  Because PT_NOTE could be empty, for
example, one offlined a cpu but never restarted kdump service, and after
crash, PT_NOTE program header is there but no data contains.  It's
better to warn about the empty PT_NOTE and continue to initialise
vmcore.

And ultimately the multiple PT_NOTE are merged into a single one, all
empty PT_NOTE are discarded naturally during the merge.  So empty
PT_NOTE is not visible to user space and vmcore is as good as expected.

Signed-off-by: WANG Chao <chaowang@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
Cc: Greg Pearson <greg.pearson@hp.com>
Cc: Baoquan He <bhe@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-04-07 16:36:06 -07:00
..
2014-02-17 12:37:13 -08:00
2014-02-14 11:54:44 -06:00
2013-12-04 12:27:46 +01:00
2014-01-25 03:14:05 -05:00
2014-04-07 16:35:49 -07:00
2013-12-22 11:03:49 -08:00
2013-12-05 16:36:21 -06:00
2013-10-24 23:34:54 -04:00
2014-02-20 14:54:28 +01:00
2014-04-01 17:08:43 +02:00
2014-04-04 15:50:08 -07:00
2013-11-09 00:16:20 -05:00
2013-10-24 23:34:54 -04:00
2014-02-07 16:08:57 -08:00
2014-02-07 16:08:57 -08:00
2014-03-30 19:18:51 -04:00
2013-11-23 22:33:47 -08:00
2014-03-30 19:18:51 -04:00
2014-04-04 15:50:08 -07:00
2014-03-30 19:18:51 -04:00
2014-03-30 19:18:51 -04:00
2013-10-24 23:34:54 -04:00
2014-01-22 19:36:57 +01:00
2013-11-09 00:16:31 -05:00