lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9a8748490701120254x6a7dd93aw9dd75994af661f5e@mail.gmail.com>
Date:	Fri, 12 Jan 2007 11:54:33 +0100
From:	"Jesper Juhl" <jesper.juhl@...il.com>
To:	"Jan Engelhardt" <jengelh@...ux01.gwdg.de>
Cc:	congwen <congwen@...il.com>,
	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: How can I create or read/write a file in linux device driver?

On 12/01/07, Jan Engelhardt <jengelh@...ux01.gwdg.de> wrote:
>
> On Jan 12 2007 11:27, Jesper Juhl wrote:
> > On 12/01/07, congwen <congwen@...il.com> wrote:
> >> Hello everyone, I want to create and read/write a file in Linux kernel or
> >> device driver,
> >
> > Don't read/write user space files from kernel space.
> >
> > Please search the archives, this get asked a lot and it has been
> > explained a million times why it's a bad idea.
> > You can also read http://www.linuxjournal.com/article/8110
>
> The article does it the bad way. IMHO filp_open() and
> vfs_read/vfs_write() are much less problematic wrt. to userspace.
> FWIW see
> ftp://ftp-1.gwdg.de/pub/linux/misc/suser-jengelh/kernel/quad_dsp-1.5.1.tar.bz2
>

There is no good way.  You simply should NOT do it.

-- 
Jesper Juhl <jesper.juhl@...il.com>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ