mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg KH <gregkh@suse.de>
To: linux-kernel@vger.kernel.org, stable@kernel.org
Cc: stable-review@kernel.org, torvalds@linux-foundation.org,
	akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk,
	"David S. Miller" <davem@davemloft.net>,
	Moritz Muehlenhoff <jmm@debian.org>
Subject: [66/71] econet: Fix crash in aun_incoming().
Date: Wed, 13 Apr 2011 09:10:29 -0700	[thread overview]
Message-ID: <20110413161049.528295657@clark.kroah.org> (raw)
In-Reply-To: <20110413161106.GA20405@kroah.com>

2.6.33-longterm review patch.  If anyone has any objections, please let us know.

------------------

From: David S. Miller <davem@davemloft.net>

commit 4e085e76cbe558b79b54cbab772f61185879bc64 upstream.

Unconditional use of skb->dev won't work here,
try to fetch the econet device via skb_dst()->dev
instead.

Suggested by Eric Dumazet.

Reported-by: Nelson Elhage <nelhage@ksplice.com>
Tested-by: Nelson Elhage <nelhage@ksplice.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Moritz Muehlenhoff <jmm@debian.org>
[jmm: Slightly adapted for 2.6.32]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 net/econet/af_econet.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--- a/net/econet/af_econet.c
+++ b/net/econet/af_econet.c
@@ -844,9 +844,13 @@ static void aun_incoming(struct sk_buff
 {
 	struct iphdr *ip = ip_hdr(skb);
 	unsigned char stn = ntohl(ip->saddr) & 0xff;
+	struct dst_entry *dst = skb_dst(skb);
+	struct ec_device *edev = NULL;
 	struct sock *sk;
 	struct sk_buff *newskb;
-	struct ec_device *edev = skb->dev->ec_ptr;
+
+	if (dst)
+		edev = dst->dev->ec_ptr;
 
 	if (! edev)
 		goto bad;



  parent reply	other threads:[~2011-04-13 16:13 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-13 16:11 [00/71] 2.6.33.10-longterm review Greg KH
2011-04-13 16:09 ` [01/71] ALSA: HDA: New AD1984A model for Dell Precision R5500 Greg KH
2011-04-13 16:09 ` [02/71] ALSA: hda - Fix SPDIF out regression on ALC889 Greg KH
2011-04-13 16:09 ` [03/71] ALSA: Fix yet another race in disconnection Greg KH
2011-04-13 16:09 ` [04/71] perf: Better fit max unprivileged mlock pages for tools needs Greg KH
2011-04-13 16:09 ` [05/71] myri10ge: fix rmmod crash Greg KH
2011-04-13 16:09 ` [06/71] cciss: fix lost command issue Greg KH
2011-04-13 16:09 ` [07/71] sound/oss/opl3: validate voice and channel indexes Greg KH
2011-04-13 16:09 ` [08/71] mac80211: initialize sta->last_rx in sta_info_alloc Greg KH
2011-04-13 16:09 ` [09/71] [SCSI] ses: show devices for enclosures with no page 7 Greg KH
2011-04-13 16:09 ` [10/71] [SCSI] ses: Avoid kernel panic when lun 0 is not mapped Greg KH
2011-04-13 16:09 ` [11/71] eCryptfs: Unlock page in write_begin error path Greg KH
2011-04-13 16:09 ` [12/71] eCryptfs: ecryptfs_keyring_auth_tok_for_sig() bug fix Greg KH
2011-04-13 16:09 ` [13/71] staging: usbip: bugfixes related to kthread conversion Greg KH
2011-04-13 16:09 ` [14/71] staging: usbip: bugfix add number of packets for isochronous frames Greg KH
2011-04-13 16:09 ` [15/71] staging: usbip: bugfix for isochronous packets and optimization Greg KH
2011-04-13 16:09 ` [16/71] staging: hv: use sync_bitops when interacting with the hypervisor Greg KH
2011-04-13 16:09 ` [17/71] Relax si_code check in rt_sigqueueinfo and rt_tgsigqueueinfo Greg KH
2011-04-13 16:09 ` [18/71] xfs: prevent leaking uninitialized stack memory in FSGEOMETRY_V1 Greg KH
2011-04-14  3:50   ` [Stable-review] " Ben Hutchings
2011-04-13 16:09 ` [19/71] irda: validate peer name and attribute lengths Greg KH
2011-04-13 16:09 ` [20/71] irda: prevent heap corruption on invalid nickname Greg KH
2011-04-13 16:09 ` [21/71] nilfs2: fix data loss in mmap page write for hole blocks Greg KH
2011-04-13 16:09 ` [22/71] ASoC: Explicitly say registerless widgets have no register Greg KH
2011-04-13 16:09 ` [23/71] ALSA: ens1371: fix Creative Ectiva support Greg KH
2011-04-13 16:09 ` [24/71] ROSE: prevent heap corruption with bad facilities Greg KH
2011-04-13 16:09 ` [25/71] Btrfs: Fix uninitialized root flags for subvolumes Greg KH
2011-04-13 16:09 ` [26/71] x86, mtrr, pat: Fix one cpu getting out of sync during resume Greg KH
2011-04-13 16:09 ` [27/71] ath9k: fix a chip wakeup related crash in ath9k_start Greg KH
2011-04-13 16:09 ` [28/71] UBIFS: do not read flash unnecessarily Greg KH
2011-04-13 16:09 ` [29/71] UBIFS: fix oops on error path in read_pnode Greg KH
2011-04-13 16:09 ` [30/71] UBIFS: fix debugging failure in dbg_check_space_info Greg KH
2011-04-13 16:09 ` [31/71] quota: Dont write quota info in dquot_commit() Greg KH
2011-04-13 16:09 ` [32/71] mm: avoid wrapping vm_pgoff in mremap() Greg KH
2011-04-13 16:09 ` [33/71] p54usb: IDs for two new devices Greg KH
2011-04-13 16:09 ` [34/71] b43: allocate receive buffers big enough for max frame len + offset Greg KH
2011-04-13 16:09 ` [35/71] Bluetooth: sco: fix information leak to userspace Greg KH
2011-04-13 16:09 ` [36/71] bridge: netfilter: fix information leak Greg KH
2011-04-13 16:10 ` [37/71] Bluetooth: bnep: fix buffer overflow Greg KH
2011-04-13 16:10 ` [38/71] Bluetooth: add support for Apple MacBook Pro 8,2 Greg KH
2011-04-13 16:10 ` [39/71] Treat writes as new when holes span across page boundaries Greg KH
2011-04-13 16:10 ` [40/71] char/tpm: Fix unitialized usage of data buffer Greg KH
2011-04-13 16:10 ` [41/71] netfilter: ip_tables: fix infoleak to userspace Greg KH
2011-04-13 16:10 ` [42/71] netfilter: arp_tables: " Greg KH
2011-04-13 16:10 ` [43/71] netfilter: ipt_CLUSTERIP: fix buffer overflow Greg KH
2011-04-13 16:10 ` [44/71] ipv6: netfilter: ip6_tables: fix infoleak to userspace Greg KH
2011-04-13 16:10 ` [45/71] mfd: ab3100: world-writable debugfs *_priv files Greg KH
2011-04-13 16:10 ` [46/71] drivers/rtc/rtc-ds1511.c: world-writable sysfs nvram file Greg KH
2011-04-13 16:10 ` [47/71] drivers/misc/ep93xx_pwm.c: world-writable sysfs files Greg KH
2011-04-13 16:10 ` [48/71] econet: 4 byte infoleak to the network Greg KH
2011-04-13 16:10 ` [49/71] netfilter: h323: bug in parsing of ASN1 SEQOF field Greg KH
2011-04-13 16:10 ` [50/71] sound/oss: remove offset from load_patch callbacks Greg KH
2011-04-13 16:10 ` [51/71] sound: oss: midi_synth: check get_user() return value Greg KH
2011-04-13 16:10 ` [52/71] repair gdbstub to match the gdbserial protocol specification Greg KH
2011-04-13 16:10 ` [53/71] gro: Reset dev pointer on reuse Greg KH
2011-04-13 16:10 ` [54/71] gro: reset skb_iif " Greg KH
2011-04-13 16:10 ` [55/71] powerpc/kexec: Add ifdef CONFIG_PPC_STD_MMU_64 to PPC64 code Greg KH
2011-04-13 16:10 ` [56/71] powerpc: Fix default_machine_crash_shutdown #ifdef botch Greg KH
2011-04-13 16:10 ` [57/71] [PATCH] Revert "x86: Cleanup highmap after brk is concluded" Greg KH
2011-04-13 16:10 ` [58/71] Squashfs: handle corruption of directory structure Greg KH
2011-04-13 16:10 ` [59/71] atm/solos-pci: Dont include frame pseudo-header on transmit hex-dump Greg KH
2011-04-13 16:10 ` [60/71] net: ax25: fix information leak to userland Greg KH
2011-04-13 16:10 ` [61/71] net: packet: " Greg KH
2011-04-13 16:10 ` [62/71] ext4: fix credits computing for indirect mapped files Greg KH
2011-04-13 16:10 ` [63/71] nfsd: fix auth_domain reference leak on nlm operations Greg KH
2011-04-13 16:10 ` [64/71] net: tipc: fix information leak to userland Greg KH
2011-04-13 16:10 ` [65/71] inet_diag: Make sure we actually run the same bytecode we audited Greg KH
2011-04-13 16:10 ` Greg KH [this message]
2011-04-13 16:10 ` [67/71] irda: prevent integer underflow in IRLMP_ENUMDEVICES Greg KH
2011-04-13 16:10 ` [68/71] CAN: Use inode instead of kernel address for /proc file Greg KH
2011-04-13 16:10 ` [69/71] exec: make argv/envp memory visible to oom-killer Greg KH
2011-04-13 16:10 ` [70/71] exec: copy-and-paste the fixes into compat_do_execve() paths Greg KH
2011-04-13 16:10 ` [71/71] net: fix rds_iovec page count overflow Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110413161049.528295657@clark.kroah.org \
    --to=gregkh@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=davem@davemloft.net \
    --cc=jmm@debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable-review@kernel.org \
    --cc=stable@kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®