[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YsFk/qU+QtWun04h@xsang-OptiPlex-9020>
Date: Sun, 3 Jul 2022 17:44:30 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Mel Gorman <mgorman@...hsingularity.net>
Cc: 0day robot <lkp@...el.com>, LKML <linux-kernel@...r.kernel.org>,
linux-mm@...ck.org, lkp@...ts.01.org,
Andrew Morton <akpm@...ux-foundation.org>,
Nicolas Saenz Julienne <nsaenzju@...hat.com>,
Marcelo Tosatti <mtosatti@...hat.com>,
Vlastimil Babka <vbabka@...e.cz>,
Michal Hocko <mhocko@...nel.org>,
Hugh Dickins <hughd@...gle.com>,
Mel Gorman <mgorman@...hsingularity.net>
Subject: [mm/page_alloc] 2bd8eec68f:
BUG:sleeping_function_called_from_invalid_context_at_mm/gup.c
Greeting,
FYI, we noticed the following commit (built with gcc-11):
commit: 2bd8eec68f740608db5ea58ecff06965228764cb ("[PATCH 7/7] mm/page_alloc: Replace local_lock with normal spinlock")
url: https://github.com/intel-lab-lkp/linux/commits/Mel-Gorman/Drain-remote-per-cpu-directly/20220613-230139
base: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git b13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3
patch link: https://lore.kernel.org/lkml/20220613125622.18628-8-mgorman@techsingularity.net
in testcase: kernel-selftests
version: kernel-selftests-x86_64-a10a197d-1_20220626
with following parameters:
sc_nr_hugepages: 2
group: vm
ucode: 0x500320a
test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt
on test machine: 88 threads 2 sockets Intel(R) Xeon(R) Gold 6238M CPU @ 2.10GHz with 128G 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 <oliver.sang@...el.com>
[ 202.339609][T27281] BUG: sleeping function called from invalid context at mm/gup.c:1170
[ 202.339615][T27281] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27281, name: compaction_test
[ 202.339617][T27281] preempt_count: 1, expected: 0
[ 202.339619][T27281] 1 lock held by compaction_test/27281:
[202.339622][T27281] #0: ffff88911e087828 (&mm->mmap_lock#2){++++}-{3:3}, at: __mm_populate (arch/x86/include/asm/jump_label.h:27 include/linux/jump_label.h:207 include/linux/mmap_lock.h:35 include/linux/mmap_lock.h:118 mm/gup.c:1611)
[ 202.339637][T27281] CPU: 78 PID: 27281 Comm: compaction_test Tainted: G S W 5.19.0-rc2-00007-g2bd8eec68f74 #1
[ 202.339641][T27281] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0012.070720200218 07/07/2020
[ 202.339643][T27281] Call Trace:
[ 202.339645][T27281] <TASK>
[202.339650][T27281] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 4))
[202.339657][T27281] __might_resched.cold (kernel/sched/core.c:9792)
[202.339668][T27281] __get_user_pages (include/linux/sched.h:2059 mm/gup.c:1170)
[202.339682][T27281] ? get_gate_page (mm/gup.c:1099)
[202.339697][T27281] ? rwsem_down_read_slowpath (kernel/locking/rwsem.c:1487)
[202.339709][T27281] populate_vma_page_range (mm/gup.c:1518)
[202.339715][T27281] __mm_populate (mm/gup.c:1639)
[202.339720][T27281] ? faultin_vma_page_range (mm/gup.c:1595)
[202.339726][T27281] ? __up_write (arch/x86/include/asm/atomic64_64.h:172 (discriminator 23) include/linux/atomic/atomic-long.h:95 (discriminator 23) include/linux/atomic/atomic-instrumented.h:1348 (discriminator 23) kernel/locking/rwsem.c:1346 (discriminator 23))
[202.339736][T27281] vm_mmap_pgoff (include/linux/mm.h:2706 mm/util.c:557)
[202.339745][T27281] ? randomize_page (mm/util.c:542)
[202.339753][T27281] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4526)
[202.339757][T27281] ? syscall_enter_from_user_mode (arch/x86/include/asm/irqflags.h:45 arch/x86/include/asm/irqflags.h:80 kernel/entry/common.c:109)
[202.339768][T27281] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
[202.339779][T27281] ? __local_bh_enable (kernel/softirq.c:357)
[202.339785][T27281] ? __do_softirq (arch/x86/include/asm/preempt.h:27 kernel/softirq.c:415 kernel/softirq.c:600)
[202.339795][T27281] ? irqentry_exit_to_user_mode (kernel/entry/common.c:129 kernel/entry/common.c:309)
[202.339802][T27281] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4526)
[202.339806][T27281] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:115)
[ 202.339810][T27281] RIP: 0033:0x7fdb25ea1b62
[ 202.339814][T27281] Code: e4 e8 b2 4b 01 00 66 90 41 f7 c1 ff 0f 00 00 75 27 55 48 89 fd 53 89 cb 48 85 ff 74 3b 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 5b 5d c3 0f 1f 00 48 8b 05 f9 52 0c 00 64
All code
========
0: e4 e8 in $0xe8,%al
2: b2 4b mov $0x4b,%dl
4: 01 00 add %eax,(%rax)
6: 66 90 xchg %ax,%ax
8: 41 f7 c1 ff 0f 00 00 test $0xfff,%r9d
f: 75 27 jne 0x38
11: 55 push %rbp
12: 48 89 fd mov %rdi,%rbp
15: 53 push %rbx
16: 89 cb mov %ecx,%ebx
18: 48 85 ff test %rdi,%rdi
1b: 74 3b je 0x58
1d: 41 89 da mov %ebx,%r10d
20: 48 89 ef mov %rbp,%rdi
23: b8 09 00 00 00 mov $0x9,%eax
28: 0f 05 syscall
2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction
30: 77 66 ja 0x98
32: 5b pop %rbx
33: 5d pop %rbp
34: c3 retq
35: 0f 1f 00 nopl (%rax)
38: 48 8b 05 f9 52 0c 00 mov 0xc52f9(%rip),%rax # 0xc5338
3f: 64 fs
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax
6: 77 66 ja 0x6e
8: 5b pop %rbx
9: 5d pop %rbp
a: c3 retq
b: 0f 1f 00 nopl (%rax)
e: 48 8b 05 f9 52 0c 00 mov 0xc52f9(%rip),%rax # 0xc530e
15: 64 fs
[ 202.339817][T27281] RSP: 002b:00007ffc53280778 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
[ 202.339820][T27281] RAX: ffffffffffffffda RBX: 0000000000002022 RCX: 00007fdb25ea1b62
[ 202.339822][T27281] RDX: 0000000000000003 RSI: 0000000006400000 RDI: 0000000000000000
[ 202.339823][T27281] RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000
[ 202.339825][T27281] R10: 0000000000002022 R11: 0000000000000246 R12: 0000000000401170
[ 202.339826][T27281] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 202.339842][T27281] </TASK>
[ 202.571229][T27281] BUG: scheduling while atomic: compaction_test/27281/0x00000003
[ 202.571235][T27281] no locks held by compaction_test/27281.
[ 202.571236][T27281] Modules linked in: openvswitch nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 intel_rapl_msr intel_rapl_common skx_edac nfit libnvdimm x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel rapl intel_cstate btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c crc32c_intel sd_mod t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg ast drm_vram_helper drm_ttm_helper ttm ipmi_ssif drm_kms_helper syscopyarea ahci libahci sysfillrect acpi_ipmi intel_uncore mei_me joydev ipmi_si sysimgblt ioatdma libata i2c_i801 fb_sys_fops mei ipmi_devintf i2c_smbus intel_pch_thermal lpc_ich dca wmi ipmi_msghandler acpi_pad acpi_power_meter fuse ip_tables
[ 202.571302][T27281] CPU: 78 PID: 27281 Comm: compaction_test Tainted: G S W 5.19.0-rc2-00007-g2bd8eec68f74 #1
[ 202.571305][T27281] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0012.070720200218 07/07/2020
[ 202.571307][T27281] Call Trace:
[ 202.571309][T27281] <TASK>
[202.571313][T27281] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 4))
[202.571321][T27281] __schedule_bug.cold (kernel/sched/core.c:5661)
[202.571328][T27281] schedule_debug (arch/x86/include/asm/preempt.h:35 kernel/sched/core.c:5688)
[202.571338][T27281] __schedule (arch/x86/include/asm/jump_label.h:27 include/linux/jump_label.h:207 kernel/sched/features.h:40 kernel/sched/core.c:6324)
[202.571348][T27281] ? io_schedule_timeout (kernel/sched/core.c:6310)
[202.571352][T27281] ? vm_mmap_pgoff (include/linux/mm.h:2706 mm/util.c:557)
[202.571363][T27281] schedule (include/linux/instrumented.h:71 (discriminator 1) include/asm-generic/bitops/instrumented-non-atomic.h:134 (discriminator 1) include/linux/thread_info.h:118 (discriminator 1) include/linux/sched.h:2196 (discriminator 1) kernel/sched/core.c:6502 (discriminator 1))
[202.571368][T27281] exit_to_user_mode_loop (kernel/entry/common.c:159)
[202.571374][T27281] exit_to_user_mode_prepare (kernel/entry/common.c:201)
[202.571377][T27281] syscall_exit_to_user_mode (kernel/entry/common.c:128 kernel/entry/common.c:296)
[202.571383][T27281] do_syscall_64 (arch/x86/entry/common.c:87)
[202.571387][T27281] ? __local_bh_enable (kernel/softirq.c:357)
[202.571392][T27281] ? __do_softirq (arch/x86/include/asm/preempt.h:27 kernel/softirq.c:415 kernel/softirq.c:600)
[202.571400][T27281] ? irqentry_exit_to_user_mode (kernel/entry/common.c:129 kernel/entry/common.c:309)
[202.571407][T27281] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4526)
[202.571412][T27281] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:115)
[ 202.571416][T27281] RIP: 0033:0x7fdb25ea1b62
[ 202.571421][T27281] Code: e4 e8 b2 4b 01 00 66 90 41 f7 c1 ff 0f 00 00 75 27 55 48 89 fd 53 89 cb 48 85 ff 74 3b 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 5b 5d c3 0f 1f 00 48 8b 05 f9 52 0c 00 64
All code
========
0: e4 e8 in $0xe8,%al
2: b2 4b mov $0x4b,%dl
4: 01 00 add %eax,(%rax)
6: 66 90 xchg %ax,%ax
8: 41 f7 c1 ff 0f 00 00 test $0xfff,%r9d
f: 75 27 jne 0x38
11: 55 push %rbp
12: 48 89 fd mov %rdi,%rbp
15: 53 push %rbx
16: 89 cb mov %ecx,%ebx
18: 48 85 ff test %rdi,%rdi
1b: 74 3b je 0x58
1d: 41 89 da mov %ebx,%r10d
20: 48 89 ef mov %rbp,%rdi
23: b8 09 00 00 00 mov $0x9,%eax
28: 0f 05 syscall
2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction
30: 77 66 ja 0x98
32: 5b pop %rbx
33: 5d pop %rbp
34: c3 retq
35: 0f 1f 00 nopl (%rax)
38: 48 8b 05 f9 52 0c 00 mov 0xc52f9(%rip),%rax # 0xc5338
3f: 64 fs
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax
6: 77 66 ja 0x6e
8: 5b pop %rbx
9: 5d pop %rbp
a: c3 retq
b: 0f 1f 00 nopl (%rax)
e: 48 8b 05 f9 52 0c 00 mov 0xc52f9(%rip),%rax # 0xc530e
15: 64 fs
[ 202.571423][T27281] RSP: 002b:00007ffc53280778 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
[ 202.571426][T27281] RAX: 00007fcc735a6000 RBX: 0000000000002022 RCX: 00007fdb25ea1b62
[ 202.571428][T27281] RDX: 0000000000000003 RSI: 0000000006400000 RDI: 0000000000000000
[ 202.571429][T27281] RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000
[ 202.571431][T27281] R10: 0000000000002022 R11: 0000000000000246 R12: 0000000000401170
[ 202.571432][T27281] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 202.571446][T27281] </TASK>
[ 215.004337][ T1122]
[ 228.735493][ T1122]
[ 242.528575][ T1122]
[ 256.379123][ T1122]
[ 269.551898][ T569] BUG: sleeping function called from invalid context at mm/migrate.c:1380
[ 269.551906][ T569] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 569, name: kcompactd1
[ 269.551909][ T569] preempt_count: 1, expected: 0
[ 269.551912][ T569] no locks held by kcompactd1/569.
[ 269.551916][ T569] CPU: 72 PID: 569 Comm: kcompactd1 Tainted: G S W 5.19.0-rc2-00007-g2bd8eec68f74 #1
[ 269.551921][ T569] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0012.070720200218 07/07/2020
[ 269.551924][ T569] Call Trace:
[ 269.551926][ T569] <TASK>
[ 269.551934][ T569] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 4))
[ 269.551945][ T569] __might_resched.cold (kernel/sched/core.c:9792)
[ 269.551958][ T569] migrate_pages (include/linux/sched.h:2059 mm/migrate.c:1380)
[ 269.551971][ T569] ? isolate_freepages (mm/compaction.c:1687)
[ 269.551978][ T569] ? split_map_pages (mm/compaction.c:1711)
[ 269.551994][ T569] ? buffer_migrate_page_norefs (mm/migrate.c:1345)
[ 269.552002][ T569] ? isolate_migratepages (mm/compaction.c:1959)
[ 269.552023][ T569] compact_zone (arch/x86/include/asm/jump_label.h:27 include/linux/jump_label.h:207 include/trace/events/compaction.h:68 mm/compaction.c:2419)
[ 269.552054][ T569] ? compaction_suitable (mm/compaction.c:2292)
[ 269.552063][ T569] ? lock_acquire (kernel/locking/lockdep.c:466 kernel/locking/lockdep.c:5667 kernel/locking/lockdep.c:5630)
[ 269.552069][ T569] ? finish_wait (include/linux/list.h:134 include/linux/list.h:206 kernel/sched/wait.c:407)
[ 269.552082][ T569] proactive_compact_node (mm/compaction.c:2660 (discriminator 2))
[ 269.552089][ T569] ? compact_store (mm/compaction.c:2648)
[ 269.552115][ T569] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4526)
[ 269.552121][ T569] ? _raw_spin_unlock_irqrestore (arch/x86/include/asm/irqflags.h:45 arch/x86/include/asm/irqflags.h:80 arch/x86/include/asm/irqflags.h:138 include/linux/spinlock_api_smp.h:151 kernel/locking/spinlock.c:194)
[ 269.552134][ T569] kcompactd (mm/compaction.c:2011 mm/compaction.c:2031 mm/compaction.c:2978)
[ 269.552152][ T569] ? kcompactd_do_work (mm/compaction.c:2924)
[ 269.552161][ T569] ? prepare_to_swait_exclusive (kernel/sched/wait.c:414)
[ 269.552174][ T569] ? __kthread_parkme (arch/x86/include/asm/bitops.h:207 (discriminator 4) include/asm-generic/bitops/instrumented-non-atomic.h:135 (discriminator 4) kernel/kthread.c:270 (discriminator 4))
[ 269.552178][ T569] ? schedule (arch/x86/include/asm/bitops.h:207 (discriminator 1) include/asm-generic/bitops/instrumented-non-atomic.h:135 (discriminator 1) include/linux/thread_info.h:118 (discriminator 1) include/linux/sched.h:2196 (discriminator 1) kernel/sched/core.c:6502 (discriminator 1))
[ 269.552183][ T569] ? kcompactd_do_work (mm/compaction.c:2924)
[ 269.552193][ T569] kthread (kernel/kthread.c:376)
[ 269.552196][ T569] ? kthread_complete_and_exit (kernel/kthread.c:331)
[ 269.552206][ T569] ret_from_fork (arch/x86/entry/entry_64.S:302)
[ 269.552235][ T569] </TASK>
[ 269.961505][ T568] BUG: scheduling while atomic: kcompactd0/568/0x00000028
[ 269.961512][ T568] no locks held by kcompactd0/568.
[ 269.961514][ T568] Modules linked in: openvswitch nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 intel_rapl_msr intel_rapl_common skx_edac nfit libnvdimm x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel rapl intel_cstate btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c crc32c_intel sd_mod t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg ast drm_vram_helper drm_ttm_helper ttm ipmi_ssif drm_kms_helper syscopyarea ahci libahci sysfillrect acpi_ipmi intel_uncore mei_me joydev ipmi_si sysimgblt ioatdma libata i2c_i801 fb_sys_fops mei ipmi_devintf i2c_smbus intel_pch_thermal lpc_ich dca wmi ipmi_msghandler acpi_pad acpi_power_meter fuse ip_tables
[ 269.961581][ T568] CPU: 13 PID: 568 Comm: kcompactd0 Tainted: G S W 5.19.0-rc2-00007-g2bd8eec68f74 #1
[ 269.961585][ T568] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0012.070720200218 07/07/2020
[ 269.961587][ T568] Call Trace:
[ 269.961589][ T568] <TASK>
[ 269.961596][ T568] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 4))
[ 269.961606][ T568] __schedule_bug.cold (kernel/sched/core.c:5661)
[ 269.961615][ T568] schedule_debug (arch/x86/include/asm/preempt.h:35 kernel/sched/core.c:5688)
[ 269.961625][ T568] __schedule (arch/x86/include/asm/jump_label.h:27 include/linux/jump_label.h:207 kernel/sched/features.h:40 kernel/sched/core.c:6324)
[ 269.961637][ T568] ? io_schedule_timeout (kernel/sched/core.c:6310)
[ 269.961641][ T568] ? find_held_lock (kernel/locking/lockdep.c:5156)
[ 269.961647][ T568] ? prepare_to_wait_event (kernel/sched/wait.c:334 (discriminator 15))
[ 269.961657][ T568] schedule (include/linux/instrumented.h:71 (discriminator 1) include/asm-generic/bitops/instrumented-non-atomic.h:134 (discriminator 1) include/linux/thread_info.h:118 (discriminator 1) include/linux/sched.h:2196 (discriminator 1) kernel/sched/core.c:6502 (discriminator 1))
[ 269.961662][ T568] schedule_timeout (kernel/time/timer.c:1936)
[ 269.961668][ T568] ? usleep_range_state (kernel/time/timer.c:1897)
[ 269.961673][ T568] ? timer_migration_handler (kernel/time/timer.c:1859)
[ 269.961682][ T568] ? _raw_spin_unlock_irqrestore (arch/x86/include/asm/irqflags.h:45 arch/x86/include/asm/irqflags.h:80 arch/x86/include/asm/irqflags.h:138 include/linux/spinlock_api_smp.h:151 kernel/locking/spinlock.c:194)
[ 269.961687][ T568] ? prepare_to_wait_event (kernel/sched/wait.c:334 (discriminator 15))
[ 269.961695][ T568] kcompactd (include/linux/freezer.h:121 include/linux/freezer.h:193 mm/compaction.c:2950)
[ 269.961707][ T568] ? kcompactd_do_work (mm/compaction.c:2924)
[ 269.961713][ T568] ? prepare_to_swait_exclusive (kernel/sched/wait.c:414)
[ 269.961720][ T568] ? __kthread_parkme (arch/x86/include/asm/bitops.h:207 (discriminator 4) include/asm-generic/bitops/instrumented-non-atomic.h:135 (discriminator 4) kernel/kthread.c:270 (discriminator 4))
[ 269.961724][ T568] ? schedule (arch/x86/include/asm/bitops.h:207 (discriminator 1) include/asm-generic/bitops/instrumented-non-atomic.h:135 (discriminator 1) include/linux/thread_info.h:118 (discriminator 1) include/linux/sched.h:2196 (discriminator 1) kernel/sched/core.c:6502 (discriminator 1))
[ 269.961727][ T568] ? kcompactd_do_work (mm/compaction.c:2924)
[ 269.961732][ T568] kthread (kernel/kthread.c:376)
[ 269.961735][ T568] ? kthread_complete_and_exit (kernel/kthread.c:331)
[ 269.961741][ T568] ret_from_fork (arch/x86/entry/entry_64.S:302)
[ 269.961758][ T568] </TASK>
[ 270.347843][ T569] BUG: scheduling while atomic: kcompactd1/569/0x00000017
[ 270.347849][ T569] no locks held by kcompactd1/569.
[ 270.347851][ T569] Modules linked in: openvswitch nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 intel_rapl_msr intel_rapl_common skx_edac nfit libnvdimm x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel rapl intel_cstate btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c crc32c_intel sd_mod t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg ast drm_vram_helper drm_ttm_helper ttm ipmi_ssif drm_kms_helper syscopyarea ahci libahci sysfillrect acpi_ipmi intel_uncore mei_me joydev ipmi_si sysimgblt ioatdma libata i2c_i801 fb_sys_fops mei ipmi_devintf i2c_smbus intel_pch_thermal lpc_ich dca wmi ipmi_msghandler acpi_pad acpi_power_meter fuse ip_tables
[ 270.347911][ T569] CPU: 72 PID: 569 Comm: kcompactd1 Tainted: G S W 5.19.0-rc2-00007-g2bd8eec68f74 #1
[ 270.347915][ T569] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0012.070720200218 07/07/2020
[ 270.347917][ T569] Call Trace:
[ 270.347920][ T569] <TASK>
[ 270.347926][ T569] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 4))
[ 270.347935][ T569] __schedule_bug.cold (kernel/sched/core.c:5661)
[ 270.347944][ T569] schedule_debug (arch/x86/include/asm/preempt.h:35 kernel/sched/core.c:5688)
[ 270.347955][ T569] __schedule (arch/x86/include/asm/jump_label.h:27 include/linux/jump_label.h:207 kernel/sched/features.h:40 kernel/sched/core.c:6324)
[ 270.347967][ T569] ? io_schedule_timeout (kernel/sched/core.c:6310)
[ 270.347970][ T569] ? find_held_lock (kernel/locking/lockdep.c:5156)
[ 270.347977][ T569] ? prepare_to_wait_event (kernel/sched/wait.c:334 (discriminator 15))
[ 270.347987][ T569] schedule (include/linux/instrumented.h:71 (discriminator 1) include/asm-generic/bitops/instrumented-non-atomic.h:134 (discriminator 1) include/linux/thread_info.h:118 (discriminator 1) include/linux/sched.h:2196 (discriminator 1) kernel/sched/core.c:6502 (discriminator 1))
[ 270.347993][ T569] schedule_timeout (kernel/time/timer.c:1936)
[ 270.347999][ T569] ? usleep_range_state (kernel/time/timer.c:1897)
[ 270.348004][ T569] ? timer_migration_handler (kernel/time/timer.c:1859)
[ 270.348013][ T569] ? _raw_spin_unlock_irqrestore (arch/x86/include/asm/irqflags.h:45 arch/x86/include/asm/irqflags.h:80 arch/x86/include/asm/irqflags.h:138 include/linux/spinlock_api_smp.h:151 kernel/locking/spinlock.c:194)
[ 270.348018][ T569] ? prepare_to_wait_event (kernel/sched/wait.c:334 (discriminator 15))
[ 270.348025][ T569] kcompactd (include/linux/freezer.h:121 include/linux/freezer.h:193 mm/compaction.c:2950)
[ 270.348040][ T569] ? kcompactd_do_work (mm/compaction.c:2924)
[ 270.348045][ T569] ? prepare_to_swait_exclusive (kernel/sched/wait.c:414)
[ 270.348053][ T569] ? __kthread_parkme (arch/x86/include/asm/bitops.h:207 (discriminator 4) include/asm-generic/bitops/instrumented-non-atomic.h:135 (discriminator 4) kernel/kthread.c:270 (discriminator 4))
[ 270.348057][ T569] ? schedule (arch/x86/include/asm/bitops.h:207 (discriminator 1) include/asm-generic/bitops/instrumented-non-atomic.h:135 (discriminator 1) include/linux/thread_info.h:118 (discriminator 1) include/linux/sched.h:2196 (discriminator 1) kernel/sched/core.c:6502 (discriminator 1))
[ 270.348059][ T569] ? kcompactd_do_work (mm/compaction.c:2924)
[ 270.348065][ T569] kthread (kernel/kthread.c:376)
[ 270.348068][ T569] ? kthread_complete_and_exit (kernel/kthread.c:331)
[ 270.348073][ T569] ret_from_fork (arch/x86/entry/entry_64.S:302)
[ 270.348092][ T569] </TASK>
[ 270.616627][ T1122]
[ 270.768074][T27574] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:274
[ 270.768078][T27574] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27574, name: date
[ 270.768080][T27574] preempt_count: 1, expected: 0
[ 270.768082][T27574] 1 lock held by date/27574:
[270.768084][T27574] #0: ffff88820bd53228 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault (arch/x86/include/asm/jump_label.h:27 include/linux/jump_label.h:207 include/linux/mmap_lock.h:35 include/linux/mmap_lock.h:137 arch/x86/mm/fault.c:1338)
[ 270.768098][T27574] CPU: 4 PID: 27574 Comm: date Tainted: G S W 5.19.0-rc2-00007-g2bd8eec68f74 #1
[ 270.768101][T27574] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0012.070720200218 07/07/2020
[ 270.768103][T27574] Call Trace:
[ 270.768104][T27574] <TASK>
[270.768108][T27574] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 4))
[270.768113][T27574] __might_resched.cold (kernel/sched/core.c:9792)
[270.768120][T27574] ? __pmd_alloc (mm/memory.c:5763 include/linux/mm.h:2304 include/linux/mm.h:2390 include/linux/mm.h:2426 include/asm-generic/pgalloc.h:129 mm/memory.c:5214)
[270.768125][T27574] kmem_cache_alloc (include/linux/sched/mm.h:274 mm/slab.h:723 mm/slub.c:3128 mm/slub.c:3222 mm/slub.c:3229 mm/slub.c:3239)
[270.768137][T27574] __pmd_alloc (mm/memory.c:5763 include/linux/mm.h:2304 include/linux/mm.h:2390 include/linux/mm.h:2426 include/asm-generic/pgalloc.h:129 mm/memory.c:5214)
[270.768144][T27574] __handle_mm_fault (include/linux/mm.h:2254 mm/memory.c:5003)
[270.768155][T27574] ? copy_page_range (mm/memory.c:4955)
[270.768159][T27574] ? __lock_release (kernel/locking/lockdep.c:5341)
[270.768172][T27574] ? lock_is_held_type (kernel/locking/lockdep.c:5406 kernel/locking/lockdep.c:5708)
[270.768181][T27574] ? handle_mm_fault (include/linux/rcupdate.h:274 include/linux/rcupdate.h:728 include/linux/memcontrol.h:1087 include/linux/memcontrol.h:1075 mm/memory.c:5120)
[270.768188][T27574] handle_mm_fault (mm/memory.c:5140)
[270.768195][T27574] do_user_addr_fault (arch/x86/mm/fault.c:1397)
[270.768206][T27574] exc_page_fault (arch/x86/include/asm/irqflags.h:29 arch/x86/include/asm/irqflags.h:70 arch/x86/include/asm/irqflags.h:130 arch/x86/mm/fault.c:1492 arch/x86/mm/fault.c:1540)
[270.768211][T27574] asm_exc_page_fault (arch/x86/include/asm/idtentry.h:570)
[270.768215][T27574] RIP: 0010:__clear_user (arch/x86/lib/usercopy_64.c:24)
[ 270.768220][T27574] Code: 00 00 00 e8 a2 28 56 ff 0f 01 cb 48 89 d8 48 c1 eb 03 48 89 ef 83 e0 07 48 89 d9 48 85 c9 74 19 66 2e 0f 1f 84 00 00 00 00 00 <48> c7 07 00 00 00 00 48 83 c7 08 ff c9 75 f1 48 89 c1 85 c9 74 0a
All code
========
0: 00 00 add %al,(%rax)
2: 00 e8 add %ch,%al
4: a2 28 56 ff 0f 01 cb movabs %al,0x8948cb010fff5628
b: 48 89
d: d8 48 c1 fmuls -0x3f(%rax)
10: eb 03 jmp 0x15
12: 48 89 ef mov %rbp,%rdi
15: 83 e0 07 and $0x7,%eax
18: 48 89 d9 mov %rbx,%rcx
1b: 48 85 c9 test %rcx,%rcx
1e: 74 19 je 0x39
20: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
27: 00 00 00
2a:* 48 c7 07 00 00 00 00 movq $0x0,(%rdi) <-- trapping instruction
31: 48 83 c7 08 add $0x8,%rdi
35: ff c9 dec %ecx
37: 75 f1 jne 0x2a
39: 48 89 c1 mov %rax,%rcx
3c: 85 c9 test %ecx,%ecx
3e: 74 0a je 0x4a
Code starting with the faulting instruction
===========================================
0: 48 c7 07 00 00 00 00 movq $0x0,(%rdi)
7: 48 83 c7 08 add $0x8,%rdi
b: ff c9 dec %ecx
d: 75 f1 jne 0x0
f: 48 89 c1 mov %rax,%rcx
12: 85 c9 test %ecx,%ecx
14: 74 0a je 0x20
[ 270.768223][T27574] RSP: 0018:ffffc900350dfb28 EFLAGS: 00050202
[ 270.768226][T27574] RAX: 0000000000000000 RBX: 00000000000001a4 RCX: 00000000000001a4
[ 270.768227][T27574] RDX: 0000000000000000 RSI: ffff88820bd53228 RDI: 00005649441d92e0
[ 270.768229][T27574] RBP: 00005649441d92e0 R08: ffff88a0589ec810 R09: ffffffff85f06fa7
[ 270.768231][T27574] R10: fffffbfff0be0df4 R11: 0000000000000001 R12: 0000000000000000
[ 270.768232][T27574] R13: 000000000001c498 R14: 00005649441d92e0 R15: 000000000001c2e0
[270.768249][T27574] ? __clear_user (arch/x86/include/asm/smap.h:39 arch/x86/lib/usercopy_64.c:23)
[270.768252][T27574] load_elf_binary (fs/binfmt_elf.c:143 fs/binfmt_elf.c:1244)
[270.768279][T27574] ? load_elf_interp+0xa80/0xa80
[270.768285][T27574] ? search_binary_handler (fs/exec.c:1728)
[270.768297][T27574] search_binary_handler (fs/exec.c:1728)
[270.768302][T27574] ? bprm_change_interp (fs/exec.c:1707)
[270.768310][T27574] ? exec_binprm (include/linux/rcupdate.h:274 include/linux/rcupdate.h:728 fs/exec.c:1761)
[270.768317][T27574] exec_binprm (fs/exec.c:1770)
[270.768325][T27574] bprm_execve (fs/exec.c:1920)
[270.768330][T27574] ? bprm_execve (fs/exec.c:1474 fs/exec.c:1806)
[270.768336][T27574] do_execveat_common+0x4c7/0x680
[270.768344][T27574] ? getname_flags (fs/namei.c:205)
[270.768350][T27574] __x64_sys_execve (fs/exec.c:2088)
[270.768356][T27574] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
[270.768361][T27574] ? do_user_addr_fault (arch/x86/mm/fault.c:1422)
[270.768367][T27574] ? irqentry_exit_to_user_mode (kernel/entry/common.c:129 kernel/entry/common.c:309)
[270.768374][T27574] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4526)
[270.768379][T27574] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:115)
[ 270.768384][T27574] RIP: 0033:0x7f1a7a7936c7
[ 270.768390][T27574] Code: Unable to access opcode bytes at RIP 0x7f1a7a79369d.
Code starting with the faulting instruction
===========================================
[ 270.768392][T27574] RSP: 002b:00007ffe741919f8 EFLAGS: 00000246 ORIG_RAX: 000000000000003b
[ 270.768394][T27574] RAX: ffffffffffffffda RBX: 00005643b084c428 RCX: 00007f1a7a7936c7
[ 270.768396][T27574] RDX: 00005643b084ff48 RSI: 00005643b084c428 RDI: 00005643b0850208
[ 270.768397][T27574] RBP: 00005643b079246e R08: 00005643b0792470 R09: 00005643b079247b
[ 270.768398][T27574] R10: 000000000000006e R11: 0000000000000246 R12: 00005643b084ff48
[ 270.768400][T27574] R13: 0000000000000002 R14: 00005643b084ff48 R15: 00005643b0850208
[ 270.768415][T27574] </TASK>
[ 270.768815][T27574] BUG: scheduling while atomic: date/27574/0x00000002
[ 270.768818][T27574] no locks held by date/27574.
[ 270.768819][T27574] Modules linked in: openvswitch nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 intel_rapl_msr intel_rapl_common skx_edac nfit libnvdimm x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel rapl intel_cstate btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c crc32c_intel sd_mod t10_pi crc64_rocksoft_generic crc64_rocksoft crc64 sg ast drm_vram_helper drm_ttm_helper ttm ipmi_ssif drm_kms_helper syscopyarea ahci libahci sysfillrect acpi_ipmi intel_uncore mei_me joydev ipmi_si sysimgblt ioatdma libata i2c_i801 fb_sys_fops mei ipmi_devintf i2c_smbus intel_pch_thermal lpc_ich dca wmi ipmi_msghandler acpi_pad acpi_power_meter fuse ip_tables
[ 270.768871][T27574] CPU: 4 PID: 27574 Comm: date Tainted: G S W 5.19.0-rc2-00007-g2bd8eec68f74 #1
[ 270.768874][T27574] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0012.070720200218 07/07/2020
[ 270.768876][T27574] Call Trace:
[ 270.768878][T27574] <TASK>
[270.768881][T27574] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 4))
[270.768886][T27574] __schedule_bug.cold (kernel/sched/core.c:5661)
[270.768892][T27574] schedule_debug (arch/x86/include/asm/preempt.h:35 kernel/sched/core.c:5688)
[270.768900][T27574] __schedule (arch/x86/include/asm/jump_label.h:27 include/linux/jump_label.h:207 kernel/sched/features.h:40 kernel/sched/core.c:6324)
[270.768907][T27574] ? rwlock_bug+0xc0/0xc0
[270.768913][T27574] ? io_schedule_timeout (kernel/sched/core.c:6310)
[270.768919][T27574] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4526)
[270.768923][T27574] ? _raw_spin_unlock_irqrestore (arch/x86/include/asm/irqflags.h:45 arch/x86/include/asm/irqflags.h:80 arch/x86/include/asm/irqflags.h:138 include/linux/spinlock_api_smp.h:151 kernel/locking/spinlock.c:194)
[270.768931][T27574] do_task_dead (kernel/sched/core.c:6447 (discriminator 4))
[270.768938][T27574] do_exit (include/trace/events/sched.h:333 kernel/exit.c:786)
[270.768948][T27574] do_group_exit (kernel/exit.c:906)
[270.768955][T27574] get_signal (kernel/signal.c:2857)
[270.768965][T27574] ? search_binary_handler (fs/exec.c:1707)
[270.768976][T27574] ? ptrace_signal (kernel/signal.c:2627)
[270.768980][T27574] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4526)
[270.768984][T27574] ? kasan_quarantine_put (arch/x86/include/asm/irqflags.h:45 (discriminator 1) arch/x86/include/asm/irqflags.h:80 (discriminator 1) arch/x86/include/asm/irqflags.h:138 (discriminator 1) mm/kasan/quarantine.c:242 (discriminator 1))
[270.768988][T27574] ? trace_hardirqs_on (kernel/trace/trace_preemptirq.c:50 (discriminator 22))
[270.768998][T27574] arch_do_signal_or_restart (arch/x86/kernel/signal.c:869)
[270.769004][T27574] ? get_sigframe_size (arch/x86/kernel/signal.c:866)
[270.769009][T27574] ? do_execveat_common+0x1c0/0x680
[270.769022][T27574] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4526)
[270.769029][T27574] exit_to_user_mode_loop (kernel/entry/common.c:168)
[270.769035][T27574] exit_to_user_mode_prepare (kernel/entry/common.c:201)
[270.769039][T27574] syscall_exit_to_user_mode (kernel/entry/common.c:128 kernel/entry/common.c:296)
[270.769044][T27574] do_syscall_64 (arch/x86/entry/common.c:87)
[270.769050][T27574] ? do_user_addr_fault (arch/x86/mm/fault.c:1422)
[270.769057][T27574] ? irqentry_exit_to_user_mode (kernel/entry/common.c:129 kernel/entry/common.c:309)
[270.769064][T27574] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4526)
[270.769069][T27574] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:115)
[ 270.769073][T27574] RIP: 0033:0x7f1a7a7936c7
[ 270.769076][T27574] Code: Unable to access opcode bytes at RIP 0x7f1a7a79369d.
Code starting with the faulting instruction
===========================================
[ 270.769077][T27574] RSP: 002b:00007ffe741919f8 EFLAGS: 00000246 ORIG_RAX: 000000000000003b
[ 270.769080][T27574] RAX: fffffffffffffff2 RBX: 00005643b084c428 RCX: 00007f1a7a7936c7
[ 270.769082][T27574] RDX: 00005643b084ff48 RSI: 00005643b084c428 RDI: 00005643b0850208
[ 270.769083][T27574] RBP: 00005643b079246e R08: 00005643b0792470 R09: 00005643b079247b
[ 270.769084][T27574] R10: 000000000000006e R11: 0000000000000246 R12: 00005643b084ff48
[ 270.769086][T27574] R13: 0000000000000002 R14: 00005643b084ff48 R15: 00005643b0850208
[ 270.769100][T27574] </TASK>
[ 271.701080][ T1124] Segmentation fault
[ 271.701094][ T1124]
[ 284.402869][ T1122]
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://01.org/lkp
View attachment "config-5.19.0-rc2-00007-g2bd8eec68f74" of type "text/plain" (168423 bytes)
View attachment "job-script" of type "text/plain" (6167 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (53788 bytes)
View attachment "kernel-selftests" of type "text/plain" (91086 bytes)
View attachment "job.yaml" of type "text/plain" (5025 bytes)
View attachment "reproduce" of type "text/plain" (183 bytes)
Powered by blists - more mailing lists