All of lore.kernel.org
 help / color / mirror / Atom feed
* + squashfs-add-more-sanity-checks-in-xattr-id-lookup-v2.patch added to -mm tree
@ 2021-02-08 21:49 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-02-08 21:49 UTC (permalink / raw)
  To: mm-commits, phillip


The patch titled
     Subject: squashfs-add-more-sanity-checks-in-xattr-id-lookup-v2
has been added to the -mm tree.  Its filename is
     squashfs-add-more-sanity-checks-in-xattr-id-lookup-v2.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/squashfs-add-more-sanity-checks-in-xattr-id-lookup-v2.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/squashfs-add-more-sanity-checks-in-xattr-id-lookup-v2.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Phillip Lougher <phillip@squashfs.org.uk>
Subject: squashfs-add-more-sanity-checks-in-xattr-id-lookup-v2

fix checkpatch issue

Link: https://lkml.kernel.org/r/270245655.754655.1612770082682@webmail.123-reg.co.uk
Reported-by: syzbot+2ccea6339d368360800d@syzkaller.appspotmail.com
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/squashfs/xattr_id.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/fs/squashfs/xattr_id.c~squashfs-add-more-sanity-checks-in-xattr-id-lookup-v2
+++ a/fs/squashfs/xattr_id.c
@@ -109,7 +109,7 @@ __le64 *squashfs_read_xattr_id_table(str
 		start = le64_to_cpu(table[n]);
 		end = le64_to_cpu(table[n + 1]);
 
-		if(start >= end || (end - start) > SQUASHFS_METADATA_SIZE) {
+		if (start >= end || (end - start) > SQUASHFS_METADATA_SIZE) {
 			kfree(table);
 			return ERR_PTR(-EINVAL);
 		}
_

Patches currently in -mm which might be from phillip@squashfs.org.uk are

squashfs-avoid-out-of-bounds-writes-in-decompressors.patch
squashfs-add-more-sanity-checks-in-id-lookup.patch
squashfs-add-more-sanity-checks-in-inode-lookup.patch
squashfs-add-more-sanity-checks-in-inode-lookup-v2.patch
squashfs-add-more-sanity-checks-in-xattr-id-lookup.patch
squashfs-add-more-sanity-checks-in-xattr-id-lookup-v2.patch


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

only message in thread, other threads:[~2021-02-08 21:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-08 21:49 + squashfs-add-more-sanity-checks-in-xattr-id-lookup-v2.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.