1. 31 7月, 2013 1 次提交
  2. 19 7月, 2013 1 次提交
  3. 14 6月, 2013 21 次提交
  4. 21 5月, 2013 1 次提交
  5. 27 4月, 2013 1 次提交
    • M
      NFC: Add missing RFKILL dependency for Kconfig · c204ea09
      Marcel Holtmann 提交于
      Since the NFC subsystem gained RFKILL support, it needs to be able
      to build properly with whatever option for RFKILL has been selected.
      
      on i386:
      
      net/built-in.o: In function `nfc_unregister_device':
      (.text+0x6a36d): undefined reference to `rfkill_unregister'
      net/built-in.o: In function `nfc_unregister_device':
      (.text+0x6a378): undefined reference to `rfkill_destroy'
      net/built-in.o: In function `nfc_register_device':
      (.text+0x6a493): undefined reference to `rfkill_alloc'
      net/built-in.o: In function `nfc_register_device':
      (.text+0x6a4a4): undefined reference to `rfkill_register'
      net/built-in.o: In function `nfc_register_device':
      (.text+0x6a4b3): undefined reference to `rfkill_destroy'
      net/built-in.o: In function `nfc_dev_up':
      (.text+0x6a8e8): undefined reference to `rfkill_blocked'
      
      when CONFIG_RFKILL=m but NFC is builtin.
      Reported-by: NRandy Dunlap <rdunlap@infradead.org>
      Acked-by: NRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      c204ea09
  6. 26 4月, 2013 1 次提交
  7. 25 4月, 2013 1 次提交
  8. 12 4月, 2013 1 次提交
  9. 11 4月, 2013 11 次提交
  10. 08 4月, 2013 1 次提交
    • M
      NFC: llcp: fix info leaks via msg_name in llcp_sock_recvmsg() · d26d6504
      Mathias Krause 提交于
      The code in llcp_sock_recvmsg() does not initialize all the members of
      struct sockaddr_nfc_llcp when filling the sockaddr info. Nor does it
      initialize the padding bytes of the structure inserted by the compiler
      for alignment.
      
      Also, if the socket is in state LLCP_CLOSED or is shutting down during
      receive the msg_namelen member is not updated to 0 while otherwise
      returning with 0, i.e. "success". The msg_namelen update is also
      missing for stream and seqpacket sockets which don't fill the sockaddr
      info.
      
      Both issues lead to the fact that the code will leak uninitialized
      kernel stack bytes in net/socket.c.
      
      Fix the first issue by initializing the memory used for sockaddr info
      with memset(0). Fix the second one by setting msg_namelen to 0 early.
      It will be updated later if we're going to fill the msg_name member.
      
      Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
      Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Signed-off-by: NMathias Krause <minipli@googlemail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d26d6504