[pso] [tema5](linux) add firewall rule

Traian Patrascu patrascut at yahoo.com
Thu Jun 5 20:06:02 EEST 2008


Primesc acest warning doar prima data cand folosesc modulul. Dupa, pot sa-l folosesc oricat de mult sau sa-l scot si sa-l incarc de oricate ori vreau si nu mai primesc mesajul de mai jos. Lock-ul e facut cu spinlock-uri de tip read/write exact ca in exemplele din laborator. Am incercat si cu spinlock normal si tot nu scap de mesaj (in rest modulul se comporta normal). Gresesc ceva? 

=================================
[ INFO: inconsistent lock state ]
2.6.24.2 #14
---------------------------------
inconsistent {softirq-on-W} -> {in-softirq-W} usage.
swapper/0 [HC0[0]:SC1[1]:HE1:SE0] takes:
 (lock){-+--}, at: [<f884c295>] delete_rule+0xd5/0x100 [ipdriver]
{softirq-on-W} state was registered at:
  [<c0137bec>] __lock_acquire+0x69c/0x1080
  [<c0138642>] lock_acquire+0x72/0xa0
  [<c032aa66>] _write_lock+0x36/0x50
  [<f884c36e>] IPNECKLACE_hook_handle_out+0xae/0x1c0 [ipdriver]
  [<c02da665>] nf_iterate+0x65/0x90
  [<c02da70e>] nf_hook_slow+0x7e/0x120
  [<c02e551e>] ip_queue_xmit+0x29e/0x3d0
  [<c02f550c>] tcp_transmit_skb+0x3bc/0x750
  [<c02f813a>] tcp_connect+0x2aa/0x330
  [<c02fb3e0>] tcp_v4_connect+0x370/0x6d0
  [<c0308b1f>] inet_stream_connect+0x1df/0x270
  [<c02ba87d>] sys_connect+0x5d/0x90
  [<c02bbfd4>] sys_socketcall+0x94/0x260
  [<c0102c82>] sysenter_past_esp+0x6b/0xc1
  [<ffffffff>] 0xffffffff
irq event stamp: 220824
hardirqs last  enabled at (220824): [<c0102d87>] restore_nocheck+0x12/0x15
hardirqs last disabled at (220823): [<c0103760>] common_interrupt+0x24/0x34
softirqs last  enabled at (220812): [<c011c0e1>] __do_softirq+0xb1/0xd0
softirqs last disabled at (220819): [<c0104cdf>] do_softirq+0xaf/0x110

other info that might help us debug this:
no locks held by swapper/0.

stack backtrace:
Pid: 0, comm: swapper Not tainted 2.6.24.2 #14
 [<c0103d3a>] show_trace_log_lvl+0x1a/0x30
 [<c01046e2>] show_trace+0x12/0x20
 [<c0104a4c>] dump_stack+0x6c/0x80
 [<c0135e63>] print_usage_bug+0x153/0x160
 [<c0136c39>] mark_lock+0x449/0x620
 [<c0137b94>] __lock_acquire+0x644/0x1080
 [<c0138642>] lock_acquire+0x72/0xa0
 [<c032aa66>] _write_lock+0x36/0x50
 [<f884c295>] delete_rule+0xd5/0x100 [ipdriver]
 [<c011f8d9>] run_timer_softirq+0x119/0x180
 [<c011c092>] __do_softirq+0x62/0xd0
 [<c0104cdf>] do_softirq+0xaf/0x110
 =======================




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20080605/89254a63/attachment-0001.htm 


More information about the pso mailing list