Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1163628
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Scott Wood <scottwood@freescale.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] powerpc: support sizes greater than an unsigned long |
| Date | Thu, 11 Jun 2015 23:30:02 +0200 |
| Message-ID | <pAicW-1fa-9@gated-at.bofh.it> (permalink) |
| References | <pq4kW-5mg-17@gated-at.bofh.it> <pqkpI-45m-19@gated-at.bofh.it> <pAbXQ-hK-25@gated-at.bofh.it> <pAcKf-1tz-21@gated-at.bofh.it> <pAdmV-2tN-17@gated-at.bofh.it> |
| X-Original-To | Cristian Stoica <cristian.stoica@freescale.com> |
| Authentication-Results | freescale.com; dkim=none (message not signed) header.d=none; |
| Content-Type | text/plain; charset="UTF-8" |
| X-Mailer | Evolution 3.16.0-fta1 |
| MIME-Version | 1.0 |
| Content-Transfer-Encoding | 7bit |
| X-Originating-IP | [2601:2:5800:3f7:12bf:48ff:fe84:c9a0] |
| X-Clientproxiedby | CY1PR13CA0046.namprd13.prod.outlook.com (25.163.230.142) To BY1PR03MB1482.namprd03.prod.outlook.com (25.162.210.140) |
| X-Microsoft-Exchange-Diagnostics | 1;BY1PR03MB1482;2:QAUlRqdSBJUtNa2CzQr3ZmgHHggb2uYo0SnE3ldVEG3yBCiyEvf/NxX5Jeq5QRuD;2:+NnnA0/rQNEffRKzCHeCWEaoKWB85Dya1Q5m2wpUjLqfhEiWtFN6T80fLLYY8/k9NK7k3Kuxx08UOsFjWKos5eRzFAN5mCKJICIYLE+PMouSixF6l6sPNbG5Y7RlDcL5DWwiy5cnEW4A8gYS64tDWg==;6:yzy4/uJelEKvaNieSp4Cbf7DZVf0gcaAx8Wj0QpkJdBGOmdNn+8PNV2urTfVnI1XaHuT6m0LK2FeKEd0GGmCSzNij5o4A1oMAbJBBtZeKp5ZXtT/cXCBAKFV6VbtcpkZG95i7qpQYvhGseYoPb9bGXhKtXWepd1T7ongyaTMPdn9WzW2lS7+xHNDONjRJlrDv7mMftxfmRgsWgZjamUWSzbZ/svn1XcsG41Y8ODKAtNzwALElqpXW5SJuvOf7cqKs8EYkIY9IgHK/4+99S7fG9NL8i+ldViSbBV6vNLLGMooUAfidETGEbgyb7VdUvn/nmikR+2Il6idkAPkEgZEP/p4viHzGDzkAU32sWAtDeAHmOoQClLPZRnDfgR1Qw2fYZD2fI8j2n/Uub7+wjvR2S9KgMjrMILat7ubqnfJFcUn+7VP+HECkzXMNP5bC9B3bYIGgDFELwoKuck3ZyWBuCBrD3hUpnz9i1Pp30+cdeNxG8vJY/W7Exy/PYDBKOyX |
| X-Microsoft-Antispam | UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1482;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1498; |
| X-Microsoft-Antispam-Prvs | <BY1PR03MB14820CF0286B69D4FF209639B5BC0@BY1PR03MB1482.namprd03.prod.outlook.com> |
| X-Exchange-Antispam-Report-Test | UriScan:; |
| X-Exchange-Antispam-Report-Cfa-Test | BCL:0;PCL:0;RULEID:(601004)(520003)(5005006)(3002001);SRVR:BY1PR03MB1482;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1482; |
| X-Microsoft-Exchange-Diagnostics | 1;BY1PR03MB1482;3:j3nptbERrfvQrnxg1t+n6tBV231GGhrv+ZHAGNN++NtwLRteW4q5Dxbxr2OhOwvTU8wVyEJ076VUG9I7kYvmF0FWZgD1SXpUBeqBUY60wYGsurdATo6OBx3hZ450AfJn2Gp2+nh4Pe1Qjo+AfqUryordqSUim38FzladPQhidX0oLybn9seE27qtkg9yf5YdFKeMKMIIZ1R5UrT65YNmkncoSIVYnUFvFeGmzbl0Qo9/I525NNKA1vMkNq80eZVVcNgwi9Tb7kWss+CIGj40kFhDIQMYbY820yhVTPIz6UkMFxQI9Ze15pihknK4NRbh |
| X-Forefront-Prvs | 0604AFA86B |
| X-Forefront-Antispam-Report | SFV:NSPM;SFS:(10019020)(6009001)(24454002)(479174004)(377454003)(51704005)(377424004)(36756003)(50986999)(5820100001)(93886004)(23676002)(40100003)(92566002)(103116003)(50226001)(77096005)(87976001)(33646002)(2950100001)(5001960100002)(86362001)(5001920100001)(46102003)(42186005)(62966003)(47776003)(189998001)(77156002)(76176999)(107886002)(122386002)(3826002)(4001450100001)(4001430100001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR03MB1482;H:[IPv6:2601:2:5800:3f7:12bf:48ff:fe84:c9a0];FPR:;SPF:None;MLV:sfv;LANG:en; |
| X-Microsoft-Exchange-Diagnostics | 1;BY1PR03MB1482;9:7K1qks7Mg6eZl9Hkj4TQOE2wjQ8HBf7xjX09UFjJFPrvtGUrk993dsZiCZDrcQADL9oBBZKJntWlpCPoWP8UTxABKRipxxAtpGWUHn+T2jo7IQy2m3XE3GvXWOwShVXDOf0BhooO8UnOH4CwigZGhqRo1dtGXkFxEyY1mrpgRILvQwc+g9y3dBaCIRt+ifakkqSNh969apXfc8tDU4OQch3Myd5SdHU4d+idwFnXoNDWfUa8JDbpZAn2KpeULVwU7MPHakGAr3+xNFoWYlKDG9LeYrNqQWwvS6lix8cCttis2JvoSCZibc4r64T8x5tgWe57D9DfLMMgHHUZpX6wJONdjN6Rw9C0JVXpMuiUGS5QTy3YQa9KGvtAfRBSfSsrqV45M+a6urOH0ZalzK6cEQsJ2HTF1SLoiGtOSmuXHCOgFfZ9+nW7u0tWOtFiv6Sid+BHsBmhOAvxXurszkpt/jAC134nW63iGJq3NJ3inV8dlXANjvM9AAYMMyyZoX16GEIXMjY4bhHtLq+IWPs+amNcfyWu0p3BKrUE7OjJkNBLU2GS6psfsLf9IfI+PyH1gicczZLAapO5sz9QI0gRsJXvR44Y/yAY/qqM2QqkP3yMDUzxx4Cj0DT89QJTG5dYwqP4xo/yRjRiXlK+iacuWJFQEhSYKM+jIyMTZ8kh+0+/EzKJkl6x8NfrheOC2BDTQNT076kiikLwUGGFTBwTT4JNAyGWC3lJfXLuTeQQRu6YTLdpW61jb0vIM/IJjME03qF6w4OaKHGEPFp9FG58tXNzX1+PrAWPKd5wX845y5Bd3F86tsF5FFJ4dfAUoGTP16g2iOseKdRT4eI7HPZREH57XX+wQy6u53iQ/zEwDPkUs78+qJiHS0+Y2oAMkuvdWFINyybuyVcQdehimppXciAjHbccHyiImOHp2f+S6oZ7KPQIOaUbs+bZH9DHMj4K |
| X-Microsoft-Exchange-Diagnostics | 1;BY1PR03MB1482;3:wTAELl+NtTEZaN+/mrQYR0wAc+ETBHjHj3sS/SJ8CZ1fNbko71YCpmqUAm5oWOk6uiqtva4SI3TfIeRmSdV+9OQn0ODy5slIvJc+qs4octE7IcU5Z64ohl5lQsjAO8gj4uVtMAuZKwGm+hbT7OKk1A==;10:t5iHXY9uZXx3DO19FHX/E9QJC1GPj3p9qPIpifIzSG6hPgA2vOoFQQVIooPb95D85Uhn3Lcu9HVI+6Gq5SVndAZ5HSECrd09MQAOTb+LaqE=;6:84jFIIvLM17Px8bGgCOgi/FEfvaopoexRKH8geEHlP260a5A0qNDA4RIW9rbJ2Bl |
| X-Ms-Exchange-Crosstenant-Originalarrivaltime | 11 Jun 2015 21:28:04.5843 (UTC) |
| X-Ms-Exchange-Crosstenant-Fromentityheader | Hosted |
| X-Ms-Exchange-Transport-Crosstenantheadersstamped | BY1PR03MB1482 |
| X-Microsoft-Exchange-Diagnostics | 1;BY1PR03MB1498;2:LctNRtqTUzfWCU3VN9CDychFWId1GzhBt7XbEkaZFTN47Zs/e9JGUWX/eNUOP8yq;2:NFyGrk8R79TuGGkSz6R5AqHWA3BbAawfFPzJnK9YMGcmfaXDcUbVUJMT1Tsr4azS3eYLx3u9GYCLP/P24XfHPHL+apNd3e5WTd7/sKmabZgPf4oBv2qLeL52F9RSvQe/VlHEN8kyfzppnzGbSwHWlQ==;9:lqByWuu2KAahvhvVi5uLsJToeaNJD9F1cGiRwiw6R7DBwlEpKDx3Ao6AxR9CL2FSgEL2RfSWwk3fLTr9kaWlgSKcgre+a0W9xaWFYQhs7hIpmOLDU/tjeDfaeZqoa82Hnu4sK/VLRqJlNfeLEb8RyQ== |
| X-Originatororg | freescale.com |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 36 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | <linuxppc-dev@lists.ozlabs.org>, <linux-kernel@vger.kernel.org>, <horia.geanta@freescale.com> |
| X-Original-Date | Thu, 11 Jun 2015 16:27:55 -0500 |
| X-Original-Message-ID | <1434058075.2477.178.camel@freescale.com> |
| X-Original-References | <1431620684-20123-1-git-send-email-cristian.stoica@freescale.com> <1431683064-29584-1-git-send-email-cristian.stoica@freescale.com> <55799E38.1000004@freescale.com> <20150611153835.GB5058@kroah.com> <5579B2FC.4010008@freescale.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | aioe.org linux.kernel:1163628 |
Show key headers only | View raw
On Thu, 2015-06-11 at 19:10 +0300, Cristian Stoica wrote: > On 06/11/2015 06:38 PM, Greg KH wrote: > > On Thu, Jun 11, 2015 at 05:42:00PM +0300, Cristian Stoica wrote: > > > > Why? > > > > This patch matches the input argument "size" of ioremap() with the > output of request_mem_region() (which is > resource_size_t). > Since the latter is used as input to the former, the types should > match (even though mapping more than 4G is not usually > expected). There are a lot of such differences in the code and this > is an attempt to reduce that. Dropping the upper bits of the size harms the ability to detect error scenarios where unmappably large -- but not power-of-two -- regions are requested to be mapped. However, this patch doesn't fix that. It just postpones the loss of the upper 32 bits until __ioremap_caller() calls get_vm_area_caller(). There's also no error checking at all for the size of ioremap() done during early boot (!slab_is_available()). Don't just blindly turn static analyzer reports into patches -- and why didn't the analyzer complain about the call to get_vm_area_caller() after this patch? -Scott -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH v2] powerpc: support sizes greater than an unsigned long Scott Wood <scottwood@freescale.com> - 2015-06-11 23:30 +0200
csiph-web