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 0A56EC001E0 for ; Thu, 10 Aug 2023 15:43:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236187AbjHJPnP (ORCPT ); Thu, 10 Aug 2023 11:43:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233659AbjHJPnN (ORCPT ); Thu, 10 Aug 2023 11:43:13 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E98EF1BD9; Thu, 10 Aug 2023 08:43:09 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 7616467373; Thu, 10 Aug 2023 17:43:00 +0200 (CEST) Date: Thu, 10 Aug 2023 17:43:00 +0200 From: hch To: Richard Weinberger Cc: hch , Stephan Wurm , linux-block , Miquel Raynal , Vignesh Raghavendra , linux-mtd , linux-kernel , Johannes Eigner Subject: Re: ubiblock: null pointer dereference using scatterlist in work_queue Message-ID: <20230810154300.GA28000@lst.de> References: <1293911429.1782934.1691445776353.JavaMail.zimbra@nod.at> <20230809135308.GA32214@lst.de> <20230809141542.GA32614@lst.de> <366198994.5052941.1691620484888.JavaMail.zimbra@nod.at> <20230809223703.GA10719@lst.de> <533238598.5052964.1691621039144.JavaMail.zimbra@nod.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <533238598.5052964.1691621039144.JavaMail.zimbra@nod.at> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 10, 2023 at 12:43:59AM +0200, Richard Weinberger wrote: > > deprecated kmap_atomic to kmap_local first you can sleep and don't > > need bounce buffers. > > Yep, for upstream kmap_local will do the trick, but I need also something > for the stable trees. > Anyway, time to get some sleep. Maybe just copy and paste it with the kmap_local change and then do another patch (series) to unify them again. IIRC we also have a copy and paste version in an mmc driver somewhere.