Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 75008 Details for
Bug 113322
Kernel: Information leak in Orinoco driver (CVE-2005-3180)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
pcmcia-cs-3.2.8-orinoco-memleak.patch
pcmcia-cs-3.2.8-orinoco-memleak.patch (text/plain), 1.17 KB, created by
Henrik Brix Andersen
on 2005-12-18 05:13:08 UTC
(
hide
)
Description:
pcmcia-cs-3.2.8-orinoco-memleak.patch
Filename:
MIME Type:
Creator:
Henrik Brix Andersen
Created:
2005-12-18 05:13:08 UTC
Size:
1.17 KB
patch
obsolete
>diff -urp pcmcia-cs-3.2.8/wireless/orinoco.c pcmcia-cs-3.2.8-orinoco-memleak/wireless/orinoco.c >--- pcmcia-cs-3.2.8/wireless/orinoco.c 2004-04-09 05:55:09.000000000 +0200 >+++ pcmcia-cs-3.2.8-orinoco-memleak/wireless/orinoco.c 2005-12-18 14:08:29.000000000 +0100 >@@ -2362,9 +2362,14 @@ orinoco_xmit(struct sk_buff *skb, struct > return 0; > } > >- /* Length of the packet body */ >- /* FIXME: what if the skb is smaller than this? */ >- len = max_t(int,skb->len - ETH_HLEN, ETH_ZLEN - ETH_HLEN); >+ /* Check packet length, pad short packets, round up odd length */ >+ len = max_t(int, ALIGN(skb->len, 2), ETH_ZLEN); >+ if (skb->len < len) { >+ skb = skb_padto(skb, len); >+ if (skb == NULL) >+ goto fail; >+ } >+ len -= ETH_HLEN; > > eh = (struct ethhdr *)skb->data; > >@@ -2414,8 +2419,7 @@ orinoco_xmit(struct sk_buff *skb, struct > p = skb->data; > } > >- /* Round up for odd length packets */ >- err = hermes_bap_pwrite(hw, USER_BAP, p, RUP_EVEN(data_len), txfid, data_off); >+ err = hermes_bap_pwrite(hw, USER_BAP, p, data_len, txfid, data_off); > if (err) { > printk(KERN_ERR "%s: Error %d writing packet to BAP\n", > dev->name, err); >Only in pcmcia-cs-3.2.8-orinoco-memleak/wireless: orinoco.c~
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 113322
: 75008