stress-ng --enosys 0 -t 60 causes:
[ 513.783315] BUG: scheduling while atomic: stress-ng/42082/0x00000002
[ 513.783319] Modules linked in: cuse snd_seq snd_seq_device dccp_ipv4 dccp atm chacha_generic chacha_x86_64 libchacha xxhash_generic wp512 streebog_generic sm3_generic sha3_generic rmd160 poly1305_generic poly1305_x86_64 nhpoly1305_avx2 nhpoly1305_sse2 nhpoly1305 libpoly1305 michael_mic md4 cmac ccm algif_rng twofish_generic twofish_avx_x86_64 twofish_x86_64_3way twofish_x86_64 twofish_common sm4_generic serpent_avx2 serpent_avx_x86_64 serpent_sse2_x86_64 serpent_generic fcrypt des3_ede_x86_64 des_generic libdes cast6_avx_x86_64 cast6_generic cast5_avx_x86_64 cast5_generic cast_common camellia_generic camellia_aesni_avx2 camellia_aesni_avx_x86_64 camellia_x86_64 blowfish_generic blowfish_x86_64 blowfish_common algif_skcipher algif_hash aegis128 aegis128_aesni algif_aead af_alg nls_iso8859_1 dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua intel_rapl_msr intel_rapl_common kvm_intel joydev kvm input_leds rapl serio_raw snd_hda_codec_generic ledtrig_audio snd_hda_intel snd_intel_dspcfg
[ 513.783355] snd_intel_sdw_acpi snd_hda_codec snd_hda_core snd_hwdep mac_hid snd_pcm snd_timer snd soundcore qemu_fw_cfg sch_fq_codel msr virtio_rng ip_tables x_tables autofs4 btrfs blake2b_generic zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic qxl usbhid drm_ttm_helper ttm crct10dif_pclmul hid drm_kms_helper crc32_pclmul syscopyarea sysfillrect ghash_clmulni_intel sysimgblt fb_sys_fops aesni_intel cec crypto_simd cryptd psmouse virtio_net ahci rc_core virtio_blk i2c_i801 net_failover libahci drm lpc_ich i2c_smbus failover
[ 513.783387] CPU: 7 PID: 42082 Comm: stress-ng Tainted: G W 5.13.0-1003-realtime #3-Ubuntu
[ 513.783389] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
[ 513.783390] Call Trace:
[ 513.783393] show_stack+0x52/0x58
[ 513.783397] dump_stack+0x7d/0x9c
[ 513.783400] __schedule_bug.cold+0x4a/0x5b
[ 513.783403] __schedule+0x53a/0x6b0
[ 513.783405] ? rt_spin_unlock+0x18/0x50
[ 513.783407] ? task_blocks_on_rt_mutex.constprop.0.isra.0+0x168/0x430
[ 513.783409] schedule_rtlock+0x1f/0x40
[ 513.783411] rtlock_slowlock_locked+0xf7/0x240
[ 513.783412] ? memcg_slab_post_alloc_hook+0x53/0x280
[ 513.783416] rt_spin_lock+0x46/0x70
[ 513.783417] alloc_pid+0x1b4/0x3e0
[ 513.783421] copy_process+0x9ef/0x15e0
[ 513.783423] ? kernel_wait4+0xcf/0x150
[ 513.783425] kernel_clone+0x9d/0x350
[ 513.783427] ? __do_sys_wait4+0x84/0x90
[ 513.783429] ? rt_spin_unlock+0x18/0x50
[ 513.783430] __do_sys_clone+0x5d/0x80
[ 513.783432] __x64_sys_clone+0x25/0x30
[ 513.783434] do_syscall_64+0x61/0xb0
[ 513.783446] ? handle_mm_fault+0xdf/0x2c0
[ 513.783449] ? do_user_addr_fault+0x1eb/0x670
[ 513.783452] ? exit_to_user_mode_prepare+0x37/0xb0
[ 513.783454] ? irqentry_exit_to_user_mode+0x9/0x20
[ 513.783455] ? irqentry_exit+0x33/0x40
[ 513.783457] ? exc_page_fault+0x92/0x1c0
[ 513.783458] ? asm_exc_page_fault+0x8/0x30
[ 513.783460] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 513.783462] RIP: 0033:0x7fce804fcb59
[ 513.783464] Code: ed 0f 85 1a 01 00 00 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 93 00 00 00 41 89 c5 85 c0 0f 85 a0 00 00
[ 513.783465] RSP: 002b:00007ffd36496060 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
[ 513.783471] RAX: ffffffffffffffda RBX: 00007ffd36496140 RCX: 00007fce804fcb59
[ 513.783472] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
[ 513.783473] RBP: 0000000000000000 R08: 0000000000000000 R09: 000055eebbfb7140
[ 513.783473] R10: 00007fce80019e50 R11: 0000000000000246 R12: 0000000000000000
[ 513.783474] R13: 000000000000a656 R14: 00007ffd364965a0 R15: 00007fce7ffff340
and stress-ng --dup 0 produces:
[ 506.394685] BUG: scheduling while atomic: stress- ng/35875/ 0x00000002 1003-realtime #3-Ubuntu 0x52/0x58 0x7d/0x9c bug.cold+ 0x4a/0x5b 0x53a/0x6b0 unlock+ 0x18/0x50 on_rt_mutex. constprop. 0.isra. 0+0x168/ 0x430 rtlock+ 0x1f/0x40 slowlock_ locked+ 0xf7/0x240 post_alloc_ hook+0x53/ 0x280 lock+0x46/ 0x70 0x1b4/0x3e0 0x9ef/0x15e0 clone+0x9d/ 0x350 fpu_return+ 0x4d/0x100 clone+0x5d/ 0x80 clone+0x25/ 0x30 64+0x61/ 0xb0 64+0x6e/ 0xb0 64_after_ hwframe+ 0x44/0xae bceab0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
[ 506.394819] CPU: 0 PID: 35855 Comm: stress-ng Tainted: G W 5.13.0-
[ 506.394821] i2c_i801 net_failover libahci
[ 506.394822] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015
[ 506.394822] drm lpc_ich i2c_smbus
[ 506.394823] Call Trace:
[ 506.394824] failover
[ 506.394826] show_stack+
[ 506.394830] dump_stack+
[ 506.394833] __schedule_
[ 506.394836] __schedule+
[ 506.394839] ? rt_spin_
[ 506.394841] ? task_blocks_
[ 506.394843] schedule_
[ 506.394848] rtlock_
[ 506.394849] ? memcg_slab_
[ 506.394855] rt_spin_
[ 506.394857] alloc_pid+
[ 506.395239] copy_process+
[ 506.395256] kernel_
[ 506.395266] ? switch_
[ 506.395279] __do_sys_
[ 506.395295] __x64_sys_
[ 506.395297] do_syscall_
[ 506.395310] ? do_syscall_
[ 506.395326] entry_SYSCALL_
506.395340] RIP: 0033:0x7f17ff98ab59
[ 506.395354] Code: ed 0f 85 1a 01 00 00 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 93 00 00 00 41 89 c5 85 c0 0f 85 a0 00 00
[ 506.395364] RSP: 002b:00007fffed
[ 506.395366] RAX: ffffffffffffffda RBX: 00007fffedbced40 RCX: 00007f17ff98ab59
[ 506.395367] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
[ 506.395368] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007f17fe23c000
[ 506.395387] R10: 00007f17ff4a7e50 R11: 0000000000000246 R12: 0000000000000000
[ 506.395395] R13: 00007f17fe23c000 R14: 0000000000000001 R15: 0000000000100001