Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3357777yba; Mon, 6 May 2019 23:10:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSsOje0qIHBXzzQKCzaLnBb/nWN45UC+GubjwJ/SUWU58KZxvFzr/88dj4DF53LPUBwjrv X-Received: by 2002:a17:902:1602:: with SMTP id g2mr38008634plg.325.1557209444605; Mon, 06 May 2019 23:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557209444; cv=none; d=google.com; s=arc-20160816; b=oMyBJHYNr+RkwVzhDVh/D/xdp6cs5fkM3+ZcLGWdMEzejZKB79V5VNRfreYeb+2+dG j04RSFGvH1LmWrLyTdb9bea3sJivV7Rmv6/FJrRRi0DV43A1M9YOL28+mUoIzZ3mvVli h6Fq+SOdxFqwrwB83innN5mi1EMyJ9ywHH7Up1iRTbLfQpueVua+VCuy04SudCaPzt0E r1HvI84ShgSN2kjE4YzV/ei4q33PEbnNzZzhCMeldixnzUSKoGpg574hQ4a68i5RGIrU /KCI1QD+MdmadFTGRpe/mDFnEWnX1uTBriWMcpeG6CSklbHfS+ysZ2u00yqILRr8OqWH T86A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:content-transfer-encoding:mime-version :references:message-id:subject:cc:to:from:date; bh=1yy/5VHICLYcRJKnpB5szhVyygSc788TUqofxHX9XvQ=; b=Y4R0wDZLsOnECAfUjs8amziAl7IXLzJrC6UL6MqZ3XLGT7Rr4pKcCz/AXQ78XW6/29 /Uxo25vu1zS+CEcjQTYVJEqKc2xZGgIs3/HMeWWMOFPRdnkJeuAYMYdRd5U7QsHhAH19 T8HICqTZ+zcSwOkcxp0gHDnFaixhHq7h0JeFaN356OMCwHDrZGdBlD4zO+jooMXX8cpa EVcLofER/iJhv7ipKTWS+aAEvVbWzlg4WTAqr6r/EEO+z4o/kMPKZ00+ZpZN+ywZep9M 2J+7YaihqHEOarCqjWLnHwB7mrVM1SCLou76cMLoRKhlcCn7/jPF1xcFG3NzMigbbKqV Vp9Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=probst.it Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i193si8377856pgd.88.2019.05.06.23.10.29; Mon, 06 May 2019 23:10:44 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=probst.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726536AbfEGGJm (ORCPT + 99 others); Tue, 7 May 2019 02:09:42 -0400 Received: from mx1.chost.de ([5.175.28.52]:33198 "EHLO mx1.chost.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbfEGGJm (ORCPT ); Tue, 7 May 2019 02:09:42 -0400 Received: from vm002.chost.de ([::ffff:192.168.122.102]) by mx1.chost.de with SMTP; Tue, 07 May 2019 08:10:28 +0200 id 000000000133ACB4.000000005CD12154.00006711 Received: by vm002.chost.de (sSMTP sendmail emulation); Tue, 07 May 2019 08:10:28 +0200 Date: Tue, 7 May 2019 08:10:28 +0200 From: Christoph Probst To: Steve French Cc: Pavel Shilovsky , Jeremy Allison , Steve French , CIFS , samba-technical , LKML Subject: Re: [PATCH] cifs: fix strcat buffer overflow in smb21_set_oplock_level() Message-ID: <20190507061028.GP28577@netzpunkt.org> References: <1557155792-2703-1-git-send-email-kernel@probst.it> <20190506165658.GA168433@jra4> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Steve French schrieb am 06.05.2019 um 23:18 Uhr: > On Mon, May 6, 2019 at 2:03 PM Pavel Shilovsky > wrote: > > > > The patch itself is fine but I think we have a bigger problem here: > > Good point. Perhaps make update to the same patch to include both changes I'll update my patch to implement the change suggested by Pavel. I'll also switch the strcat to strncat and use strncpy in the "None"-case. Regards, Christoph