1. 07 10月, 2012 1 次提交
    • G
      netlink: add reference of module in netlink_dump_start · 6dc878a8
      Gao feng 提交于
      I get a panic when I use ss -a and rmmod inet_diag at the
      same time.
      
      It's because netlink_dump uses inet_diag_dump which belongs to module
      inet_diag.
      
      I search the codes and find many modules have the same problem.  We
      need to add a reference to the module which the cb->dump belongs to.
      
      Thanks for all help from Stephen,Jan,Eric,Steffen and Pablo.
      
      Change From v3:
      change netlink_dump_start to inline,suggestion from Pablo and
      Eric.
      
      Change From v2:
      delete netlink_dump_done,and call module_put in netlink_dump
      and netlink_sock_destruct.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6dc878a8
  2. 06 10月, 2012 27 次提交
  3. 05 10月, 2012 1 次提交
    • D
      UAPI: Fix conditional header installation handling (notably kvm_para.h on m68k) · f3dfd599
      David Howells 提交于
      The m68k arch doesn't have a kvm_para.h (unlike most or maybe all other
      arches), but there is one in asm-generic.  This means that:
      
      	ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \
      			  $(srctree)/include/asm-$(SRCARCH)/kvm_para.h \
      			  $(INSTALL_HDR_PATH)/include/asm-*/kvm_para.h),)
      	header-y += kvm_para.h
      	endif
      
      gets it wrong because it is invoked twice during the header installation - and
      on the second occasion, asm-generic/kvm_para.h has been installed in usr/,
      thus triggering a attempt to install asm-m68k/kvm_para.h which will fail.
      
      There are three headers with this sort of conditional logic: a.out.h, kvm.h
      and kvm_para.h.  For all three of them, change the logic to be something like:
      
      	ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/kvm_para.h \
      			  $(srctree)/arch/$(SRCARCH)/include/uapi/asm/kvm_para.h),)
      
      which finds the header in only the two places it should be found, and doesn't
      get incorrectly triggered by the installation of asm-generic's version.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      f3dfd599
  4. 03 10月, 2012 6 次提交
  5. 02 10月, 2012 4 次提交
  6. 01 10月, 2012 1 次提交