From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752142AbaH2JuG (ORCPT ); Fri, 29 Aug 2014 05:50:06 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:16650 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751026AbaH2JuE (ORCPT ); Fri, 29 Aug 2014 05:50:04 -0400 Date: Fri, 29 Aug 2014 12:49:45 +0300 From: Dan Carpenter To: KY Srinivasan Cc: Sitsofe Wheeler , Dexuan Cui , Greg Kroah-Hartman , Haiyang Zhang , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" Subject: Re: [PANIC, hyperv] BUG: unable to handle kernel paging request at ffff880077800004 (hv_ringbuffer_write) Message-ID: <20140829094945.GA5122@mwanda> References: <20140820092630.GA1478@sucs.org> <20140825174132.GA17681@sucs.org> <20140827104408.GC1827@sucs.org> <20140827121559.GA14286@sucs.org> <20140827161900.GA25326@sucs.org> <51ae44fcae424365a6d78f3597175d77@BY2PR0301MB0711.namprd03.prod.outlook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51ae44fcae424365a6d78f3597175d77@BY2PR0301MB0711.namprd03.prod.outlook.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: acsinet22.oracle.com [141.146.126.238] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It's sort of weird that this is an alignment issue. The config that was posted earlier was an x86_64 config and on that system then the pointers from kmalloc() should already be aligned correctly at sizeof(u64). Earlier I said I suspected the code is racy, so possibly changing from kmalloc() to get_zeroed_page() just changes the timing enough so we don't see the race condition. regards, dan carpenter