1. 16 Dec, 2007 4 commits
    • Jarek Poplawski's avatar
      [AX25]: Locking dependencies fix in ax25_disconnect(). · 215f7b08
      Jarek Poplawski authored
      Bernard Pidoux reported these lockdep warnings:
      
      [ INFO: possible irq lock inversion dependency detected ]
      2.6.23.1 #1
      ---------------------------------------------------------
      fpac/4933 just changed the state of lock:
       (slock-AF_AX25){--..}, at: [<d8be3312>] ax25_disconnect+0x46/0xaf
       [ax25]
       but this lock was taken by another, soft-irq-safe lock in the past:
        (ax25_list_lock){-+..}
      
        and interrupts could create inverse lock ordering between them.
        [...]
      
      [ INFO: inconsistent lock state ]
      2.6.23.1 #1
      ---------------------------------
      inconsistent {in-softirq-W} -> {softirq-on-W} usage.
      ax25_call/4005 [HC0[0]:SC0[0]:HE1:SE1] takes:
       (slock-AF_AX25){-+..}, at: [<d8b79312>] ax25_disconnect+0x46/0xaf [ax25]
       [...]
      
      This means slock-AF_AX25 could be taken both from softirq and process
      context with softirqs enabled, so it's endangered itself, but also makes
      ax25_list_lock vulnerable. It was not 100% verified if the real lockup
      can happen, but this fix isn't very costly and looks safe anyway.
      (It was tested by Bernard with 2.6.23.9 and 2.6.24-rc5 kernels.)
      
      
      Reported_by: Bernard Pidoux <pidoux@ccr.jussieu.fr>
      Tested_by: Bernard Pidoux <pidoux@ccr.jussieu.fr>
      Signed-off-by: default avatarJarek Poplawski <jarkao2@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      215f7b08
    • Satoru SATOH's avatar
      [IPV4]: Make tcp_input_metrics() get minimum RTO via tcp_rto_min() · 488faa2a
      Satoru SATOH authored
      tcp_input_metrics() refers to the built-time constant TCP_RTO_MIN
      regardless of configured minimum RTO with iproute2.
      Signed-off-by: default avatarSatoru SATOH <satoru.satoh@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      488faa2a
    • Wei Yongjun's avatar
      [IPV6]: Fix the return value of ipv6_getsockopt · cf6fc4a9
      Wei Yongjun authored
      If CONFIG_NETFILTER if not selected when compile the kernel source code, 
      ipv6_getsockopt will returen an EINVAL error if optname is not supported by
      the kernel. But if CONFIG_NETFILTER is selected, ENOPROTOOPT error will 
      be return.
      
      This patch fix to always return ENOPROTOOPT error if optname argument of 
      ipv6_getsockopt is not supported by the kernel.
      Signed-off-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cf6fc4a9
    • Stephen Hemminger's avatar
      [BRIDGE]: Assign random address. · 3ae41254
      Stephen Hemminger authored
      Assigning a valid random address to bridge device solves problems
      when bridge device is brought up before adding real device to bridge.
      When the first real device is added to the bridge, it's address
      will overide the bridges random address.
      
      Note: any device added to a bridge must already have a valid
      ethernet address.
       br_add_if -> br_fdb_insert -> fdb_insert -> is_valid_ether_addr
      Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3ae41254
  2. 14 Dec, 2007 9 commits
  3. 12 Dec, 2007 12 commits
  4. 11 Dec, 2007 15 commits