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 A15C1C636CC for ; Tue, 7 Feb 2023 18:27:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232406AbjBGS1n (ORCPT ); Tue, 7 Feb 2023 13:27:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231131AbjBGS1h (ORCPT ); Tue, 7 Feb 2023 13:27:37 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2888C83DD for ; Tue, 7 Feb 2023 10:27:26 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id lu11so44961115ejb.3 for ; Tue, 07 Feb 2023 10:27:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=diag.uniroma1.it; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=G3C5mOidhZDrCqJ4TYEcLxCaPp0/cnlYAYlnw8sD9bM=; b=MqwIFpgzZ4IuhdKcIoI4RWMlnojYLVxPhx1w9n0b0bMhcRyOF1ZsDrlj/SyZ+xCvEJ d2Vb7A6wC6xCHddTYK4/jZrID4K7sAyzOTyKQZ8Cxz94DxsSfEvTY3Jto67sfGRvCuOE OAlhG/6RrflvFGfTDUpD4PWLjcuG96phtOy5I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=G3C5mOidhZDrCqJ4TYEcLxCaPp0/cnlYAYlnw8sD9bM=; b=WvY+QDmuTG3Pnntm7TfShr18CzghoS3VTEsJAa9fzErWd3O+TuYTLLwejYClAvm8WZ C21fnXdClxCBohyI3sF8+C51xoMWBQYwEE9gn2jD2v3a5k/pQELSE+9lp3hnWpOwD5wu Ritc9OS+DR4P1q3VwRkRtFmtS/9vw80T3aahnOSJ9rtT0qXmmI4kGLJ42rRXxxqgzbEF +Uoem0Etl3CbEd8lbmSxGAtp0vWaU4mWkvezZ6cY2N5dG2lXkI2CFw/zwAoVjq+giJ4t z+pfJXFFxxaRk667OSbGj0eBPLhwit9s3BYhGd+85PEbtMF3xNg/4xuLpORy5JtU5r+H d4EQ== X-Gm-Message-State: AO0yUKWN0XH9IXuSzVpK40CXrfh6Jpv9UW9UOIrM5w4S1IqbtOw3Yi3B ullO5kM4DVpdJcywMGRbVtcPYqoNzCIfFbUZ4BCXjw== X-Google-Smtp-Source: AK7set8S8b3O/e4b4YJvSR/iy27GoOfLbU1kyTqsS0lIGxBOIHzb9qmJyo4USffDoWiXrB/8GqUfxADEss5NDfdZZc8= X-Received: by 2002:a17:906:37c2:b0:878:7bc7:958a with SMTP id o2-20020a17090637c200b008787bc7958amr1091575ejc.220.1675794444795; Tue, 07 Feb 2023 10:27:24 -0800 (PST) MIME-Version: 1.0 References: <20230202-rds-zerocopy-v2-1-c999755075db@diag.uniroma1.it> In-Reply-To: From: Pietro Borrello Date: Tue, 7 Feb 2023 19:27:14 +0100 Message-ID: Subject: Re: [PATCH net-next v2] rds: rds_rm_zerocopy_callback() use list_first_entry() To: Willem de Bruijn Cc: Santosh Shilimkar , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Cristiano Giuffrida , "Bos, H.J." , Jakob Koschel , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, linux-kernel@vger.kernel.org, sowmini.varadhan@oracle.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Feb 2023 at 19:21, Willem de Bruijn wrote: > > On Tue, Feb 7, 2023 at 9:57 AM Pietro Borrello > wrote: > > > > rds_rm_zerocopy_callback() uses list_entry() on the head of a list > > causing a type confusion. > > Use list_first_entry() to actually access the first element of the > > rs_zcookie_queue list. > > > > Fixes: 9426bbc6de99 ("rds: use list structure to track information for zerocopy completion notification") > > Signed-off-by: Pietro Borrello > > This should go to net. Ops, fixed in v3 > > Reviewed-by: Willem de Bruijn