Greeting, FYI, we noticed WARNING:at_kernel/sched/core.c:#__might_sleep due to commit (built with gcc-11): commit: b5d3ae202fbfe055aa2a8ae8524531ee1dcab717 ("io_uring: handle TIF_NOTIFY_RESUME when checking for task_work") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master [test failed on linux-next/master 4fafd96910add124586b549ad005dcd179de8a18] in testcase: fio-basic version: fio-x86_64-3.15-1_20230128 with following parameters: disk: 2pmem fs: ext4 runtime: 200s nr_task: 50% time_based: tb rw: read bs: 4k ioengine: io_uring test_size: 200G cpufreq_governor: performance test-description: Fio is a tool that will spawn a number of threads or processes doing a particular type of I/O action as specified by the user. test-url: https://github.com/axboe/fio on test machine: 96 threads 2 sockets Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz (Cascade Lake) with 512G memory caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): If you fix the issue, kindly add following tag | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-lkp/202302062208.24d3e563-oliver.sang@intel.com [ 290.302507][ T6149] ------------[ cut here ]------------ [ 290.308088][ T6149] do not call blocking ops when !TASK_RUNNING; state=1 set at io_wqe_worker (io_uring/io-wq.c:627) [ 290.319798][ T6149] WARNING: CPU: 58 PID: 6149 at kernel/sched/core.c:9965 __might_sleep (kernel/sched/core.c:9965 (discriminator 9)) [ 290.329117][ T6149] Modules linked in: dm_mod btrfs blake2b_generic xor raid6_pq libcrc32c intel_rapl_msr intel_rapl_common sd_mod t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 skx_edac sg nfit x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ipmi_ssif crc32c_intel ast ghash_clmulni_intel drm_shmem_helper sha512_ssse3 drm_kms_helper ahci nd_pmem rapl acpi_ipmi nd_btt dax_pmem libahci syscopyarea mei_me intel_cstate nd_e820 ipmi_si sysfillrect ipmi_devintf libnvdimm ioatdma intel_uncore sysimgblt libata mei joydev intel_pch_thermal dca wmi ipmi_msghandler acpi_pad acpi_power_meter drm fuse ip_tables [ 290.389088][ T6149] CPU: 58 PID: 6149 Comm: iou-wrk-5632 Tainted: G S 6.2.0-rc6-00033-gb5d3ae202fbf #1 [ 290.400258][ T6149] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0008.031920191559 03/19/2019 [ 290.411911][ T6149] RIP: 0010:__might_sleep (kernel/sched/core.c:9965 (discriminator 9)) [ 290.417482][ T6149] Code: e7 31 d2 41 5c 41 5d 5d e9 f4 fe ff ff 48 8b 90 80 22 00 00 48 c7 c7 08 7f 6c 82 c6 05 8e 9f c0 01 01 48 89 d1 e8 9e 2d d3 00 <0f> 0b eb cd 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 All code ======== 0: e7 31 out %eax,$0x31 2: d2 41 5c rolb %cl,0x5c(%rcx) 5: 41 5d pop %r13 7: 5d pop %rbp 8: e9 f4 fe ff ff jmpq 0xffffffffffffff01 d: 48 8b 90 80 22 00 00 mov 0x2280(%rax),%rdx 14: 48 c7 c7 08 7f 6c 82 mov $0xffffffff826c7f08,%rdi 1b: c6 05 8e 9f c0 01 01 movb $0x1,0x1c09f8e(%rip) # 0x1c09fb0 22: 48 89 d1 mov %rdx,%rcx 25: e8 9e 2d d3 00 callq 0xd32dc8 2a:* 0f 0b ud2 <-- trapping instruction 2c: eb cd jmp 0xfffffffffffffffb 2e: 0f 1f 00 nopl (%rax) 31: 90 nop 32: 90 nop 33: 90 nop 34: 90 nop 35: 90 nop 36: 90 nop 37: 90 nop 38: 90 nop 39: 90 nop 3a: 90 nop 3b: 90 nop 3c: 90 nop 3d: 90 nop 3e: 90 nop 3f: 90 nop Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: eb cd jmp 0xffffffffffffffd1 4: 0f 1f 00 nopl (%rax) 7: 90 nop 8: 90 nop 9: 90 nop a: 90 nop b: 90 nop c: 90 nop d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop [ 290.437927][ T6149] RSP: 0018:ffffc900233ebb50 EFLAGS: 00010282 [ 290.444365][ T6149] RAX: 0000000000000000 RBX: 000055cca2f69000 RCX: 0000000000000000 [ 290.452800][ T6149] RDX: ffff88c04fea8740 RSI: ffff88c04fe9c6c0 RDI: ffff88c04fe9c6c0 [ 290.461180][ T6149] RBP: ffffc900233ebb60 R08: 0000000000000000 R09: 00000000ffff7fff [ 290.469552][ T6149] R10: ffffc900233eba00 R11: ffffffff82bd64e8 R12: ffffffff8266d440 [ 290.477941][ T6149] R13: 00000000000001c6 R14: ffff889c3465e8b8 R15: 000055cca2e87000 [ 290.486372][ T6149] FS: 00007feaba19b780(0000) GS:ffff88c04fe80000(0000) knlGS:0000000000000000 [ 290.495727][ T6149] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 290.502786][ T6149] CR2: 000055cca3a3e2a0 CR3: 0000001c3460c002 CR4: 00000000007706e0 [ 290.511265][ T6149] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 290.519706][ T6149] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 290.528184][ T6149] PKRU: 55555554 [ 290.532182][ T6149] Call Trace: [ 290.535919][ T6149] [ 290.539336][ T6149] change_pmd_range+0x31f/0x470 [ 290.545329][ T6149] change_protection_range (mm/mprotect.c:450 mm/mprotect.c:471 mm/mprotect.c:495) [ 290.551238][ T6149] change_prot_numa (mm/mempolicy.c:640) [ 290.556398][ T6149] ? mas_next_entry (lib/maple_tree.c:539 lib/maple_tree.c:4759) [ 290.561598][ T6149] task_numa_work (kernel/sched/fair.c:3045) [ 290.566736][ T6149] task_work_run (kernel/task_work.c:179 (discriminator 1)) [ 290.571613][ T6149] io_run_task_work (include/linux/resume_user_mode.h:49 io_uring/io_uring.h:284) [ 290.576695][ T6149] io_worker_handle_work (io_uring/io-wq.c:528 io_uring/io-wq.c:575) [ 290.582305][ T6149] io_wqe_worker (io_uring/io-wq.c:246 io_uring/io-wq.c:631) [ 290.587168][ T6149] ? finish_task_switch+0x1b9/0x2b0 [ 290.593365][ T6149] ? __pfx_io_wqe_worker (io_uring/io-wq.c:614) [ 290.598905][ T6149] ret_from_fork (arch/x86/entry/entry_64.S:308) [ 290.603717][ T6149] [ 290.607156][ T6149] ---[ end trace 0000000000000000 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests sudo bin/lkp install job.yaml # job file is attached in this email bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run sudo bin/lkp run generated-yaml-file # if come across any failure that blocks the test, # please remove ~/.lkp and /lkp dir to run from a clean state. -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests