kernel: apply the AUFS patch to integrate with lockdep
kernel: apply the AUFS patch to integrate with lockdep

AUFS introduces new lockdep relations which are beyond the maximum variants
that lockdep ships with. Without this patch, AUFS triggers lockdep BUG sanity
checks and disables lockdep for the rest of the system.

The present value of the patch is:

```diff
aufs4.4 lockdep patch

diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
index c57e424..4153563 100644
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
@@ -29,7 +29,7 @@ extern int lock_stat;
  */
 #define XXX_LOCK_USAGE_STATES		(1+3*4)

-#define MAX_LOCKDEP_SUBCLASSES		8UL
+#define MAX_LOCKDEP_SUBCLASSES		(8UL + 4)

 /*
  * NR_LOCKDEP_CACHING_CLASSES ... Number of classes
@@ -203,7 +203,7 @@ struct lock_chain {
 	u64				chain_key;
 };

-#define MAX_LOCKDEP_KEYS_BITS		13
+#define MAX_LOCKDEP_KEYS_BITS		(13 + 3)
 /*
  * Subtract one because we offset hlock->class_idx by 1 in order
  * to make 0 mean no class. This avoids overflowing the class_idx
diff --git a/kernel/locking/lockdep_internals.h b/kernel/locking/lockdep_internals.h
index 51c4b24..fba7557 100644
--- a/kernel/locking/lockdep_internals.h
+++ b/kernel/locking/lockdep_internals.h
@@ -54,9 +54,9 @@ enum {
  * table (if it's not there yet), and we check it for lock order
  * conflicts and deadlocks.
  */
-#define MAX_LOCKDEP_ENTRIES	32768UL
+#define MAX_LOCKDEP_ENTRIES	(32768UL << 5)

-#define MAX_LOCKDEP_CHAINS_BITS	16
+#define MAX_LOCKDEP_CHAINS_BITS	(16 + 5)
 #define MAX_LOCKDEP_CHAINS	(1UL << MAX_LOCKDEP_CHAINS_BITS)

 #define MAX_LOCKDEP_CHAIN_HLOCKS (MAX_LOCKDEP_CHAINS*5)
@@ -65,7 +65,7 @@ enum {
  * Stack-trace: tightly packed array of stack backtrace
  * addresses. Protected by the hash_lock.
  */
-#define MAX_STACK_TRACE_ENTRIES	524288UL
+#define MAX_STACK_TRACE_ENTRIES	(524288UL << 5)

 extern struct list_head all_lock_classes;
 extern struct lock_chain lock_chains[];
```

Signed-off-by: David Sheets <aa5a275c249287abd0efa0c6aac4f0ceae1404c4@docker.com>

davefreitag/linuxkit,radu-matei/linuxkit,justincormack/linuxkit,yankcrime/linuxkit,ndauten/linuxkit,t-koulouris/linuxkit,linuxkit/linuxkit,YuPengZTE/linuxkit,ndauten/linuxkit,eyz/linuxkit,JohnnyLeone/linuxkit,JohnnyLeone/linuxkit,davefreitag/linuxkit,yankcrime/linuxkit,zx2c4/linuxkit,JohnnyLeone/linuxkit,zx2c4/linuxkit,linuxkit/linuxkit,mor1/linuxkit,linuxkit/linuxkit,samoht/linuxkit,thebsdbox/linuxkit,furious-luke/linuxkit,ndauten/linuxkit,linuxkit/linuxkit,YuPengZTE/linuxkit,eyz/linuxkit,t-koulouris/linuxkit,djs55/linuxkit,davefreitag/linuxkit,samoht/linuxkit,zx2c4/linuxkit,rn/linuxkit,yankcrime/linuxkit,kencochrane/linuxkit,JohnnyLeone/linuxkit,konstruktoid/linuxkit,eyz/linuxkit,furious-luke/linuxkit,deitch/linuxkit,rn/linuxkit,mor1/linuxkit,konstruktoid/linuxkit,justincormack/linuxkit,eyz/linuxkit,kencochrane/linuxkit,djs55/linuxkit,kencochrane/linuxkit,justincormack/linuxkit,mor1/linuxkit,t-koulouris/linuxkit,furious-luke/linuxkit,YuPengZTE/linuxkit,t-koulouris/linuxkit,ndauten/linuxkit,kencochrane/linuxkit,YuPengZTE/linuxkit,thebsdbox/linuxkit,radu-matei/linuxkit,rn/linuxkit,kencochrane/linuxkit,deitch/linuxkit,konstruktoid/linuxkit,deitch/linuxkit,eyz/linuxkit,djs55/linuxkit,konstruktoid/linuxkit,davefreitag/linuxkit,thebsdbox/linuxkit,JohnnyLeone/linuxkit,zx2c4/linuxkit,linuxkit/linuxkit,konstruktoid/linuxkit,konstruktoid/linuxkit,thebsdbox/linuxkit,t-koulouris/linuxkit,furious-luke/linuxkit,samoht/linuxkit,eyz/linuxkit,yankcrime/linuxkit,rn/linuxkit,zx2c4/linuxkit,radu-matei/linuxkit,justincormack/linuxkit,ndauten/linuxkit,justincormack/linuxkit,thebsdbox/linuxkit,samoht/linuxkit,justincormack/linuxkit,kencochrane/linuxkit,deitch/linuxkit,djs55/linuxkit,YuPengZTE/linuxkit,thebsdbox/linuxkit,furious-luke/linuxkit,ndauten/linuxkit,samoht/linuxkit,radu-matei/linuxkit,radu-matei/linuxkit,mor1/linuxkit,deitch/linuxkit,djs55/linuxkit,davefreitag/linuxkit,mor1/linuxkit,YuPengZTE/linuxkit,yankcrime/linuxkit,yankcrime/linuxkit,rn/linuxkit