+ affs-kstrdup-memory-handling.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: affs: kstrdup() memory handling
has been added to the -mm tree.  Its filename is
     affs-kstrdup-memory-handling.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/affs-kstrdup-memory-handling.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/affs-kstrdup-memory-handling.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/SubmitChecklist when testing your code ***

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

------------------------------------------------------
From: Sanidhya Kashyap <sanidhya.gatech@xxxxxxxxx>
Subject: affs: kstrdup() memory handling

There is a possibility of kstrdup() failure upon memory pressure. 
Therefore, returning ENOMEM even for new_opts.

Signed-off-by: Sanidhya Kashyap <sanidhya.gatech@xxxxxxxxx>
Cc: Taesoo kim <taesoo@xxxxxxxxxx>
Cc: Fabian Frederick <fabf@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/affs/super.c |    4 ++++
 1 file changed, 4 insertions(+)

diff -puN fs/affs/super.c~affs-kstrdup-memory-handling fs/affs/super.c
--- a/fs/affs/super.c~affs-kstrdup-memory-handling
+++ a/fs/affs/super.c
@@ -525,6 +525,10 @@ affs_remount(struct super_block *sb, int
 	char			 volume[32];
 	char			*prefix = NULL;
 
+
+	if (!new_opts)
+		return -ENOMEM;
+
 	pr_debug("%s(flags=0x%x,opts=\"%s\")\n", __func__, *flags, data);
 
 	sync_filesystem(sb);
_

Patches currently in -mm which might be from sanidhya.gatech@xxxxxxxxx are

affs-kstrdup-memory-handling.patch
affs-kstrdup-memory-handling-fix.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux