Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: app-emulation/qemu/, app-emulation/qemu/files/
Date: Sun, 31 Jul 2016 20:27:05
Message-Id: 1469996811.a2b78563ef3f58c09a756de24bdf2483a3850d9d.blueness@gentoo
1 commit: a2b78563ef3f58c09a756de24bdf2483a3850d9d
2 Author: Felix Janda <felix.janda <AT> posteo <DOT> de>
3 AuthorDate: Sun Jul 31 18:46:01 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 31 20:26:51 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=a2b78563
7
8 app-emulation/qemu: bump to 2.5.1
9
10 app-emulation/qemu/Manifest | 25 +----
11 app-emulation/qemu/files/qemu-1.7.0-cflags.patch | 11 --
12 .../qemu/files/qemu-2.5.0-9pfs-segfault.patch | 34 ------
13 .../qemu/files/qemu-2.5.0-CVE-2015-8558.patch | 50 ---------
14 .../qemu/files/qemu-2.5.0-CVE-2015-8567.patch | 95 ----------------
15 .../qemu/files/qemu-2.5.0-CVE-2015-8613.patch | 35 ------
16 .../qemu/files/qemu-2.5.0-CVE-2015-8619.patch | 121 ---------------------
17 .../qemu/files/qemu-2.5.0-CVE-2015-8701.patch | 49 ---------
18 .../qemu/files/qemu-2.5.0-CVE-2015-8743.patch | 50 ---------
19 .../qemu/files/qemu-2.5.0-CVE-2016-1568.patch | 41 -------
20 .../qemu/files/qemu-2.5.0-CVE-2016-1714.patch | 58 ----------
21 .../qemu/files/qemu-2.5.0-CVE-2016-1922.patch | 65 -----------
22 .../qemu/files/qemu-2.5.0-CVE-2016-1981.patch | 98 -----------------
23 .../qemu/files/qemu-2.5.0-CVE-2016-2197.patch | 43 --------
24 .../qemu/files/qemu-2.5.0-CVE-2016-2392.patch | 35 ------
25 .../qemu/files/qemu-2.5.0-ne2000-reg-check.patch | 37 -------
26 .../qemu/files/qemu-2.5.0-usb-ehci-oob.patch | 52 ---------
27 .../files/qemu-2.5.0-usb-ndis-int-overflow.patch | 59 ----------
28 .../qemu/files/qemu-2.5.1-CVE-2015-8558.patch | 107 ++++++++++++++++++
29 .../qemu/files/qemu-2.5.1-CVE-2016-4020.patch | 16 +++
30 .../files/qemu-2.5.1-stellaris_enet-overflow.patch | 47 ++++++++
31 .../qemu/files/qemu-2.5.1-xfs-linux-headers.patch | 82 ++++++++++++++
32 ...emu-2.5.0-r999.ebuild => qemu-2.5.1-r99.ebuild} | 30 ++---
33 23 files changed, 267 insertions(+), 973 deletions(-)
34
35 diff --git a/app-emulation/qemu/Manifest b/app-emulation/qemu/Manifest
36 index 4e4858a..5d10f94 100644
37 --- a/app-emulation/qemu/Manifest
38 +++ b/app-emulation/qemu/Manifest
39 @@ -1,34 +1,21 @@
40 AUX 65-kvm.rules 40 SHA256 c16a8dc7855880b2651f1a3ff488ecc54d4ac1036c71fffd5007021d8d18a7c5 SHA512 98aad2a2f212a7ac0ee5b60a9c92744fa462bce5f26594845c7a31d692aaaca2d52cb57bdbede7dfc60b9862c2a6510665dbb03215d5cf76e62516a283decdd6 WHIRLPOOL 937de93a23930f6b8533f0c3e0dd249c99ddf7d54446dea857607266ac0a4b435c5b4a52b2986b138bace9c0a7ade66f94116b38e2bc4767ead54bd11baf0920
41 AUX bridge.conf 454 SHA256 a51850dd39923f3482e4c575b48ad9fef9c9ebb2f2176225da399b79ce48c69d SHA512 a907ee86b81a1b61033bb7621ded65112504131ef7b698c53e4014b958ee6fc79e66f63069015a01e41362cb70a7d0ed26dd9a03033cf776f4846f0e1f8f1533 WHIRLPOOL 8fcbd4abf9b8f7ca3d16fe0eaf17196ebf708dfecf85ce0f020e0de22b64905114f7b310f361826c81bb961c6b1bbbf984bff1e595bb949993b8966ccb222c35
42 -AUX qemu-1.7.0-cflags.patch 300 SHA256 8f35e55c4bae93e82f9580eabe2d6a2d4660bd05343e1f4e6c33815deeede91e SHA512 54446cb555b623b2306f8a323713e4dfb1b8b7bbf3af3771d5b62e164e0672cc21cbe44f08ca8b58052523e8d629e16355a44ebb544a999a44d11ac3af671f1c WHIRLPOOL b903b4abefeeb09a2ab2d1ee224de5d3694f99f50aacfe33882fce0c1c87c23dae4d57b001d1c35cc96fffa93d43fac4a8ab30a3e45fe1f380580162c0332e78
43 AUX qemu-2.0.0-F_SHLCK-and-F_EXLCK.patch 563 SHA256 99de67d610ad13a1dcf6c67a3c2b5b87fb909220173a956435737f9bea3c371b SHA512 a29e9a889388a6627ed492a79e66514ffb5e64f9479646982091811548fc2a9bf6682104a6c774d83e645e4b1db39e491afd4efce789fe164623442a7f3e5d00 WHIRLPOOL d3aab06099de263c22f4c71810a3b2cb8602d17731ec76674cd1415e539306555a7b96b789f0daad473600dfa04a83224ff603f7b9a9ac63a4902f74d0e9deb5
44 AUX qemu-2.0.0-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch 930 SHA256 6af6cf9044997710a6d0fbdba30a35c8d775e30d30c032ec97db672f75ec88ac SHA512 ec84b27648c01c6e58781295dcd0c2ff8e5a635f9836ef50c1da5d0ed125db1afc4cb5b01cb97606d6dd8f417acba93e1560d9a32ca29161a4bb730b302440ea WHIRLPOOL 06b9dd5251ac03405c97b1f5a623b4d86bda2f72fbcd52b90ae4d11a0cfb59cae62df2cb6189405fbe53ab05ff2b7ca8165fda239dbfe5f31ed70abb53b3b9f3
45 AUX qemu-2.2.0-_sigev_un.patch 636 SHA256 f3b9a4d6162c553f3110ad22716305818e2130e2ff5d628faf044fc58a5e3cb5 SHA512 f72b879daede5184904f64cabb276de96299a37a93fce444d09e9068671009e95a5e5d6b815ec41a5db5b3807de14d470a56bba5806ffd4dfec577577b046ccb WHIRLPOOL 9453ad4966e10d504f3e867fd984642a3c1ee3ae847b5ca56196fd1f9e6c0f2d7b52ca07446212af72fef6d0ded1527a5eb306fa6cd915e8dd9ce11523362bac
46 -AUX qemu-2.5.0-9pfs-segfault.patch 1294 SHA256 707835ed8af1aa7e8fc9f0e06c6afa8e77fe7858b20ad4c2df2a1aec0627332d SHA512 2af7498939ba653c36808a7bccafe4a3d8c3d1cfa7199c5788f67fb001925dff17e4faba5e13c6b1517ca887209452f4ba7ed71f6b4464d55b5e942350406f90 WHIRLPOOL 591ba85bd9e5ab0665ed5835878886ec0d774a500ed966dd1b37e5478a4799a38d319a6bb88d214f202a83282db6a0434641b30c8b70ceef6bd2fb1e38f8faef
47 -AUX qemu-2.5.0-CVE-2015-8558.patch 1459 SHA256 d769e6eb6dc0bdb0b982ef5fe7d73cc6bad47233102f53d11c6ed6c9051602d8 SHA512 42961191890c500675610d5d33e6ff468b07428c6b428ac01bb5c0e3ea88ff611a3532f848d54317458475fef221a06e41761ef14ea61d1b741db73450c4f90d WHIRLPOOL 475679dc1a24bc75012995a9a2122847454701b65ff0b7f8192865b45de49ce08572f129a7cfdeb36521252ed2f80c95e9dddbd64cb8e39fdc5beacc25934798
48 -AUX qemu-2.5.0-CVE-2015-8567.patch 3108 SHA256 88b72df4e02407c3b9ca4835c38988b97fcd5aa9c68da6fa47207fe675d4e661 SHA512 2f0243ec9764d72fe5e7a005a8db40d3d5c4c2edae5c3451087ee3f5c841c96a3112875cf88a19061fa2ce0d04715d247e6eb1eb83e1e5b57ec0b9eb324b8ce6 WHIRLPOOL b432ff3e105da5c0bd20dd1d7da0374f4005b2ac5a9a8c824e96730aeafa89bb8fc125f8b2857fdaf72024082ddbc0c7a28c3e3ffb9114c3d370db1b638c4731
49 -AUX qemu-2.5.0-CVE-2015-8613.patch 1264 SHA256 c8df9bb4c0100ef6c8ae09acd73878e46b3ad4a9e04b9cfe30445922bc33299c SHA512 ea2bf909ec29bab0b2131bf9d3e8fc04f176393258c4ce578d3ac8d76f09a25b96f8a3b2aa450b47c0ba9bc9637e5b93e7cc53542362b48930de18ceebb07698 WHIRLPOOL f0d415b1df9f05cb0431801054535f8939d46e7dda6eaa5ce990eef82ddc458003eb9ae5dc06e3269ddb5ed8f8c903c1f3d058d41e63ea9a5192b6149283feb2
50 -AUX qemu-2.5.0-CVE-2015-8619.patch 4220 SHA256 325bb3df340a1f5115a345a145bed94e9b2d5721cf8cce1217138e8d5a8a0c1a SHA512 317e882da18332fe667c10c55b8f026d347d93c61f668e8ddb916f1b0f5e39a9e3104c14ab2306ce761024a02a78af3a4808627ad9f18c0d43d748fd30c21505 WHIRLPOOL feddd255cf3844cd270ca2662f6140cc7104f8328e51acb01dc2f6f1b4646061569f5faa629264ebeaa5a2b18e595c4a90b69a588aa05f1acf70d9570067c6c0
51 -AUX qemu-2.5.0-CVE-2015-8701.patch 1671 SHA256 f39e0c6301cffa1b14c3ef0ab72fce0e2acd42170759ef7954234d31602aeb99 SHA512 d39edf84e2d17e6080bbc4a270732cd73b41fa39d948ee7bc4456e1024c5a69ddfb5e848af3272615f5aa36a3b6410a12f5a73e00ccfa58e0d60d7289d034aa9 WHIRLPOOL 352148c367837ba2d6eb5eb39e00c128f0cff3faef159754a41318857bc11a6616be184c24df4767ec2c8c14910ad74fc3be48273f6312b1687910fbcaf7bec3
52 -AUX qemu-2.5.0-CVE-2015-8743.patch 1777 SHA256 22aac571c1aa6f6a283d200a7703fdfea0a5bcaf227a003a2cbf5741bbb8df85 SHA512 65d8632fd43959983ca02f9ab116ec78ea043e6d867e6d743014885c2a423bb3b87c2e56caa37e7f29e971a44f5ea695cb4ce1c3a9c1fc2d734b25ca0b2f4054 WHIRLPOOL 9128c812cfbfe3d4629cd6c7c2c6f50c9ef2fe2d5b62b24486559279296987f593f852f913eb67fbe956d650d50612fa7a658a60b3d80cf4fa9256e332d77330
53 -AUX qemu-2.5.0-CVE-2016-1568.patch 1476 SHA256 ba2a25142977eea531159d81ef8938e8519c92800aa1958e71da9e2780c8256a SHA512 643ef742e6cd1dbc8f420b38f684bc8639e4bd58ab38c254654d4b1a72b129202fecdddddfd308b48ed7813da193edff68d737080d5035c82daf9676ee17df22 WHIRLPOOL af9376400540f20d77ea06cb6a12ce415b72bb22cdde3365bba8b02deb8985aedfee303646e13e1d1263a2dcd17bf1518637183a81c66c2db7b438aa88ef7d95
54 -AUX qemu-2.5.0-CVE-2016-1714.patch 2168 SHA256 2a366b01f5c05a87324ca765cea90bc93eda819d264932ac4588e6303e0b7dee SHA512 25f5f67dbcb2175bac1b5d6d11bf6b27019526c0ee43ed8580a0de10bf82ac62e5a71ded4d18c0e561d8d3832da630c92f9f118277da349367f55b4939029216 WHIRLPOOL 600d0c90779aaf7c1840e106359c909d486c7cce483edc0e5ddc627a127c907f5dd9cbd5b8ce561e2675f6bfe8cd0502efa96557601ce26eda2311b1072ab48b
55 -AUX qemu-2.5.0-CVE-2016-1922.patch 2114 SHA256 a10d23d5ff3d021aa0962c79a397b69518cec6cd570ebea771f03513d4b7eb1a SHA512 af895fd14e876f808203279176c5f5c28d95d0137385c6d0e56e27f9ad70b76552b8ce75a3be368ceed94fbc62999e8d6c5e6dbcd35e99d59c57787afe6ac57d WHIRLPOOL 199ec0c9bc766968778e5733e1ca0773999a3cccfa779d8fdf68c2ed866a1427048b0db9730eb2a1521be5e174ea6388b69053c85d0d25144e73df25ec7829a9
56 -AUX qemu-2.5.0-CVE-2016-1981.patch 4160 SHA256 ad440f4964670e68846a3469e0cb0eca3ecf11cfc5c2e32b09581b64eef43ab7 SHA512 f133a311da42cc831116251550359949e0f23f1163a7b0e638fc5f43edf1dea17a5e5843a06142c3086ef367d94898b074eebf8c371ea83b7a3981cfd20c4e27 WHIRLPOOL ba6e563917773d4488f51c11864a6ce1a4331ba6fc7925f47768282ea75f1a26c51792063c946579d49b28e3ed7a854a191732c1ba7ec40628395e971cf67782
57 -AUX qemu-2.5.0-CVE-2016-2197.patch 1358 SHA256 caa5eb42b21a3fc656982fdc4e511c8350eeb0511857d9b8f371e4e926c2ac80 SHA512 ee6467ef00c5db1e6c5f6331ec411afd139e7e8c5d5e23e3ee33b3161f0e79028ddecfa661bf4bfb5bac0cfa91385f69d66b57c5337384817f0756b7575aa099 WHIRLPOOL 67bab11771159560fd080d157477aa227aa351bb8101671c0e778a38a15d607a2346ade7b10310914f93d5a1faeb993003590e7bf75cd5c9d06db0c687085b51
58 AUX qemu-2.5.0-CVE-2016-2198.patch 1540 SHA256 0d6d81a27ffac1af7c478a050aa690eb007cf9735a1a0c4b398eabeb990d5ab4 SHA512 b0b3131bb2b9b2d3f2a3f3286eeb92b527f0d3366e657cf8bcbabc6426b57893936c5a8ef66697ad1014b4525c09fa4d067195600f96ab2b005fd52b6e77d9a4 WHIRLPOOL f5c56b87f934c573fc71169fcded579b9917285fbfff59fd9288011775f482ead2ac09e1399f325e826305fab2f7bc2cd21d333711c526c1658a069a5ee93491
59 -AUX qemu-2.5.0-CVE-2016-2392.patch 1265 SHA256 a81d906bcf18fb5cf76fa5fa686c848a33f43054bff03a7a2e0e391a34884be8 SHA512 cac6503176f1e37fa6e9bab1daa4bbec6fb6fb3be4ec2e30427356969f3310b8bb898356f9e7f786e75c3ba07b9bc7afb9f0ac7a99adc12847de49b55c0d7960 WHIRLPOOL 65456ade1b773ebfe629ab0fb0045613b4d2f0f5c2d9ec20409170cba5011de46800bf1dd42a78334fe5166a2c8201e6505f3db904474cd4c28d1e88df0f9daf
60 AUX qemu-2.5.0-cflags.patch 410 SHA256 17f5624dd733f5c80e733cc67ae36a736169ec066024dbf802b416accfed0755 SHA512 0194d28de08b4e51c5bd1c9a2cc7965ba7f66dfddb8fd91de3da93677e6cf2d38ad3270f69aaea8a20cf2533c2980018d6e0fed711be2806fe2053fba7c081f3 WHIRLPOOL 5f5b95d00409fbe03adb64801d30a2fb5f98dded5efa7f0e78b5746776f72917dcbea767e1d0afcb304d8bf8c484adedb8037e6d54e9d34997c2bc3a98b53154
61 -AUX qemu-2.5.0-ne2000-reg-check.patch 1141 SHA256 b64fd5bfbd9c7b37b9003271e9902db4ea28b71095a51e161c7698e2f690183b SHA512 7f94ef8cb023224750abc5c2c7d515ccc6ce7f8b655a1454673ecc291193551b9ae00c248c609368a0cf143888ba2c3a5a929a4f9477e5efd27f92c45abc8722 WHIRLPOOL 43fec025a08e0aa0c14ab5ac11cd9aa49b03e52e3fcaacb6785ecd25aa531edfd04a5f8913330e27acf046f8cad2c57887e1a353779ee73ab8bb2dad65c446a7
62 AUX qemu-2.5.0-rng-stack-corrupt-0.patch 3125 SHA256 164b155db78a9291b9f8dea71a16b5779e1a9d382a8cb0f5ff380d1f2d811cef SHA512 7da544873dbefbbc7a2ed69bd7cca0053bfe71ef7f5c2faf12cb5dc6e07b8d9104e5bcf329b3355e886edc5805509623234c9fe8fb536544d6285b04ccc59919 WHIRLPOOL f076264ce4bae5be2f34e006e3e4dcc20042313cb6da4977b61529c3100e835952807738d53a86967f98abad68eba1c8dcbb6a04af162b048399e059b5eb9d6b
63 AUX qemu-2.5.0-rng-stack-corrupt-1.patch 4110 SHA256 16966eb20072a5d16fec46e5959e32708342af9a7266fe4a90a0abaf68af3529 SHA512 530d6a5f9b6795013bbe197cf0a0d7eddfb06d18c0f8410bcf5bcc2d32c4b72c325b8b0ade2c517bd305fcbdab03124cc527d24d73ce767daf51de65d00920c8 WHIRLPOOL c0b653c67993c6c6ed282f0c86099c8c80a241f10e23ef3fd8e33c6d86fbb5553049550e83954cfc6d3576735c4ce28099f813917966c0a05c84bb46a6bee413
64 AUX qemu-2.5.0-rng-stack-corrupt-2.patch 4601 SHA256 c2b4e1ee8ee4bb2f4d42012a847c1da83a9e2349238d37bba1a3b9c440957f7f SHA512 ba299d07c7382f39f177f8094594daf131727d3d28633b426064f7cc6bf75d19b1ae78db248fc70ddbdb43fd2a6b0c5ed7793e6f42aba2763cdb4c12d6816c54 WHIRLPOOL 62b6ab75c32574a4c53193d82c7f51efdaa4789154c2d2f9acee7ede240d2920d92e31dfead7edc17aa12f938919143ce049d2c9ef9733baccc27d382506437f
65 AUX qemu-2.5.0-rng-stack-corrupt-3.patch 5519 SHA256 5a3c2ed59bc30f395aee5cd0b77cdb06d868386e5bbe1b392169f8d96ae9474a SHA512 f62713130d3b989b274476a4cc2eafb95dc41de4723fe475e454132817a159eb729bbbe5a29aee755715100095670107c5762271184252e9d0cd43c4b25bc5d1 WHIRLPOOL f8e4aa90b90b03dd6e4dd68734cb16ee5f59a9585697ef3c48e7e861968798cb3c66018ad5a788f99b99e9fddab2ae83d977ec4b1a8599596a5ce03286726e3e
66 AUX qemu-2.5.0-sysmacros.patch 333 SHA256 a5716fc02da383d455f5cbd76f49e4ee74d84c2d5703319adcbeb145d04875f9 SHA512 329632c5bff846ca3ffcdb4bc94ae62f17c6bdbb566f9bec0784357c943523e8ca7773790b83a9617734cab3b003baa3d636cbd08f7385810a63b0fa0383c4f0 WHIRLPOOL 2a774767d4685545d3ed18e4f5dece99a9007597d73c56197652ff24083550f987ffb69e5c624760dece87def71a7c5c22a694bf999d7309e48ef622f18f0d73
67 -AUX qemu-2.5.0-usb-ehci-oob.patch 2014 SHA256 e0593f8a645dfca3115ea56d1b74d701f07c60d80eadf0bf68133e7539de345a SHA512 c02e0881bb85ffbf7d401b4ee5801692262cddaef9245dfcbf323f0f4d310394e1fbbf639f7a3d2d39ae428c09513adcb9be7fdcf49b7accf133d911dc0b702c WHIRLPOOL 992b2c6d3464a53174054f0d2dc6ec70eeb1e17128ee65c7986d9f5ec80e037bca9bd5bfb65c66bb9bf85f0b56a1a6d008ab4dbe35602d7deea9489add2e7c4b
68 -AUX qemu-2.5.0-usb-ndis-int-overflow.patch 2404 SHA256 caa4ff5ab038e88b2b09f04f2a9528fc47d42d35fbd35bbd7907afd292ef66db SHA512 f87de0a9f161f14814fafc883bd557f8f007a53729dc3c36145dd19ea9c52eabb81f6ada4e4a7122a461c9bed6f524ea0b92f9182b77a4c7cf9c8ecfc217f8e0 WHIRLPOOL 6022a3e0b125beb85efa2b6c1edf5a94dce27bd299d247078d418cf6515c8fc0ca1d8032034ef427c3d4681cc3536900099391b623152b2609cab2f4f963d046
69 +AUX qemu-2.5.1-CVE-2015-8558.patch 3237 SHA256 3320c5624a33076b36f39566a4c3bbe5f95adae44207512d791175bcfc3959ff SHA512 c6ea0ca7d0ea221e9704001d26dae143861463ec45c7a543f041520874dd6e3a2d4bdb6d1eca25097f265aa2a1600858c9908b59cdd640007ab057cf7b86083f WHIRLPOOL 0c3c683a79f68ab3073a3b5e6afe2b6184d66254bd8278e131d5aa199ff51d52e5b186521ff8799345b1f1977afc112550e1a7d4b684b2a3267e9caddd0f1576
70 +AUX qemu-2.5.1-CVE-2016-4020.patch 567 SHA256 6c8e933593cfbedc98de81bf01e394d1ca1d016109fcc81e91f6472d2092b1a0 SHA512 90ac43329cbbcc0451470e010a1a1bd32ef8891c1f2d7d7e54e870e740c77ea8dfdec30989d586aaea250de6ca294504bf7e88818bf35e3269cf528ea3e50ce5 WHIRLPOOL 7ea7c7af1f2a3f11bc5bfe7b708021bbcb03c00d354a733c0fad14193110559cd1561939bd5bb6597a84bc01e74a914ef9dc51f28c522473b424919edc17cdb3
71 +AUX qemu-2.5.1-stellaris_enet-overflow.patch 1569 SHA256 5d20aef8139068eeb63c167856c8f0004e8761227d9bb1fd67240c4b922f704a SHA512 92c015af82eb92bf5f6f4d6fd86b402636a61f0ac9572cc2f002d4c795ce133f7858a38336fd5f4a25c7157dea969d288bb73f00d9a8b3b8f517ba2aea6e4ba8 WHIRLPOOL 94c49f8f78864ac3da247b569d2afc2ee0d801482a00117a7898fb396440118ef3bc54e1b61023496184f37404c893a1ef7725ce6ca9a27ca596cdf38e747603
72 +AUX qemu-2.5.1-xfs-linux-headers.patch 2634 SHA256 ca1eb8d4593d794541f375cb1425861e145aa036d440b9d29c4cb7b5102d018b SHA512 88b8a6178893e3354d90ad1a7cfc370fc05ffd2e3ea7c9cc8aeda9e129ea93d45838b5816afb46c0594886fbb129e3665a738f4c195183b843caedc0302530c0 WHIRLPOOL 193f1b89710ecbbb5b645a59ac6f3b7bad8191cc3228bad0427cb80c54e1b55d11d25abe1f59173b9669452f57a52f830d074bb106bdc3c05b6659826a4d561d
73 AUX qemu-binfmt.initd-r1 6910 SHA256 2886c567589b958f450a87537cdb6c5bf95e8c1e4afbdf59139d16819e79d51d SHA512 09f399b6b559c6dd64d77843f600afad464909e72ae0924e97a5ef2eea55b3fb8abf6fbd57c380ec60e2f9d145ec365fd9a24c2e1b84cc6cef7070e4fb5bd72e WHIRLPOOL 983f6ae733c23c0049321184e1b6738ad5d27a70265945e6b47f3fb317ba3c84918b4929e728081549062fd0bf4a46c0a7e7184911355f3ac75963e1f8b70cd4
74 AUX qemu-kvm-1.4 68 SHA256 8b1adf198129f001e75a2311fc420c168094d1084d2163cdf6a32b3b23c96137 SHA512 706fab4d155c410acc292e67fb354ce7dcd17f7e33f2ca8c9c44035ea128f8d36f89e27cf87ebe22721f5676be9e7f2ae5484fd000183c8ffd7854e02eb3d120 WHIRLPOOL ef795330b592cef8e3d92f52a77eb77a671e6aa1a47d07531917b5c1c09e72e5df1a44aea939b086e0a3c5ef2a5cea9223556a46ceae73e55300475c42f07067
75 -DIST qemu-2.5.0.tar.bz2 25464996 SHA256 3443887401619fe33bfa5d900a4f2d6a79425ae2b7e43d5b8c36eb7a683772d4 SHA512 12153f94cc7f834fd6a85f25690c36f2331d88d414426fb8b9ac20a34e6f9222b1eda30b727674af583580fae90dfd6d0614a905dce1567d94cd049d426b9dd3 WHIRLPOOL 8f5717989d8d234ecf1763ee386b2e1f20c3b17918de130c6dae255e4523a230b2b01a759eba25e4b9f604c680d9b868c56f58bd71b7c6c2c22a2e46804435ef
76 -EBUILD qemu-2.5.0-r999.ebuild 21699 SHA256 8ca42bbf30baa2271e0a1a7be920a06dba32f7c0b6c0ea50d3dd93d949d6522f SHA512 182ccb339259864276e7540b630dfb46e98058df978ffe7ad1a13df541f70f949a62ece46699cc2ba4c3311a24ccd609933733226bb660cc28c37a4f9608c755 WHIRLPOOL 462aa47e61ad570fc9d874145bbca1ab5b804b590f97a34c62f2640b774f380d105c7d2a61790c1c229b8613f8aa74e2d78f8e01dcdce336e202ce64b4172e2b
77 +DIST qemu-2.5.1.tar.bz2 25464539 SHA256 028752c33bb786abbfe496ba57315dc5a7d0a33b5a7a767f6d7a29020c525d2c SHA512 66959ad6a2a89f23c5daba245c76f71ddc03a33a1167bca639a042ebbf7329b2e698cd2c0e65c22a9874563a34256a48386aa9df6475b06d38db74187e3e3b3f WHIRLPOOL 32525271574692d56b7794dc63606659f46e6ae19a56dee31b3cec33dab9c4eb74147a65db4940229492d8680f38c2d05bc2a8fbcb4b6887b0c1cbe5fbbe44cf
78 +EBUILD qemu-2.5.1-r99.ebuild 21104 SHA256 92637c4d36984ff78616a2ca9a1952d453f035608357b2f212cddc4b98bed5de SHA512 0dd1b5d37448371604efb213894bfde17ab08d234affc675dc2474ba395e4b854071711304c30be4a405ed98d6cb2be7f107958487080cd8dbeb15fada2da9f8 WHIRLPOOL cc8ed2d2140b669da67d8a5f15b93651638848f77b853d11b7e235ba37b75d945076266798fff1ccf8d74ba16113cbead260b10e9c8aaed03c07fb5d9d1f1ce3
79 MISC metadata.xml 3925 SHA256 d1c219b7da0cbf77919cd1e055acbb3f6788a574fd802c98a43c89a411697b36 SHA512 3ff45d1c8ede12b4eedc7d01f39777b76a1cbd0ba9364299dec99d4b4a05cade5784d6f6e50197d5b5ae1f1b8e831c49da195eb53263c49b7d16aec8ee28b6e6 WHIRLPOOL bc25783fac0f3f13318834cc535404af9af20de16c7aeec222e59dc2ed7740ac5e767b329a5bcd6356d0cbae2428e278515f1446aa8ecb87a873bf4dbe04bf41
80
81 diff --git a/app-emulation/qemu/files/qemu-1.7.0-cflags.patch b/app-emulation/qemu/files/qemu-1.7.0-cflags.patch
82 deleted file mode 100644
83 index cd003f6..0000000
84 --- a/app-emulation/qemu/files/qemu-1.7.0-cflags.patch
85 +++ /dev/null
86 @@ -1,11 +0,0 @@
87 ---- a/configure
88 -+++ b/configure
89 -@@ -3131,8 +3131,6 @@ fi
90 - if test "$gcov" = "yes" ; then
91 - CFLAGS="-fprofile-arcs -ftest-coverage -g $CFLAGS"
92 - LDFLAGS="-fprofile-arcs -ftest-coverage $LDFLAGS"
93 --elif test "$debug" = "no" ; then
94 -- CFLAGS="-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $CFLAGS"
95 - fi
96 -
97 -
98
99 diff --git a/app-emulation/qemu/files/qemu-2.5.0-9pfs-segfault.patch b/app-emulation/qemu/files/qemu-2.5.0-9pfs-segfault.patch
100 deleted file mode 100644
101 index 0e27684..0000000
102 --- a/app-emulation/qemu/files/qemu-2.5.0-9pfs-segfault.patch
103 +++ /dev/null
104 @@ -1,34 +0,0 @@
105 -From 4b3a4f2d458ca5a7c6c16ac36a8d9ac22cc253d6 Mon Sep 17 00:00:00 2001
106 -From: Greg Kurz <gkurz@××××××××××××××.com>
107 -Date: Wed, 23 Dec 2015 10:56:58 +0100
108 -Subject: [PATCH] virtio-9p: use accessor to get thread_pool
109 -
110 -The aio_context_new() function does not allocate a thread pool. This is
111 -deferred to the first call to the aio_get_thread_pool() accessor. It is
112 -hence forbidden to access the thread_pool field directly, as it may be
113 -NULL. The accessor *must* be used always.
114 -
115 -Fixes: ebac1202c95a4f1b76b6ef3f0f63926fa76e753e
116 -Reviewed-by: Michael Tokarev <mjt@×××××××.ru>
117 -Tested-by: Michael Tokarev <mjt@×××××××.ru>
118 -Cc: qemu-stable@××××××.org
119 -Signed-off-by: Greg Kurz <gkurz@××××××××××××××.com>
120 ----
121 - hw/9pfs/virtio-9p-coth.c | 2 +-
122 - 1 file changed, 1 insertion(+), 1 deletion(-)
123 -
124 -diff --git a/hw/9pfs/virtio-9p-coth.c b/hw/9pfs/virtio-9p-coth.c
125 -index fb6e8f8..ab9425c 100644
126 ---- a/hw/9pfs/virtio-9p-coth.c
127 -+++ b/hw/9pfs/virtio-9p-coth.c
128 -@@ -36,6 +36,6 @@ static int coroutine_enter_func(void *arg)
129 - void co_run_in_worker_bh(void *opaque)
130 - {
131 - Coroutine *co = opaque;
132 -- thread_pool_submit_aio(qemu_get_aio_context()->thread_pool,
133 -+ thread_pool_submit_aio(aio_get_thread_pool(qemu_get_aio_context()),
134 - coroutine_enter_func, co, coroutine_enter_cb, co);
135 - }
136 ---
137 -2.7.4
138 -
139
140 diff --git a/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8558.patch b/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8558.patch
141 deleted file mode 100644
142 index fbc6a0a..0000000
143 --- a/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8558.patch
144 +++ /dev/null
145 @@ -1,50 +0,0 @@
146 -https://bugs.gentoo.org/568246
147 -
148 -From 156a2e4dbffa85997636a7a39ef12da6f1b40254 Mon Sep 17 00:00:00 2001
149 -From: Gerd Hoffmann <kraxel@××××××.com>
150 -Date: Mon, 14 Dec 2015 09:21:23 +0100
151 -Subject: [PATCH] ehci: make idt processing more robust
152 -
153 -Make ehci_process_itd return an error in case we didn't do any actual
154 -iso transfer because we've found no active transaction. That'll avoid
155 -ehci happily run in circles forever if the guest builds a loop out of
156 -idts.
157 -
158 -This is CVE-2015-8558.
159 -
160 -Cc: qemu-stable@××××××.org
161 -Reported-by: Qinghao Tang <luodalongde@×××××.com>
162 -Tested-by: P J P <ppandit@××××××.com>
163 -Signed-off-by: Gerd Hoffmann <kraxel@××××××.com>
164 ----
165 - hw/usb/hcd-ehci.c | 5 +++--
166 - 1 file changed, 3 insertions(+), 2 deletions(-)
167 -
168 -diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
169 -index 4e2161b..d07f228 100644
170 ---- a/hw/usb/hcd-ehci.c
171 -+++ b/hw/usb/hcd-ehci.c
172 -@@ -1389,7 +1389,7 @@ static int ehci_process_itd(EHCIState *ehci,
173 - {
174 - USBDevice *dev;
175 - USBEndpoint *ep;
176 -- uint32_t i, len, pid, dir, devaddr, endp;
177 -+ uint32_t i, len, pid, dir, devaddr, endp, xfers = 0;
178 - uint32_t pg, off, ptr1, ptr2, max, mult;
179 -
180 - ehci->periodic_sched_active = PERIODIC_ACTIVE;
181 -@@ -1479,9 +1479,10 @@ static int ehci_process_itd(EHCIState *ehci,
182 - ehci_raise_irq(ehci, USBSTS_INT);
183 - }
184 - itd->transact[i] &= ~ITD_XACT_ACTIVE;
185 -+ xfers++;
186 - }
187 - }
188 -- return 0;
189 -+ return xfers ? 0 : -1;
190 - }
191 -
192 -
193 ---
194 -2.6.2
195 -
196
197 diff --git a/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8567.patch b/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8567.patch
198 deleted file mode 100644
199 index e196043..0000000
200 --- a/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8567.patch
201 +++ /dev/null
202 @@ -1,95 +0,0 @@
203 -https://bugs.gentoo.org/567868
204 -
205 -From aa4a3dce1c88ed51b616806b8214b7c8428b7470 Mon Sep 17 00:00:00 2001
206 -From: P J P <ppandit@××××××.com>
207 -Date: Tue, 15 Dec 2015 12:27:54 +0530
208 -Subject: [PATCH] net: vmxnet3: avoid memory leakage in activate_device
209 -
210 -Vmxnet3 device emulator does not check if the device is active
211 -before activating it, also it did not free the transmit & receive
212 -buffers while deactivating the device, thus resulting in memory
213 -leakage on the host. This patch fixes both these issues to avoid
214 -host memory leakage.
215 -
216 -Reported-by: Qinghao Tang <luodalongde@×××××.com>
217 -Reviewed-by: Dmitry Fleytman <dmitry@××××××.com>
218 -Signed-off-by: Prasad J Pandit <pjp@×××××××××××××.org>
219 -Cc: qemu-stable@××××××.org
220 -Signed-off-by: Jason Wang <jasowang@××××××.com>
221 ----
222 - hw/net/vmxnet3.c | 24 ++++++++++++++++--------
223 - 1 file changed, 16 insertions(+), 8 deletions(-)
224 -
225 -diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c
226 -index a5dd79a..9c1adfc 100644
227 ---- a/hw/net/vmxnet3.c
228 -+++ b/hw/net/vmxnet3.c
229 -@@ -1194,8 +1194,13 @@ static void vmxnet3_reset_mac(VMXNET3State *s)
230 -
231 - static void vmxnet3_deactivate_device(VMXNET3State *s)
232 - {
233 -- VMW_CBPRN("Deactivating vmxnet3...");
234 -- s->device_active = false;
235 -+ if (s->device_active) {
236 -+ VMW_CBPRN("Deactivating vmxnet3...");
237 -+ vmxnet_tx_pkt_reset(s->tx_pkt);
238 -+ vmxnet_tx_pkt_uninit(s->tx_pkt);
239 -+ vmxnet_rx_pkt_uninit(s->rx_pkt);
240 -+ s->device_active = false;
241 -+ }
242 - }
243 -
244 - static void vmxnet3_reset(VMXNET3State *s)
245 -@@ -1204,7 +1209,6 @@ static void vmxnet3_reset(VMXNET3State *s)
246 -
247 - vmxnet3_deactivate_device(s);
248 - vmxnet3_reset_interrupt_states(s);
249 -- vmxnet_tx_pkt_reset(s->tx_pkt);
250 - s->drv_shmem = 0;
251 - s->tx_sop = true;
252 - s->skip_current_tx_pkt = false;
253 -@@ -1431,6 +1435,12 @@ static void vmxnet3_activate_device(VMXNET3State *s)
254 - return;
255 - }
256 -
257 -+ /* Verify if device is active */
258 -+ if (s->device_active) {
259 -+ VMW_CFPRN("Vmxnet3 device is active");
260 -+ return;
261 -+ }
262 -+
263 - vmxnet3_adjust_by_guest_type(s);
264 - vmxnet3_update_features(s);
265 - vmxnet3_update_pm_state(s);
266 -@@ -1627,7 +1637,7 @@ static void vmxnet3_handle_command(VMXNET3State *s, uint64_t cmd)
267 - break;
268 -
269 - case VMXNET3_CMD_QUIESCE_DEV:
270 -- VMW_CBPRN("Set: VMXNET3_CMD_QUIESCE_DEV - pause the device");
271 -+ VMW_CBPRN("Set: VMXNET3_CMD_QUIESCE_DEV - deactivate the device");
272 - vmxnet3_deactivate_device(s);
273 - break;
274 -
275 -@@ -1741,7 +1751,7 @@ vmxnet3_io_bar1_write(void *opaque,
276 - * shared address only after we get the high part
277 - */
278 - if (val == 0) {
279 -- s->device_active = false;
280 -+ vmxnet3_deactivate_device(s);
281 - }
282 - s->temp_shared_guest_driver_memory = val;
283 - s->drv_shmem = 0;
284 -@@ -2021,9 +2031,7 @@ static bool vmxnet3_peer_has_vnet_hdr(VMXNET3State *s)
285 - static void vmxnet3_net_uninit(VMXNET3State *s)
286 - {
287 - g_free(s->mcast_list);
288 -- vmxnet_tx_pkt_reset(s->tx_pkt);
289 -- vmxnet_tx_pkt_uninit(s->tx_pkt);
290 -- vmxnet_rx_pkt_uninit(s->rx_pkt);
291 -+ vmxnet3_deactivate_device(s);
292 - qemu_del_nic(s->nic);
293 - }
294 -
295 ---
296 -2.6.2
297 -
298
299 diff --git a/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8613.patch b/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8613.patch
300 deleted file mode 100644
301 index 61a52ee..0000000
302 --- a/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8613.patch
303 +++ /dev/null
304 @@ -1,35 +0,0 @@
305 -From 36fef36b91f7ec0435215860f1458b5342ce2811 Mon Sep 17 00:00:00 2001
306 -From: P J P <ppandit@××××××.com>
307 -Date: Mon, 21 Dec 2015 15:13:13 +0530
308 -Subject: [PATCH] scsi: initialise info object with appropriate size
309 -
310 -While processing controller 'CTRL_GET_INFO' command, the routine
311 -'megasas_ctrl_get_info' overflows the '&info' object size. Use its
312 -appropriate size to null initialise it.
313 -
314 -Reported-by: Qinghao Tang <luodalongde@×××××.com>
315 -Signed-off-by: Prasad J Pandit <pjp@×××××××××××××.org>
316 -Message-Id: <alpine.LFD.2.20.1512211501420.22471@wniryva>
317 -Cc: qemu-stable@××××××.org
318 -Signed-off-by: Paolo Bonzini <pbonzini@××××××.com>
319 -Signed-off-by: P J P <ppandit@××××××.com>
320 ----
321 - hw/scsi/megasas.c | 2 +-
322 - 1 file changed, 1 insertion(+), 1 deletion(-)
323 -
324 -diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c
325 -index d7dc667..576f56c 100644
326 ---- a/hw/scsi/megasas.c
327 -+++ b/hw/scsi/megasas.c
328 -@@ -718,7 +718,7 @@ static int megasas_ctrl_get_info(MegasasState *s, MegasasCmd *cmd)
329 - BusChild *kid;
330 - int num_pd_disks = 0;
331 -
332 -- memset(&info, 0x0, cmd->iov_size);
333 -+ memset(&info, 0x0, dcmd_size);
334 - if (cmd->iov_size < dcmd_size) {
335 - trace_megasas_dcmd_invalid_xfer_len(cmd->index, cmd->iov_size,
336 - dcmd_size);
337 ---
338 -2.7.4
339 -
340
341 diff --git a/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8619.patch b/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8619.patch
342 deleted file mode 100644
343 index be67336..0000000
344 --- a/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8619.patch
345 +++ /dev/null
346 @@ -1,121 +0,0 @@
347 -From 64ffbe04eaafebf4045a3ace52a360c14959d196 Mon Sep 17 00:00:00 2001
348 -From: Wolfgang Bumiller <w.bumiller@×××××××.com>
349 -Date: Wed, 13 Jan 2016 09:09:58 +0100
350 -Subject: [PATCH] hmp: fix sendkey out of bounds write (CVE-2015-8619)
351 -
352 -When processing 'sendkey' command, hmp_sendkey routine null
353 -terminates the 'keyname_buf' array. This results in an OOB
354 -write issue, if 'keyname_len' was to fall outside of
355 -'keyname_buf' array.
356 -
357 -Since the keyname's length is known the keyname_buf can be
358 -removed altogether by adding a length parameter to
359 -index_from_key() and using it for the error output as well.
360 -
361 -Reported-by: Ling Liu <liuling-it@×××.cn>
362 -Signed-off-by: Wolfgang Bumiller <w.bumiller@×××××××.com>
363 -Message-Id: <20160113080958.GA18934@olga>
364 -[Comparison with "<" dumbed down, test for junk after strtoul()
365 -tweaked]
366 -Signed-off-by: Markus Armbruster <armbru@××××××.com>
367 ----
368 - hmp.c | 18 ++++++++----------
369 - include/ui/console.h | 2 +-
370 - ui/input-legacy.c | 5 +++--
371 - 3 files changed, 12 insertions(+), 13 deletions(-)
372 -
373 -diff --git a/hmp.c b/hmp.c
374 -index 54f2620..9c571f5 100644
375 ---- a/hmp.c
376 -+++ b/hmp.c
377 -@@ -1731,21 +1731,18 @@ void hmp_sendkey(Monitor *mon, const QDict *qdict)
378 - int has_hold_time = qdict_haskey(qdict, "hold-time");
379 - int hold_time = qdict_get_try_int(qdict, "hold-time", -1);
380 - Error *err = NULL;
381 -- char keyname_buf[16];
382 - char *separator;
383 - int keyname_len;
384 -
385 - while (1) {
386 - separator = strchr(keys, '-');
387 - keyname_len = separator ? separator - keys : strlen(keys);
388 -- pstrcpy(keyname_buf, sizeof(keyname_buf), keys);
389 -
390 - /* Be compatible with old interface, convert user inputted "<" */
391 -- if (!strncmp(keyname_buf, "<", 1) && keyname_len == 1) {
392 -- pstrcpy(keyname_buf, sizeof(keyname_buf), "less");
393 -+ if (keys[0] == '<' && keyname_len == 1) {
394 -+ keys = "less";
395 - keyname_len = 4;
396 - }
397 -- keyname_buf[keyname_len] = 0;
398 -
399 - keylist = g_malloc0(sizeof(*keylist));
400 - keylist->value = g_malloc0(sizeof(*keylist->value));
401 -@@ -1758,16 +1755,17 @@ void hmp_sendkey(Monitor *mon, const QDict *qdict)
402 - }
403 - tmp = keylist;
404 -
405 -- if (strstart(keyname_buf, "0x", NULL)) {
406 -+ if (strstart(keys, "0x", NULL)) {
407 - char *endp;
408 -- int value = strtoul(keyname_buf, &endp, 0);
409 -- if (*endp != '\0') {
410 -+ int value = strtoul(keys, &endp, 0);
411 -+ assert(endp <= keys + keyname_len);
412 -+ if (endp != keys + keyname_len) {
413 - goto err_out;
414 - }
415 - keylist->value->type = KEY_VALUE_KIND_NUMBER;
416 - keylist->value->u.number = value;
417 - } else {
418 -- int idx = index_from_key(keyname_buf);
419 -+ int idx = index_from_key(keys, keyname_len);
420 - if (idx == Q_KEY_CODE_MAX) {
421 - goto err_out;
422 - }
423 -@@ -1789,7 +1787,7 @@ out:
424 - return;
425 -
426 - err_out:
427 -- monitor_printf(mon, "invalid parameter: %s\n", keyname_buf);
428 -+ monitor_printf(mon, "invalid parameter: %.*s\n", keyname_len, keys);
429 - goto out;
430 - }
431 -
432 -diff --git a/include/ui/console.h b/include/ui/console.h
433 -index adac36d..116bc2b 100644
434 ---- a/include/ui/console.h
435 -+++ b/include/ui/console.h
436 -@@ -448,7 +448,7 @@ static inline int vnc_display_pw_expire(const char *id, time_t expires)
437 - void curses_display_init(DisplayState *ds, int full_screen);
438 -
439 - /* input.c */
440 --int index_from_key(const char *key);
441 -+int index_from_key(const char *key, size_t key_length);
442 -
443 - /* gtk.c */
444 - void early_gtk_display_init(int opengl);
445 -diff --git a/ui/input-legacy.c b/ui/input-legacy.c
446 -index 35dfc27..3454055 100644
447 ---- a/ui/input-legacy.c
448 -+++ b/ui/input-legacy.c
449 -@@ -57,12 +57,13 @@ struct QEMUPutLEDEntry {
450 - static QTAILQ_HEAD(, QEMUPutLEDEntry) led_handlers =
451 - QTAILQ_HEAD_INITIALIZER(led_handlers);
452 -
453 --int index_from_key(const char *key)
454 -+int index_from_key(const char *key, size_t key_length)
455 - {
456 - int i;
457 -
458 - for (i = 0; QKeyCode_lookup[i] != NULL; i++) {
459 -- if (!strcmp(key, QKeyCode_lookup[i])) {
460 -+ if (!strncmp(key, QKeyCode_lookup[i], key_length) &&
461 -+ !QKeyCode_lookup[i][key_length]) {
462 - break;
463 - }
464 - }
465 ---
466 -2.7.4
467 -
468
469 diff --git a/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8701.patch b/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8701.patch
470 deleted file mode 100644
471 index 0dab1c3..0000000
472 --- a/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8701.patch
473 +++ /dev/null
474 @@ -1,49 +0,0 @@
475 -https://bugs.gentoo.org/570110
476 -
477 -From 007cd223de527b5f41278f2d886c1a4beb3e67aa Mon Sep 17 00:00:00 2001
478 -From: Prasad J Pandit <pjp@×××××××××××××.org>
479 -Date: Mon, 28 Dec 2015 16:24:08 +0530
480 -Subject: [PATCH] net: rocker: fix an incorrect array bounds check
481 -
482 -While processing transmit(tx) descriptors in 'tx_consume' routine
483 -the switch emulator suffers from an off-by-one error, if a
484 -descriptor was to have more than allowed(ROCKER_TX_FRAGS_MAX=16)
485 -fragments. Fix an incorrect bounds check to avoid it.
486 -
487 -Reported-by: Qinghao Tang <luodalongde@×××××.com>
488 -Cc: qemu-stable@××××××.org
489 -Signed-off-by: Prasad J Pandit <pjp@×××××××××××××.org>
490 -Signed-off-by: Jason Wang <jasowang@××××××.com>
491 ----
492 - hw/net/rocker/rocker.c | 8 ++++----
493 - 1 file changed, 4 insertions(+), 4 deletions(-)
494 -
495 -diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c
496 -index c57f1a6..2e77e50 100644
497 ---- a/hw/net/rocker/rocker.c
498 -+++ b/hw/net/rocker/rocker.c
499 -@@ -232,6 +232,9 @@ static int tx_consume(Rocker *r, DescInfo *info)
500 - frag_addr = rocker_tlv_get_le64(tlvs[ROCKER_TLV_TX_FRAG_ATTR_ADDR]);
501 - frag_len = rocker_tlv_get_le16(tlvs[ROCKER_TLV_TX_FRAG_ATTR_LEN]);
502 -
503 -+ if (iovcnt >= ROCKER_TX_FRAGS_MAX) {
504 -+ goto err_too_many_frags;
505 -+ }
506 - iov[iovcnt].iov_len = frag_len;
507 - iov[iovcnt].iov_base = g_malloc(frag_len);
508 - if (!iov[iovcnt].iov_base) {
509 -@@ -244,10 +247,7 @@ static int tx_consume(Rocker *r, DescInfo *info)
510 - err = -ROCKER_ENXIO;
511 - goto err_bad_io;
512 - }
513 --
514 -- if (++iovcnt > ROCKER_TX_FRAGS_MAX) {
515 -- goto err_too_many_frags;
516 -- }
517 -+ iovcnt++;
518 - }
519 -
520 - if (iovcnt) {
521 ---
522 -2.6.2
523 -
524
525 diff --git a/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8743.patch b/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8743.patch
526 deleted file mode 100644
527 index b2bca56..0000000
528 --- a/app-emulation/qemu/files/qemu-2.5.0-CVE-2015-8743.patch
529 +++ /dev/null
530 @@ -1,50 +0,0 @@
531 -https://bugs.gentoo.org/570988
532 -
533 -From aa7f9966dfdff500bbbf1956d9e115b1fa8987a6 Mon Sep 17 00:00:00 2001
534 -From: Prasad J Pandit <pjp@×××××××××××××.org>
535 -Date: Thu, 31 Dec 2015 17:05:27 +0530
536 -Subject: [PATCH] net: ne2000: fix bounds check in ioport operations
537 -
538 -While doing ioport r/w operations, ne2000 device emulation suffers
539 -from OOB r/w errors. Update respective array bounds check to avoid
540 -OOB access.
541 -
542 -Reported-by: Ling Liu <liuling-it@×××.cn>
543 -Cc: qemu-stable@××××××.org
544 -Signed-off-by: Prasad J Pandit <pjp@×××××××××××××.org>
545 -Signed-off-by: Jason Wang <jasowang@××××××.com>
546 ----
547 - hw/net/ne2000.c | 10 ++++++----
548 - 1 file changed, 6 insertions(+), 4 deletions(-)
549 -
550 -diff --git a/hw/net/ne2000.c b/hw/net/ne2000.c
551 -index 010f9ef..a3dffff 100644
552 ---- a/hw/net/ne2000.c
553 -+++ b/hw/net/ne2000.c
554 -@@ -467,8 +467,9 @@ static inline void ne2000_mem_writel(NE2000State *s, uint32_t addr,
555 - uint32_t val)
556 - {
557 - addr &= ~1; /* XXX: check exact behaviour if not even */
558 -- if (addr < 32 ||
559 -- (addr >= NE2000_PMEM_START && addr < NE2000_MEM_SIZE)) {
560 -+ if (addr < 32
561 -+ || (addr >= NE2000_PMEM_START
562 -+ && addr + sizeof(uint32_t) <= NE2000_MEM_SIZE)) {
563 - stl_le_p(s->mem + addr, val);
564 - }
565 - }
566 -@@ -497,8 +498,9 @@ static inline uint32_t ne2000_mem_readw(NE2000State *s, uint32_t addr)
567 - static inline uint32_t ne2000_mem_readl(NE2000State *s, uint32_t addr)
568 - {
569 - addr &= ~1; /* XXX: check exact behaviour if not even */
570 -- if (addr < 32 ||
571 -- (addr >= NE2000_PMEM_START && addr < NE2000_MEM_SIZE)) {
572 -+ if (addr < 32
573 -+ || (addr >= NE2000_PMEM_START
574 -+ && addr + sizeof(uint32_t) <= NE2000_MEM_SIZE)) {
575 - return ldl_le_p(s->mem + addr);
576 - } else {
577 - return 0xffffffff;
578 ---
579 -2.6.2
580 -
581
582 diff --git a/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-1568.patch b/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-1568.patch
583 deleted file mode 100644
584 index 4ce9a35..0000000
585 --- a/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-1568.patch
586 +++ /dev/null
587 @@ -1,41 +0,0 @@
588 -https://bugs.gentoo.org/571566
589 -
590 -From 4ab0359a8ae182a7ac5c99609667273167703fab Mon Sep 17 00:00:00 2001
591 -From: Prasad J Pandit <pjp@×××××××××××××.org>
592 -Date: Mon, 11 Jan 2016 14:10:42 -0500
593 -Subject: [PATCH] ide: ahci: reset ncq object to unused on error
594 -
595 -When processing NCQ commands, AHCI device emulation prepares a
596 -NCQ transfer object; To which an aio control block(aiocb) object
597 -is assigned in 'execute_ncq_command'. In case, when the NCQ
598 -command is invalid, the 'aiocb' object is not assigned, and NCQ
599 -transfer object is left as 'used'. This leads to a use after
600 -free kind of error in 'bdrv_aio_cancel_async' via 'ahci_reset_port'.
601 -Reset NCQ transfer object to 'unused' to avoid it.
602 -
603 -[Maintainer edit: s/ACHI/AHCI/ in the commit message. --js]
604 -
605 -Reported-by: Qinghao Tang <luodalongde@×××××.com>
606 -Signed-off-by: Prasad J Pandit <pjp@×××××××××××××.org>
607 -Reviewed-by: John Snow <jsnow@××××××.com>
608 -Message-id: 1452282511-4116-1-git-send-email-ppandit@××××××.com
609 -Signed-off-by: John Snow <jsnow@××××××.com>
610 ----
611 - hw/ide/ahci.c | 1 +
612 - 1 file changed, 1 insertion(+)
613 -
614 -diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
615 -index dd1912e..17f1cbd 100644
616 ---- a/hw/ide/ahci.c
617 -+++ b/hw/ide/ahci.c
618 -@@ -910,6 +910,7 @@ static void ncq_err(NCQTransferState *ncq_tfs)
619 - ide_state->error = ABRT_ERR;
620 - ide_state->status = READY_STAT | ERR_STAT;
621 - ncq_tfs->drive->port_regs.scr_err |= (1 << ncq_tfs->tag);
622 -+ ncq_tfs->used = 0;
623 - }
624 -
625 - static void ncq_finish(NCQTransferState *ncq_tfs)
626 ---
627 -2.6.2
628 -
629
630 diff --git a/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-1714.patch b/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-1714.patch
631 deleted file mode 100644
632 index 917fa2f..0000000
633 --- a/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-1714.patch
634 +++ /dev/null
635 @@ -1,58 +0,0 @@
636 -From 66f8fd9dda312191b78d2a2ba2848bcee76127a2 Mon Sep 17 00:00:00 2001
637 -From: "Gabriel L. Somlo" <somlo@×××.edu>
638 -Date: Thu, 5 Nov 2015 09:32:50 -0500
639 -Subject: [PATCH] fw_cfg: avoid calculating invalid current entry pointer
640 -MIME-Version: 1.0
641 -Content-Type: text/plain; charset=UTF-8
642 -Content-Transfer-Encoding: 8bit
643 -
644 -When calculating a pointer to the currently selected fw_cfg item, the
645 -following is used:
646 -
647 - FWCfgEntry *e = &s->entries[arch][s->cur_entry & FW_CFG_ENTRY_MASK];
648 -
649 -When s->cur_entry is FW_CFG_INVALID, we are calculating the address of
650 -a non-existent element in s->entries[arch][...], which is undefined.
651 -
652 -This patch ensures the resulting entry pointer is set to NULL whenever
653 -s->cur_entry is FW_CFG_INVALID.
654 -
655 -Reported-by: Laszlo Ersek <lersek@××××××.com>
656 -Reviewed-by: Laszlo Ersek <lersek@××××××.com>
657 -Signed-off-by: Gabriel Somlo <somlo@×××.edu>
658 -Message-id: 1446733972-1602-5-git-send-email-somlo@×××.edu
659 -Cc: Marc Marí <markmb@××××××.com>
660 -Signed-off-by: Gabriel Somlo <somlo@×××.edu>
661 -Reviewed-by: Laszlo Ersek <lersek@××××××.com>
662 -Signed-off-by: Gerd Hoffmann <kraxel@××××××.com>
663 ----
664 - hw/nvram/fw_cfg.c | 6 ++++--
665 - 1 file changed, 4 insertions(+), 2 deletions(-)
666 -
667 -diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c
668 -index c2d3a0a..046fa74 100644
669 ---- a/hw/nvram/fw_cfg.c
670 -+++ b/hw/nvram/fw_cfg.c
671 -@@ -277,7 +277,8 @@ static int fw_cfg_select(FWCfgState *s, uint16_t key)
672 - static uint8_t fw_cfg_read(FWCfgState *s)
673 - {
674 - int arch = !!(s->cur_entry & FW_CFG_ARCH_LOCAL);
675 -- FWCfgEntry *e = &s->entries[arch][s->cur_entry & FW_CFG_ENTRY_MASK];
676 -+ FWCfgEntry *e = (s->cur_entry == FW_CFG_INVALID) ? NULL :
677 -+ &s->entries[arch][s->cur_entry & FW_CFG_ENTRY_MASK];
678 - uint8_t ret;
679 -
680 - if (s->cur_entry == FW_CFG_INVALID || !e->data || s->cur_offset >= e->len)
681 -@@ -342,7 +343,8 @@ static void fw_cfg_dma_transfer(FWCfgState *s)
682 - }
683 -
684 - arch = !!(s->cur_entry & FW_CFG_ARCH_LOCAL);
685 -- e = &s->entries[arch][s->cur_entry & FW_CFG_ENTRY_MASK];
686 -+ e = (s->cur_entry == FW_CFG_INVALID) ? NULL :
687 -+ &s->entries[arch][s->cur_entry & FW_CFG_ENTRY_MASK];
688 -
689 - if (dma.control & FW_CFG_DMA_CTL_READ) {
690 - read = 1;
691 ---
692 -2.7.4
693 -
694
695 diff --git a/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-1922.patch b/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-1922.patch
696 deleted file mode 100644
697 index 23c2341..0000000
698 --- a/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-1922.patch
699 +++ /dev/null
700 @@ -1,65 +0,0 @@
701 -From 4c1396cb576c9b14425558b73de1584c7a9735d7 Mon Sep 17 00:00:00 2001
702 -From: P J P <ppandit@××××××.com>
703 -Date: Fri, 18 Dec 2015 11:35:07 +0530
704 -Subject: [PATCH] i386: avoid null pointer dereference
705 -
706 - Hello,
707 -
708 -A null pointer dereference issue was reported by Mr Ling Liu, CC'd here. It
709 -occurs while doing I/O port write operations via hmp interface. In that,
710 -'current_cpu' remains null as it is not called from cpu_exec loop, which
711 -results in the said issue.
712 -
713 -Below is a proposed (tested)patch to fix this issue; Does it look okay?
714 -
715 -===
716 -From ae88a4947fab9a148cd794f8ad2d812e7f5a1d0f Mon Sep 17 00:00:00 2001
717 -From: Prasad J Pandit <pjp@×××××××××××××.org>
718 -Date: Fri, 18 Dec 2015 11:16:07 +0530
719 -Subject: [PATCH] i386: avoid null pointer dereference
720 -
721 -When I/O port write operation is called from hmp interface,
722 -'current_cpu' remains null, as it is not called from cpu_exec()
723 -loop. This leads to a null pointer dereference in vapic_write
724 -routine. Add check to avoid it.
725 -
726 -Reported-by: Ling Liu <liuling-it@×××.cn>
727 -Signed-off-by: Prasad J Pandit <pjp@×××××××××××××.org>
728 -Message-Id: <alpine.LFD.2.20.1512181129320.9805@wniryva>
729 -Signed-off-by: Paolo Bonzini <pbonzini@××××××.com>
730 -Signed-off-by: P J P <ppandit@××××××.com>
731 ----
732 - hw/i386/kvmvapic.c | 15 ++++++++++-----
733 - 1 file changed, 10 insertions(+), 5 deletions(-)
734 -
735 -diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c
736 -index c6d34b2..f0922da 100644
737 ---- a/hw/i386/kvmvapic.c
738 -+++ b/hw/i386/kvmvapic.c
739 -@@ -634,13 +634,18 @@ static int vapic_prepare(VAPICROMState *s)
740 - static void vapic_write(void *opaque, hwaddr addr, uint64_t data,
741 - unsigned int size)
742 - {
743 -- CPUState *cs = current_cpu;
744 -- X86CPU *cpu = X86_CPU(cs);
745 -- CPUX86State *env = &cpu->env;
746 -- hwaddr rom_paddr;
747 - VAPICROMState *s = opaque;
748 -+ X86CPU *cpu;
749 -+ CPUX86State *env;
750 -+ hwaddr rom_paddr;
751 -
752 -- cpu_synchronize_state(cs);
753 -+ if (!current_cpu) {
754 -+ return;
755 -+ }
756 -+
757 -+ cpu_synchronize_state(current_cpu);
758 -+ cpu = X86_CPU(current_cpu);
759 -+ env = &cpu->env;
760 -
761 - /*
762 - * The VAPIC supports two PIO-based hypercalls, both via port 0x7E.
763 ---
764 -2.7.4
765 -
766
767 diff --git a/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-1981.patch b/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-1981.patch
768 deleted file mode 100644
769 index 2922193..0000000
770 --- a/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-1981.patch
771 +++ /dev/null
772 @@ -1,98 +0,0 @@
773 -From dd793a74882477ca38d49e191110c17dfee51dcc Mon Sep 17 00:00:00 2001
774 -From: Laszlo Ersek <lersek@××××××.com>
775 -Date: Tue, 19 Jan 2016 14:17:20 +0100
776 -Subject: [PATCH] e1000: eliminate infinite loops on out-of-bounds transfer
777 - start
778 -
779 -The start_xmit() and e1000_receive_iov() functions implement DMA transfers
780 -iterating over a set of descriptors that the guest's e1000 driver
781 -prepares:
782 -
783 -- the TDLEN and RDLEN registers store the total size of the descriptor
784 - area,
785 -
786 -- while the TDH and RDH registers store the offset (in whole tx / rx
787 - descriptors) into the area where the transfer is supposed to start.
788 -
789 -Each time a descriptor is processed, the TDH and RDH register is bumped
790 -(as appropriate for the transfer direction).
791 -
792 -QEMU already contains logic to deal with bogus transfers submitted by the
793 -guest:
794 -
795 -- Normally, the transmit case wants to increase TDH from its initial value
796 - to TDT. (TDT is allowed to be numerically smaller than the initial TDH
797 - value; wrapping at or above TDLEN bytes to zero is normal.) The failsafe
798 - that QEMU currently has here is a check against reaching the original
799 - TDH value again -- a complete wraparound, which should never happen.
800 -
801 -- In the receive case RDH is increased from its initial value until
802 - "total_size" bytes have been received; preferably in a single step, or
803 - in "s->rxbuf_size" byte steps, if the latter is smaller. However, null
804 - RX descriptors are skipped without receiving data, while RDH is
805 - incremented just the same. QEMU tries to prevent an infinite loop
806 - (processing only null RX descriptors) by detecting whether RDH assumes
807 - its original value during the loop. (Again, wrapping from RDLEN to 0 is
808 - normal.)
809 -
810 -What both directions miss is that the guest could program TDLEN and RDLEN
811 -so low, and the initial TDH and RDH so high, that these registers will
812 -immediately be truncated to zero, and then never reassume their initial
813 -values in the loop -- a full wraparound will never occur.
814 -
815 -The condition that expresses this is:
816 -
817 - xdh_start >= s->mac_reg[XDLEN] / sizeof(desc)
818 -
819 -i.e., TDH or RDH start out after the last whole rx or tx descriptor that
820 -fits into the TDLEN or RDLEN sized area.
821 -
822 -This condition could be checked before we enter the loops, but
823 -pci_dma_read() / pci_dma_write() knows how to fill in buffers safely for
824 -bogus DMA addresses, so we just extend the existing failsafes with the
825 -above condition.
826 -
827 -This is CVE-2016-1981.
828 -
829 -Cc: "Michael S. Tsirkin" <mst@××××××.com>
830 -Cc: Petr Matousek <pmatouse@××××××.com>
831 -Cc: Stefano Stabellini <stefano.stabellini@×××××××××.com>
832 -Cc: Prasad Pandit <ppandit@××××××.com>
833 -Cc: Michael Roth <mdroth@××××××××××××××.com>
834 -Cc: Jason Wang <jasowang@××××××.com>
835 -Cc: qemu-stable@××××××.org
836 -RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1296044
837 -Signed-off-by: Laszlo Ersek <lersek@××××××.com>
838 -Reviewed-by: Jason Wang <jasowang@××××××.com>
839 -Signed-off-by: Jason Wang <jasowang@××××××.com>
840 ----
841 - hw/net/e1000.c | 6 ++++--
842 - 1 file changed, 4 insertions(+), 2 deletions(-)
843 -
844 -diff --git a/hw/net/e1000.c b/hw/net/e1000.c
845 -index 4eda7a3..0387fa0 100644
846 ---- a/hw/net/e1000.c
847 -+++ b/hw/net/e1000.c
848 -@@ -909,7 +909,8 @@ start_xmit(E1000State *s)
849 - * bogus values to TDT/TDLEN.
850 - * there's nothing too intelligent we could do about this.
851 - */
852 -- if (s->mac_reg[TDH] == tdh_start) {
853 -+ if (s->mac_reg[TDH] == tdh_start ||
854 -+ tdh_start >= s->mac_reg[TDLEN] / sizeof(desc)) {
855 - DBGOUT(TXERR, "TDH wraparound @%x, TDT %x, TDLEN %x\n",
856 - tdh_start, s->mac_reg[TDT], s->mac_reg[TDLEN]);
857 - break;
858 -@@ -1166,7 +1167,8 @@ e1000_receive_iov(NetClientState *nc, const struct iovec *iov, int iovcnt)
859 - if (++s->mac_reg[RDH] * sizeof(desc) >= s->mac_reg[RDLEN])
860 - s->mac_reg[RDH] = 0;
861 - /* see comment in start_xmit; same here */
862 -- if (s->mac_reg[RDH] == rdh_start) {
863 -+ if (s->mac_reg[RDH] == rdh_start ||
864 -+ rdh_start >= s->mac_reg[RDLEN] / sizeof(desc)) {
865 - DBGOUT(RXERR, "RDH wraparound @%x, RDT %x, RDLEN %x\n",
866 - rdh_start, s->mac_reg[RDT], s->mac_reg[RDLEN]);
867 - set_ics(s, 0, E1000_ICS_RXO);
868 ---
869 -2.7.4
870 -
871
872 diff --git a/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-2197.patch b/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-2197.patch
873 deleted file mode 100644
874 index 0ab7b02..0000000
875 --- a/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-2197.patch
876 +++ /dev/null
877 @@ -1,43 +0,0 @@
878 -From 99b4cb71069f109b79b27bc629fc0cf0886dbc4b Mon Sep 17 00:00:00 2001
879 -From: John Snow <jsnow@××××××.com>
880 -Date: Wed, 10 Feb 2016 13:29:40 -0500
881 -Subject: [PATCH] ahci: Do not unmap NULL addresses
882 -
883 -Definitely don't try to unmap a garbage address.
884 -
885 -Reported-by: Zuozhi fzz <zuozhi.fzz@×××××××××××.com>
886 -Signed-off-by: John Snow <jsnow@××××××.com>
887 -Message-id: 1454103689-13042-2-git-send-email-jsnow@××××××.com
888 ----
889 - hw/ide/ahci.c | 8 ++++++++
890 - 1 file changed, 8 insertions(+)
891 -
892 -diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
893 -index 7e87b18..3a95dad 100644
894 ---- a/hw/ide/ahci.c
895 -+++ b/hw/ide/ahci.c
896 -@@ -662,6 +662,10 @@ static bool ahci_map_fis_address(AHCIDevice *ad)
897 -
898 - static void ahci_unmap_fis_address(AHCIDevice *ad)
899 - {
900 -+ if (ad->res_fis == NULL) {
901 -+ DPRINTF(ad->port_no, "Attempt to unmap NULL FIS address\n");
902 -+ return;
903 -+ }
904 - dma_memory_unmap(ad->hba->as, ad->res_fis, 256,
905 - DMA_DIRECTION_FROM_DEVICE, 256);
906 - ad->res_fis = NULL;
907 -@@ -678,6 +682,10 @@ static bool ahci_map_clb_address(AHCIDevice *ad)
908 -
909 - static void ahci_unmap_clb_address(AHCIDevice *ad)
910 - {
911 -+ if (ad->lst == NULL) {
912 -+ DPRINTF(ad->port_no, "Attempt to unmap NULL CLB address\n");
913 -+ return;
914 -+ }
915 - dma_memory_unmap(ad->hba->as, ad->lst, 1024,
916 - DMA_DIRECTION_FROM_DEVICE, 1024);
917 - ad->lst = NULL;
918 ---
919 -2.7.4
920 -
921
922 diff --git a/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-2392.patch b/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-2392.patch
923 deleted file mode 100644
924 index e7aa5ca..0000000
925 --- a/app-emulation/qemu/files/qemu-2.5.0-CVE-2016-2392.patch
926 +++ /dev/null
927 @@ -1,35 +0,0 @@
928 -From 80eecda8e5d09c442c24307f340840a5b70ea3b9 Mon Sep 17 00:00:00 2001
929 -From: Prasad J Pandit <pjp@×××××××××××××.org>
930 -Date: Thu, 11 Feb 2016 16:31:20 +0530
931 -Subject: [PATCH] usb: check USB configuration descriptor object
932 -
933 -When processing remote NDIS control message packets, the USB Net
934 -device emulator checks to see if the USB configuration descriptor
935 -object is of RNDIS type(2). But it does not check if it is null,
936 -which leads to a null dereference error. Add check to avoid it.
937 -
938 -Reported-by: Qinghao Tang <luodalongde@×××××.com>
939 -Signed-off-by: Prasad J Pandit <pjp@×××××××××××××.org>
940 -Message-id: 1455188480-14688-1-git-send-email-ppandit@××××××.com
941 -Signed-off-by: Gerd Hoffmann <kraxel@××××××.com>
942 ----
943 - hw/usb/dev-network.c | 3 ++-
944 - 1 file changed, 2 insertions(+), 1 deletion(-)
945 -
946 -diff --git a/hw/usb/dev-network.c b/hw/usb/dev-network.c
947 -index 985a629..5dc4538 100644
948 ---- a/hw/usb/dev-network.c
949 -+++ b/hw/usb/dev-network.c
950 -@@ -654,7 +654,8 @@ typedef struct USBNetState {
951 -
952 - static int is_rndis(USBNetState *s)
953 - {
954 -- return s->dev.config->bConfigurationValue == DEV_RNDIS_CONFIG_VALUE;
955 -+ return s->dev.config ?
956 -+ s->dev.config->bConfigurationValue == DEV_RNDIS_CONFIG_VALUE : 0;
957 - }
958 -
959 - static int ndis_query(USBNetState *s, uint32_t oid,
960 ---
961 -2.7.4
962 -
963
964 diff --git a/app-emulation/qemu/files/qemu-2.5.0-ne2000-reg-check.patch b/app-emulation/qemu/files/qemu-2.5.0-ne2000-reg-check.patch
965 deleted file mode 100644
966 index 2874b75..0000000
967 --- a/app-emulation/qemu/files/qemu-2.5.0-ne2000-reg-check.patch
968 +++ /dev/null
969 @@ -1,37 +0,0 @@
970 -From 415ab35a441eca767d033a2702223e785b9d5190 Mon Sep 17 00:00:00 2001
971 -From: Prasad J Pandit <pjp@×××××××××××××.org>
972 -Date: Wed, 24 Feb 2016 11:41:33 +0530
973 -Subject: [PATCH] net: ne2000: check ring buffer control registers
974 -
975 -Ne2000 NIC uses ring buffer of NE2000_MEM_SIZE(49152)
976 -bytes to process network packets. Registers PSTART & PSTOP
977 -define ring buffer size & location. Setting these registers
978 -to invalid values could lead to infinite loop or OOB r/w
979 -access issues. Add check to avoid it.
980 -
981 -Reported-by: Yang Hongke <yanghongke@××××××.com>
982 -Tested-by: Yang Hongke <yanghongke@××××××.com>
983 -Signed-off-by: Prasad J Pandit <pjp@×××××××××××××.org>
984 -Signed-off-by: Jason Wang <jasowang@××××××.com>
985 ----
986 - hw/net/ne2000.c | 4 ++++
987 - 1 file changed, 4 insertions(+)
988 -
989 -diff --git a/hw/net/ne2000.c b/hw/net/ne2000.c
990 -index e408083..f0feaf9 100644
991 ---- a/hw/net/ne2000.c
992 -+++ b/hw/net/ne2000.c
993 -@@ -155,6 +155,10 @@ static int ne2000_buffer_full(NE2000State *s)
994 - {
995 - int avail, index, boundary;
996 -
997 -+ if (s->stop <= s->start) {
998 -+ return 1;
999 -+ }
1000 -+
1001 - index = s->curpag << 8;
1002 - boundary = s->boundary << 8;
1003 - if (index < boundary)
1004 ---
1005 -2.7.4
1006 -
1007
1008 diff --git a/app-emulation/qemu/files/qemu-2.5.0-usb-ehci-oob.patch b/app-emulation/qemu/files/qemu-2.5.0-usb-ehci-oob.patch
1009 deleted file mode 100644
1010 index 2ddca3e..0000000
1011 --- a/app-emulation/qemu/files/qemu-2.5.0-usb-ehci-oob.patch
1012 +++ /dev/null
1013 @@ -1,52 +0,0 @@
1014 -From 49d925ce50383a286278143c05511d30ec41a36e Mon Sep 17 00:00:00 2001
1015 -From: Prasad J Pandit <pjp@×××××××××××××.org>
1016 -Date: Wed, 20 Jan 2016 01:26:46 +0530
1017 -Subject: [PATCH] usb: check page select value while processing iTD
1018 -
1019 -While processing isochronous transfer descriptors(iTD), the page
1020 -select(PG) field value could lead to an OOB read access. Add
1021 -check to avoid it.
1022 -
1023 -Reported-by: Qinghao Tang <luodalongde@×××××.com>
1024 -Signed-off-by: Prasad J Pandit <pjp@×××××××××××××.org>
1025 -Message-id: 1453233406-12165-1-git-send-email-ppandit@××××××.com
1026 -Signed-off-by: Gerd Hoffmann <kraxel@××××××.com>
1027 ----
1028 - hw/usb/hcd-ehci.c | 10 ++++++----
1029 - 1 file changed, 6 insertions(+), 4 deletions(-)
1030 -
1031 -diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
1032 -index ab00268..93601d9 100644
1033 ---- a/hw/usb/hcd-ehci.c
1034 -+++ b/hw/usb/hcd-ehci.c
1035 -@@ -1405,21 +1405,23 @@ static int ehci_process_itd(EHCIState *ehci,
1036 - if (itd->transact[i] & ITD_XACT_ACTIVE) {
1037 - pg = get_field(itd->transact[i], ITD_XACT_PGSEL);
1038 - off = itd->transact[i] & ITD_XACT_OFFSET_MASK;
1039 -- ptr1 = (itd->bufptr[pg] & ITD_BUFPTR_MASK);
1040 -- ptr2 = (itd->bufptr[pg+1] & ITD_BUFPTR_MASK);
1041 - len = get_field(itd->transact[i], ITD_XACT_LENGTH);
1042 -
1043 - if (len > max * mult) {
1044 - len = max * mult;
1045 - }
1046 --
1047 -- if (len > BUFF_SIZE) {
1048 -+ if (len > BUFF_SIZE || pg > 6) {
1049 - return -1;
1050 - }
1051 -
1052 -+ ptr1 = (itd->bufptr[pg] & ITD_BUFPTR_MASK);
1053 - qemu_sglist_init(&ehci->isgl, ehci->device, 2, ehci->as);
1054 - if (off + len > 4096) {
1055 - /* transfer crosses page border */
1056 -+ if (pg == 6) {
1057 -+ return -1; /* avoid page pg + 1 */
1058 -+ }
1059 -+ ptr2 = (itd->bufptr[pg + 1] & ITD_BUFPTR_MASK);
1060 - uint32_t len2 = off + len - 4096;
1061 - uint32_t len1 = len - len2;
1062 - qemu_sglist_add(&ehci->isgl, ptr1 + off, len1);
1063 ---
1064 -2.7.4
1065 -
1066
1067 diff --git a/app-emulation/qemu/files/qemu-2.5.0-usb-ndis-int-overflow.patch b/app-emulation/qemu/files/qemu-2.5.0-usb-ndis-int-overflow.patch
1068 deleted file mode 100644
1069 index da643fd..0000000
1070 --- a/app-emulation/qemu/files/qemu-2.5.0-usb-ndis-int-overflow.patch
1071 +++ /dev/null
1072 @@ -1,59 +0,0 @@
1073 -From fe3c546c5ff2a6210f9a4d8561cc64051ca8603e Mon Sep 17 00:00:00 2001
1074 -From: Prasad J Pandit <pjp@×××××××××××××.org>
1075 -Date: Wed, 17 Feb 2016 00:23:41 +0530
1076 -Subject: [PATCH] usb: check RNDIS buffer offsets & length
1077 -
1078 -When processing remote NDIS control message packets,
1079 -the USB Net device emulator uses a fixed length(4096) data buffer.
1080 -The incoming informationBufferOffset & Length combination could
1081 -overflow and cross that range. Check control message buffer
1082 -offsets and length to avoid it.
1083 -
1084 -Reported-by: Qinghao Tang <luodalongde@×××××.com>
1085 -Signed-off-by: Prasad J Pandit <pjp@×××××××××××××.org>
1086 -Message-id: 1455648821-17340-3-git-send-email-ppandit@××××××.com
1087 -Signed-off-by: Gerd Hoffmann <kraxel@××××××.com>
1088 ----
1089 - hw/usb/dev-network.c | 9 ++++++---
1090 - 1 file changed, 6 insertions(+), 3 deletions(-)
1091 -
1092 -diff --git a/hw/usb/dev-network.c b/hw/usb/dev-network.c
1093 -index 5dc4538..c6abd38 100644
1094 ---- a/hw/usb/dev-network.c
1095 -+++ b/hw/usb/dev-network.c
1096 -@@ -916,8 +916,9 @@ static int rndis_query_response(USBNetState *s,
1097 -
1098 - bufoffs = le32_to_cpu(buf->InformationBufferOffset) + 8;
1099 - buflen = le32_to_cpu(buf->InformationBufferLength);
1100 -- if (bufoffs + buflen > length)
1101 -+ if (buflen > length || bufoffs >= length || bufoffs + buflen > length) {
1102 - return USB_RET_STALL;
1103 -+ }
1104 -
1105 - infobuflen = ndis_query(s, le32_to_cpu(buf->OID),
1106 - bufoffs + (uint8_t *) buf, buflen, infobuf,
1107 -@@ -962,8 +963,9 @@ static int rndis_set_response(USBNetState *s,
1108 -
1109 - bufoffs = le32_to_cpu(buf->InformationBufferOffset) + 8;
1110 - buflen = le32_to_cpu(buf->InformationBufferLength);
1111 -- if (bufoffs + buflen > length)
1112 -+ if (buflen > length || bufoffs >= length || bufoffs + buflen > length) {
1113 - return USB_RET_STALL;
1114 -+ }
1115 -
1116 - ret = ndis_set(s, le32_to_cpu(buf->OID),
1117 - bufoffs + (uint8_t *) buf, buflen);
1118 -@@ -1213,8 +1215,9 @@ static void usb_net_handle_dataout(USBNetState *s, USBPacket *p)
1119 - if (le32_to_cpu(msg->MessageType) == RNDIS_PACKET_MSG) {
1120 - uint32_t offs = 8 + le32_to_cpu(msg->DataOffset);
1121 - uint32_t size = le32_to_cpu(msg->DataLength);
1122 -- if (offs + size <= len)
1123 -+ if (offs < len && size < len && offs + size <= len) {
1124 - qemu_send_packet(qemu_get_queue(s->nic), s->out_buf + offs, size);
1125 -+ }
1126 - }
1127 - s->out_ptr -= len;
1128 - memmove(s->out_buf, &s->out_buf[len], s->out_ptr);
1129 ---
1130 -2.7.4
1131 -
1132
1133 diff --git a/app-emulation/qemu/files/qemu-2.5.1-CVE-2015-8558.patch b/app-emulation/qemu/files/qemu-2.5.1-CVE-2015-8558.patch
1134 new file mode 100644
1135 index 0000000..cf1a4c3
1136 --- /dev/null
1137 +++ b/app-emulation/qemu/files/qemu-2.5.1-CVE-2015-8558.patch
1138 @@ -0,0 +1,107 @@
1139 +https://bugs.gentoo.org/580426
1140 +https://bugs.gentoo.org/568246
1141 +
1142 +From a49923d2837d20510d645d3758f1ad87c32d0730 Mon Sep 17 00:00:00 2001
1143 +From: Gerd Hoffmann <kraxel@××××××.com>
1144 +Date: Mon, 18 Apr 2016 09:20:54 +0200
1145 +Subject: [PATCH] Revert "ehci: make idt processing more robust"
1146 +
1147 +This reverts commit 156a2e4dbffa85997636a7a39ef12da6f1b40254.
1148 +
1149 +Breaks FreeBSD.
1150 +
1151 +Signed-off-by: Gerd Hoffmann <kraxel@××××××.com>
1152 +---
1153 + hw/usb/hcd-ehci.c | 5 ++---
1154 + 1 file changed, 2 insertions(+), 3 deletions(-)
1155 +
1156 +diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
1157 +index d5c0e1c..43a8f7a 100644
1158 +--- a/hw/usb/hcd-ehci.c
1159 ++++ b/hw/usb/hcd-ehci.c
1160 +@@ -1397,7 +1397,7 @@ static int ehci_process_itd(EHCIState *ehci,
1161 + {
1162 + USBDevice *dev;
1163 + USBEndpoint *ep;
1164 +- uint32_t i, len, pid, dir, devaddr, endp, xfers = 0;
1165 ++ uint32_t i, len, pid, dir, devaddr, endp;
1166 + uint32_t pg, off, ptr1, ptr2, max, mult;
1167 +
1168 + ehci->periodic_sched_active = PERIODIC_ACTIVE;
1169 +@@ -1489,10 +1489,9 @@ static int ehci_process_itd(EHCIState *ehci,
1170 + ehci_raise_irq(ehci, USBSTS_INT);
1171 + }
1172 + itd->transact[i] &= ~ITD_XACT_ACTIVE;
1173 +- xfers++;
1174 + }
1175 + }
1176 +- return xfers ? 0 : -1;
1177 ++ return 0;
1178 + }
1179 +
1180 +
1181 +--
1182 +2.7.4
1183 +
1184 +From 1ae3f2f178087711f9591350abad133525ba93f2 Mon Sep 17 00:00:00 2001
1185 +From: Gerd Hoffmann <kraxel@××××××.com>
1186 +Date: Mon, 18 Apr 2016 09:11:38 +0200
1187 +Subject: [PATCH] ehci: apply limit to iTD/sidt descriptors
1188 +MIME-Version: 1.0
1189 +Content-Type: text/plain; charset=UTF-8
1190 +Content-Transfer-Encoding: 8bit
1191 +
1192 +Commit "156a2e4 ehci: make idt processing more robust" tries to avoid a
1193 +DoS by the guest (create a circular iTD queue and let qemu ehci
1194 +emulation run in circles forever). Unfortunately this has two problems:
1195 +First it misses the case of siTDs, and second it reportedly breaks
1196 +FreeBSD.
1197 +
1198 +So lets go for a different approach: just count the number of iTDs and
1199 +siTDs we have seen per frame and apply a limit. That should really
1200 +catch all cases now.
1201 +
1202 +Reported-by: 杜少博 <dushaobo@×××.cn>
1203 +Signed-off-by: Gerd Hoffmann <kraxel@××××××.com>
1204 +---
1205 + hw/usb/hcd-ehci.c | 6 +++++-
1206 + 1 file changed, 5 insertions(+), 1 deletion(-)
1207 +
1208 +diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
1209 +index 159f58d..d5c0e1c 100644
1210 +--- a/hw/usb/hcd-ehci.c
1211 ++++ b/hw/usb/hcd-ehci.c
1212 +@@ -2011,6 +2011,7 @@ static int ehci_state_writeback(EHCIQueue *q)
1213 + static void ehci_advance_state(EHCIState *ehci, int async)
1214 + {
1215 + EHCIQueue *q = NULL;
1216 ++ int itd_count = 0;
1217 + int again;
1218 +
1219 + do {
1220 +@@ -2035,10 +2036,12 @@ static void ehci_advance_state(EHCIState *ehci, int async)
1221 +
1222 + case EST_FETCHITD:
1223 + again = ehci_state_fetchitd(ehci, async);
1224 ++ itd_count++;
1225 + break;
1226 +
1227 + case EST_FETCHSITD:
1228 + again = ehci_state_fetchsitd(ehci, async);
1229 ++ itd_count++;
1230 + break;
1231 +
1232 + case EST_ADVANCEQUEUE:
1233 +@@ -2087,7 +2090,8 @@ static void ehci_advance_state(EHCIState *ehci, int async)
1234 + break;
1235 + }
1236 +
1237 +- if (again < 0) {
1238 ++ if (again < 0 || itd_count > 16) {
1239 ++ /* TODO: notify guest (raise HSE irq?) */
1240 + fprintf(stderr, "processing error - resetting ehci HC\n");
1241 + ehci_reset(ehci);
1242 + again = 0;
1243 +--
1244 +2.7.4
1245 +
1246
1247 diff --git a/app-emulation/qemu/files/qemu-2.5.1-CVE-2016-4020.patch b/app-emulation/qemu/files/qemu-2.5.1-CVE-2016-4020.patch
1248 new file mode 100644
1249 index 0000000..e3115c1
1250 --- /dev/null
1251 +++ b/app-emulation/qemu/files/qemu-2.5.1-CVE-2016-4020.patch
1252 @@ -0,0 +1,16 @@
1253 +https://lists.gnu.org/archive/html/qemu-devel/2016-04/msg01106.html
1254 +https://bugs.gentoo.org/580040
1255 +
1256 +diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c
1257 +index c69f374..ff1e31a 100644
1258 +--- a/hw/i386/kvmvapic.c
1259 ++++ b/hw/i386/kvmvapic.c
1260 +@@ -394,7 +394,7 @@ static void patch_instruction(VAPICROMState *s, X86CPU *cpu, target_ulong ip)
1261 + CPUX86State *env = &cpu->env;
1262 + VAPICHandlers *handlers;
1263 + uint8_t opcode[2];
1264 +- uint32_t imm32;
1265 ++ uint32_t imm32 = 0;
1266 + target_ulong current_pc = 0;
1267 + target_ulong current_cs_base = 0;
1268 + int current_flags = 0;
1269
1270 diff --git a/app-emulation/qemu/files/qemu-2.5.1-stellaris_enet-overflow.patch b/app-emulation/qemu/files/qemu-2.5.1-stellaris_enet-overflow.patch
1271 new file mode 100644
1272 index 0000000..ab7d3f3
1273 --- /dev/null
1274 +++ b/app-emulation/qemu/files/qemu-2.5.1-stellaris_enet-overflow.patch
1275 @@ -0,0 +1,47 @@
1276 +From 3a15cc0e1ee7168db0782133d2607a6bfa422d66 Mon Sep 17 00:00:00 2001
1277 +From: Prasad J Pandit <pjp@×××××××××××××.org>
1278 +Date: Fri, 8 Apr 2016 11:33:48 +0530
1279 +Subject: [PATCH] net: stellaris_enet: check packet length against receive
1280 + buffer
1281 +
1282 +When receiving packets over Stellaris ethernet controller, it
1283 +uses receive buffer of size 2048 bytes. In case the controller
1284 +accepts large(MTU) packets, it could lead to memory corruption.
1285 +Add check to avoid it.
1286 +
1287 +Reported-by: Oleksandr Bazhaniuk <oleksandr.bazhaniuk@×××××.com>
1288 +Signed-off-by: Prasad J Pandit <pjp@×××××××××××××.org>
1289 +Message-id: 1460095428-22698-1-git-send-email-ppandit@××××××.com
1290 +Reviewed-by: Peter Maydell <peter.maydell@××××××.org>
1291 +Signed-off-by: Peter Maydell <peter.maydell@××××××.org>
1292 +---
1293 + hw/net/stellaris_enet.c | 12 +++++++++++-
1294 + 1 file changed, 11 insertions(+), 1 deletion(-)
1295 +
1296 +diff --git a/hw/net/stellaris_enet.c b/hw/net/stellaris_enet.c
1297 +index 84cf60b..6880894 100644
1298 +--- a/hw/net/stellaris_enet.c
1299 ++++ b/hw/net/stellaris_enet.c
1300 +@@ -236,8 +236,18 @@ static ssize_t stellaris_enet_receive(NetClientState *nc, const uint8_t *buf, si
1301 + n = s->next_packet + s->np;
1302 + if (n >= 31)
1303 + n -= 31;
1304 +- s->np++;
1305 +
1306 ++ if (size >= sizeof(s->rx[n].data) - 6) {
1307 ++ /* If the packet won't fit into the
1308 ++ * emulated 2K RAM, this is reported
1309 ++ * as a FIFO overrun error.
1310 ++ */
1311 ++ s->ris |= SE_INT_FOV;
1312 ++ stellaris_enet_update(s);
1313 ++ return -1;
1314 ++ }
1315 ++
1316 ++ s->np++;
1317 + s->rx[n].len = size + 6;
1318 + p = s->rx[n].data;
1319 + *(p++) = (size + 6);
1320 +--
1321 +2.7.4
1322 +
1323
1324 diff --git a/app-emulation/qemu/files/qemu-2.5.1-xfs-linux-headers.patch b/app-emulation/qemu/files/qemu-2.5.1-xfs-linux-headers.patch
1325 new file mode 100644
1326 index 0000000..743171b
1327 --- /dev/null
1328 +++ b/app-emulation/qemu/files/qemu-2.5.1-xfs-linux-headers.patch
1329 @@ -0,0 +1,82 @@
1330 +https://bugs.gentoo.org/577810
1331 +
1332 +From 277abf15a60f7653bfb05ffb513ed74ffdaea1b7 Mon Sep 17 00:00:00 2001
1333 +From: Jan Vesely <jano.vesely@×××××.com>
1334 +Date: Fri, 29 Apr 2016 13:15:23 -0400
1335 +Subject: [PATCH] configure: Check if struct fsxattr is available from linux
1336 + header
1337 +MIME-Version: 1.0
1338 +Content-Type: text/plain; charset=UTF-8
1339 +Content-Transfer-Encoding: 8bit
1340 +
1341 +Fixes build failure with --enable-xfsctl and
1342 +new linux headers (>=4.5) and older xfsprogs(<4.5):
1343 +In file included from /usr/include/xfs/xfs.h:38:0,
1344 + from /var/tmp/portage/app-emulation/qemu-2.5.0-r1/work/qemu-2.5.0/block/raw-posix.c:97:
1345 +/usr/include/xfs/xfs_fs.h:42:8: error: redefinition of ‘struct fsxattr’
1346 + struct fsxattr {
1347 + ^
1348 +In file included from /var/tmp/portage/app-emulation/qemu-2.5.0-r1/work/qemu-2.5.0/block/raw-posix.c:60:0:
1349 +/usr/include/linux/fs.h:155:8: note: originally defined here
1350 + struct fsxattr {
1351 +
1352 +This is really a bug in the system headers, but we can work around it
1353 +by defining HAVE_FSXATTR in the QEMU headers if linux/fs.h provides
1354 +the struct, so that xfs_fs.h doesn't try to define it as well.
1355 +
1356 +CC: qemu-trivial@××××××.org
1357 +CC: Markus Armbruster <armbru@××××××.com>
1358 +CC: Peter Maydell <peter.maydell@××××××.org>
1359 +CC: Stefan Weil <sw@××××××××.de>
1360 +Tested-by: Stefan Weil <sw@××××××××.de>
1361 +Signed-off-by: Jan Vesely <jano.vesely@×××××.com>
1362 +[PMM: adjusted commit message, comments]
1363 +Signed-off-by: Peter Maydell <peter.maydell@××××××.org>
1364 +---
1365 + configure | 23 +++++++++++++++++++++++
1366 + 1 file changed, 23 insertions(+)
1367 +
1368 +diff --git a/configure b/configure
1369 +index ab54f3c..c37fc5f 100755
1370 +--- a/configure
1371 ++++ b/configure
1372 +@@ -4494,6 +4494,21 @@ if test "$fortify_source" != "no"; then
1373 + fi
1374 +
1375 + ##########################################
1376 ++# check if struct fsxattr is available via linux/fs.h
1377 ++
1378 ++have_fsxattr=no
1379 ++cat > $TMPC << EOF
1380 ++#include <linux/fs.h>
1381 ++struct fsxattr foo;
1382 ++int main(void) {
1383 ++ return 0;
1384 ++}
1385 ++EOF
1386 ++if compile_prog "" "" ; then
1387 ++ have_fsxattr=yes
1388 ++fi
1389 ++
1390 ++##########################################
1391 + # End of CC checks
1392 + # After here, no more $cc or $ld runs
1393 +
1394 +@@ -5160,6 +5175,14 @@ fi
1395 + if test "$have_ifaddrs_h" = "yes" ; then
1396 + echo "HAVE_IFADDRS_H=y" >> $config_host_mak
1397 + fi
1398 ++
1399 ++# Work around a system header bug with some kernel/XFS header
1400 ++# versions where they both try to define 'struct fsxattr':
1401 ++# xfs headers will not try to redefine structs from linux headers
1402 ++# if this macro is set.
1403 ++if test "$have_fsxattr" = "yes" ; then
1404 ++ echo "HAVE_FSXATTR=y" >> $config_host_mak
1405 ++fi
1406 + if test "$vte" = "yes" ; then
1407 + echo "CONFIG_VTE=y" >> $config_host_mak
1408 + echo "VTE_CFLAGS=$vte_cflags" >> $config_host_mak
1409 +--
1410 +2.8.2
1411 +
1412
1413 diff --git a/app-emulation/qemu/qemu-2.5.0-r999.ebuild b/app-emulation/qemu/qemu-2.5.1-r99.ebuild
1414 similarity index 94%
1415 rename from app-emulation/qemu/qemu-2.5.0-r999.ebuild
1416 rename to app-emulation/qemu/qemu-2.5.1-r99.ebuild
1417 index 876141b..1d169e8 100644
1418 --- a/app-emulation/qemu/qemu-2.5.0-r999.ebuild
1419 +++ b/app-emulation/qemu/qemu-2.5.1-r99.ebuild
1420 @@ -84,8 +84,8 @@ SOFTMMU_LIB_DEPEND="${COMMON_LIB_DEPEND}
1421 fdt? ( >=sys-apps/dtc-1.4.0[static-libs(+)] )
1422 glusterfs? ( >=sys-cluster/glusterfs-3.4.0[static-libs(+)] )
1423 gnutls? (
1424 - dev-libs/nettle[static-libs(+)]
1425 - >=net-libs/gnutls-3.0[static-libs(+)]
1426 + dev-libs/nettle:=[static-libs(+)]
1427 + >=net-libs/gnutls-3.0:=[static-libs(+)]
1428 )
1429 gtk? (
1430 gtk2? (
1431 @@ -342,25 +342,13 @@ src_prepare() {
1432 EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
1433 epatch
1434
1435 - epatch "${FILESDIR}"/${P}-CVE-2015-8567.patch #567868
1436 - epatch "${FILESDIR}"/${P}-CVE-2015-8558.patch #568246
1437 - epatch "${FILESDIR}"/${P}-CVE-2015-8701.patch #570110
1438 - epatch "${FILESDIR}"/${P}-CVE-2015-8743.patch #570988
1439 - epatch "${FILESDIR}"/${P}-CVE-2016-1568.patch #571566
1440 - epatch "${FILESDIR}"/${P}-CVE-2015-8613.patch #569118
1441 - epatch "${FILESDIR}"/${P}-CVE-2015-8619.patch #569300
1442 - epatch "${FILESDIR}"/${P}-CVE-2016-1714.patch #571560
1443 - epatch "${FILESDIR}"/${P}-CVE-2016-1922.patch #572082
1444 - epatch "${FILESDIR}"/${P}-CVE-2016-1981.patch #572412
1445 - epatch "${FILESDIR}"/${P}-usb-ehci-oob.patch #572454
1446 - epatch "${FILESDIR}"/${P}-CVE-2016-2197.patch #573280
1447 - epatch "${FILESDIR}"/${P}-CVE-2016-2198.patch #573314
1448 - epatch "${FILESDIR}"/${P}-CVE-2016-2392.patch #574902
1449 - epatch "${FILESDIR}"/${P}-usb-ndis-int-overflow.patch #575492
1450 - epatch "${FILESDIR}"/${P}-rng-stack-corrupt-{0,1,2,3}.patch #576420
1451 - epatch "${FILESDIR}"/${P}-sysmacros.patch
1452 - epatch "${FILESDIR}"/${P}-ne2000-reg-check.patch #573816
1453 - epatch "${FILESDIR}"/${P}-9pfs-segfault.patch #578142
1454 + epatch "${FILESDIR}"/${PN}-2.5.0-CVE-2016-2198.patch #573314
1455 + epatch "${FILESDIR}"/${PN}-2.5.0-rng-stack-corrupt-{0,1,2,3}.patch #576420
1456 + epatch "${FILESDIR}"/${PN}-2.5.1-stellaris_enet-overflow.patch #579614
1457 + epatch "${FILESDIR}"/${PN}-2.5.1-CVE-2016-4020.patch #580040
1458 + epatch "${FILESDIR}"/${PN}-2.5.1-CVE-2015-8558.patch #568246 #580426
1459 + epatch "${FILESDIR}"/${PN}-2.5.0-sysmacros.patch
1460 + epatch "${FILESDIR}"/${PN}-2.5.1-xfs-linux-headers.patch #577810
1461
1462 # Fix ld and objcopy being called directly
1463 tc-export AR LD OBJCOPY