Received: by 10.192.165.148 with SMTP id m20csp916539imm; Wed, 2 May 2018 10:51:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoJAolskfVr9FsccE5W3Lsau5usnZDI257t/JIOh/0XdGlrQIr9MhoYoQOeJzVzOK+s7JJl X-Received: by 2002:a17:902:108a:: with SMTP id c10-v6mr21529699pla.111.1525283461053; Wed, 02 May 2018 10:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525283461; cv=none; d=google.com; s=arc-20160816; b=ZiNXSlk0pmhfwT2Tx+C/Qi71Yy1SJg6gZ8NImM8gU3ZVcVYxbNkmh70cO+mRdI5zaE lEpwuaKJsA69GNGN8bIN7cpe+KPQ9k/z9thTSg13Fix5LalhGfj4tlqSOdWIt/dgqYRD 0n6GmYel51fJ/HQgGtNp0yxzCN/IPsbzbkJUDzTK1VTKkyInoiDXOXMDm0VSX4PsgPG1 WkiMq+H6C5ldPEwniaDXp2DgFyV2F6wTgxEe+CaRcfq/WGC0mhrV/W2Iv4mQWGwwOyfy gBlYlS/4TfIB4sqwl7Rj+teeiCnySrHM+cwNap6Yq3K59KbCPEkFqfp7e93C72nNHrJY 7mbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:author:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=ddeszqe6r7PdpAqnLUsnNOlTVyOTDhhGAYbJIrhZJOA=; b=mwut5MNdYfmpIutxSQdoNGzCqlGEeRoe/ys8reZIUllxc6huuPqJnPC4yOcVHXA8hL Wr9WX6dYXgHKeNI5wJZUqV1C+575AvXANlpZhg44YIQuBUEuVavW0pBonyS8XmD1vcCr DAsOcZqXZKmSBUDcAOnlDwoZE4Nu+z2UtQf9uyaXoiXjT4tjVUVBo/rR0eH1ob3xBWg+ kwLtkCz7r45qG4CoPUOKAd5JnOV6X5Sgx7b3MIQz9O9tsXpjJppmzukDjrQFIUdYwqOQ dbndkcfMx0hoTkBfLiH8C/2Qm+dfrZ7y2Y2oKKRgdWxd7vlk0F7IeaVx319e4uCzYKeR uDIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fX3YYUEd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a25-v6si9983772pgf.501.2018.05.02.10.50.47; Wed, 02 May 2018 10:51:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fX3YYUEd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751820AbeEBRsX (ORCPT + 99 others); Wed, 2 May 2018 13:48:23 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36795 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790AbeEBRsQ (ORCPT ); Wed, 2 May 2018 13:48:16 -0400 Received: by mail-pg0-f66.google.com with SMTP id z129-v6so6985357pgz.3 for ; Wed, 02 May 2018 10:48:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:author; bh=ddeszqe6r7PdpAqnLUsnNOlTVyOTDhhGAYbJIrhZJOA=; b=fX3YYUEdlG4M6YCuloNuRCRTjhjoZuomu7DBo9r1HatjUJ/P7UBC7Q5rYWl7g0yhuf VBMPZ4OgAM08Y6Zpm7lSzsl9rf+MaLzTgz+ySfGXCDAW6nozOCMuSf9wfQUIPG2Kgage KlJIAOUVOLLAQeaacOHZ3iQeB2XxsXIwEmaxA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:author; bh=ddeszqe6r7PdpAqnLUsnNOlTVyOTDhhGAYbJIrhZJOA=; b=kRuSC7mueJYCRl4haLjDpm8263v8KBUbC9BsU6L6VIHNjc5CWJY+22zz96KPCciLMm 4zFmxRbqh/kvZzeRHGoMWU8jXsB3Qq6NOOowQ6o6TX+abUqnWZowiYSxfJuyhqjRf+TY TEW+ZQTU0E1BfDH6e9+iLwivo4vwXDL76jDcpzBwpPfmYjq3LUZReTF8FCrgNNhqPIMH 8QVDPajpsgCG0vRWASleMiWsQ9yXnUdY7F6yTnjSqfoIp3jmXxJypt4fiwFhF4R+I7Dy XBb7sKSSTYgFmJjAfM9jXjGPxhNRZw230ambDVlpPINisHPhowiGCb44wUwynzg5yPU2 EPaw== X-Gm-Message-State: ALQs6tB6h6PMeUCthVk2KOaplMuozn8YCUsk02fP4E7I2nhsiRJ3S+gC mCZQFL5t/OP5Urns0bkmrjLqjTmE5LA= X-Received: by 2002:a17:902:7288:: with SMTP id d8-v6mr3178475pll.218.1525283294706; Wed, 02 May 2018 10:48:14 -0700 (PDT) Received: from localhost.localdomain ([106.51.17.226]) by smtp.gmail.com with ESMTPSA id l19-v6sm19179875pgn.44.2018.05.02.10.48.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 May 2018 10:48:13 -0700 (PDT) From: Amit Pundir To: lkml , linux-wireless@vger.kernel.org Cc: Suren Baghdasaryan , Samuel Ortiz , Christophe Ricard , Andy Shevchenko , Greg KH , John Stultz , Dmitry Shmidt , Todd Kjos , Android Kernel Team Subject: [PATCH v2 0/3] Few NFC fixes from android-4.14 tree Date: Wed, 2 May 2018 23:18:05 +0530 Message-Id: <1525283288-7027-1-git-send-email-amit.pundir@linaro.org> X-Mailer: git-send-email 2.7.4 Author: Amit Pundir Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Submitting v2 of NFC fixes I picked up from android-4.14 tree[1] for review and comments. Again like to point out that I have not feature tested these patches at all. Only made small cosmetic changes to the original patches (removed Android-only tag and internal bug ID) and build tested for arm, before posting them here for review. Really appreciate any comments or feedback on how to take it forward. Changes since v1: * Dropped "NFC: st21nfca: Fix memory OOB and leak issues in connectivity events handler" patch for now. I'm yet to verify if the additional aid_len and params_len checks for buffer size are really required, and I didn't want to hold up this patch series for one patch alone. * Dropped redundant __func__ use dev_dbg() in "NFC: fdp: Fix possible buffer overflow in WCS4000 NFC driver" patch. Also drivers/nfc/fdp/ is full of __func__ parameter usage in dev_dbg(), so submitting a new patch separately to clean that up. Regards, Amit Pundir [1] https://android.googlesource.com/kernel/common/+log/android-4.14 Suren Baghdasaryan (3): NFC: st21nfca: Fix out of bounds kernel access when handling ATR_REQ NFC: Fix possible memory corruption when handling SHDLC I-Frame commands NFC: fdp: Fix possible buffer overflow in WCS4000 NFC driver drivers/nfc/fdp/fdp.c | 22 +++++++++++----------- drivers/nfc/fdp/i2c.c | 29 ++++++++++++++++++----------- drivers/nfc/st21nfca/dep.c | 3 ++- net/nfc/hci/core.c | 10 ++++++++++ 4 files changed, 41 insertions(+), 23 deletions(-) -- 2.7.4