]> git.pld-linux.org Git - packages/kernel.git/blob - kernel-small_fixes.patch
- resurrected small fixes patch
[packages/kernel.git] / kernel-small_fixes.patch
1 --- linux-2.6.32/drivers/infiniband/Kconfig~    2009-12-05 00:26:03.663774916 +0100
2 +++ linux-2.6.32/drivers/infiniband/Kconfig     2009-12-05 00:26:05.914179759 +0100
3 @@ -37,7 +37,6 @@
4  config INFINIBAND_ADDR_TRANS
5         bool
6         depends on INET
7 -       depends on !(INFINIBAND = y && IPV6 = m)
8         default y
9  
10  source "drivers/infiniband/hw/mthca/Kconfig"
11 --- linux-2.6.33/scripts/mod/modpost.c~ 2010-02-24 19:52:17.000000000 +0100
12 +++ linux-2.6.33/scripts/mod/modpost.c  2010-03-07 14:26:47.242168558 +0100
13 @@ -15,7 +15,8 @@
14  #include <stdio.h>
15  #include <ctype.h>
16  #include "modpost.h"
17 -#include "../../include/generated/autoconf.h"
18 +// PLD architectures don't use CONFIG_SYMBOL_PREFIX
19 +//#include "../../include/generated/autoconf.h"
20  #include "../../include/linux/license.h"
21  
22  /* Some toolchains use a `_' prefix for all user symbols. */
23
24 commit 87b09f1f25cd1e01d7c50bf423c7fe33027d7511
25 Author: stephen hemminger <shemminger@vyatta.com>
26 Date:   Fri Feb 12 06:58:00 2010 +0000
27
28     sky2: dont enable PME legacy mode
29     
30     This bit is not changed by vendor driver, and should be left alone.
31     The documentation implies this a debug bit.
32       0 = WAKE# only asserted when VMAIN not available
33       1 = WAKE# is depend on wake events and independent of VMAIN.
34     
35     Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
36     Signed-off-by: David S. Miller <davem@davemloft.net>
37
38 diff --git b/drivers/net/sky2.c a/drivers/net/sky2.c
39 index 2494842..edf37aa 100644
40 --- b/drivers/net/sky2.c
41 +++ a/drivers/net/sky2.c
42 @@ -733,6 +733,7 @@ static void sky2_wol_init(struct sky2_port *sky2)
43         unsigned port = sky2->port;
44         enum flow_control save_mode;
45         u16 ctrl;
46 +       u32 reg1;
47  
48         /* Bring hardware out of reset */
49         sky2_write16(hw, B0_CTST, CS_RST_CLR);
50 @@ -786,6 +787,11 @@ static void sky2_wol_init(struct sky2_port *sky2)
51         /* Disable PiG firmware */
52         sky2_write16(hw, B0_CTST, Y2_HW_WOL_OFF);
53  
54 +       /* Turn on legacy PCI-Express PME mode */
55 +       reg1 = sky2_pci_read32(hw, PCI_DEV_REG1);
56 +       reg1 |= PCI_Y2_PME_LEGACY;
57 +       sky2_pci_write32(hw, PCI_DEV_REG1, reg1);
58 +
59         /* block receiver */
60         sky2_write8(hw, SK_REG(port, RX_GMF_CTRL_T), GMF_RST_SET);
61  }
62
63
64
65 blk_cleanup_queue() calls elevator_exit() and after this, we can't
66 touch the elevator without oopsing.  __elv_next_request() must check
67 for this state because in the refcounted queue model, we can still
68 call it after blk_cleanup_queue() has been called.
69
70 This was reported as causing an oops attributable to scsi.
71
72 Signed-off-by: James Bottomley <James.Bottomley@suse.de>
73 ---
74  block/blk.h |    3 ++-
75  1 files changed, 2 insertions(+), 1 deletions(-)
76
77 diff --git a/block/blk.h b/block/blk.h
78 index 6126346..4df474d 100644
79 --- a/block/blk.h
80 +++ b/block/blk.h
81 @@ -62,7 +62,8 @@ static inline struct request *__elv_next_request(struct request_queue *q)
82                         return rq;
83                 }
84  
85 -               if (!q->elevator->ops->elevator_dispatch_fn(q, 0))
86 +               if (test_bit(QUEUE_FLAG_DEAD, &q->queue_flags) ||
87 +                   !q->elevator->ops->elevator_dispatch_fn(q, 0))
88                         return NULL;
89         }
90  }
91 -- 
92 1.7.4.1
93
94
95
96 --
97 To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
98 the body of a message to majordomo@vger.kernel.org
99 More majordomo info at  http://vger.kernel.org/majordomo-info.htmlcommit a5b2c5b2ad5853591a6cac6134cd0f599a720865
100 Author: Kees Cook <kees.cook@canonical.com>
101 Date:   Tue May 31 11:31:41 2011 -0700
102
103     AppArmor: fix oops in apparmor_setprocattr
104     
105     When invalid parameters are passed to apparmor_setprocattr a NULL deref
106     oops occurs when it tries to record an audit message. This is because
107     it is passing NULL for the profile parameter for aa_audit. But aa_audit
108     now requires that the profile passed is not NULL.
109     
110     Fix this by passing the current profile on the task that is trying to
111     setprocattr.
112     
113     Signed-off-by: Kees Cook <kees@ubuntu.com>
114     Signed-off-by: John Johansen <john.johansen@canonical.com>
115     Cc: stable@kernel.org
116     Signed-off-by: James Morris <jmorris@namei.org>
117
118 diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c
119 index ae3a698..ec1bcec 100644
120 --- a/security/apparmor/lsm.c
121 +++ b/security/apparmor/lsm.c
122 @@ -593,7 +593,8 @@ static int apparmor_setprocattr(struct task_struct *task, char *name,
123                         sa.aad.op = OP_SETPROCATTR;
124                         sa.aad.info = name;
125                         sa.aad.error = -EINVAL;
126 -                       return aa_audit(AUDIT_APPARMOR_DENIED, NULL, GFP_KERNEL,
127 +                       return aa_audit(AUDIT_APPARMOR_DENIED,
128 +                                       __aa_current_profile(), GFP_KERNEL,
129                                         &sa, NULL);
130                 }
131         } else if (strcmp(name, "exec") == 0) {
This page took 0.046566 seconds and 4 git commands to generate.