+ drivers-dax-avoiding-potential-deadlock.patch added to -mm tree

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

 



The patch titled
     Subject: drivers/dax/dax.c: avoid potential deadlock
has been added to the -mm tree.  Its filename is
     drivers-dax-avoiding-potential-deadlock.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/drivers-dax-avoiding-potential-deadlock.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/drivers-dax-avoiding-potential-deadlock.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: Pushkar Jambhlekar <pushkar.iit@xxxxxxxxx>
Subject: drivers/dax/dax.c: avoid potential deadlock

dax_dev_huge_fault() returns without releasing rcu_read_lock().  Make code
change to avoid this situation

Link: http://lkml.kernel.org/r/1491888405-7772-1-git-send-email-pushkar.iit@xxxxxxxxx
Signed-off-by: Pushkar Jambhlekar <pushkar.iit@xxxxxxxxx>
Cc: Dan Williams <dan.j.williams@xxxxxxxxx>
Cc: Dave Jiang <dave.jiang@xxxxxxxxx>
Cc: Johannes Thumshirn <jthumshirn@xxxxxxx>
Cc: Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/dax/dax.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/dax/dax.c~drivers-dax-avoiding-potential-deadlock drivers/dax/dax.c
--- a/drivers/dax/dax.c~drivers-dax-avoiding-potential-deadlock
+++ a/drivers/dax/dax.c
@@ -590,7 +590,7 @@ static int dax_dev_huge_fault(struct vm_
 		rc = __dax_dev_pud_fault(dax_dev, vmf);
 		break;
 	default:
-		return VM_FAULT_FALLBACK;
+		rc = VM_FAULT_FALLBACK;
 	}
 	rcu_read_unlock();
 
_

Patches currently in -mm which might be from pushkar.iit@xxxxxxxxx are

drivers-dax-avoiding-potential-deadlock.patch
drivers-dax-changing-rc-value.patch
mm-include-linux-migrateh-fixing-checkpatch-warning-regarding-function-definition.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 Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux