Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8258CC282DD for ; Sat, 20 Apr 2019 18:13:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 51DC420833 for ; Sat, 20 Apr 2019 18:13:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727455AbfDTSNK (ORCPT ); Sat, 20 Apr 2019 14:13:10 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:56587 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbfDTSNK (ORCPT ); Sat, 20 Apr 2019 14:13:10 -0400 X-IronPort-AV: E=Sophos;i="5.60,374,1549926000"; d="scan'208";a="379487278" Received: from abo-75-106-68.mrs.modulonet.fr (HELO hadrien) ([85.68.106.75]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Apr 2019 20:13:06 +0200 Date: Sat, 20 Apr 2019 20:13:06 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: David Howells cc: Al Viro , linux-fsdevel@vger.kernel.org, kbuild-all@01.org Subject: [vfs:work.nfs-mount 23/23] fs/nfs/fs_context.c:1267:13-16: ERROR: reference preceded by free on line 1265 (fwd) Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Hello, Lines 1264 and 1265 need to switch. julia ---------- Forwarded message ---------- Date: Sun, 21 Apr 2019 01:22:18 +0800 From: kbuild test robot To: kbuild@01.org Cc: Julia Lawall Subject: [vfs:work.nfs-mount 23/23] fs/nfs/fs_context.c:1267:13-16: ERROR: reference preceded by free on line 1265 CC: kbuild-all@01.org CC: linux-fsdevel@vger.kernel.org TO: David Howells CC: Al Viro tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.nfs-mount head: 41de4236a25d8424df01720efebe54dcb34bc844 commit: 41de4236a25d8424df01720efebe54dcb34bc844 [23/23] NFS: Add fs_context support. :::::: branch date: 2 hours ago :::::: commit date: 2 hours ago If you fix the issue, kindly add following tag Reported-by: kbuild test robot >> fs/nfs/fs_context.c:1267:13-16: ERROR: reference preceded by free on line 1265 # https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git/commit/?id=41de4236a25d8424df01720efebe54dcb34bc844 git remote add vfs https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git git remote update vfs git checkout 41de4236a25d8424df01720efebe54dcb34bc844 vim +1267 fs/nfs/fs_context.c 41de4236 David Howells 2018-11-15 1247 41de4236 David Howells 2018-11-15 1248 /* 41de4236 David Howells 2018-11-15 1249 * Handle duplication of a configuration. The caller copied *src into *sc, but 41de4236 David Howells 2018-11-15 1250 * it can't deal with resource pointers in the filesystem context, so we have 41de4236 David Howells 2018-11-15 1251 * to do that. We need to clear pointers, copy data or get extra refs as 41de4236 David Howells 2018-11-15 1252 * appropriate. 41de4236 David Howells 2018-11-15 1253 */ 41de4236 David Howells 2018-11-15 1254 static int nfs_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc) 41de4236 David Howells 2018-11-15 1255 { 41de4236 David Howells 2018-11-15 1256 struct nfs_fs_context *src = nfs_fc2context(src_fc), *ctx; 41de4236 David Howells 2018-11-15 1257 41de4236 David Howells 2018-11-15 1258 ctx = kmemdup(src, sizeof(struct nfs_fs_context), GFP_KERNEL); 41de4236 David Howells 2018-11-15 1259 if (!ctx) 41de4236 David Howells 2018-11-15 1260 return -ENOMEM; 41de4236 David Howells 2018-11-15 1261 41de4236 David Howells 2018-11-15 1262 ctx->mntfh = nfs_alloc_fhandle(); 41de4236 David Howells 2018-11-15 1263 if (!ctx->mntfh) { 41de4236 David Howells 2018-11-15 1264 return -ENOMEM; 41de4236 David Howells 2018-11-15 @1265 kfree(ctx); 41de4236 David Howells 2018-11-15 1266 } 41de4236 David Howells 2018-11-15 @1267 nfs_copy_fh(ctx->mntfh, src->mntfh); 41de4236 David Howells 2018-11-15 1268 41de4236 David Howells 2018-11-15 1269 __module_get(ctx->nfs_mod->owner); 41de4236 David Howells 2018-11-15 1270 ctx->client_address = NULL; 41de4236 David Howells 2018-11-15 1271 ctx->mount_server.hostname = NULL; 41de4236 David Howells 2018-11-15 1272 ctx->nfs_server.export_path = NULL; 41de4236 David Howells 2018-11-15 1273 ctx->nfs_server.hostname = NULL; 41de4236 David Howells 2018-11-15 1274 ctx->fscache_uniq = NULL; 41de4236 David Howells 2018-11-15 1275 fc->fs_private = ctx; 41de4236 David Howells 2018-11-15 1276 return 0; 6a5fea56 David Howells 2018-11-15 1277 } 41de4236 David Howells 2018-11-15 1278 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation