Re: [Xen-devel] [PATCH] x86/xen: avoid freeing static 'name' when kasprintf() fails

2015-01-05 Thread Laszlo Ersek
On 01/05/15 14:19, David Vrabel wrote: > On 05/01/15 13:06, Vitaly Kuznetsov wrote: >> In case kasprintf() fails in xen_setup_timer() we assign name to the static >> string "". We, however, don't check that fact before >> issuing kfree() in xen_teardown_timer(), kernel is supposed to crash with >>

Re: [Xen-devel] [PATCH] x86/xen: avoid freeing static 'name' when kasprintf() fails

2015-01-05 Thread David Vrabel
On 05/01/15 13:06, Vitaly Kuznetsov wrote: > In case kasprintf() fails in xen_setup_timer() we assign name to the static > string "". We, however, don't check that fact before > issuing kfree() in xen_teardown_timer(), kernel is supposed to crash with > 'kernel BUG at mm/slub.c:3341!' > > Solve th