• J
    [AX25] ax25_route: make ax25_route_lock BH safe · 4de211f1
    Jarek Poplawski 提交于
    > =================================
    > [ INFO: inconsistent lock state ]
    > 2.6.24-dg8ngn-p02 #1
    > ---------------------------------
    > inconsistent {softirq-on-W} -> {in-softirq-R} usage.
    > linuxnet/3046 [HC0[0]:SC1[2]:HE1:SE0] takes:
    >  (ax25_route_lock){--.+}, at: [<f8a0cfb7>] ax25_get_route+0x18/0xb7 [ax25]
    > {softirq-on-W} state was registered at:
    ...
    
    This lockdep report shows that ax25_route_lock is taken for reading in
    softirq context, and for writing in process context with BHs enabled.
    So, to make this safe, all write_locks in ax25_route.c are changed to
    _bh versions.
    
    Reported-by: Jann Traschewski <jann@gmx.de>,
    Signed-off-by: NJarek Poplawski <jarkao2@gmail.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    4de211f1
ax25_route.c 11.2 KB