Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1731311iog; Sat, 25 Jun 2022 18:25:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tQbb1X+KDTiwAiqFGJe92m4RFaXeJtNV9kH69yY64IdpodZXIsPWx0aE7N+M6GJRWZ65LL X-Received: by 2002:a17:902:e889:b0:16a:3c79:f92f with SMTP id w9-20020a170902e88900b0016a3c79f92fmr6891129plg.51.1656206729126; Sat, 25 Jun 2022 18:25:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656206729; cv=none; d=google.com; s=arc-20160816; b=f3GQKydyJCiS9YKK/EAGdnXvTF6p8adRfQsOeXAmzPzGXxwki6GjK0MD/S1eFqKoMg qPKuBLZyr7GMW6MY+JjKhxrZQmfKPTtbuhCpjyPFikZTqacH4jRSxI/isB6MMz42VRCT GdKr+FV0Td1F9fULHOQxU7wETGP4v3ZqoxlUjkR8/Y/ktDbIsHa4NufKjtIZTPIMte7G iMbS0+7Z7BnUshKetc9r5JrSClcICNWQml9aVQ1mN7YnbRIXVUIlDxZgX3Npwc+nObvl owjTstIqNutaLJBKalsWdHWuco0cnqLKD+0EwWmRY4A5xGeXHi/weSj86qVVZNaZN4lB Hscg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=C7i2SuC8HvNtahBs650x0F3fQo07SPvotbyo5SUsyEo=; b=zXGYGGb8aguO2QgRgr3z7tSPwl1SpYCbkiWUcN888fWmTiBqaXxKNEG7wCPA74MsfP drTJabLLRIrDosds7aoSnY+nYCbTYdmysnr44+deKPuFiXfafeve9mkaM0W1/6CM/F0m /9msK6y1LsYEKyWWPiMQxeWIS//UygLO8iM8uQv7dReRJH4IXS5o5BFs7x0e23K5y2IG T0x4GatgjihVo7MxkNBeMgih/o/oXc1fxfe3Gr9KSPPfZ1q5zp65oFO+IrFQJFfy0kaI ozRKShTW3lyT29CcJ3mv+doWgAF8fUbJhdjSOkjl5hAnqxL4gwT5YvcRS+4uSlQ6tA5R PiXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=j4hwxhBR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2-20020a170902edc200b00169ec23dbecsi5604326plk.96.2022.06.25.18.25.16; Sat, 25 Jun 2022 18:25:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=j4hwxhBR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233692AbiFZAzJ (ORCPT + 99 others); Sat, 25 Jun 2022 20:55:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233524AbiFZAzI (ORCPT ); Sat, 25 Jun 2022 20:55:08 -0400 Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 178D113F5D; Sat, 25 Jun 2022 17:55:08 -0700 (PDT) Received: by mail-vs1-xe35.google.com with SMTP id e7so5741785vsp.13; Sat, 25 Jun 2022 17:55:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=C7i2SuC8HvNtahBs650x0F3fQo07SPvotbyo5SUsyEo=; b=j4hwxhBRkaYlDGySlH1XIgFQNXIK9ATmdGShdYo70CMyTQnTpuIK6AaffgHi0G1WrS yspw0QmAkmZ+iT/Nub2aifqTd4dOAiH7Zrkyz18m+TOJlcJ85Ghitwt3fmbszBv/5dv3 Nf0gAoWEmgph1ZDEtglkh3fkTU+oa1kCE2ohk9yzbmUVabXa4mrtk+F7c3JxxpcR2xrZ DsUBBz5u6n7VFxCYdh1Iq0IFrNMur9GFNvcAes4cBOBps/KxbmXD6bHGHP5skNXm8hno UpS9/rL0oAG8itWHNbeFGk1qiZhYUx52WO0ixtR0WATnm6VM7Dq2qJ1o29zn65PN9xFv ++Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=C7i2SuC8HvNtahBs650x0F3fQo07SPvotbyo5SUsyEo=; b=OpsTIVpjCgSYG/i+ED5Esw/Tfgh7R/oBuXJtfX0QlrayCgbRy+XI4rAJGSlqyzP3Ej 2/0XPVKo9D+aWfp6AdaU+Xm068nN7YXMklTwanAkACCS0xdeCnLF0Qp12S+wWz1lZ+Jx 7cyNKfJIbeBz7li3i2rlcTgDU2SOYkLsdYJ4HB4G2wxqYFznmyy6ewiG5zPZI0X3YthE 1sDddd27lRsfMW4kwOlSSpK7ncwMVWAPCFObRZREHnEdnJ4ASvAg44JyyOCtl0hiEx3s m+dQN8gasIZ0n0hMAtO0Jgauu3g7ds1ZoalQz+YCiDLqLDlyM0MKd9YydqwzdsND58ZK 4A9A== X-Gm-Message-State: AJIora/frAiki0I63rBim2WTqkEQvuzECjCkdAyaI22bMiAn6Kb9elax WTTURy1Ks0sWsAlAekV85z8w+1oEUgS7cu3AVcw= X-Received: by 2002:a67:cb88:0:b0:354:432f:1258 with SMTP id h8-20020a67cb88000000b00354432f1258mr2473730vsl.17.1656204906624; Sat, 25 Jun 2022 17:55:06 -0700 (PDT) MIME-Version: 1.0 References: <20220625110115.39956-1-Jason@zx2c4.com> <20220625110115.39956-2-Jason@zx2c4.com> In-Reply-To: From: Steve French Date: Sat, 25 Jun 2022 19:54:55 -0500 Message-ID: Subject: Re: [PATCH v2 1/8] ksmbd: use vfs_llseek instead of dereferencing NULL To: "Jason A. Donenfeld" Cc: Steve French , Al Viro , LKML , linux-fsdevel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I just added it to ksmbd-for-next Thx. On Sat, Jun 25, 2022 at 5:20 PM Jason A. Donenfeld wrote: > > Hi Steve, > > On Sat, Jun 25, 2022 at 01:01:08PM +0200, Jason A. Donenfeld wrote: > > By not checking whether llseek is NULL, this might jump to NULL. Also, > > it doesn't check FMODE_LSEEK. Fix this by using vfs_llseek(), which > > always does the right thing. > > > > Fixes: f44158485826 ("cifsd: add file operations") > > Cc: stable@vger.kernel.org > > Cc: linux-cifs@vger.kernel.org > > Cc: Steve French > > Cc: Ronnie Sahlberg > > Cc: Hyunchul Lee > > Cc: Sergey Senozhatsky > > Reviewed-by: Namjae Jeon > > Acked-by: Al Viro > > Signed-off-by: Jason A. Donenfeld > > This commit has been reviewed by Namjae and acked by Al. The rest of the > commits in this series are likely -next material for Al to take in his > vfs tree, but this first one here is something you might consider taking > as a somewhat important bug fix for 5.19. I marked it for stable@ and > such as well. Your call -- you can punt it to Al's -next branch with the > rest of the series if you want -- but I think this patch is a bit unlike > the others. This occurred to me when I saw you sent some cifs fixes in > earlier this evening. > > Jason -- Thanks, Steve