1. 14 6月, 2013 21 次提交
  2. 21 5月, 2013 1 次提交
  3. 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
  4. 26 4月, 2013 1 次提交
  5. 25 4月, 2013 1 次提交
  6. 12 4月, 2013 1 次提交
  7. 11 4月, 2013 11 次提交
  8. 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
  9. 03 4月, 2013 1 次提交
  10. 01 4月, 2013 1 次提交
    • K
      net: add option to enable error queue packets waking select · 7d4c04fc
      Keller, Jacob E 提交于
      Currently, when a socket receives something on the error queue it only wakes up
      the socket on select if it is in the "read" list, that is the socket has
      something to read. It is useful also to wake the socket if it is in the error
      list, which would enable software to wait on error queue packets without waking
      up for regular data on the socket. The main use case is for receiving
      timestamped transmit packets which return the timestamp to the socket via the
      error queue. This enables an application to select on the socket for the error
      queue only instead of for the regular traffic.
      
      -v2-
      * Added the SO_SELECT_ERR_QUEUE socket option to every architechture specific file
      * Modified every socket poll function that checks error queue
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Cc: Jeffrey Kirsher <jeffrey.t.kirsher@intel.com>
      Cc: Richard Cochran <richardcochran@gmail.com>
      Cc: Matthew Vick <matthew.vick@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7d4c04fc