From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 128ACC388F7 for ; Tue, 3 Nov 2020 17:53:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B783A20773 for ; Tue, 3 Nov 2020 17:53:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728963AbgKCRxu convert rfc822-to-8bit (ORCPT ); Tue, 3 Nov 2020 12:53:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:59018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727706AbgKCRxu (ORCPT ); Tue, 3 Nov 2020 12:53:50 -0500 From: bugzilla-daemon@bugzilla.kernel.org To: linux-usb@vger.kernel.org Subject: [Bug 210015] page allocation failure in usb_hub_wq hub_event when adding HID device Date: Tue, 03 Nov 2020 17:53:49 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo drivers_usb@kernel-bugs.kernel.org X-Bugzilla-Product: Drivers X-Bugzilla-Component: USB X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: benjamin.tissoires@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: drivers_usb@kernel-bugs.kernel.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org https://bugzilla.kernel.org/show_bug.cgi?id=210015 Benjamin Tissoires (benjamin.tissoires@gmail.com) changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |benjamin.tissoires@gmail.co | |m --- Comment #2 from Benjamin Tissoires (benjamin.tissoires@gmail.com) --- > Unless the memory allocated by the hid driver needs to be physically > contiguous, it should use kvmalloc(_array) instead of kmalloc(_array) (and > kvfree instead of kfree) where it can be larger than a single page. hmm, that is a good lead. I'll have to double check but I don't think the allocated memory should be that big. I am worried that using kvmalloc would paper over an other problem and we'll eat up all the memory by just plugging a keyboard... -- You are receiving this mail because: You are watching the assignee of the bug.