From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB48FC7EE2E for ; Mon, 12 Jun 2023 09:25:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234458AbjFLJYl (ORCPT ); Mon, 12 Jun 2023 05:24:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233150AbjFLJYJ (ORCPT ); Mon, 12 Jun 2023 05:24:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D2BD30F1; Mon, 12 Jun 2023 02:18:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6A536616C9; Mon, 12 Jun 2023 09:18:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B5B1C433D2; Mon, 12 Jun 2023 09:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1686561490; bh=KxCRjozkEmNTEVpik04VLm/33kLity8Xed0mLWEvHXE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cz1qnUE7tDYcXBQb3O0qUolN7bzyssoGPFNLqvbkXN9Cjh6wOgW3OhUtTWki+U5TC 3gqC736BaJ4XZpVwYFV/OIvV0WnsB39eZVzZAlOHfcTNQDYx+bhcV9BG95cufcdxsq qNFvrYxGEE8meW5TcP6a0j8j+lyogwF660XEP2vc= Date: Mon, 12 Jun 2023 11:18:08 +0200 From: Greg KH To: Paulo Alcantara Cc: Rishabh Bhatnagar , sfrench@amazon.com, stable@vger.kernel.org, linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 5.4 0/2] Backport few dfs related fixes to cifs Message-ID: <2023061203-skinning-guileless-0e13@gregkh> References: <20230607203333.26669-1-risbhat@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Thu, Jun 08, 2023 at 05:54:26PM -0300, Paulo Alcantara wrote: > Rishabh Bhatnagar writes: > > > Recently we have been seeing kernel panic in cifs_reconnect function > > while accessing tgt_list. Looks like tgt_list is not initialized > > correctly. There are fixes already present in 5.10 and later trees. > > Backporting them to 5.4 > > > > CIFS VFS: \\172.30.1.14 cifs_reconnect: no target servers for DFS > > failover > > BUG: unable to handle page fault for address: fffffffffffffff8 > > #PF: supervisor read access in kernel mode > > #PF: error_code(0x0000) - not-present page > > PGD 260e067 P4D 260e067 PUD 2610067 PMD 0 > > Oops: 0000 [#1] SMP PTI > > RIP: 0010:cifs_reconnect+0x51d/0xef0 [cifs] > > RSP: 0018:ffffc90000693da0 EFLAGS: 00010282 > > RAX: fffffffffffffff8 RBX: ffff8887fa63b800 RCX: fffffffffffffff8 > > Call Trace: > > cifs_handle_standard+0x18d/0x1b0 [cifs] > > cifs_demultiplex_thread+0xa5c/0xc90 [cifs] > > kthread+0x113/0x130 > > > > Paulo Alcantara (2): > > cifs: get rid of unused parameter in reconn_setup_dfs_targets() > > cifs: handle empty list of targets in cifs_reconnect() > > > > fs/cifs/connect.c | 15 ++++++++------- > > 1 file changed, 8 insertions(+), 7 deletions(-) > > Looks good. Now queued up, thanks. greg k-h