Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935911AbdGTK6s (ORCPT ); Thu, 20 Jul 2017 06:58:48 -0400 Received: from mail-bl2nam02on0075.outbound.protection.outlook.com ([104.47.38.75]:64032 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934261AbdGTK6o (ORCPT ); Thu, 20 Jul 2017 06:58:44 -0400 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; driverdev.osuosl.org; dkim=none (message not signed) header.d=none;driverdev.osuosl.org; dmarc=fail action=none header.from=nxp.com; From: Bogdan Purcareata To: , , , Subject: [PATCH 1/2] staging: fsl-dpaa2/eth: Fix skb use after free Date: Thu, 20 Jul 2017 10:58:37 +0000 Message-ID: <1500548318-23170-1-git-send-email-bogdan.purcareata@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131450219218433974;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.158.2;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39840400002)(39860400002)(39450400003)(39400400002)(39850400002)(39410400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(356003)(50226002)(575784001)(8656003)(85426001)(38730400002)(189998001)(81166006)(48376002)(69596002)(50466002)(36756003)(2906002)(8676002)(49486002)(86362001)(8936002)(5003940100001)(77096006)(2201001)(305945005)(33646002)(50986999)(47776003)(105606002)(106466001)(53936002)(5660300001)(498600001)(626005)(104016004);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR0301MB0910;H:az84smr01.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;A:1;MX:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD025;1:b2i7DOCG1qRqU/KHIHxpqBN+C+mUDtx9tLtx4Hjip13al1qB7BCxMmmcJpwRIvBV22o/P+KykagYXpwcUJt4ljloN4gH6WW9fwllDY2VW7JObuRXc4722GDwlgP1vZvSck4Hcj/aS/9/h8C7C//ivT/YrnuT7GGANQmSeCeU2HfvdiuQ4tjRPnBBaplKgeBGwDJ0XJIteoTP8hsOYFvQdDpBtbMI6CdNv1Nsxwgni2lZvgYesrEI/JbhZxsNNnVRefSIMdFHpfNT6Y/1IRDn7Hlwtmy21k8jwZb4s6GHZjKEP31VnMizP41miB4iC/MAQ4t9LJng8Su1UxuMp0Cf1381txjccSDkoxtYUKoBXBPVoFUW1BXqLtyjWabbvjMxoLfVJcVUzmOo4WPm4+worocejuu31fkgxrw3PJcbizGCJfYK/8Wt2U7Cclh8INOod325vVVQoIwREZco1AAl2ZDJrSQ6FsHd9yYpPuLOh3sw1j0gbNFE6xeLNVPAoAes72KgHVt8VsCVMTQk1aWbhub6A+CY7RO+yJb/cxteG2ZHxFVkzMrzV5apdbWRSOEfH9uWcoRKJgjicIHZ422thUsVLR8qJ4jySImXq3ewvxHnIgG2RarCzshTpXNiHyPy+BS0e0O6/Caqvglxw9JEFnqFNDnoLup2BYXmoq/r03YvXkbd+tpy8OyMWV/d7D5xyoAyaiJa1Ku/SXMYh7FZ2UUXSn+q75qkvqldReyUjvhOhsmc5l3NGy/1a41+J28H75y/AAb++avMjcjNoNfXghhtIK7RTdQgz4bk5wlHHykeelzXq6I4XecVK2LgwytOGvemp51pEFLjYWRYO/sL7CVpcCkPQXAa5ohbIM7nQNJRHunDflcMwDZuIp9hEchSxHXzfgQU+sXKqZVPU9qNjDwIiySHVwIepq+kBPvx/1H4gDgikyN2paKmJ9z3hY6v MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 638500f7-4a98-4b3b-77b6-08d4cf5e48a0 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603031)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DM2PR0301MB0910; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0910;3:yN+ck8CveMgLFbVsgJbzVV8JL9B0mORjvmS64HnK5SGzF+fAqLxK+FlB1nk7A2rwjk+h/HUEEQd58dpgS758EGCjhBbUt8ll4KOBqRw25g3DcCycBPqcGk0vSWbI1lvQKUxMs1vA5w1706z7QypWoT0DeCXWTej9Rw7qde2MLUCmbnV/xR7dQTZ2JTXFOHt0iEU9FW6OPuYa6sARu52jMKluOG32+k1wMxV/mqPvoiJdoH8xjd+TWGDpqmUcfq8z/S9MfYEWekYLeQCwdENUiLtZlRxkOffWJq/sl+g8LfutEB9OK517d3xcApwhWnP86L6UM7YT4UNPxOpJ0hREApKoTw5NNnL6eFzuj24LGcT4p/ILIo5lANixr2Xx3QZGl9YYfgedh5HCIjW7jpRLHbcf1iY3Zv/mveNK+Bkx3I6hw84Mvm4H8n7NnH0f9lGqAgx6k6oZvrASl293RFWN40E0n6h4uoRMN1LQGL2z1peLnbPj82EbD7kOsaMt8w2XwYRNwL1cu4nNoYpTBAOn3iufBdX1kO3EZLCWcPLVEjAI1e6WikGjhypQzgbzPQXq9Tf/OC0wNCF/t1TwzKl1t2qGfaoXh6xxfWoCObyO2Y4u74o5D4nJrJJ5AOdvNBqb4Q7b68bpswYqtwsehKDd//l6SkN3dl8aPCq4QxlLwJrJZaypTZqsHmlmdJ3I50pE80hRWPIWseo15/No9MeDGkkrJ7iY3+eWpDTqBbmnVVBHuLHYhFzo5497WkPhaLOqn7SwAbU9sW5am5jKmxGQp1F+IrpmBl0qgwd+cxwH9yC3cOd/v3YB4I6JmF52R9P/6xF6RjXTyK6DxF1fltMsn5hvIr6HDlFwxauJkcZB+rE= X-MS-TrafficTypeDiagnostic: DM2PR0301MB0910: X-Microsoft-Exchange-Diagnostics: 1;DM2P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QUc2VlNruA8enf2/VEmhcuWmBxbKhVq7XsLwtn7i7i72fsc3danlP0ENxZ1JnkpqQYluzH8+d8w41EZ2rxjyZgtnyGosEEk/975gCH4Hj/l9sG4bpmvYqHA+s2fWjhq5HqB7q0AheFH/kn+GV73vpefvgBVrRyPWncFeYAulAKZbWgV3OfGjGCaEZWsoSnWUc0yvsLOlq8x49WA7JHy7f5VqPDMlULb5pmkGR3BG+Y0bOGA3VkzA6ZHelvAc4guCQeiSxD7cvTqYOFGfd72jK6bwvi0LcZbiKM4Jtham2ejitXEdRWRuhjN6SgbzzXxy9dwOuA2RK2FdDWvFRY/hICbGnuk+EYvEa/Pkre40qSGT3GS025EeQoz1phLH+03JPArKrejsA/P7p7CitfaL0ULPbowPsbbUtVj1vfbvMQIKmWqR3mGDVTS0h+SsPtbY8gCZ3BcBUTgUwtbbcOV1dDwqxGgH6Ba0zhxh6wbCBPN5l5wrgBAGvwdZWiYkrbgsSUdNekZLeQLFTuSHJYMFNoRenv7VLKkfhtzyIzY8bPZr+qLK6PsJB6QLBlE1/kG83DlqlawZxGRuLEKnGNJqOfitnFTEByCDLSVM6JiVkM01UFrhGdpk8eOn3YYYvgk7i6oEjdQ== X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(2017060910075)(5005006)(13016025)(8121501046)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123563025)(20161123561025)(20161123556025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123559100)(20161123565025)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM2PR0301MB0910;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM2PR0301MB0910; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR0301MB0910;4:akeEBmH/HHKQLvWZTH51xE4cV11F5Z5+YljirDa/?= =?us-ascii?Q?sKoI8WWk4DN7CVoEE5Kgm0dScyoKcSvArKH/Rk1Tj2mjkzJNpKFkhOpWyumY?= =?us-ascii?Q?v5z4gwNEphpPrLi3Bb7wn07WtSwjSX7DG+sOcsB0mX1+/XVQ5db63LaQFgVg?= =?us-ascii?Q?Ei6rfRti/o3nJPaE/i7LiMILef/XIaj7D/+oNDbmnHuBtQTpAi3UWP0+X45n?= =?us-ascii?Q?vYFknEibn4XB6l9S4RSm3+faimm8CtFVjYJvzSXrgc4Ixyvb96g8X537Nvck?= =?us-ascii?Q?2FFdGq8SXlu/8MEnN+DMq7x6mj/ZH20wMuMZeZq1vukn4ytnnQfRwRdnf/LB?= =?us-ascii?Q?0F3UdnIszPzQ/VoZDmWvAtotQOBAf+q8lmFT4TpCkpSKQ/LOcUKlxaPZkMp4?= =?us-ascii?Q?ruZhlKVW7wUFb8w/HZbrSYaAx1Rfnpq6J8xX5/FmJnNfTYWFEL4WimUQsWNu?= =?us-ascii?Q?4U1TpHZkPa0opEea05UnXoTMxMgwg/yd2DfgirSW+BG3/YeZIpqD4FY6WbXH?= =?us-ascii?Q?M3+s6p59yTzLbEoyPlXAHTT33WNsxvOTZlGHseKH5GoCe1GESzWABY++5mqF?= =?us-ascii?Q?Sq1cKXkDPHonXXD6S+f2DgUU8hE2BsHTI2WUPXq9pdDaTMq7R5d5DvfL4uCz?= =?us-ascii?Q?P+lij9ux0zIyQHSVvnBYC7dbNLvzCw7UBS3bG9q/RqAIsUK90n5dexcR0op0?= =?us-ascii?Q?Xagvgk0PKGZa0u3OBMGRc41mLoONitFM8JTyUGeTbtHIZEIbqBfDWG6KB7VD?= =?us-ascii?Q?LxyBl+LIBG38UOfzJdrO+fzw1DS8a2MtmCtwU8LBTQfwqisTVGF4/MnoMiO5?= =?us-ascii?Q?lVHb82tg1J9Tbkv+Dl61il9DG8uccLC9ZjWNu2CxSupKf/XnxwglaxIXi5Rv?= =?us-ascii?Q?tkT5EX2Rin2vwRAIvcz+3Bv6CWFNWA4vLQIGT7oxcM2RuMxIjkd02UHZ9fOE?= =?us-ascii?Q?bn+sk/RT9cKcfk+GgtKJAVZ1JwFqp55nhLybAk0WRtwG9ntsfEYJX6PcnXxf?= =?us-ascii?Q?ZL8miSZPsFo4VggCyuDo6x5fFKdbSqNnJkHnnjdJ3rWw5stqtnkYd4OLv+FT?= =?us-ascii?Q?gctwvPrdzEMNjZ+NPCqQEv13krm8ShtwykmMq5fCRmI0dkbum4RDRkvx8p3I?= =?us-ascii?Q?o4YtAzHH4gKz5BFpagKPp5O7tYIa7JDm/HePTF7LfyocGYlJXsc27xzeTjgR?= =?us-ascii?Q?S5hAnXfAUGVfJJh7qhYl09f+2RPNgyPkNL/ZWRz7APWu0BZ/MREmU9OhhZWV?= =?us-ascii?Q?VmEluX0bjmsdIi0bgSdFlfww743i71MlmdE8X4dU6k6aSlFZEOpovoShe0YK?= =?us-ascii?Q?yYGgyLRLvCOSB9Umhzqn9/Pxgq5NKXab3CajFBeupHfv?= X-Forefront-PRVS: 0374433C81 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR0301MB0910;23:6i2W5kOxhg0YAYWfMR7ZU7zXPXGaG6F6DRpYyTM?= =?us-ascii?Q?0B7sy8mihwanV95u1kGjpA7f5wgi3vl8zyBzuLFg68uHcc/J4RtPvnlO11tD?= =?us-ascii?Q?HhBmvQjLaf8vnINo9KD5kPO8bXZd9l9yarsXey5kxSZ+YLrNTQ8EqkKHTksB?= =?us-ascii?Q?zo6+0d0wXMwSJEl66EV6gUFWpqcpUHP2RSigMir50DSG9iGY5aI9SA+OZH5W?= =?us-ascii?Q?NYo4SNuKcfv/BML2vCfAPhxa1HYEH/naIsjL3So19JVRT+bImF0Gll506+lF?= =?us-ascii?Q?lo6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TIkNJIaPkQS1qp01J?= =?us-ascii?Q?iMxaEJiuh5HtPkbQi4/FGH+ABmKI85eVbj4lOio2ASdKs1ScOMWpx/h0Q3aT?= =?us-ascii?Q?TE+ztbMHLhXc6hi+cE1V28X/3OFybC5v9tS7JUUHeH/Ot8UlO/HmuqenMILq?= =?us-ascii?Q?66ds/nI3fbx39s7imHc5672GlH6Z3WYt8ZyAZoJeDQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0910;5:QwkIQn9wqY9U+upBipfPFpyMk6l51KBRKLQukQCiGcIpi0/4UT6lIhv0CQs2RBHL6IQbUQGyVdpm7Lq83hOZz6g+/1hmg0KGb6AivZjL4ySEch+PUufF0fx90Dorglg8gx49RHLPx5f06wRiGfIjljyZZ68qiqeWodiPF5NJr1lL1xTpNFvDdFui/ouW1T9YOZSAoArWs8y/c5dYlwcPpD32YJJHlEtmZRTF0QnZBN6S1NDgykJRwU0PzCAUdKSlV/jy3zhWfQsQ4/7ZnmERpVz0u/WsUij1/N2uxe34vcJ8IVHBs9gO1TRICzdBz0TvzH2YbcXFUl5iywi6LkNPSSZnArnwiFvYtLCeFbCrAxdWx1e3gCtPeBYmy3nG/twrkbgGIz/obWw/XhhLYVsJy4tJJhG7FLTYhF7fw26VIUHD6lgU7zp6I9aD/iLE33z1IvM7DRc+3CjVro1hm56zq2FYESkmdo7ca+I32XsAul5aSCBXbZe+MW2DLwiL1fRnRjgYIcNXOrZIGrT1bS1r5A==;24:3+A+FolPL9MsjHm9pGPUz5sVhTrl1gbuPO7OQjuwwe5/btlATsJkzz7v55EgzvQi80w22eg5mBpslCBh92rFy77OgBe2gBcUWuAoKBYCpB4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0910;7:5w04q/6dhQMngIRR8x2kGzbq3g+4c3T26bSFEJHebBYsmAATXpUS0YFVKdyS8fu/EVB6kKUePedtyIpxUPUAMksXqUoMEdnUX1kpvJHWCtVnqGuWQrppDkuQDvEbsekV9Mnr2WYNLvlpEY/vfwleDznp0keku7s179NFR4GCLiuxSGCW0l4DtViRHT4f1AldlbjMrj3Lrqrd/hpeUDY4i4CFRcD/j7Doipbs64Zb0Ah+wIoQW8f0wF+cl3vbnfjzekeChX0upBrnjVuwyCVNBBDDorNXPiwohg/T93YlA9C3KUn/InvJzt6E4NSKyanpKB0YBcgXrkYVk9VOnroD2fseoZjPQf2ElkZy94bAIUQ27wjJA+6h0dlM2TT0JDeje/uw0NRBN5VYTWYc1GqxKopRjJTac2xVtov8hLwcm5J/Gxfjvi0Q0ItWwbRLjfRfzlj4INlyjFR4vh+VKRBTIU5tfXv80HHhj2xjl7l9M6D7p1dXZixmefoLuAggQB8m/VrPn354wbNEcDuIu2EAx0CmsExRbHtbOekdZihxgrOwGe7ezNyHZgqu0hsmHIb2g9mTEUUOb4uFtnCunWVqnXMCbFyA/En+6+uZk9/WVc6Fm5B46jMPMFs6noYDQXgMMH9kEOa2oLIgxMRYuJNbaSEqjrxRNSHlau2MpbnjxcYdtns8m5H/oerT6ehp+qYoDCDY5p4fM3DCdI2pRw7Xd6sZ1ongUWHnrQW8A8p9VMcuO/VmSIY/0IqwB1pZLigeUm5Mpy5vsRsqyon5NoDzCv7wyJp+bY3oE31dE/DNZxY= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2017 10:58:41.6249 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB0910 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 26 Once a Tx frame descriptor is enqueued, an interrupt might be triggered to process the Tx confirmation and free the skb, hitting a memory use after free when updating the tx_bytes statistic based on skb->len. Use the frame descriptor length instead. Signed-off-by: Bogdan Purcareata --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c index b9a0a31..0f3e497 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c @@ -616,7 +616,7 @@ static netdev_tx_t dpaa2_eth_tx(struct sk_buff *skb, struct net_device *net_dev) free_tx_fd(priv, &fd, NULL); } else { percpu_stats->tx_packets++; - percpu_stats->tx_bytes += skb->len; + percpu_stats->tx_bytes += dpaa2_fd_get_len(&fd); } return NETDEV_TX_OK; -- 2.7.4