:1000000001BCE302E303E304E305E306E3079344EF :1000100056D4934E5651934E51D6934E4F54934EC1 :10002000924F92A4930592F4931B929291E692368A :100030009274924A928C928EC8D00B4202A0CA92BD :100040000902C9100A0A0A81E3B8E3B0E3A8E3A0F1 :10005000E398E390E100CFD70A12CC9508B20A18D2 :10006000E10001EE0C084A12C818F09AC022F31CF5 :100070004A13F314C8A0F214F21CEB13D3A26316B4 :10008000489EF018A403F393C058F713519CE9203D :10009000CFEF63F9922ED35F63FA922ED36763FB9F :1000A000922ED36FE91A631648A7F020A406F394A2 :1000B000C027F714F513519DF6136318C420CBEF36 :1000C00063FC922ED37763FD922ED37F63FE922E34 :1000D000D38763FF922ED38F6438922ED3976439DF :1000E000922ED39FE100F53AF43BF7BFF2BCF23D0C :1000F000E1008087908051D5022202324BD3F71164 :100100000BDAE1000E0202400DB5E3024855E5129C :10011000A401E81BE390F018A401E8BF8DB84BD10F :100120004BD80BCB0BC2E100E302E30352D360597F :10013000E6930D2252D4E6930D2AE398E390E10072 :10014000025D0263E302C81202CAC85202C2826898 :10015000E302C81402CAC89002C20AD0C9930ADADC :10016000CCD20AE2631202DA0A980AA00AA8E39043 :10017000E100E3020AD0C9930ADACCD20AE26312A0 :1001800002DA0A980AA00AA84991E56AA404C812EA :1001900002CAC8528289C81402CAC89002C2E39037 :1001A000E1000860E1004853E897085AE100E302E3 :1001B000E30354D36059E6930D52E398E390E100D2 :1001C000029CE3025513931755139317E390E10034 :1001D0007530E302E30355556059E6930DB2E39899 :1001E000E390E10002AEE792E918EA9AE898E81095 :1001F000E811E851D2DAD2F3E813D2FAE850D2EAA1 :10020000E8D0E8D1D30A03094823E52CA003482409 :10021000EA1C0308D2E3D303D313E10002CB059316 :100220005793F09AAC0BE30792EAE29FE506E3B03E :10023000A002EB1E82D7EA1EE23B859BE91EC89016 :10024000859402DE05805793F0BAAC0692EAE2BFCD :10025000E506A001EBBF8588E93EC8908581E93EAF :10026000F0BAF339F03A6017F03AC090F0BAE10012 :10027000003FE302E30358106059E6930DA25812C1 :10028000E6930DAAE398E390E1000301E100030384 :100290009B7D8B8BE302E30358566059E6930DBABE :1002A000E398E390E100030F9311E100E3024A11A8 :1002B0000B4291AFE390E100F291F091A3FEE100D7 :1002C0006092C05FF013F013595BE213F0115A19FA :1002D000E213E10000000327686176616E610006A9 :1002E000032CE302E303E9385915595AF29ABC0B7F :1002F000A40A591EF311F01AE2BB5915F011192A7C :10030000E502A401EBBFE398E390E1000342192862 :10031000E100E9306079E100E303E3076079934E9F :10032000E3B8E398E100E91AF01FE233F091E292BA :08033000E032F031E1000000B1 :00000001FF Copyright 2001, STMicrolectronics, Inc. Contact: steve.miller@st.com Description: This file contains patch data for the CPiA2 (stv0672) VP4. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. fde9fd7f6c38beaaf581514b706d07c7aec0'>Collapse)AuthorFilesLines ='label'>context:space:mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-01-10 02:28:26 -0800
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-01-14 21:23:48 -0800
commit52d7e48b86fc108e45a656d8e53e4237993c481d (patch)
tree5e95c29eb7a49a5c026e8f4af0c6b9da46f52122 /include/uapi/mtd
parentf466ae66fa6a599f9a53b5f9bafea4b8cfffa7fb (diff)
rcu: Narrow early boot window of illegal synchronous grace periods
The current preemptible RCU implementation goes through three phases during bootup. In the first phase, there is only one CPU that is running with preemption disabled, so that a no-op is a synchronous grace period. In the second mid-boot phase, the scheduler is running, but RCU has not yet gotten its kthreads spawned (and, for expedited grace periods, workqueues are not yet running. During this time, any attempt to do a synchronous grace period will hang the system (or complain bitterly, depending). In the third and final phase, RCU is fully operational and everything works normally. This has been OK for some time, but there has recently been some synchronous grace periods showing up during the second mid-boot phase. This code worked "by accident" for awhile, but started failing as soon as expedited RCU grace periods switched over to workqueues in commit 8b355e3bc140 ("rcu: Drive expedited grace periods from workqueue"). Note that the code was buggy even before this commit, as it was subject to failure on real-time systems that forced all expedited grace periods to run as normal grace periods (for example, using the rcu_normal ksysfs parameter). The callchain from the failure case is as follows: early_amd_iommu_init() |-> acpi_put_table(ivrs_base); |-> acpi_tb_put_table(table_desc); |-> acpi_tb_invalidate_table(table_desc); |-> acpi_tb_release_table(...) |-> acpi_os_unmap_memory |-> acpi_os_unmap_iomem |-> acpi_os_map_cleanup |-> synchronize_rcu_expedited The kernel showing this callchain was built with CONFIG_PREEMPT_RCU=y, which caused the code to try using workqueues before they were initialized, which did not go well. This commit therefore reworks RCU to permit synchronous grace periods to proceed during this mid-boot phase. This commit is therefore a fix to a regression introduced in v4.9, and is therefore being put forward post-merge-window in v4.10. This commit sets a flag from the existing rcu_scheduler_starting() function which causes all synchronous grace periods to take the expedited path. The expedited path now checks this flag, using the requesting task to drive the expedited grace period forward during the mid-boot phase. Finally, this flag is updated by a core_initcall() function named rcu_exp_runtime_mode(), which causes the runtime codepaths to be used. Note that this arrangement assumes that tasks are not sent POSIX signals (or anything similar) from the time that the first task is spawned through core_initcall() time. Fixes: 8b355e3bc140 ("rcu: Drive expedited grace periods from workqueue") Reported-by: "Zheng, Lv" <lv.zheng@intel.com> Reported-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Tested-by: Stan Kain <stan.kain@gmail.com> Tested-by: Ivan <waffolz@hotmail.com> Tested-by: Emanuel Castelo <emanuel.castelo@gmail.com> Tested-by: Bruno Pesavento <bpesavento@infinito.it> Tested-by: Borislav Petkov <bp@suse.de> Tested-by: Frederic Bezies <fredbezies@gmail.com> Cc: <stable@vger.kernel.org> # 4.9.0-
Diffstat (limited to 'include/uapi/mtd')