From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by gnuweeb.org (Postfix) with ESMTPS id 00CA8815C0 for ; Wed, 16 Nov 2022 18:49:44 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Cny+LjvT; dkim-atps=neutral Received: by mail-wm1-f52.google.com with SMTP id l39-20020a05600c1d2700b003cf93c8156dso2123791wms.4 for ; Wed, 16 Nov 2022 10:49:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=t6eKT5NTIarecwN5cQtOsMkQ+nmlOhy9LvPh3nG/GYQ=; b=Cny+LjvTr1PZDHs4n+SsOPPPDljaGVD7NyFrhSf8+ZKEm7k31Lr0XvY+A7p1phb6PD ma5H3EcBxrPGskefHIU3zm8OuxgFVvtHONRDjDd4tIVDwayaWnjqmZ7hA0u2fwWfHJl5 T5I0f8fcvx3DrqaUSndS9sEoMG4Gz6oSDTTIpNwGj9x37EaX1vqVRobSrwqERcO21t2M huDMHJsRItym7grOGIGyq/aJbq4vI1yqlH4hXGnN7vHsn2f4jlCqs30yFPH6jxQF1coC 9rKLqtnJQ+PHSDL10ey+6f9yI0hO3QDjzg+HeM3CC0phOp8z2EHSDG4x+mlFpSiYz1Ia mSHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=t6eKT5NTIarecwN5cQtOsMkQ+nmlOhy9LvPh3nG/GYQ=; b=o1xkiHT41t0Tdz0gb/SDBVhKI/M4swsAgda2av1Gs9Dbn+3GZtFRj9tqOvJHq0gFK0 Lt0njf37CjPnVypiu0zXwSBA7kxDEXFr4aILWeB7+C/M9/3v/gDnmKW41RdHTPci8lUc fvoRUf5BgLhHYi4KYQrhdHCp6Fe6TsDmrbABdZ/v80zpOKxOJdcX0bh4UAoKYEU/V2Qn Ut6WkyRL7i24aPT2OlAs1J0nTzRS6Q7xSl9zXTQWmnML0J92aKXMpGqF0FyMD9eT8lBo 9gT5+CHm7ynfN8QWeik2Qz9E28uSVmrhyJxjczRSgqGuKYic+ji32QFop6o2JbsEyzr7 tCvg== X-Gm-Message-State: ANoB5pkhOACXPvUd+5kyQMBFIlRVAWAXrr93yjWUQGoRiktbw2Q7Kvk0 7f36YbE+FMEIugJM4FdeNns= X-Google-Smtp-Source: AA0mqf75eNCVdTO/kzn3EXmsKtMKv5m+9AxLWRwNIvU5zQ2+/rYGSaeCEmXlWQlAvMu6hGIL9dcf8w== X-Received: by 2002:a05:600c:3495:b0:3cf:ae53:918f with SMTP id a21-20020a05600c349500b003cfae53918fmr3072529wmq.131.1668624583380; Wed, 16 Nov 2022 10:49:43 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id y15-20020a5d614f000000b0022ae401e9e0sm16145357wrt.78.2022.11.16.10.49.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 10:49:42 -0800 (PST) Date: Wed, 16 Nov 2022 21:49:38 +0300 From: Dan Carpenter To: David Howells Cc: oe-kbuild@lists.linux.dev, lkp@intel.com, oe-kbuild-all@lists.linux.dev, Ammar Faizi , GNU/Weeb Mailing List Subject: Re: [ammarfaizi2-block:dhowells/linux-fs/rxrpc-ringless-5 29/79] net/rxrpc/io_thread.c:52 rxrpc_error_report() error: uninitialized symbol 'skb'. Message-ID: References: <202211071354.ANknPOk9-lkp@intel.com> <2969791.1668607063@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2969791.1668607063@warthog.procyon.org.uk> List-Id: On Wed, Nov 16, 2022 at 01:57:43PM +0000, David Howells wrote: > Dan Carpenter wrote: > > > New smatch warnings: > > net/rxrpc/io_thread.c:52 rxrpc_error_report() error: uninitialized symbol 'skb'. > > Fixed that. > > > Old smatch warnings: > > net/rxrpc/io_thread.c:210 rxrpc_input_packet() warn: passing freed memory 'skb' > > Do you know if that's still there? "Old" in what sense? > The file name has changed so it took me a while to track this down. This is fine. The "skb" pointer here is just used for tracing and not dereferenced. net/rxrpc/input.c 563 /* Unshare the packet so that it can be modified for in-place 564 * decryption. 565 */ 566 if (sp->hdr.securityIndex != 0) { 567 struct sk_buff *nskb = skb_unshare(skb, GFP_ATOMIC); ^^^ There is still a reference to "skb" somewhere but we drop ours. 568 if (!nskb) { 569 rxrpc_eaten_skb(skb, rxrpc_skb_unshared_nomem); ^^^ This would be a bug if it were dereferenced but it's just tracing stuff that doesn't dereference the "skb" pointer. 570 return; 571 } 572 573 if (nskb != skb) { 574 rxrpc_eaten_skb(skb, rxrpc_skb_received); 575 skb = nskb; 576 rxrpc_new_skb(skb, rxrpc_skb_unshared); 577 sp = rxrpc_skb(skb); 578 } 579 } regards, dan carpenter