Bug 217738
Summary: | crash/hang in mm/swapfile.c:718 add_to_avail_list when exercising stress-ng | ||
---|---|---|---|
Product: | Linux | Reporter: | Colin Ian King (colin.i.king) |
Component: | Kernel | Assignee: | Virtual assignee for kernel bugs (linux-kernel) |
Status: | NEW --- | ||
Severity: | blocking | CC: | regressions |
Priority: | P3 | ||
Hardware: | Intel | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: | |
Attachments: |
console image of hang
crash with 6.1 kernel crash with 6.1 kernel ppc64el |
Description
Colin Ian King
2023-07-31 14:26:50 UTC
Hitting the WARN_ON in the following: static void add_to_avail_list(struct swap_info_struct *p) { int nid; spin_lock(&swap_avail_lock); for_each_node(nid) { WARN_ON(!plist_node_empty(&p->avail_lists[nid])); plist_add(&p->avail_lists[nid], &swap_avail_heads[nid]); } spin_unlock(&swap_avail_lock); } Reminder: the right developers to fix this are unlikely to see this here; for details, search bugzilla.kernel.org in https://docs.kernel.org/admin-guide/reporting-issues.html Note one needs to run this as root. Turns out one can reproduce this with: sudo ./stress-ng --brk 50 --swap 50 --vmstat 1 -t 60m ..and swapoff on all existing swap is useful before running the reproducer Created attachment 304757 [details]
crash with 6.1 kernel
Created attachment 304758 [details]
crash with 6.1 kernel ppc64el
|