[lkml]   [2001]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: EFAULT from file read.
Alexander Viro ¼g¹D¡G
> On Tue, 18 Sep 2001, Richard B. Johnson wrote:
> > File I/O requires a process context. Your file descriptor means
> > nothing unless associated with the process that opened the file.
> It fscking doesn't. He had clearly said that he calls file->f_op->read(),
> which has nothing whatsofuckingever to descriptors. Sod off and don't
> return until you learn to read.
> As for the original question - grep fro set_fs and you'll see what to
> do (basically, set_fs(KERNEL_DS) before the call of ->read() and restore
> afterwards).

Problem solved by calling dummy=set_fs(KERNEL_DS) . But remember to call
set_fs(dummy) to restore after the read.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:03    [W:0.075 / U:1.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site