Linux 3.0.85
Greg KH
maintainerI'm announcing the release of the 3.0.85 kernel.
All users of the 3.0 kernel series must upgrade.
The updated 3.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 - drivers/net/wan/dlci.c | 26 ++++++++++++++++---- drivers/tty/serial/pch_uart.c | 29 +++++++++++++++++----- fs/exec.c | 16 +++++++----- fs/ubifs/dir.c | 54 ++++++++++++++++++++++++++++++------------ kernel/events/hw_breakpoint.c | 4 +-- net/bluetooth/l2cap_core.c | 3 ++ 7 files changed, 97 insertions(+), 37 deletions(-)
Anderson Lizardo (1):
Bluetooth: Fix crash in l2cap_build_cmd() with small MTU
Artem Bityutskiy (2):
UBIFS: prepare to fix a horrid bug
UBIFS: fix a horrid bug
Greg Kroah-Hartman (1):
Linux 3.0.85
Liang Li (1):
pch_uart: fix a deadlock when pch_uart as console
Oleg Nesterov (1):
hw_breakpoint: Use cpu_possible_mask in {reserve,release}_bp_slot()
Stephane Eranian (1):
perf: Disable monitoring on setuid processes for regular users
Zefan Li (2):
dlci: acquire rtnl_lock before calling __dev_get_by_name()
dlci: validate the net device in dlci_del()
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 84 +SUBLEVEL = 85 EXTRAVERSION = NAME = Sneaky Weasel
drivers/net/wan/dlci.c +21 -5
@@ -377,21 +377,37 @@ static int dlci_del(struct dlci_add *dlci)struct frad_local *flp;struct net_device *master, *slave;int err; +bool found = false; + +rtnl_lock ();/* validate slave device */ master =__dev_get_by_name (&init_net, dlci->devname); -if (!master) -return -ENODEV ; +if (!master) { + err = -ENODEV ; + goto out; + } + +list_for_each_entry (dlp, &dlci_devs, list) { +if (dlp->master == master) { + found = true; +break ; + } + } +if (!found) { + err = -ENODEV ; + goto out; + }if (netif_running (master)) { -return -EBUSY ; + err = -EBUSY ; + goto out; } dlp =netdev_priv (master); slave = dlp->slave; flp =netdev_priv (slave); -rtnl_lock (); err = (*flp->deassoc)(slave, master);if (!err) {list_del (&dlp->list);
@@ -400,8 +416,8 @@ static int dlci_del(struct dlci_add *dlci)dev_put (slave); } +out:rtnl_unlock (); -return err; }
drivers/tty/serial/pch_uart.c +22 -7
@@ -935,22 +935,37 @@ static unsigned int dma_handle_tx(struct eg20t_port *priv)static void pch_uart_err_ir (struct eg20t_port *priv,unsigned int lsr) {u8 fcr =ioread8 (priv->membase +UART_FCR ); +struct uart_port *port = &priv->port; +struct tty_struct *tty =tty_port_tty_get (&port->state->port); +char *error_msg[5 ] = {}; +int i =0 ;/* Reset FIFO */ fcr |=UART_FCR_CLEAR_RCVR ;iowrite8 (fcr, priv->membase +UART_FCR );if (lsr &PCH_UART_LSR_ERR ) -dev_err (&priv->pdev->dev,"Error data in FIFO\n" ); + error_msg[i++] ="Error data in FIFO\n" ; -if (lsr &UART_LSR_FE ) -dev_err (&priv->pdev->dev,"Framing Error\n" ); +if (lsr &UART_LSR_FE ) { + port->icount.frame++; + error_msg[i++] =" Framing Error\n" ; + } -if (lsr &UART_LSR_PE ) -dev_err (&priv->pdev->dev,"Parity Error\n" ); +if (lsr &UART_LSR_PE ) { + port->icount.parity++; + error_msg[i++] =" Parity Error\n" ; + } -if (lsr &UART_LSR_OE ) -dev_err (&priv->pdev->dev,"Overrun Error\n" ); +if (lsr &UART_LSR_OE ) { + port->icount.overrun++; + error_msg[i++] =" Overrun Error\n" ; + } + +if (tty ==NULL ) { +for (i =0 ; error_msg[i] !=NULL ; i++) +dev_err (&priv->pdev->dev, error_msg[i]); + } }static irqreturn_t pch_uart_interrupt (int irq,void *dev_id)
fs/exec.c +9 -7
@@ -1149,13 +1149,6 @@ void setup_new_exec(struct linux_binprm * bprm)set_dumpable (current->mm, suid_dumpable); } -/* -* Flush performance counters when crossing a -* security domain: -*/ -if (!get_dumpable (current->mm)) -perf_event_exit_task (current); -/* An exec changes our domain. We are no longer part of the thread group */
@@ -1219,6 +1212,15 @@ void install_exec_creds(struct linux_binprm *bprm)commit_creds (bprm->cred); bprm->cred =NULL ; + +/* +* Disable monitoring for regular users +* when executing setuid binaries. Must +* wait until new credentials are committed +* by commit_creds() above +*/ +if (get_dumpable (current->mm) !=SUID_DUMP_USER ) +perf_event_exit_task (current);/* * cred_guard_mutex must be held at least to this point to prevent * ptrace_attach() from altering our determination of the task's
fs/ubifs/dir.c +39 -15
125 lines not on this page · raw message
kernel/events/hw_breakpoint.c +2 -2
@@ -147,7 +147,7 @@ fetch_bp_busy_slots(struct bp_busy_slots *slots, struct perf_event *bp,return ; } -for_each_online_cpu (cpu) { +for_each_possible_cpu (cpu) {unsigned int nr; nr =per_cpu (nr_cpu_bp_pinned[type], cpu);
@@ -233,7 +233,7 @@ toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type,if (cpu >=0 ) {toggle_bp_task_slot (bp, cpu, enable, type, weight); }else { -for_each_online_cpu (cpu) +for_each_possible_cpu (cpu)toggle_bp_task_slot (bp, cpu, enable, type, weight); }
net/bluetooth/l2cap_core.c +3 -0
@@ -1514,6 +1514,9 @@ static struct sk_buff *l2cap_build_cmd(struct l2cap_conn *conn,BT_DBG ("conn %p, code 0x%2.2x, ident 0x%2.2x, len %d" , conn, code, ident, dlen); +if (conn->mtu <L2CAP_HDR_SIZE +L2CAP_CMD_HDR_SIZE ) +return NULL ; + len =L2CAP_HDR_SIZE +L2CAP_CMD_HDR_SIZE + dlen; count = min_t(unsigned int, conn->mtu, len);