Re: copy to/from user with irq disabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 7, 2008 6:04 PM, Martin Candurra <martincad@xxxxxxxxx> wrote:
> > On Feb 7, 2008 9:17 PM, Ramagudi Naziir <naziirr@xxxxxxxxx> wrote:
> > > is it allowed to use the copy from/to userspace with irq disabled ?
> As Mulyadi said copy from/to user space may block (try to think that the
> page you want to copy from/to is not in memory).
>
> Why do you think you need to disable interrupts ?

I just read this:
"Driver has to mess up with copy_to/from_user, and in many cases
 *        does it unproperly. Common mistakes are :
 *              * buffer overflows (no checks or off by one checks)
 *              * call copy_to/from_user with irq disabled"

in  iw_handler.h... and tried to understand why it is a problem..

thanks..
>
> Regards.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux