Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1534328

Re: Kernel Panics on Xen ARM64 for Domain0 and Guest

From Julien Grall <julien.grall@arm.com>
Newsgroups linux.kernel
Subject Re: Kernel Panics on Xen ARM64 for Domain0 and Guest
Date 2016-12-01 18:40 +0100
Message-ID <sJDuW-7nV-19@gated-at.bofh.it> (permalink)
References <sIsLf-1AV-3@gated-at.bofh.it> <sIsLf-1AV-1@gated-at.bofh.it> <sIw2v-3Ow-43@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 28/11/16 15:29, tj@kernel.org wrote:
> Hello,

Hello,

> On Mon, Nov 28, 2016 at 11:59:15AM +0000, Julien Grall wrote:
>>> commit 3ca45a46f8af8c4a92dd8a08eac57787242d5021
>>> percpu: ensure the requested alignment is power of two
>>
>> It would have been useful to specify the tree used. In this case,
>> this commit comes from linux-next.
>
> I'm surprised this actually triggered.
>
>> diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c
>> index f193414..4986dc0 100644
>> --- a/arch/arm/xen/enlighten.c
>> +++ b/arch/arm/xen/enlighten.c
>> @@ -372,8 +372,7 @@ static int __init xen_guest_init(void)
>>          * for secondary CPUs as they are brought up.
>>          * For uniformity we use VCPUOP_register_vcpu_info even on cpu0.
>>          */
>> -       xen_vcpu_info = __alloc_percpu(sizeof(struct vcpu_info),
>> -                                              sizeof(struct vcpu_info));
>> +       xen_vcpu_info = alloc_percpu(struct vcpu_info);
>>         if (xen_vcpu_info == NULL)
>>                 return -ENOMEM;
>
> Yes, this looks correct.  Can you please cc stable too?  percpu
> allocator never supported alignments which aren't power of two and has
> always behaved incorrectly with alignments which aren't power of two.

I will send the patch soon with stable CCed.

Regards,

-- 
Julien Grall

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Kernel Panics on Xen ARM64 for Domain0 and Guest Julien Grall <julien.grall@arm.com> - 2016-11-28 13:00 +0100
  Re: Kernel Panics on Xen ARM64 for Domain0 and Guest "tj@kernel.org" <tj@kernel.org> - 2016-11-28 16:30 +0100
    Re: Kernel Panics on Xen ARM64 for Domain0 and Guest Julien Grall <julien.grall@arm.com> - 2016-12-01 18:40 +0100

csiph-web