[DRBD-user] Compile 8.4.4 Kernel module and had a kernel bug.

trex seo at xsinc.co.kr
Tue Jan 14 15:51:51 CET 2014

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


I compiled 8.4.4 drbd sources on ubuntu 13.04.
 
root at test1:/# wget http://oss.linbit.com/drbd/8.4/drbd-8.4.4.tar.gz 
root at test1:/# tar -xvf drbd-8.4.4.tar.gz 
root at test1:/# cd drbd-8.4.4/ 
root at test1:/drbd-8.4.4# ./configure --prefix=/ --localstatedir=/var --sysconfdir=/etc --with-km=yes 
root at test1:/drbd-8.4.4# make && make install 
 
It was compiled without error.
 
when I ran mkfs.ext4 on drbd0 secondary node shut down with kernel bug.
 
 
Jan 14 23:25:16 test2 kernel: [  280.061021] BUG: unable to handle kernel NULL pointer dereference at           (null)
Jan 14 23:25:16 test2 kernel: [  280.062556] IP: [<ffffffff8131fa81>] blk_add_request_payload+0x11/0x90
Jan 14 23:25:16 test2 kernel: [  280.063838] PGD 0
Jan 14 23:25:16 test2 kernel: [  280.064260] Oops: 0002 [#1] SMP
Jan 14 23:25:16 test2 kernel: [  280.064933] Modules linked in: drbd(OF) libcrc32c(F) coretemp kvm_intel kvm ghash_clmulni_intel(F) aesni_intel(F) aes_x86_64(F) xts(F) lrw(F) gf128mul(F) ablk_helper(F) cryptd(F) ast ttm drm_kms_helper drm i2c_algo_bit syscopyarea(F) sysfillrect(F) sysimgblt(F) video(F) bonding(F) psmouse(F) lpc_ich mac_hid shpchp microcode(F) lp(F) parport(F) serio_raw(F) usb_storage(F) hid_generic usbhid hid igb dca ptp r8169 pps_core ahci(F) libahci(F) [last unloaded: drbd]
Jan 14 23:25:16 test2 kernel: [  280.074078] CPU 0
Jan 14 23:25:16 test2 kernel: [  280.074449] Pid: 3910, comm: drbd_r_store Tainted: GF          O 3.8.0-19-generic #29-Ubuntu ASUSTeK COMPUTER INC. P9D-V Series/P9D-V Series
Jan 14 23:25:16 test2 kernel: [  280.076927] RIP: 0010:[<ffffffff8131fa81>]  [<ffffffff8131fa81>] blk_add_request_payload+0x11/0x90
Jan 14 23:25:16 test2 kernel: [  280.078670] RSP: 0018:ffff8804088bfb28  EFLAGS: 00010086
Jan 14 23:25:16 test2 kernel: [  280.079687] RAX: ffff880415b28240 RBX: ffff88040272b608 RCX: 0000000000000000
Jan 14 23:25:16 test2 kernel: [  280.081065] RDX: 0000000000000200 RSI: ffffea0010079200 RDI: ffff88040272b608
Jan 14 23:25:16 test2 kernel: [  280.082443] RBP: ffff8804088bfb28 R08: ffffea0010079200 R09: 0000000000000001
Jan 14 23:25:16 test2 kernel: [  280.083822] R10: 00000000000041e4 R11: 0000000000000000 R12: ffff880414ee4800
Jan 14 23:25:16 test2 kernel: [  280.085200] R13: ffff880414f0c000 R14: 0000000000400000 R15: ffff880401e48000
Jan 14 23:25:16 test2 kernel: [  280.086581] FS:  0000000000000000(0000) GS:ffff88042fc00000(0000) knlGS:0000000000000000
Jan 14 23:25:16 test2 kernel: [  280.088148] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jan 14 23:25:16 test2 kernel: [  280.089251] CR2: 0000000000000000 CR3: 0000000001c0d000 CR4: 00000000001407f0
Jan 14 23:25:16 test2 kernel: [  280.090635] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Jan 14 23:25:16 test2 kernel: [  280.092021] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Jan 14 23:25:16 test2 kernel: [  280.093404] Process drbd_r_store (pid: 3910, threadinfo ffff8804088be000, task ffff880407da45c0)
Jan 14 23:25:16 test2 kernel: [  280.095113] Stack:
Jan 14 23:25:16 test2 kernel: [  280.095492]  ffff8804088bfb70 ffffffff814adaa4 ffffea0010079200 0000000000012138
Jan 14 23:25:16 test2 kernel: [  280.097029]  ffff88040272b608 ffff880414f10000 0000000000000000 ffff880414f0c000
Jan 14 23:25:16 test2 kernel: [  280.098556]  ffff880414ee4c00 ffff8804088bfbd0 ffffffff814adc68 ffffffff8131e633
Jan 14 23:25:16 test2 kernel: [  280.100084] Call Trace:
Jan 14 23:25:16 test2 kernel: [  280.100539]  [<ffffffff814adaa4>] sd_setup_discard_cmnd+0x144/0x270
Jan 14 23:25:16 test2 kernel: [  280.101748]  [<ffffffff814adc68>] sd_prep_fn+0x98/0xbc0
Jan 14 23:25:16 test2 kernel: [  280.102757]  [<ffffffff8131e633>] ? elv_rb_del+0x33/0x50
Jan 14 23:25:16 test2 kernel: [  280.103782]  [<ffffffff8133dc17>] ? deadline_dispatch_requests+0x107/0x210
Jan 14 23:25:16 test2 kernel: [  280.105114]  [<ffffffff8132655b>] blk_peek_request+0x10b/0x220
Jan 14 23:25:16 test2 kernel: [  280.106238]  [<ffffffff8149d92f>] scsi_request_fn+0x4f/0x560
Jan 14 23:25:16 test2 kernel: [  280.107336]  [<ffffffff8131e6b2>] ? elv_rb_add+0x62/0x70
Jan 14 23:25:16 test2 kernel: [  280.108350]  [<ffffffff81325073>] __blk_run_queue+0x33/0x40
Jan 14 23:25:16 test2 kernel: [  280.109427]  [<ffffffff81326e07>] blk_queue_bio+0x2f7/0x3d0
Jan 14 23:25:16 test2 kernel: [  280.110498]  [<ffffffff81324ff2>] generic_make_request+0xc2/0x110
Jan 14 23:25:16 test2 kernel: [  280.162350]  [<ffffffffa0286b48>] drbd_submit_peer_request+0x268/0x400 [drbd]
Jan 14 23:25:16 test2 kernel: [  280.214929]  [<ffffffff816caef5>] ? _raw_spin_lock_irq+0x15/0x20
Jan 14 23:25:16 test2 kernel: [  280.267824]  [<ffffffffa0287623>] receive_Data+0x363/0xff0 [drbd]
Jan 14 23:25:16 test2 kernel: [  280.319645]  [<ffffffffa027d392>] ? drbd_recv_all+0x12/0x40 [drbd]
Jan 14 23:25:16 test2 kernel: [  280.370403]  [<ffffffffa028a8a5>] drbd_receiver+0xf5/0x250 [drbd]
Jan 14 23:25:16 test2 kernel: [  280.420111]  [<ffffffffa02952c0>] ? drbd_destroy_connection+0xd0/0xd0 [drbd]
Jan 14 23:25:16 test2 kernel: [  280.469379]  [<ffffffffa02952ea>] drbd_thread_setup+0x2a/0x120 [drbd]
Jan 14 23:25:16 test2 kernel: [  280.518018]  [<ffffffffa02952c0>] ? drbd_destroy_connection+0xd0/0xd0 [drbd]
Jan 14 23:25:16 test2 kernel: [  280.566639]  [<ffffffff8107d2b0>] kthread+0xc0/0xd0
Jan 14 23:25:16 test2 kernel: [  280.614182]  [<ffffffff8107d1f0>] ? kthread_create_on_node+0x120/0x120
Jan 14 23:25:16 test2 kernel: [  280.661633]  [<ffffffff816d36ec>] ret_from_fork+0x7c/0xb0
Jan 14 23:25:16 test2 kernel: [  280.708610]  [<ffffffff8107d1f0>] ? kthread_create_on_node+0x120/0x120
Jan 14 23:25:16 test2 kernel: [  280.756217] Code: c8 02 00 00 48 89 48 40 48 89 96 c8 02 00 00 5d c3 66 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 8b 47 60 55 48 89 e5 48 8b 48 70 <48> 89 31 48 8b 48 70 c7 41 0c 00 00 00 00 48 8b 48 70 89 51 08
Jan 14 23:25:16 test2 kernel: [  280.853567] RIP  [<ffffffff8131fa81>] blk_add_request_payload+0x11/0x90
Jan 14 23:25:16 test2 kernel: [  280.899621]  RSP <ffff8804088bfb28>
Jan 14 23:25:16 test2 kernel: [  280.943956] CR2: 0000000000000000
Jan 14 23:25:16 test2 kernel: [  280.987438] ---[ end trace 4fc6effa6f414c59 ]--  
 
Is there something missing with compiling? or Is it just a bug?
 
 
 
 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20140114/05eb459c/attachment.htm>


More information about the drbd-user mailing list