[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <366198994.5052941.1691620484888.JavaMail.zimbra@nod.at>
Date: Thu, 10 Aug 2023 00:34:44 +0200 (CEST)
From: Richard Weinberger <richard@....at>
To: hch <hch@....de>
Cc: Stephan Wurm <stephan.wurm@...berle.de>,
linux-block <linux-block@...r.kernel.org>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Vignesh Raghavendra <vigneshr@...com>,
linux-mtd <linux-mtd@...ts.infradead.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
Johannes Eigner <johannes.eigner@...berle.de>
Subject: Re: ubiblock: null pointer dereference using scatterlist in
work_queue
----- Ursprüngliche Mail -----
> Von: "hch" <hch@....de>
> Yes. So the code needs to stop using sg_virt to work on highmem
> setups and do the equivalent of scsi_kmap_atomic_sg. Best way
> forward is probably to move scsi_kmap_atomic_sg to lib/scatterlist.c
> (and also convert it to kmap_local instead of kmap_atomic while you're
> at it) and then use that in ubiblock
Will do so! So far I managed to get UBIblock work with scsi_kmap_atomic_sg().
Sadly now with kmap'ed memory a bounce buffer is needed since IO in UBI/MTD can sleep.
Is there a strong reason why scsi_kmap_atomic_sg() needs IRQs disabled?
Thanks,
//richard
Powered by blists - more mailing lists