Return-Path: linux-nfs-owner@vger.kernel.org Received: from fieldses.org ([174.143.236.118]:47459 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757715Ab2JSTjy (ORCPT ); Fri, 19 Oct 2012 15:39:54 -0400 Date: Fri, 19 Oct 2012 15:39:51 -0400 To: bjschuma@netapp.com Cc: Trond.Myklebust@netapp.com, linux-nfs@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] SUNRPC: Set alloc_slot for backchannel tcp ops Message-ID: <20121019193951.GA30593@fieldses.org> References: <1348508341-19642-1-git-send-email-bjschuma@netapp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1348508341-19642-1-git-send-email-bjschuma@netapp.com> From: "J. Bruce Fields" Sender: linux-nfs-owner@vger.kernel.org List-ID: Did this not get sent to stable? (Now upstream as 84e28a307e376f271505af65a7b7e212dd6f61f4.) --b. On Mon, Sep 24, 2012 at 01:39:01PM -0400, bjschuma@netapp.com wrote: > From: Bryan Schumaker > > f39c1bfb5a03e2d255451bff05be0d7255298fa4 (SUNRPC: Fix a UDP transport > regression) introduced the "alloc_slot" function for xprt operations, > but never created one for the backchannel operations. This patch fixes > a null pointer dereference when mounting NFS over v4.1. > > Call Trace: > [] ? xprt_reserve+0x47/0x50 [sunrpc] > [] call_reserve+0x34/0x60 [sunrpc] > [] __rpc_execute+0x90/0x400 [sunrpc] > [] rpc_async_schedule+0x2a/0x40 [sunrpc] > [] process_one_work+0x139/0x500 > [] ? alloc_worker+0x70/0x70 > [] ? __rpc_execute+0x400/0x400 [sunrpc] > [] worker_thread+0x15e/0x460 > [] ? preempt_schedule+0x49/0x70 > [] ? rescuer_thread+0x230/0x230 > [] kthread+0x93/0xa0 > [] kernel_thread_helper+0x4/0x10 > [] ? kthread_freezable_should_stop+0x70/0x70 > [] ? gs_change+0x13/0x13 > > Signed-off-by: Bryan Schumaker > --- > net/sunrpc/xprtsock.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c > index 86b7777..aaaadfb 100644 > --- a/net/sunrpc/xprtsock.c > +++ b/net/sunrpc/xprtsock.c > @@ -2521,6 +2521,7 @@ static struct rpc_xprt_ops xs_tcp_ops = { > static struct rpc_xprt_ops bc_tcp_ops = { > .reserve_xprt = xprt_reserve_xprt, > .release_xprt = xprt_release_xprt, > + .alloc_slot = xprt_alloc_slot, > .rpcbind = xs_local_rpcbind, > .buf_alloc = bc_malloc, > .buf_free = bc_free, > -- > 1.7.12.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-nfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html