From mboxrd@z Thu Jan 1 00:00:00 1970 From: Evgeniy Polyakov Subject: Re: [PATCH 2/3]: An implementation of HyperV KVP functionality Date: Wed, 8 Dec 2010 01:29:33 +0300 Message-ID: <20101207222933.GA10431@ioremap.net> References: <4CFE5204020000300009174C@novprvoes0310.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <4CFE5204020000300009174C@novprvoes0310.provo.novell.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devel-bounces@linuxdriverproject.org Errors-To: devel-bounces@linuxdriverproject.org To: Ky Srinivasan Cc: devel@driverdev.osuosl.org, Haiyang Zhang , Greg KH , Virtualization@lists.osdl.org, Stephen Hemminger List-Id: virtualization@lists.linuxfoundation.org On Tue, Dec 07, 2010 at 03:25:56PM -0700, Ky Srinivasan (ksrinivasan@novell.com) wrote: > +static void shutdown_onchannelcallback(void *context) > +{ > + struct vmbus_channel *channel = context; > + u8 *buf; > + u32 buflen, recvlen; > + u64 requestid; > + u8 execute_shutdown = false; > + > + struct shutdown_msg_data *shutdown_msg; > + > + struct icmsg_hdr *icmsghdrp; > + struct icmsg_negotiate *negop = NULL; > + > + buflen = PAGE_SIZE; > + buf = kmalloc(buflen, GFP_ATOMIC); > + > + vmbus_recvpacket(channel, buf, buflen, &recvlen, &requestid); This did not change since previous review and this is wrong. It is the right way to crash kernel. I did not read further since this is a show-stopper imo. -- Evgeniy Polyakov