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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,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 A6A3BC43464 for ; Sat, 19 Sep 2020 13:40:19 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B02AC20878 for ; Sat, 19 Sep 2020 13:40:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="aNPtn/9l"; dkim=temperror (0-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="lMxjRrZB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B02AC20878 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1kJd5Y-000178-Sn; Sat, 19 Sep 2020 09:39:40 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kJd5W-00016y-26 for kernelnewbies@kernelnewbies.org; Sat, 19 Sep 2020 09:39:38 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 061A35C00B1; Sat, 19 Sep 2020 09:39:32 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sat, 19 Sep 2020 09:39:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=ly9I8yOeEgO30cUE7tQ3MjZZo/T zX0CQt1u4U/SxvCo=; b=aNPtn/9l0QK51cmTfamUa2oNq3TWz8RxcasnkNlHq6y U+z2pdzR7No13OOOBwR3vzc8YpNpHRjIPbMi7zdK6thGDR+0TyJozsi+Qb1yNSHm DGO98Xr17uR2809Z1rBzqqgi28t2XM9u8TeUPoUAAjGmbSFtWuy8hdMketF6H3Qr YqANdow0CEvXZHpkHIoaouvWhxM2imdPw7JTWk+f4hikz6nFu6NjvWKfJ4LzfktU 85v6s/0jxQgXiI4ugUWIVKZkZT91dPiW28xza5Cs2UGXEh9eeghLJa0mMuqvJeKx VyG+ajUyMajOYeyN/0ESx4y2LBaSNWK24kOp8Y55wGg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ly9I8y OeEgO30cUE7tQ3MjZZo/TzX0CQt1u4U/SxvCo=; b=lMxjRrZBc2jr48mly1rl7g LjN2WdOdhhvkARyWUm4Xfya7etq0ACqRWs9xkN6CbTK04PFM0apvrf67/kfe2aXp OeJbsY9Lu2K8V01f2wOb8EEIX+CHOFKjzW/6kj+NjkE9N5gMNpDQGWJptxb6ncKj mSQu8jl24Q8U2CIf8IzB1Vzy+wPq9RqGMq8fmFr5t/G4LnHjooFSw1qswD/c/vK6 PKj1hP2o5gm+pez4Wt2VBHNAOgHIyJE2Gok/FbOVZjphkQAQhewGibD2XLpHMv15 UIZTWWvjlbU4P8Iv+GXamzhXWBMCUn/wjA4HvDh7gJpwJbmp+7EeioerxT1U2tXA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrtdekgdeijecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttdertd dttddvnecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhmqeen ucggtffrrghtthgvrhhnpeevueehjefgfffgiedvudekvdektdelleelgefhleejieeuge egveeuuddukedvteenucfkphepkeefrdekiedrjeegrdeigeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) by mail.messagingengine.com (Postfix) with ESMTPA id 7A7A63064674; Sat, 19 Sep 2020 09:39:31 -0400 (EDT) Date: Sat, 19 Sep 2020 15:40:00 +0200 From: Greg KH To: JeongHwan Kim Subject: Re: memory mapping from user space to kernel space Message-ID: <20200919134000.GB2562161@kroah.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Sat, Sep 19, 2020 at 09:45:33PM +0900, JeongHwan Kim wrote: > Hi, everyone > > > The memory mapping from memory allocated in kernel space to user space is > possible > > to use mmap, but is it possible to map memory allocated in user space to > kernel? It is possible, but very messy and difficult, and strongly discouraged when ever possible. What exactly are you trying to do? thanks, greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies