[DRBD-user] [patch] fix ioctl32 wrapper for 0.8pre2

Guido Guenther agx at sigxcpu.org
Tue Apr 25 15:56:26 CEST 2006

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On Thu, Apr 13, 2006 at 06:16:00PM +0200, Philipp Reisner wrote:
> Am Mittwoch, 12. April 2006 15:39 schrieb Guido Guenther:
> > Hi,
> > the patch below is needed to get the module loaded on recent kernels.
> > CONFIG_COMPAT is always defined so we'd end up calling
> > (un)register_ioctl32_conversion even when with kernels newer than
> > 2.6.10. This doesn't work since these functions don't exist anymore.
> > I basically reverted to the code 0.7 uses. Please apply.
> > Cheers,
> >  -- Guido
> >
> 
> Applied.
> 
> > P.S.: besides from that I'm seeing pretty much the same oops other
> > reported with 2.6.16.
> >
> 
> Please post every OOPS you can catch. Although they might not look
> interesting to you, they are for me and Lars.

Attached. This is with 2.6.16.7 and drbd 8.0pre3:

Apr 25 14:39:11 foo kernel: Oops: 0000 [1] SMP 
Apr 25 14:39:11 foo kernel: CPU 0 
Apr 25 14:39:11 foo kernel: Modules linked in: drbd bonding dm_mod pcnet32 via_rhine crc32 tg3 BusLogic qla2300 qla2xxx
Apr 25 14:39:11 foo kernel: Pid: 4924, comm: drbdsetup Not tainted 2.6.16.7-aa-amd64-smp #1
Apr 25 14:39:11 foo kernel: RIP: 0010:[<ffffffff880aff04>] <ffffffff880aff04>{:drbd:after_state_ch+68}
Apr 25 14:39:11 foo kernel: RSP: 0000:ffff8100ee08b9b8  EFLAGS: 00010206
Apr 25 14:39:11 foo kernel: RAX: 0000000000000000 RBX: ffff8100ee13e618 RCX: 000000000000ae01
Apr 25 14:39:11 foo kernel: RDX: 000000000000ae01 RSI: 000000000000a002 RDI: ffff8100ee13e618
Apr 25 14:39:11 foo kernel: RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
Apr 25 14:39:11 foo kernel: R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000a002
Apr 25 14:39:11 foo kernel: R13: 000000000000ae01 R14: 0000000000000000 R15: 0000000000000005
Apr 25 14:39:11 foo kernel: FS:  0000000000000000(0000) GS:ffffffff804f4000(0063) knlGS:00000000f7def300
Apr 25 14:39:11 foo kernel: CS:  0010 DS: 002b ES: 002b CR0: 000000008005003b
Apr 25 14:39:11 foo kernel: CR2: 0000000000000028 CR3: 00000000ee326000 CR4: 00000000000006e0
Apr 25 14:39:11 foo kernel: Process drbdsetup (pid: 4924, threadinfo ffff8100ee08a000, task ffff8100edcaf800)
Apr 25 14:39:11 foo kernel: Stack: 0000000300000000 ffff8100ee13e620 0000000000000296 0000000000000000 
Apr 25 14:39:11 foo kernel:        00000000ffffffea 0000000000000005 0000000000000296 ffffffff80385a72 
Apr 25 14:39:11 foo kernel:        0000000040044402 ffff8100ef917200 
Apr 25 14:39:11 foo kernel: Call Trace: <ffffffff80385a72>{__down_trylock+82} <ffffffff8038787c>{__down_failed_trylock+53}
Apr 25 14:39:11 foo kernel:        <ffffffff8809c660>{:drbd:drbd_set_role+624} <ffffffff8015fdb7>{__handle_mm_fault+1399}
Apr 25 14:39:11 foo kernel:        <ffffffff8809d2d2>{:drbd:drbd_ioctl+866} <ffffffff8018e763>{__d_lookup+179}
Apr 25 14:39:11 foo kernel:        <ffffffff80183e57>{do_lookup+103} <ffffffff80133625>{current_fs_time+85}
Apr 25 14:39:11 foo kernel:        <ffffffff8018fc37>{touch_atime+103} <ffffffff8018e763>{__d_lookup+179}
Apr 25 14:39:11 foo kernel:        <ffffffff80183e57>{do_lookup+103} <ffffffff801838de>{generic_permission+126}
Apr 25 14:39:11 foo kernel:        <ffffffff80183a30>{permission+192} <ffffffff801842b4>{__link_path_walk+388}
Apr 25 14:39:11 foo kernel:        <ffffffff80192704>{mntput_no_expire+36} <ffffffff80150d21>{find_get_page+33}
Apr 25 14:39:11 foo kernel:        <ffffffff80151afc>{filemap_nopage+380} <ffffffff8015fdce>{__handle_mm_fault+1422}
Apr 25 14:39:11 foo kernel:        <ffffffff8010e8b5>{do_gettimeofday+101} <ffffffff8020d011>{__up_read+33}
Apr 25 14:39:11 foo kernel:        <ffffffff8011bf29>{do_page_fault+1017} <ffffffff8809e82c>{:drbd:drbd_compat_ioctl+28}
Apr 25 14:39:11 foo kernel:        <ffffffff80200bf0>{compat_blkdev_ioctl+96} <ffffffff801a0d84>{compat_sys_ioctl+228}
Apr 25 14:39:11 foo kernel:        <ffffffff8011d5ce>{ia32_sysret+0}
Apr 25 14:39:11 foo kernel: 
Apr 25 14:39:11 foo kernel: Code: 44 8b 70 28 f0 ff 8f 78 03 00 00 0f 94 c0 84 c0 74 2b f6 87 
Apr 25 14:39:11 foo kernel: RIP <ffffffff880aff04>{:drbd:after_state_ch+68} RSP <ffff8100ee08b9b8>
Apr 25 14:39:11 foo kernel: CR2: 0000000000000028
Apr 25 14:39:11 foo kernel:  <6>drbd0: role( Secondary -> Primary ) disk( Diskless -> UpToDate ) 
Apr 25 14:39:11 foo kernel: Unable to handle kernel NULL pointer dereference at 0000000000000028 RIP: 
Apr 25 14:39:11 foo kernel: <ffffffff880aff04>{:drbd:after_state_ch+68}
Apr 25 14:39:11 foo kernel: PGD ee75f067 PUD ef992067 PMD 0 
Apr 25 14:39:11 foo kernel: Oops: 0000 [2] SMP 
Apr 25 14:39:11 foo kernel: CPU 0 
Apr 25 14:39:11 foo kernel: Modules linked in: drbd bonding dm_mod pcnet32 via_rhine crc32 tg3 BusLogic qla2300 qla2xxx
Apr 25 14:39:11 foo kernel: Pid: 4925, comm: drbdsetup Not tainted 2.6.16.7-aa-amd64-smp #1
Apr 25 14:39:11 foo kernel: RIP: 0010:[<ffffffff880aff04>] <ffffffff880aff04>{:drbd:after_state_ch+68}
Apr 25 14:39:11 foo kernel: RSP: 0000:ffff8100ee74b9b8  EFLAGS: 00010206
Apr 25 14:39:11 foo kernel: RAX: 0000000000000000 RBX: ffff8100ee13e000 RCX: 000000000000ae01
Apr 25 14:39:11 foo kernel: RDX: 000000000000ae01 RSI: 000000000000a002 RDI: ffff8100ee13e000
Apr 25 14:39:11 foo kernel: RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
Apr 25 14:39:11 foo kernel: R10: 0000000000000000 R11: 000000000000000d R12: 000000000000a002
Apr 25 14:39:11 foo kernel: R13: 000000000000ae01 R14: 0000000000000000 R15: 0000000000000005
Apr 25 14:39:11 foo kernel: FS:  0000000000000000(0000) GS:ffffffff804f4000(0063) knlGS:00000000f7dd2300
Apr 25 14:39:11 foo kernel: CS:  0010 DS: 002b ES: 002b CR0: 000000008005003b
Apr 25 14:39:11 foo kernel: CR2: 0000000000000028 CR3: 00000000ee75d000 CR4: 00000000000006e0
Apr 25 14:39:11 foo kernel: Process drbdsetup (pid: 4925, threadinfo ffff8100ee74a000, task ffff8100edcaf100)
Apr 25 14:39:11 foo kernel: Stack: 0000000300000000 ffff8100ee13e008 0000000000000296 0000000000000000 
Apr 25 14:39:11 foo kernel:        00000000ffffffea 0000000000000005 0000000000000296 ffffffff80385a72 
Apr 25 14:39:11 foo kernel:        0000000040044402 ffff8100ef952a00 
Apr 25 14:39:11 foo kernel: Call Trace: <ffffffff80385a72>{__down_trylock+82} <ffffffff8038787c>{__down_failed_trylock+53}
Apr 25 14:39:11 foo kernel:        <ffffffff8809c660>{:drbd:drbd_set_role+624} <ffffffff80155259>{__alloc_pages+89}
Apr 25 14:39:11 foo kernel:        <ffffffff8809d2d2>{:drbd:drbd_ioctl+866} <ffffffff8018e763>{__d_lookup+179}
Apr 25 14:39:11 foo kernel:        <ffffffff80183e57>{do_lookup+103} <ffffffff80133625>{current_fs_time+85}
Apr 25 14:39:11 foo kernel:        <ffffffff8018fc37>{touch_atime+103} <ffffffff8018e763>{__d_lookup+179}
Apr 25 14:39:11 foo kernel:        <ffffffff80183e57>{do_lookup+103} <ffffffff801838de>{generic_permission+126}
Apr 25 14:39:11 foo kernel:        <ffffffff80183a30>{permission+192} <ffffffff801842b4>{__link_path_walk+388}
Apr 25 14:39:11 foo kernel:        <ffffffff80192704>{mntput_no_expire+36} <ffffffff80150d21>{find_get_page+33}
Apr 25 14:39:11 foo kernel:        <ffffffff80151afc>{filemap_nopage+380} <ffffffff8015fdce>{__handle_mm_fault+1422}
Apr 25 14:39:11 foo kernel:        <ffffffff8010e8b5>{do_gettimeofday+101} <ffffffff8020d011>{__up_read+33}
Apr 25 14:39:11 foo kernel:        <ffffffff8011bf29>{do_page_fault+1017} <ffffffff8809e82c>{:drbd:drbd_compat_ioctl+28}
Apr 25 14:39:11 foo kernel:        <ffffffff80200bf0>{compat_blkdev_ioctl+96} <ffffffff801a0d84>{compat_sys_ioctl+228}
Apr 25 14:39:11 foo kernel:        <ffffffff8011d5ce>{ia32_sysret+0}
Apr 25 14:39:11 foo kernel: 
Apr 25 14:39:11 foo kernel: Code: 44 8b 70 28 f0 ff 8f 78 03 00 00 0f 94 c0 84 c0 74 2b f6 87 
Apr 25 14:39:11 foo kernel: RIP <ffffffff880aff04>{:drbd:after_state_ch+68} RSP <ffff8100ee74b9b8>
Apr 25 14:39:11 foo kernel: CR2: 0000000000000028

Cheers,
 -- Guido



More information about the drbd-user mailing list