Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753311AbbDHBRF (ORCPT ); Tue, 7 Apr 2015 21:17:05 -0400 Received: from ozlabs.org ([103.22.144.67]:57831 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752543AbbDHBRA (ORCPT ); Tue, 7 Apr 2015 21:17:00 -0400 From: Rusty Russell To: Linus Torvalds , Sasha Levin Cc: LKML , Dave Jones , Michal Hocko , Borislav Petkov , "the arch\/x86 maintainers" Subject: Re: Hang on large copy_from_user with PREEMPT_NONE In-Reply-To: References: <552204B8.40605@oracle.com> <5522D9A8.5080104@oracle.com> User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) Date: Tue, 07 Apr 2015 11:19:05 +0930 Message-ID: <87bnj03dym.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 631 Lines: 17 Linus Torvalds writes: > Alternatively, we could just limit module loading size to some (fairly > arbitrary) big number. Yeah, we used to do that because vmalloc would BUG rather than returning NULL. But you're already CAP_SYS_MODULE in this path, which kind of makes it hard to care very much about it being slow under virtualization. Cheers, Rusty. -- 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/