1. 21 5月, 2009 1 次提交
    • U
      qeth: avoid crash after detach of replugged device · f2148565
      Ursula Braun 提交于
      If a qeth device is plugged off, setting the device online stops in
      state HARDSETUP and a failure is reported to the base cio-layer
      causing halt/clear to be invoked. Replugging the device again triggers
      a qeth recovery without notification of the cio-layer. If a device
      is ungrouped in this state, the qeth set_offline function is not
      invoked, because the corresponding ccwgroup device is not in state
      ONLINE. Then incoming traffic is still handled by the qdio layer
      resulting in a crash in qeth_l<x>_qdio_input_handler, because (part
      of) the qeth data structures for this device are already removed.
      Solution: After replugging the device qeth recovery should lead to a
      working net device. Thus a "LAN offline" result when setting a qeth
      device online must not report a failure to the base cio-layer.
      Signed-off-by: NUrsula Braun <ursula.braun@de.ibm.com>
      Signed-off-by: NFrank Blaschka <frank.blaschka@de.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f2148565
  2. 27 4月, 2009 15 次提交
  3. 23 4月, 2009 1 次提交
  4. 14 4月, 2009 3 次提交
  5. 03 4月, 2009 1 次提交
  6. 02 4月, 2009 1 次提交
  7. 01 4月, 2009 5 次提交
  8. 31 3月, 2009 1 次提交
    • A
      proc 2/2: remove struct proc_dir_entry::owner · 99b76233
      Alexey Dobriyan 提交于
      Setting ->owner as done currently (pde->owner = THIS_MODULE) is racy
      as correctly noted at bug #12454. Someone can lookup entry with NULL
      ->owner, thus not pinning enything, and release it later resulting
      in module refcount underflow.
      
      We can keep ->owner and supply it at registration time like ->proc_fops
      and ->data.
      
      But this leaves ->owner as easy-manipulative field (just one C assignment)
      and somebody will forget to unpin previous/pin current module when
      switching ->owner. ->proc_fops is declared as "const" which should give
      some thoughts.
      
      ->read_proc/->write_proc were just fixed to not require ->owner for
      protection.
      
      rmmod'ed directories will be empty and return "." and ".." -- no harm.
      And directories with tricky enough readdir and lookup shouldn't be modular.
      We definitely don't want such modular code.
      
      Removing ->owner will also make PDE smaller.
      
      So, let's nuke it.
      
      Kudos to Jeff Layton for reminding about this, let's say, oversight.
      
      http://bugzilla.kernel.org/show_bug.cgi?id=12454Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      99b76233
  9. 26 3月, 2009 12 次提交