cpuset.cpus.partition : Segmentation fault (core dumped)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

While doing some cpuset operatios, I see segmentation fault.
This is with 6.2-rc5. My sequence of commands may not be correct.

The last commands I was doing were:

root@my-desktop:/sys/fs/cgroup/lpm_cpus# echo 18-19 > cpuset.cpus
root@my-desktop:/sys/fs/cgroup/lpm_cpus# cat cpuset.cpus.partition
member
root@my-desktop:/sys/fs/cgroup/lpm_cpus# echo root >
cpuset.cpus.partition
root@my-desktop:/sys/fs/cgroup/lpm_cpus# cat cpuset.cpus.partition
root
root@my-desktop:/sys/fs/cgroup/lpm_cpus# echo 0-19 > cpuset.cpus
root@my-desktop:/sys/fs/cgroup/lpm_cpus# cat cpuset.cpus.partition
root invalid (Parent unable to distribute cpu downstream)
root@my-desktop:/sys/fs/cgroup/lpm_cpus# cat cpuset.cpus
0-19
root@my-desktop:/sys/fs/cgroup/lpm_cpus# echo root >
cpuset.cpus.partition
root@my-desktop:/sys/fs/cgroup/lpm_cpus# echo member >
cpuset.cpus.partition
root@my-desktop:/sys/fs/cgroup/lpm_cpus# echo root >
cpuset.cpus.partition
Segmentation fault (core dumped)


[149384.278880] ------------[ cut here ]------------
[149384.278884] WARNING: CPU: 8 PID: 8628 at
kernel/sched/topology.c:2257 build_sched_domains+0xf5e/0x1620
[149384.278892] Modules linked in: r8153_ecm cdc_ether usbnet r8152 mii
rfcomm snd_seq_dummy snd_hrtimer cmac algif_hash algif_skcipher af_alg
bnep btusb btrtl btbcm btintel btmtk snd_ctl_led uvcvideo bluetooth
videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videodev
snd_soc_sof_sdw hid_sensor_custom_intel_hinge hid_sensor_als
videobuf2_common hid_sensor_trigger ecdh_generic
snd_soc_intel_hda_dsp_common industrialio_triggered_buffer
snd_sof_probes mc snd_soc_intel_sof_maxim_common ecc kfifo_buf
hid_sensor_iio_common binfmt_misc snd_soc_rt715_sdca industrialio
snd_soc_rt711_sdca dell_rbtn snd_soc_rt1316_sdw regmap_sdw_mbq
hid_sensor_custom regmap_sdw hid_sensor_hub snd_soc_dmic
snd_sof_pci_intel_tgl intel_ishtp_hid nls_iso8859_1
snd_sof_intel_hda_common joydev soundwire_intel
soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda
snd_sof_pci snd_sof_xtensa_dsp snd_sof iwlmvm snd_sof_utils dell_laptop
snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match
x86_pkg_temp_thermal
[149384.278944]  intel_powerclamp snd_soc_acpi soundwire_bus coretemp
mac80211 snd_soc_core kvm_intel snd_compress ac97_bus
snd_hda_codec_hdmi libarc4 snd_pcm_dmaengine kvm snd_hda_intel
snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec iwlwifi snd_hda_core
snd_hwdep snd_pcm cmdlinepart snd_seq_midi spi_nor snd_seq_midi_event
crct10dif_pclmul mei_hdcp snd_rawmidi crc32_pclmul hid_multitouch
mei_pxp ghash_clmulni_intel dell_wmi sha512_ssse3 ledtrig_audio mtd
rtsx_pci_sdmmc aesni_intel snd_seq processor_thermal_device_pci
crypto_simd processor_thermal_device processor_thermal_rfim cryptd
dell_smbios hid_generic dell_wmi_sysman dcdbas rapl snd_seq_device
intel_rapl_msr ucsi_acpi intel_cstate snd_timer intel_ish_ipc mei_me
processor_thermal_mbox spi_intel_pci cfg80211 dell_wmi_ddv typec_ucsi
dell_wmi_descriptor firmware_attributes_class wmi_bmof rtsx_pci snd mei
i2c_i801 intel_lpss_pci spi_intel processor_thermal_rapl intel_lpss
xhci_pci i2c_smbus typec i2c_hid_acpi intel_ishtp soundcore
[149384.278997]  xhci_pci_renesas idma64 intel_rapl_common igen6_edac
i2c_hid hid int3403_thermal int340x_thermal_zone int3400_thermal
intel_hid acpi_tad acpi_pad acpi_thermal_rel sparse_keymap msr
parport_pc ppdev lp ramoops parport pstore_blk reed_solomon pstore_zone
efi_pstore ip_tables x_tables autofs4 nvme nvme_core ahci libahci i915
i2c_algo_bit drm_buddy drm_display_helper drm_kms_helper syscopyarea
sysfillrect sysimgblt cec rc_core ttm drm psmouse input_leds video
serio_raw vmd mac_hid wmi pinctrl_tigerlake
[149384.279034] CPU: 8 PID: 8628 Comm: bash Not tainted 6.2.0-rc5+ #6
[149384.279037] Hardware name: Dell Inc. Precision 5770/0PU01A, BIOS
1.12.0 10/05/2022
[149384.279039] RIP: 0010:build_sched_domains+0xf5e/0x1620
[149384.279043] Code: e9 85 fd ff ff 0f 0b e9 83 fe ff ff 4c 8b ad 78
ff ff ff 44 8b bd 70 ff ff ff 44 8b 35 7b fb e8 01 41 83 c5 01 e9 4a fc
ff ff <0f> 0b 41 bf f4 ff ff ff e9 cf fa ff ff 48 89 df e8 8d ab 20 00
31
[149384.279045] RSP: 0000:ffffa7190f46fb30 EFLAGS: 00010246
[149384.279047] RAX: 0000000000000014 RBX: 0000000000000014 RCX:
0000000000000000
[149384.279049] RDX: 0000000000000000 RSI: 0000000000000000 RDI:
0000000000000000
[149384.279050] RBP: ffffa7190f46fbe0 R08: 0000000000000000 R09:
0000000000000000
[149384.279051] R10: 0000000000000000 R11: 0000000000000001 R12:
ffff9610b5eff858
[149384.279052] R13: 0000000000000001 R14: ffff9610b5b61da0 R15:
0000000000000000
[149384.279054] FS:  00007fc229694740(0000) GS:ffff9617ef400000(0000)
knlGS:0000000000000000
[149384.279056] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[149384.279057] CR2: 00007ffde4357968 CR3: 0000000106c3c002 CR4:
0000000000770ee0
[149384.279059] PKRU: 55555554
[149384.279060] Call Trace:
[149384.279062]  <TASK>
[149384.279065]  ? __set_cpus_allowed_ptr_locked+0xef/0x1b0
[149384.279069]  partition_sched_domains_locked+0x2b7/0x910
[149384.279072]  ? __kmem_cache_alloc_node+0x196/0x330
[149384.279076]  ? rebuild_sched_domains_locked+0x37b/0x830
[149384.279080]  rebuild_sched_domains_locked+0x51b/0x830
[149384.279083]  update_prstate+0x121/0x340
[149384.279085]  sched_partition_write+0x97/0x1d0
[149384.279088]  cgroup_file_write+0x8a/0x1b0
[149384.279091]  ? __check_object_size+0x23a/0x260
[149384.279096]  kernfs_fop_write_iter+0x130/0x210
[149384.279099]  vfs_write+0x24e/0x410
[149384.279103]  ksys_write+0x73/0x100
[149384.279105]  __x64_sys_write+0x19/0x30
[149384.279108]  do_syscall_64+0x58/0x90
[149384.279112]  ? do_syscall_64+0x67/0x90
[149384.279114]  ? do_syscall_64+0x67/0x90
[149384.279117]  entry_SYSCALL_64_after_hwframe+0x72/0xdc
[149384.279120] RIP: 0033:0x7fc22950cd94
[149384.279122] Code: 15 71 90 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff
ff eb b7 0f 1f 00 f3 0f 1e fa 80 3d 4d 18 0f 00 00 74 13 b8 01 00 00 00
0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 48 83 ec 28 48 89 54 24 18
48
[149384.279124] RSP: 002b:00007ffde435c5b8 EFLAGS: 00000202 ORIG_RAX:
0000000000000001
[149384.279126] RAX: ffffffffffffffda RBX: 0000000000000005 RCX:
00007fc22950cd94
[149384.279128] RDX: 0000000000000005 RSI: 000055f9c84b9760 RDI:
0000000000000001
[149384.279129] RBP: 000055f9c84b9760 R08: 000055f9c7ba1a20 R09:
0000000000000073
[149384.279130] R10: 00000000ffffffff R11: 0000000000000202 R12:
0000000000000005
[149384.279132] R13: 00007fc2295f7760 R14: 00007fc2295f35e0 R15:
00007fc2295f29e0
[149384.279134]  </TASK>
[149384.279135] ---[ end trace 0000000000000000 ]---
[149384.279137] rd : Disabling EAS, SMT is not supported
[149384.279145] general protection fault, probably for non-canonical
address 0x657361625f767681: 0000 [#1] PREEMPT SMP NOPTI
[149384.279149] CPU: 8 PID: 8628 Comm: bash Tainted: G        W       
6.2.0-rc5+ #6
[149384.279152] Hardware name: Dell Inc. Precision 5770/0PU01A, BIOS
1.12.0 10/05/2022
[149384.279153] RIP: 0010:partition_sched_domains_locked+0x477/0x910
[149384.279157] Code: 41 80 fc 01 0f 87 65 17 e2 00 41 83 e4 01 74 11
e9 3f 17 e2 00 4c 89 ff 4d 8b 7f 08 e8 72 90 20 00 4d 85 ff 75 ef 48 8b
4d b8 <48> 8b 81 18 07 00 00 48 c7 81 18 07 00 00 00 00 00 00 48 85 c0
74
[149384.279159] RSP: 0000:ffffa7190f46fbf0 EFLAGS: 00010246
[149384.279161] RAX: 0000000000000028 RBX: ffff9610b5eff850 RCX:
657361625f766f69
[149384.279163] RDX: 0000000000000000 RSI: 0000000000000000 RDI:
0000000000000000
[149384.279164] RBP: ffffa7190f46fc80 R08: 0000000000000000 R09:
0000000000000000
[149384.279166] R10: 0000000000000000 R11: 0000000000000000 R12:
ffff9610b5b61d10
[149384.279167] R13: 0000000000000014 R14: 0000000000000008 R15:
ffffffffbda1f000
[149384.279169] FS:  00007fc229694740(0000) GS:ffff9617ef400000(0000)
knlGS:0000000000000000
[149384.279171] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[149384.279172] CR2: 00007ffde4357968 CR3: 0000000106c3c002 CR4:
0000000000770ee0
[149384.279174] PKRU: 55555554
[149384.279175] Call Trace:
[149384.279177]  <TASK>
[149384.279179]  rebuild_sched_domains_locked+0x51b/0x830
[149384.279182]  update_prstate+0x121/0x340
[149384.279185]  sched_partition_write+0x97/0x1d0
[149384.279188]  cgroup_file_write+0x8a/0x1b0
[149384.279191]  ? __check_object_size+0x23a/0x260
[149384.279195]  kernfs_fop_write_iter+0x130/0x210
[149384.279198]  vfs_write+0x24e/0x410
[149384.279201]  ksys_write+0x73/0x100
[149384.279204]  __x64_sys_write+0x19/0x30
[149384.279206]  do_syscall_64+0x58/0x90
[149384.279209]  ? do_syscall_64+0x67/0x90
[149384.279212]  ? do_syscall_64+0x67/0x90
[149384.279215]  entry_SYSCALL_64_after_hwframe+0x72/0xdc
[149384.279217] RIP: 0033:0x7fc22950cd94
[149384.279219] Code: 15 71 90 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff
ff eb b7 0f 1f 00 f3 0f 1e fa 80 3d 4d 18 0f 00 00 74 13 b8 01 00 00 00
0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 48 83 ec 28 48 89 54 24 18
48
[149384.279221] RSP: 002b:00007ffde435c5b8 EFLAGS: 00000202 ORIG_RAX:
0000000000000001
[149384.279223] RAX: ffffffffffffffda RBX: 0000000000000005 RCX:
00007fc22950cd94
[149384.279225] RDX: 0000000000000005 RSI: 000055f9c84b9760 RDI:
0000000000000001
[149384.279226] RBP: 000055f9c84b9760 R08: 000055f9c7ba1a20 R09:
0000000000000073
[149384.279228] R10: 00000000ffffffff R11: 0000000000000202 R12:
0000000000000005
[149384.279229] R13: 00007fc2295f7760 R14: 00007fc2295f35e0 R15:
00007fc2295f29e0
[149384.279232]  </TASK>
[149384.279233] Modules linked in: r8153_ecm cdc_ether usbnet r8152 mii
rfcomm snd_seq_dummy snd_hrtimer cmac algif_hash algif_skcipher af_alg
bnep btusb btrtl btbcm btintel btmtk snd_ctl_led uvcvideo bluetooth
videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videodev
snd_soc_sof_sdw hid_sensor_custom_intel_hinge hid_sensor_als
videobuf2_common hid_sensor_trigger ecdh_generic
snd_soc_intel_hda_dsp_common industrialio_triggered_buffer
snd_sof_probes mc snd_soc_intel_sof_maxim_common ecc kfifo_buf
hid_sensor_iio_common binfmt_misc snd_soc_rt715_sdca industrialio
snd_soc_rt711_sdca dell_rbtn snd_soc_rt1316_sdw regmap_sdw_mbq
hid_sensor_custom regmap_sdw hid_sensor_hub snd_soc_dmic
snd_sof_pci_intel_tgl intel_ishtp_hid nls_iso8859_1
snd_sof_intel_hda_common joydev soundwire_intel
soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda
snd_sof_pci snd_sof_xtensa_dsp snd_sof iwlmvm snd_sof_utils dell_laptop
snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match
x86_pkg_temp_thermal
[149384.279274]  intel_powerclamp snd_soc_acpi soundwire_bus coretemp
mac80211 snd_soc_core kvm_intel snd_compress ac97_bus
snd_hda_codec_hdmi libarc4 snd_pcm_dmaengine kvm snd_hda_intel
snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec iwlwifi snd_hda_core
snd_hwdep snd_pcm cmdlinepart snd_seq_midi spi_nor snd_seq_midi_event
crct10dif_pclmul mei_hdcp snd_rawmidi crc32_pclmul hid_multitouch
mei_pxp ghash_clmulni_intel dell_wmi sha512_ssse3 ledtrig_audio mtd
rtsx_pci_sdmmc aesni_intel snd_seq processor_thermal_device_pci
crypto_simd processor_thermal_device processor_thermal_rfim cryptd
dell_smbios hid_generic dell_wmi_sysman dcdbas rapl snd_seq_device
intel_rapl_msr ucsi_acpi intel_cstate snd_timer intel_ish_ipc mei_me
processor_thermal_mbox spi_intel_pci cfg80211 dell_wmi_ddv typec_ucsi
dell_wmi_descriptor firmware_attributes_class wmi_bmof rtsx_pci snd mei
i2c_i801 intel_lpss_pci spi_intel processor_thermal_rapl intel_lpss
xhci_pci i2c_smbus typec i2c_hid_acpi intel_ishtp soundcore
[149384.279318]  xhci_pci_renesas idma64 intel_rapl_common igen6_edac
i2c_hid hid int3403_thermal int340x_thermal_zone int3400_thermal
intel_hid acpi_tad acpi_pad acpi_thermal_rel sparse_keymap msr
parport_pc ppdev lp ramoops parport pstore_blk reed_solomon pstore_zone
efi_pstore ip_tables x_tables autofs4 nvme nvme_core ahci libahci i915
i2c_algo_bit drm_buddy drm_display_helper drm_kms_helper syscopyarea
sysfillrect sysimgblt cec rc_core ttm drm psmouse input_leds video
serio_raw vmd mac_hid wmi pinctrl_tigerlake
[149384.279350] ---[ end trace 0000000000000000 ]---
[149384.693895] RIP: 0010:partition_sched_domains_locked+0x477/0x910
[149384.693902] Code: 41 80 fc 01 0f 87 65 17 e2 00 41 83 e4 01 74 11
e9 3f 17 e2 00 4c 89 ff 4d 8b 7f 08 e8 72 90 20 00 4d 85 ff 75 ef 48 8b
4d b8 <48> 8b 81 18 07 00 00 48 c7 81 18 07 00 00 00 00 00 00 48 85 c0
74
[149384.693904] RSP: 0000:ffffa7190f46fbf0 EFLAGS: 00010246
[149384.693907] RAX: 0000000000000028 RBX: ffff9610b5eff850 RCX:
657361625f766f69
[149384.693909] RDX: 0000000000000000 RSI: 0000000000000000 RDI:
0000000000000000
[149384.693910] RBP: ffffa7190f46fc80 R08: 0000000000000000 R09:
0000000000000000
[149384.693911] R10: 0000000000000000 R11: 0000000000000000 R12:
ffff9610b5b61d10
[149384.693912] R13: 0000000000000014 R14: 0000000000000008 R15:
ffffffffbda1f000
[149384.693914] FS:  00007fc229694740(0000) GS:ffff9617ef400000(0000)
knlGS:0000000000000000
[149384.693915] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[149384.693917] CR2: 00007ffde4357968 CR3: 0000000106c3c002 CR4:
0000000000770ee0
[149384.693918] PKRU: 55555554

Thanks,
Srinivas




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux