From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f53.google.com ([74.125.83.53]:33791 "EHLO mail-pg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751454AbdG0Wvp (ORCPT ); Thu, 27 Jul 2017 18:51:45 -0400 Received: by mail-pg0-f53.google.com with SMTP id c14so10901173pgn.0 for ; Thu, 27 Jul 2017 15:51:45 -0700 (PDT) Received: from nebulus.mtv.corp.google.com ([2620:0:1000:1612:2579:89dc:5d17:ba5]) by smtp.googlemail.com with ESMTPSA id q8sm19291705pgc.83.2017.07.27.15.51.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jul 2017 15:51:43 -0700 (PDT) To: stable@vger.kernel.org From: Mark Salyzyn Subject: af_key: Add lock to key dump Message-ID: Date: Thu, 27 Jul 2017 15:51:43 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: stable-owner@vger.kernel.org List-ID: Subject: af_key: Add lock to key dump upstream sha 89e357d83c06b6fac581c3ca7f0ee3ae7e67109e Please apply to 3.10, 3.18 (?, I see it is not under longterm support), 4.4 and 4.9 stable trees Along with the stated reason (prevent a NULL pointer access), this also prevents unbounded reference counter activities which can lead to a Use After Free situation. FYI: The back-port to 3.10.y has a minor conflict resolved by dropping one of the patch fragments. 4.4 and 4.9 were clear. Signed-off-by: Mark Salyzyn