:1000000000000000210070000000000020007000CF :1000100000000004000000BF00000004000000C356 :10002000000000007A685E5D000000005D5D55889C :100030000000000068659197000000005DA19F78B6 :10004000000000005D5D5D5D000000005DEE5D5044 :1000500000000000F2ACACAC00000000E75DF9E984 :1000600000000000B1DD0E1100000000E2AFAFAFF4 :1000700000000016000F000000000000452F232D97 :10008000000000040000001300000016000F000034 :1000900000000000452F272D00000016000F000172 :1000A000000000003E4D4A3700000002000077EFDC :1000B00000000002000610000000001A00000020EE :1000C0000000001E000040000000000200061000BA :1000D0000000001A000000200000001E0000400088 :1000E00000000002000610000000001A00000020BE :1000F0000000001E00004000000000040000001688 :10010000000000020003802A00000002040067E0F3 :10011000000000040000001600000002000077E06C :10012000000000020006500000000002000037E15D :1001300000000006040067E100000002000077E014 :1001400000000002000077E100000006000077E1F7 :1001500000000000FFFFFFFF000000001000000093 :100160000000000007F007F0000000020003802AF2 :1001700000000006040067E0000000020003802C7D :100180000000000204002741000000020400274193 :100190000000000204002743000000020000767502 :1001A0000000000200007676000000020000767772 :1001B0000000000600007678000000020003802C9A :1001C0000000000204002741000000020400274153 :1001D00000000002040027430000000200007676C1 :1001E000000000020000767700000006000076782C :1001F000000000020003802B0000000204002676AD :100200000000000200007677000000020003802C4E :100210000000000204002741000000020400274300 :100220000000000600007678000000020003802C29 :1002300000000002040027410000000204002741E2 :10024000000000020400274300000006000076784A :10025000000000180000002F000000180000002F10 :100260000000000600000000000000180000003739 :100270000000001800000037000000060000000029 :100280000000000201605000000000020006500063 :1002900000000002000980000000000200061000BB :1002A0000000000464C06051000000160008000057 :1002B0000000000000000000000000020400251DF6 :1002C0000000000200007580000000020006758139 :1002D0000000000204002580000000020006758175 :1002E000000000040000005A000000000000500060 :1002F0000000000200061000000000020000750E61 :1003000000000002000190000000001400011064D1 :100310000000001200000064000000020400250F2D :10032000000000040000505E00000002000075653F :100330000000000200007566000000040000006577 :100340000000000201E655B4000000024401B0F0D4 :100350000000000201C110F0000000182666707154 :1003600000000002040C2565000000180000007168 :100370000000000204002564000000020000756611 :100380000000000400000068000000080040107435 :10039000000000020010100000000002000D80FFAD :1003A000000000080080007700000002000F9000AD :1003B00000000002000E00FF000000060000000028 :1003C0000000001800000094000000040000006815 :1003D00000000002000075760000000200065000D8 :1003E0000000000200009000000000020004100065 :1003F000000000020C00350E000000020004900016 :1004000000000002000510000000000201E785F86E :1004100000000002002000000000000C00600087C7 :10042000000000020000756300000021006075F00C :10043000000000042000707C000000040000507CDC :1004400000000002000075760000000200007577D1 :10045000000000020000750E000000020000750F91 :100460000000000200A050000000000C0060008AA4 :1004700000000021006075F000000002000075F827 :10048000000000040000008A00000002000A750E4F :10049000000000020020750F000000040060008DC5 :1004A000000000020000757000000002000075717D :1004B00000000006000075720000000200005000FD :1004C0000000000200A0500000000002000075685B :1004D00000000002000610000000000C0000009860 :1004E0000000000200058000000000020C60756240 :1004F000000000040000009A000000040060009961 :1005000000000000400070F100000002000380F1D4 :100510000000001C000000A700000018000650A901 :1005200000000002040025BB00000018000610AA0D :1005300000000000040075BC00000002000075BB54 :1005400000000000000075BC00000006000900006B :10055000000000020009000000000006000D8002FB :10056000000000020000500000000002000078219E :100570000000000000007800000000020000782168 :10058000000000000000780000000002016650003A :1005900000000002000A000000000002000671CC0A :1005A000000000020286F1CD00000010000000B73C :1005B00000000000210070000000001C000000BED0 :1005C000000000020006500000000002000A0000C7 :1005D000000000020006100000000002000B0000F6 :1005E000000000023806700000000004000A00BA93 :1005F0000000000020007000000000020120000048 :10060000000000022007700000000002012000002E :100610000000000020007000000000020006100032 :10062000000000020120751B000000028040750AD6 :10063000000000028040750B000000020011000065 :1006400000000002000380F10000001C000000D147 :1006500000000018000610AA00000002844075BDCA :1006600000000018000610A900000002840075BBFD :1006700000000018000610AA00000002844075BCAB :1006800000000004000000D400000002804075BD9E :1006900000000002800075BB00000002804075BCB5 :1006A0000000000200108000000000020140000075 :1006B0000000000C006000D80000002020C0700086 :1006C00000000012000000DA0000000600800000B8 :1006D000000000060080751D00000002000025BB20 :1006E00000000004000040D4000000020000775C1D :1006F0000000000200A05000000000020066100090 :10070000000000200460275D0000000000004000A1 :1007100000000002000079990000000200A05000D3 :100720000000000200661000000000200460299B09 :1007300000000000000040000000000201E008305E :1007400000000000210070000000000200005000C6 :10075000000000020003805600000002040025E0B3 :1007600000000000000075E1000000000000000132 :1007700000000002000380ED0000000004007394FC :100780000000000000000000000000000000000069 :1007900000000002000078C400000002000078C5DC :1007A00000000002000078C600000002000079246A :1007B00000000002000079250000000200007926F8 :1007C00000000004000000F2000000020000792494 :1007D00000000002000079250000000200007926D8 :1007E00000000004000000F900000000000000000C :1007F00000000000000000000000000000000000F9 :00000001FF /* production radeon ucode r1xx-r6xx */ /ncsi/ncsi-manage.c?id=07cd12945551b63ecb1a349d50a6d69d1d6feb4a&id2=7ce7d89f48834cefece7804d38fc5d85382edf77'>diff)
cgroup: don't online subsystems before cgroup_name/path() are operational
While refactoring cgroup creation, a5bca2152036 ("cgroup: factor out cgroup_create() out of cgroup_mkdir()") incorrectly onlined subsystems before the new cgroup is associated with it kernfs_node. This is fine for cgroup proper but cgroup_name/path() depend on the associated kernfs_node and if a subsystem makes the new cgroup_subsys_state visible, which they're allowed to after onlining, it can lead to NULL dereference. The current code performs cgroup creation and subsystem onlining in cgroup_create() and cgroup_mkdir() makes the cgroup and subsystems visible afterwards. There's no reason to online the subsystems early and we can simply drop cgroup_apply_control_enable() call from cgroup_create() so that the subsystems are onlined and made visible at the same time. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Fixes: a5bca2152036 ("cgroup: factor out cgroup_create() out of cgroup_mkdir()") Cc: stable@vger.kernel.org # v4.6+
Diffstat (limited to 'net/ncsi/ncsi-manage.c')