Linux-mtd Archive on lore.kernel.org
 help / color / Atom feed
* Re: [PATCH] ubifs: Fix potentially out-of-bounds memory access inubifs_dump_node
       [not found] ` <202001131616025809130@zte.com.cn>
@ 2020-01-13  8:30   ` Richard Weinberger
  0 siblings, 0 replies; only message in thread
From: Richard Weinberger @ 2020-01-13  8:30 UTC (permalink / raw)
  To: liu song11; +Cc: Richard Weinberger, linux-mtd, linux-kernel, jiang xuexin

----- Ursprüngliche Mail -----
> Although this will change a bit more, but the function of dumping data is
> retained,
> I will modify it as suggested and try to submit a patch, thanks.

Sure but the most common and important case is good then.
in fs/ubifs/file.c we use a fixed buffer size of UBIFS_MAX_DATA_NODE_SZ
to deal with data nodes. So, dumping is safe.

If we don't know the buffer size for minor cases, not a big deal.
Still better than giving up the feature completely.

Thanks,
//richard

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20191216154441.6648-1-fishland@aliyun.com, 202001131229371470661@zte.com.cn, 1681702500.19692.1578902048331.JavaMail.zimbra@nod.at>
     [not found] ` <202001131616025809130@zte.com.cn>
2020-01-13  8:30   ` [PATCH] ubifs: Fix potentially out-of-bounds memory access inubifs_dump_node Richard Weinberger

Linux-mtd Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-mtd/0 linux-mtd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mtd linux-mtd/ https://lore.kernel.org/linux-mtd \
		linux-mtd@lists.infradead.org
	public-inbox-index linux-mtd

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-mtd


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git