[linux] 01/02: Ignore/fix ABI changes as appropriate

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Thu Apr 27 19:54:54 UTC 2017


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch wheezy-security
in repository linux.

commit 3f005c070357a1b50db504c2587faa1391506d18
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Thu Apr 27 02:52:07 2017 +0100

    Ignore/fix ABI changes as appropriate
---
 debian/changelog                                   |  2 +
 debian/config/defines                              |  1 +
 ...change-for-net-fix-sk_mem_reclaim_partial.patch | 80 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 4 files changed, 84 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 3eb6bc5..f66fb9a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -196,6 +196,8 @@ linux (3.2.88-1) UNRELEASED; urgency=medium
   * crypto: hash - Pull out the functions to save/restore request
   * crypto: hash - Simplify the ahash_finup implementation
   * crypto: ahash - Fix EINPROGRESS notification callback (CVE-2017-7618)
+  * can: Ignore ABI change
+  * net: Avoid ABI change for "net: fix sk_mem_reclaim_partial()"
 
  -- Ben Hutchings <ben at decadent.org.uk>  Mon, 13 Mar 2017 23:12:35 +0000
 
diff --git a/debian/config/defines b/debian/config/defines
index 8b82ebe5..ac7a1ba 100644
--- a/debian/config/defines
+++ b/debian/config/defines
@@ -98,6 +98,7 @@ ignore-changes:
  scm_fp_dup
  af_alg_*
  module:drivers/net/can/can-dev
+ can_rx_register
 
 [base]
 arches:
diff --git a/debian/patches/debian/net-avoid-abi-change-for-net-fix-sk_mem_reclaim_partial.patch b/debian/patches/debian/net-avoid-abi-change-for-net-fix-sk_mem_reclaim_partial.patch
new file mode 100644
index 0000000..c629a4b
--- /dev/null
+++ b/debian/patches/debian/net-avoid-abi-change-for-net-fix-sk_mem_reclaim_partial.patch
@@ -0,0 +1,80 @@
+From: Ben Hutchings <ben at decadent.org.uk>
+Subject: net: Avoid ABI change for "net: fix sk_mem_reclaim_partial()"
+Date: Sun, 02 Apr 2017 01:31:03 +0100
+Forwarded: not-needed
+
+Commit 1a24e04e4b50939daa3041682b38b82c896ca438 added a parameter to
+__sk_mem_reclaim().  Rename the modified function to
+__sk_mem_reclaim_amount() and add an ABI-compatible wrapper.
+
+---
+--- a/include/net/sock.h
++++ b/include/net/sock.h
+@@ -962,7 +962,8 @@ static inline struct inode *SOCK_INODE(s
+  * Functions for memory accounting
+  */
+ extern int __sk_mem_schedule(struct sock *sk, int size, int kind);
+-void __sk_mem_reclaim(struct sock *sk, int amount);
++void __sk_mem_reclaim(struct sock *sk);
++void __sk_mem_reclaim_amount(struct sock *sk, int amount);
+ 
+ #define SK_MEM_QUANTUM ((int)PAGE_SIZE)
+ #define SK_MEM_QUANTUM_SHIFT ilog2(SK_MEM_QUANTUM)
+@@ -1001,7 +1002,7 @@ static inline void sk_mem_reclaim(struct
+ 	if (!sk_has_account(sk))
+ 		return;
+ 	if (sk->sk_forward_alloc >= SK_MEM_QUANTUM)
+-		__sk_mem_reclaim(sk, sk->sk_forward_alloc);
++		__sk_mem_reclaim_amount(sk, sk->sk_forward_alloc);
+ }
+ 
+ static inline void sk_mem_reclaim_partial(struct sock *sk)
+@@ -1009,7 +1010,7 @@ static inline void sk_mem_reclaim_partia
+ 	if (!sk_has_account(sk))
+ 		return;
+ 	if (sk->sk_forward_alloc > SK_MEM_QUANTUM)
+-		__sk_mem_reclaim(sk, sk->sk_forward_alloc - 1);
++		__sk_mem_reclaim_amount(sk, sk->sk_forward_alloc - 1);
+ }
+ 
+ static inline void sk_mem_charge(struct sock *sk, int size)
+@@ -1033,7 +1034,7 @@ static inline void sk_mem_uncharge(struc
+ 	 * no need to hold that much forward allocation anyway.
+ 	 */
+ 	if (unlikely(sk->sk_forward_alloc >= 1 << 21))
+-		__sk_mem_reclaim(sk, 1 << 20);
++		__sk_mem_reclaim_amount(sk, 1 << 20);
+ }
+ 
+ static inline void sk_wmem_free_skb(struct sock *sk, struct sk_buff *skb)
+--- a/net/core/sock.c
++++ b/net/core/sock.c
+@@ -1755,11 +1755,11 @@ suppress_allocation:
+ EXPORT_SYMBOL(__sk_mem_schedule);
+ 
+ /**
+- *	__sk_reclaim - reclaim memory_allocated
++ *	__sk_reclaim_amount - reclaim memory_allocated
+  *	@sk: socket
+  *	@amount: number of bytes (rounded down to a SK_MEM_QUANTUM multiple)
+  */
+-void __sk_mem_reclaim(struct sock *sk, int amount)
++void __sk_mem_reclaim_amount(struct sock *sk, int amount)
+ {
+ 	struct proto *prot = sk->sk_prot;
+ 
+@@ -1771,8 +1771,13 @@ void __sk_mem_reclaim(struct sock *sk, i
+ 	    (atomic_long_read(prot->memory_allocated) < prot->sysctl_mem[0]))
+ 		*prot->memory_pressure = 0;
+ }
+-EXPORT_SYMBOL(__sk_mem_reclaim);
++EXPORT_SYMBOL(__sk_mem_reclaim_amount);
+ 
++void __sk_mem_reclaim(struct sock *sk)
++{
++	__sk_mem_reclaim_amount(sk, sk->sk_forward_alloc);
++}
++EXPORT_SYMBOL(__sk_mem_reclaim);
+ 
+ /*
+  * Set of default routines for initialising struct proto_ops when
diff --git a/debian/patches/series b/debian/patches/series
index 35a3f03..8b82de6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1195,3 +1195,4 @@ debian/fs-move-procfs-ecryptfs-stacking-check-into-ecryptfs.patch
 debian/i8042-revert-abi-break-in-3.2.84.patch
 debian/fs-fix-abi-change-in-3.2.84.patch
 debian/net-fix-abi-change-for-sk_filter-changes.patch
+debian/net-avoid-abi-change-for-net-fix-sk_mem_reclaim_partial.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list