Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966475Ab3HIJbX (ORCPT ); Fri, 9 Aug 2013 05:31:23 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52268 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965824Ab3HIJbS (ORCPT ); Fri, 9 Aug 2013 05:31:18 -0400 Date: Fri, 9 Aug 2013 11:31:15 +0200 (CEST) From: Jiri Kosina To: Manoj Chourasia Cc: "linux-kernel@vger.kernel.org" , Peter Wu Subject: Re: [PATCH] hidraw: correctly deallocate memory on device disconnect In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 757 Lines: 19 On Mon, 22 Jul 2013, Manoj Chourasia wrote: > This is mail is in regard to your commit for hidaw devices. We were > seeing kernel crashes while connect and disconnect a hidraw device and > we were hitting rb tree corruption in vmalloc and kernel was crashing > because of null pointer de-reference. Later we figure out that was > because the hid device disconnect is freeing memory which later got > access by hidraw_read and hid_write. Now applied, thanks Manoj, thanks Peter. -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/