Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1197308ybh; Mon, 13 Jul 2020 11:48:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrvjJRv95iFhbso5dVSROhwOj95X4R4ydHZ+i3XryEj+ySOy+yRsxSJUaDkB5QHZDjqkVJ X-Received: by 2002:a17:906:b217:: with SMTP id p23mr1125871ejz.98.1594666093846; Mon, 13 Jul 2020 11:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594666093; cv=none; d=google.com; s=arc-20160816; b=g2QNhtmdnEiYxOHz1fsaWL4G3zW2nlEhAy84StbHZXiBGjmN4wP+2Yk2HEJh08rPGQ 05fNna4bUdyj/WcLJKwpPVnlDLZJKDlLb4qFr858anuDoPks5omJ2JMpVXPMWGt+rM4y BK9T7V15TWNbmJ2ZOp3lZlz3ahmEbIFDWEI0cPtCXYmDBXrWJVr+RmFYaV8Y3dzUqBwx 3AoiFeFOxywJOlaejHpl6BU4O7Ni18z5SZIOnNgccBsk4ZRiyCGPq9hzRtRPr9qENRPX OmEWg9FgyLj05tqC5K3OE0NuGdMURdsmAvUk0MdjnAsZcKmx8VYVmKh3BlD7dStsGSxs CvXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=/kGa+wbC9ZfeyZcjYhHqMObUkyvbSuIqcoSW9K1YYog=; b=0FY+Rd1hZK7f7tS0vrxwP36Dk50HEzeOShcWXB7YfbcpNayaZ1rmIV5vFmuR77K1P7 5dg3F0mrcpgwLPTiADljzNXJzYKHyTCllPkNXR9ik4frmJw2lqFuqvSxlW2b1TF3tDAh s2ZWDd0p/dsNDVPMlcA+acC5Tyo777L24cMa9RpdOMd+9Uu41Pixh8tdvhp5Mx0Wgwyb 1jemdL8KT/A7SXEdw5AGSb7oKFeNCJLzhmxXi444QzDvvotkY7EoQBQXaOjhvcJCWgMb GsMSl2mZkp8qzx9jiHSLU74HNDUU1C6OApt1ct+u4ac7DeCOuN1ZW0PIEHA2dSImYBV3 Z1dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=g9ZSkg+i; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a24si9423841ejg.331.2020.07.13.11.47.40; Mon, 13 Jul 2020 11:48:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=g9ZSkg+i; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726338AbgGMSrh (ORCPT + 99 others); Mon, 13 Jul 2020 14:47:37 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:28434 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726332AbgGMSrh (ORCPT ); Mon, 13 Jul 2020 14:47:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594666056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/kGa+wbC9ZfeyZcjYhHqMObUkyvbSuIqcoSW9K1YYog=; b=g9ZSkg+iB8MoZh2uIjwNnt6xAwnhrFse1XKSZtIRTwe/KpxSVlbIpvzOQG+zaqU/cdqpHa sGZeDTVJUbVvEYICULd7lwefrgvIdLSzyuS4JdZqKV22fbwkUWNjdKwGXhDYstW03R9yRp uK270oI9rG29c+xRYrlsNiSAd3QF4fY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-237-Us54mDi5Mgy8UL0tzxs3eA-1; Mon, 13 Jul 2020 14:47:32 -0400 X-MC-Unique: Us54mDi5Mgy8UL0tzxs3eA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D97931DE0; Mon, 13 Jul 2020 18:47:31 +0000 (UTC) Received: from madhat.boston.devel.redhat.com (ovpn-112-168.phx2.redhat.com [10.3.112.168]) by smtp.corp.redhat.com (Postfix) with ESMTP id 82E5F60CD0; Mon, 13 Jul 2020 18:47:31 +0000 (UTC) Subject: Re: [PATCH 04/10] gssd: gssd_k5_err_msg() returns a ". Use free() to release. To: Doug Nazar , linux-nfs@vger.kernel.org References: <20200701182803.14947-1-nazard@nazar.ca> <20200701182803.14947-5-nazard@nazar.ca> <3a758b78-e477-4a75-63ca-65333a413599@RedHat.com> From: Steve Dickson Message-ID: Date: Mon, 13 Jul 2020 14:47:31 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 7/12/20 4:27 PM, Doug Nazar wrote: > On 2020-07-08 10:50, Steve Dickson wrote: >> I'm curious about these changes... since all krb5_free_string() >> does is call free()... where is the "strdup'd msg" coming from? > > gssd_k5_err_msg() always returns a local strdup() of the error message. True... > We shouldn't be using a Kerberos library method to free them. There's no guarantee that the library won't change, I guess I'm not too worry about this... I would the change was for the better. and lets face the krb5 has not changed in a 100 years ;-) > or even that the library was compiled with the same malloc library. There are different malloc libraries other than glibc? steved.