Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp357010lqh; Sat, 4 May 2024 04:23:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXYFMQrRAcO/Anl408d0mLejZOuWxeAFavd+oS4UyBGz8CE7r515dLwQGycz0yNAOzV4GppDrgyMtbBshb57ffnmdox7ZqMr4EeLTrJbg== X-Google-Smtp-Source: AGHT+IEW4e9q6BhPvE6x052mrFwXyCjrp++hD2tT5ax2q21bm2Iq85yGHpcSqFzkV9ea6oVpPaX7 X-Received: by 2002:a05:6e02:20ee:b0:36c:4bed:d0e2 with SMTP id q14-20020a056e0220ee00b0036c4bedd0e2mr6612621ilv.23.1714821817546; Sat, 04 May 2024 04:23:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714821817; cv=pass; d=google.com; s=arc-20160816; b=jWdeNcxdUAxavK87OUEBdGeO+LwMEEWn+1DFxwQMpKCZifpvO610aHgyq9oR+MS1hH E8xyf7RyUsOBcu9mS6uS6k5bHaXxYPOcuRqdKxFb7fD1FKPEK6BkTgDxCWXT/BeKbL1N XiQt4wGf7/efyhUZ6fHf2oa9ZtUH91WaSTfPxoXOQtfyZzIkqzUqTmcbqrH5S5x9uGVz MIPG4vs7dRUg+ntCnDkE5U/YGHmEtLZKplnc6Iph8VBvaZLSxb7aNmHDSCw3vUXeqN+K 4LPIHjNzfyaRw7CZwQrcb3DTaJPBNFS2N9t/4DGMeIZ44I2F2FPhX13+kdFLNy6rwfBz Q/7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=qU6EIZcy3cHDPH2EvXHMOnA6gxH7VVwXwXFZuCsTmJQ=; fh=5qic0tXelDOTAAH0r+TJpVn5DbBjN++KvHbBILuymJM=; b=RPSvOH0dsMu7zktv0emjMBEDQGmdxezNEwL7Q/RTDJcJHMFzOcqFcZkhh3Z/0UvK93 pHFknDh4Y91mOmla9GJXlhxnKG9qFR9oIce9EyVRfXmASK3seBKTRKk5Rrs7AEAqbHqA Rcl+BKqig7ZZnvIcFbJFetI5x/be7+ylhtOfGMnzZ4jW/sKbPOJ0dLlhzV9PXzkgE820 8rk5iCk3YWS+ISlkG6vO6/YCGdPidP+ZFy6JeGY6gXGcC1Us0WAa61keb0m2hcKdaJhu VhKHwJWCFEmS/mHdf3PPZwzAoyQ1RCFPtB5+qKdDL2aBBGghVLxPA1cWTPqL1TVwxlMW WjCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=msW3Zqk0; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-nfs+bounces-3154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y186-20020a6364c3000000b0060013d7c3a8si3733932pgb.121.2024.05.04.04.23.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 04:23:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=msW3Zqk0; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-nfs+bounces-3154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F2B5D280C81 for ; Sat, 4 May 2024 11:23:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD81017996; Sat, 4 May 2024 11:23:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="msW3Zqk0" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1CF43171CC for ; Sat, 4 May 2024 11:23:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714821815; cv=none; b=BMG+Aff4EvxzZHyYdFgZSVJR38oNv4mUEqproln2kTvjOmZztU+Pa5pGAwgiCYp6iW//KMzeoqpwHqyvu3gw6cF5FmXwFwKYTQgEmH5svZNiymP7Br6v2T/gO3FmI/1LK0tYDGAw+grzgSLty7Ic9HcKEc7yRqkk8BhMnvfV7yM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714821815; c=relaxed/simple; bh=85KK7wkCwNmdLAOBeMre2tVgm/LV27OYB+W4Cy2RcKo=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=dpAHebY6BmmnniYLe96gWsTeTqaEZS7iWYpEZqe2aF9hJal69jvoDYV7stoGA3IyDMnzWbauLwOh5oUaVRSrdbrAvYkOW+yrXtrB3Ew4EhTJVmRuVVlfFR3xrTDLWfEfrOs475HQhSvOXdT6RoxY7WjQ3iDq9hW8hHXwcEJ+1m4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=msW3Zqk0; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-34d96054375so299994f8f.2 for ; Sat, 04 May 2024 04:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714821812; x=1715426612; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=qU6EIZcy3cHDPH2EvXHMOnA6gxH7VVwXwXFZuCsTmJQ=; b=msW3Zqk01qZqsenNm5G3iUW6lyXA6C1OxnG9R7NCh1vN/sJcqQxMl/GdnU6aeiQsBe +V4EH168D7wTubothIE3pgPWIlRHilwjw0cHNFWmEB7p/AM8bjUViUA77r2UDeH8KEoe oAqBy+RBnn82j2vBeIXobgFPI0Rv5syS0+/V9ZqNh/WjQv5jxl0ysTDlj5ls4U7yrTYE XT5PwuxNK0j0HCEypO/Bc31bSG53BGOagrwlLU4ky+6pXVt7uj4xIC7FQBqJNcBpe2km FOj82O2hREKny6E/nWHSRc7w8Cn2WlcwX4kwT96OXdT8LSuq/iW4JtADflIj4/N8/ltu 40Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714821812; x=1715426612; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qU6EIZcy3cHDPH2EvXHMOnA6gxH7VVwXwXFZuCsTmJQ=; b=iEJzibbvgC8mp8Tq7rM3zKenomO5coz0IeOtTroTCUFUqP5O2ogyyCF3QdLFlZW+wy A1Zp+NRilzeUN04oxS38v6O4ea5P4Xy94GTrXMBgy4UjSBOVsGdqZ76pruu7TXPcdf1W n58hIF0IHc+EIQPFtjuq+TPUXhigcadqe6ycqVVw43ZW2G+lBQ4Xy9o7tBUoFqGMaJKc jKzPefTnq9irxbNwXQ22AiT2s/U3WnUJD3cPAwKBTqM6XaKk6llDkQ7J65G3DuHOMUOC /G/m/troXPof+6uoHjl8ZJJ2G/x2nnP6O6nB3G8ycQOw9aO6onbMSjfHxVKanIXA19pB ws+g== X-Gm-Message-State: AOJu0YxBdjjrrAgxFYOZLEt1uz3hx7Zt9P1QqK4Qreioghaara2KUGVT iWYM/Wx4d1AsrmuIRjUoaVHzqrLk1+ds367hJ6pkJQZMP36J6/C/QsX8CFa9OoyadVr0XaQ0QxE K X-Received: by 2002:a5d:5045:0:b0:34c:b0bc:157 with SMTP id h5-20020a5d5045000000b0034cb0bc0157mr3856688wrt.47.1714821812347; Sat, 04 May 2024 04:23:32 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id u17-20020a5d4691000000b0034da966c3d8sm5977360wrq.16.2024.05.04.04.23.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 04:23:32 -0700 (PDT) Date: Sat, 4 May 2024 14:23:23 +0300 From: Dan Carpenter To: chuck.lever@oracle.com Cc: linux-nfs@vger.kernel.org Subject: [bug report] SUNRPC: Fix svcauth_gss_proxy_init() Message-ID: <4d92f9a7-a278-4d61-9804-f6bc7cd7963a@moroto.mountain> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello Chuck Lever, Commit 5866efa8cbfb ("SUNRPC: Fix svcauth_gss_proxy_init()") from Oct 24, 2019 (linux-next), leads to the following Smatch static checker warning: net/sunrpc/auth_gss/svcauth_gss.c:1039 gss_free_in_token_pages() warn: iterator 'i' not incremented net/sunrpc/auth_gss/svcauth_gss.c 1034 static void gss_free_in_token_pages(struct gssp_in_token *in_token) 1035 { 1036 u32 inlen; 1037 int i; 1038 --> 1039 i = 0; 1040 inlen = in_token->page_len; 1041 while (inlen) { 1042 if (in_token->pages[i]) 1043 put_page(in_token->pages[i]); ^ This puts page zero over and over. 1044 inlen -= inlen > PAGE_SIZE ? PAGE_SIZE : inlen; 1045 } 1046 1047 kfree(in_token->pages); 1048 in_token->pages = NULL; 1049 } regards, dan carpenter