mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Some errors with 2.6.0-test4-mm2
       [not found] <200308271047.47794.mafteah@mafteah.co.il>
@ 2003-08-27  8:23 ` Andrew Morton
  2003-08-27 19:41 ` Andrew Morton
  1 sibling, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2003-08-27  8:23 UTC (permalink / raw)
  To: Okrain Genady; +Cc: linux-kernel, linux-mm

Okrain Genady <mafteah@mafteah.co.il> wrote:
>
> 1)
> On reboot:
> 
> Debug: sleeping function called from invalid context at 
> include/linux/rwsem.h:43
> Call Trace:
>  [<c011cc3f>] __might_sleep+0x5f/0x70
>  [<c0119eff>] do_page_fault+0x19f/0x4ca
>  [<c0121e20>] it_real_fn+0x0/0x70
>  [<c0126f82>] run_timer_softirq+0x112/0x1c0
>  [<c0127120>] do_timer+0xe0/0xf0
>  [<c011b5b2>] schedule+0x1b2/0x3c0
>  [<c010cff6>] do_IRQ+0x116/0x160
>  [<c0119d60>] do_page_fault+0x0/0x4ca
>  [<c010b4e5>] error_code+0x2d/0x38
>
> btw I had it on 2.6.0-test4 and on -bk2 and on -mm1

Not sure what that is.

> 
> 2)
> This error started with -mm2:
> 
> # lilo
> <1>Unable to handle kernel NULL pointer dereference at virtual address 
> 00000000
>  printing eip:
> c029f9b2
> *pde = 00000000
> Oops: 0000 [#4]
> PREEMPT
> CPU:    0
> EIP:    0060:[<c029f9b2>]    Tainted: PF  VLI

What's the taint?

> EFLAGS: 00010246
> EIP is at generic_ide_ioctl+0x352/0x8b0
> eax: 00000000   ebx: bfffec70   ecx: 0000e7a2   edx: 00000000
> esi: bfffec68   edi: c87ca000   ebp: c87cbf68   esp: c87cbf2c
> ds: 007b   es: 007b   ss: 0068
> Process lilo (pid: 5503, threadinfo=c87ca000 task=c8eac080)
> Stack: c03c76db 0000064e c7853200 fffffff2 00000000 00000000 e7a20003 c04ccb8c
>        cfa7e000 c87cbf9c c0153b66 cf5ae6c0 cfd33e40 c02a3a60 cf619680 c87cbf90
>        c0268235 cfd33e40 00000301 bfffec68 bfffec68 00000001 00000301 c7853200
> Call Trace:
>  [<c0153b66>] filp_open+0x66/0x70
>  [<c02a3a60>] idedisk_ioctl+0x0/0x30
>  [<c0268235>] blkdev_ioctl+0xa5/0x447
>  [<c0167b84>] sys_ioctl+0xf4/0x290
>  [<c0397e07>] syscall_call+0x7/0xb

Works OK here.  Could you please do `strace lilo', see what the offending
ioctl args are?

> setfont sets font only for the current tty and not for all ttys like 2.4 do.

hm, I wonder who to blame that on.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Some errors with 2.6.0-test4-mm2
       [not found] <200308271047.47794.mafteah@mafteah.co.il>
  2003-08-27  8:23 ` Some errors with 2.6.0-test4-mm2 Andrew Morton
@ 2003-08-27 19:41 ` Andrew Morton
  1 sibling, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2003-08-27 19:41 UTC (permalink / raw)
  To: Okrain Genady; +Cc: linux-kernel, linux-mm

Okrain Genady <mafteah@mafteah.co.il> wrote:
>
> This error started with -mm2:
> 
> # lilo
> <1>Unable to handle kernel NULL pointer dereference at virtual address 
> 00000000
>  printing eip:
> c029f9b2
> *pde = 00000000
> Oops: 0000 [#4]
> PREEMPT
> CPU:    0
> EIP:    0060:[<c029f9b2>]    Tainted: PF  VLI
> EFLAGS: 00010246
> EIP is at generic_ide_ioctl+0x352/0x8b0
> eax: 00000000   ebx: bfffec70   ecx: 0000e7a2   edx: 00000000
> esi: bfffec68   edi: c87ca000   ebp: c87cbf68   esp: c87cbf2c
> ds: 007b   es: 007b   ss: 0068
> Process lilo (pid: 5503, threadinfo=c87ca000 task=c8eac080)
> Stack: c03c76db 0000064e c7853200 fffffff2 00000000 00000000 e7a20003 c04ccb8c
>        cfa7e000 c87cbf9c c0153b66 cf5ae6c0 cfd33e40 c02a3a60 cf619680 c87cbf90
>        c0268235 cfd33e40 00000301 bfffec68 bfffec68 00000001 00000301 c7853200
> Call Trace:
>  [<c0153b66>] filp_open+0x66/0x70
>  [<c02a3a60>] idedisk_ioctl+0x0/0x30

Al has sent through a fix for this.


diff -puN include/linux/genhd.h~large-dev_t-12-fix include/linux/genhd.h
--- 25/include/linux/genhd.h~large-dev_t-12-fix	2003-08-27 10:36:32.000000000 -0700
+++ 25-akpm/include/linux/genhd.h	2003-08-27 10:36:32.000000000 -0700
@@ -197,7 +197,7 @@ extern void rand_initialize_disk(struct 
 
 static inline sector_t get_start_sect(struct block_device *bdev)
 {
-	return bdev->bd_part->start_sect;
+	return bdev->bd_contains == bdev ? 0 : bdev->bd_part->start_sect;
 }
 static inline sector_t get_capacity(struct gendisk *disk)
 {

_


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-27 19:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200308271047.47794.mafteah@mafteah.co.il>
2003-08-27  8:23 ` Some errors with 2.6.0-test4-mm2 Andrew Morton
2003-08-27 19:41 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®