From patchwork Wed Dec 20 19:51:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 122490 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6023426qgn; Wed, 20 Dec 2017 11:51:41 -0800 (PST) X-Google-Smtp-Source: ACJfBoun6/kqr68YMcHpnGA6HxxOEp1VwUD3JmZjhMOCJjKSUEA2frTlHjjP80LL8aQs4FuwnxNi X-Received: by 10.84.224.206 with SMTP id k14mr8077751pln.403.1513799501077; Wed, 20 Dec 2017 11:51:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513799501; cv=none; d=google.com; s=arc-20160816; b=fkgeoOcIh/b5Ld1aWX2BpDQmYjNFJrgZuDSgvqqAAD3+nP1BjW/sGIhbdMpKgMetA7 waRHZYXvHQpPD+8y9JnHmOOpOQoCIQPjQHV/y8WkZjAsm6fNHwrBSzSgH+FNino9KLR8 7TcA+wXpg4AXL7NvCIDkgzGCzwOpoceUvV+I6PIDaN70zr46vX0YY1EEQPZIWaA19+9u +DiNctQt+VhQrkJS2ogSEolb5u74bC+ARs+/xdjboRAneg5T770GNYorGnALP1Pv8Di3 uok8OGMJK/cR4zLKWkAKbSxIv/9qYXH+zJbYzqJFlxMkgsVNLHYievn6olrs39OxQbdt 2ZVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=ufcjGgd7Vpw5SALiTrCPjq0oPxdJ1yFZMcYs0riI8lQ=; b=zjD6/x3NZakTvnbXQXs0BVH5zChejcffp2HdF2+AmrESF4mfgCValS4IzKBJt2Bk23 bPp95rgv5BcNLPlgWFQl4DJXhXAiIybFlWfkQoV/QC/n7yMqsLqHgL7PqxOCrkmW7H5n tr8wW3w6RPQbyu0+IBL/i9agiO42tNbX7dlqw0UGzWT7Ub+53lZcDqHkKJU35CUunBiL 93Gjl4eUZAyiCDRP3Ic/iC6GzNNNYX4ilZj+NuljRreHNdBhWbKyTJC3X2k7QCNANVfi UgG/TokDVvWzmqnp6YjMZI/QKp9zfToxr8RrOOsYlPVPZ7/rA5WYvUX5FOUEDiol7ZCX Q76g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e4ZklhJ+; 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 d13si5902212pgn.383.2017.12.20.11.51.40; Wed, 20 Dec 2017 11:51:41 -0800 (PST) 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=e4ZklhJ+; 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 S1756738AbdLTTvh (ORCPT + 28 others); Wed, 20 Dec 2017 14:51:37 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:34526 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756615AbdLTTvc (ORCPT ); Wed, 20 Dec 2017 14:51:32 -0500 Received: by mail-pl0-f68.google.com with SMTP id d21so9616787pll.1 for ; Wed, 20 Dec 2017 11:51:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ufcjGgd7Vpw5SALiTrCPjq0oPxdJ1yFZMcYs0riI8lQ=; b=e4ZklhJ+NxJ8MStCoeMFzDSs0SXT80z6ZuTQYEvyADAcXURVqf/UanAwTjeO6urxAL TxkMtFet4Z0YplzhBKvrVam+WX+3031d81/qn9YEBOS16ycY5CrcZcwtmwQ+qa4BwNlq 2uDUancyxovaVpMMWPMVbE50F+3Htbi4Xoq2g= 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; bh=ufcjGgd7Vpw5SALiTrCPjq0oPxdJ1yFZMcYs0riI8lQ=; b=Kky8cRmqBguieah13CdduLEU2Vs6VHBOXp4w2EuA9jNfLdB7UgKZAqSMWc6hxF639s SgzECM64Zw3Ae0MxeCi7vxvprZ2jjzeuo2UrPe7sNrOP5TaAJvjkuuu6mbTCyBjyn2le RSh5Xixs4BnFwilckLficRDMgVlIU2wl1ov2uLs+KHawtkihaoZxjPs4hoTlvkJIQ+9e 6xdy59VJ7QyEaWJwR+B+a5V0mSybXcwY2hyg52e2tV7dayXBtfBQ97Wb/0I7f4DFSWzp zAWjojuTarBcaFxSdUHI3V6wdNZePl+xRlKTW9FVYp6dRJuitWc9RG6DozpG6A553R0s v1Fg== X-Gm-Message-State: AKGB3mJgXnuaDK03+YDMWAHzua8tpw1YemID8seYi3yAENleLqL6fJZ+ ILF5zK/hpJ1Nkx6X07NH5SQonnKmjHY= X-Received: by 10.159.198.1 with SMTP id f1mr8010634plo.450.1513799491139; Wed, 20 Dec 2017 11:51:31 -0800 (PST) Received: from localhost.localdomain ([106.51.17.191]) by smtp.gmail.com with ESMTPSA id g2sm36715867pfc.130.2017.12.20.11.51.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Dec 2017 11:51:30 -0800 (PST) From: Amit Pundir To: lkml , linux-wireless@vger.kernel.org Cc: Suren Baghdasaryan , Samuel Ortiz , Christophe Ricard , Andy Shevchenko , John Stultz , Dmitry Shmidt , Todd Kjos , Android Kernel Team Subject: [RFC][PATCH 0/4] Few NFC changes from experimental/android-4.14 tree Date: Thu, 21 Dec 2017 01:21:20 +0530 Message-Id: <1513799484-12505-1-git-send-email-amit.pundir@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I ran into following NFC fixes in experimental/android-4.14 tree[1] and they seem like reasonable upstream candidates. So posting them here for review and comments. Also like to point out that I have not feature tested these patches at all. Only made a couple of small tweaks to the patches (removed Android-only tag and internal bug ID) and build tested for arm/arm64 defconfigs, before posting them on the mailing list as is. Really appreciate any concerns or feedback. Regards, Amit Pundir [1] https://android.googlesource.com/kernel/common/+log/experimental/android-4.14 Suren Baghdasaryan (4): NFC: st21nfca: Fix out of bounds kernel access when handling ATR_REQ NFC: st21nfca: Fix memory OOB and leak issues in connectivity events handler NFC: Fix possible memory corruption when handling SHDLC I-Frame commands NFC: fdp: Fix possible buffer overflow in WCS4000 NFC driver drivers/nfc/fdp/i2c.c | 10 ++++++++++ drivers/nfc/st21nfca/dep.c | 3 ++- drivers/nfc/st21nfca/se.c | 18 ++++++++++++++---- net/nfc/hci/core.c | 10 ++++++++++ 4 files changed, 36 insertions(+), 5 deletions(-) -- 2.7.4