[so2] [Tema4]Problema lockdep

Cristian Pop cristian.pop3009 at gmail.com
Tue May 13 10:56:01 EEST 2014


Salut,

Am o problema cu lockdep-ul si nu reusesc sa ii dau de cap.

[   16.674632] INFO: trying to register non-static key.
[   16.675113] the code is fine but needs lockdep annotation.
[   16.675113] turning off the locking correctness validator.
[   16.675113] CPU: 0 PID: 1677 Comm: seq Tainted: G           O 3.13.0 #13
[   16.675113] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[   16.675113]  00000000 00000000 c0011df4 c1762d49 00000001 c0011e4c
c107a78e c19643e0
[   16.675113]  00000001 c110f495 00000282 c002141c 00000000 c0011e74
00000010 00000011
[   16.675113]  000001fc 00000000 c6b4a330 c1a63780 00000001 0000000d
c1ba85e0 c002a0f8
[   16.675113] Call Trace:
[   16.675113]  [] dump_stack+0x41/0x52
[   16.675113]  [] __lock_acquire.isra.29+0x88e/0x970
[   16.675113]  [] ? shmem_fault+0x45/0x80
[   16.675113]  [] lock_acquire+0x72/0xe0
[   16.675113]  [] ? pipe_write+0x4e/0x490
[   16.675113]  [] mutex_lock_nested+0x4a/0x2e0
[   16.675113]  [] ? pipe_write+0x4e/0x490
[   16.675113]  [] ? inode_has_perm.isra.27+0x32/0x40
[   16.675113]  [] pipe_write+0x4e/0x490
[   16.675113]  [] do_sync_write+0x60/0xa0
[   16.675113]  [] ? do_sync_readv_writev+0x90/0x90
[   16.675113]  [] vfs_write+0x98/0x1b0
[   16.675113]  [] ? do_sync_readv_writev+0x90/0x90
[   16.675113]  [] SyS_write+0x4f/0x90
[   16.675113]  [] sysenter_do_call+0x12/0x2d
[   16.692692] BUG: unable to handle kernel NULL pointer dereference at   (null)
[   16.693100] IP: [] mutex_lock_nested+0xdc/0x2e0


Imi dau seama ca este un lock pe undeva care este utilizat
neinitializat, de unde si NULL pointer deference, dar nu imi dau seama
ce lock mai exact. Ce mi se pare ciudat este ca in cazul in care
comentez rularea testelor test_ro din checker, si rulez doar test_rw
nu se ajunge la problema aceasta. A mai dat cineva peste asta si a
gasit o solutie?

Multumesc,
Cristi


More information about the so2 mailing list