On Sun, 2006-03-26 at 09:45 -0800, Anil kumar wrote:
>
> Hi,
>
> I get the following kernel panic,
>
> kernel BUG at arch/i386/mm/highmem.c:63!
> EIP: 0060:[<c011af5a>] Tainted: PF VLI
> EFLAGS: 00010006 (2.6.11-1.1369_FC4smp)
> EIP is at kunmap_atomic+0x35/0x5f
>
> The following is the code, I am using in my driver:
>
> kmap_atomic code:
>
> int hr_km_type = (in_interrupt())? KM_IRQ0: KM_USER0;
> pDataBuffer = kmap_atomic(cur_seg->page,
> hr_km_type) + cur_seg->offset;
> if(pDataBuffer == NULL) {
> return (ENOMEM);
> }
>
this is buggy; your irq handler may run with interrupts on for example
I fear the worst for your code ;) I would suggest getting more people to
review it (for example on kernel-newbies list or the kernel-mentors
list) before using it in production ;)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]