Greeting,
FYI, we noticed the following commit (built with gcc-11):
commit: 9682092db939f023478e39408be99e4d659d837e ("Revert "xfs: filemap_sync_readahead"")
https://github.com/amir73il/linux xfs-atomic-rdwr
in testcase: ltp
version: ltp-x86_64-14c1f76-1_20220829
with following parameters:
disk: 1HDD
fs: xfs
test: syscalls-05
test-description: The LTP testsuite contains a collection of tools for testing the Linux kernel and related features.
test-url: http://linux-test-project.github.io/
on test machine: 4 threads Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (Skylake) with 32G memory
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
[ 991.381976][ T41] INFO: task io_uring01:45349 blocked for more than 491 seconds.
[ 991.390197][ T41] Tainted: G I 6.0.0-rc4-00004-g9682092db939 #1
[ 991.398945][ T41] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 991.408181][ T41] task:io_uring01 state:D stack: 0 pid:45349 ppid: 4397 flags:0x00000000
[ 991.417987][ T41] Call Trace:
[ 991.421869][ T41]
[ 991.425391][ T41] __schedule (kernel/sched/core.c:5182 kernel/sched/core.c:6494)
[ 991.430392][ T41] ? io_schedule_timeout (kernel/sched/core.c:6376)
[ 991.436280][ T41] ? _raw_spin_lock_irq (arch/x86/include/asm/atomic.h:202 include/linux/atomic/atomic-instrumented.h:543 include/asm-generic/qspinlock.h:111 include/linux/spinlock.h:185 include/linux/spinlock_api_smp.h:120 kernel/locking/spinlock.c:170)
[ 991.441919][ T41] schedule (include/linux/instrumented.h:71 (discriminator 1) include/asm-generic/bitops/instrumented-non-atomic.h:141 (discriminator 1) include/linux/thread_info.h:118 (discriminator 1) include/linux/sched.h:2208 (discriminator 1) kernel/sched/core.c:6572 (discriminator 1))
[ 991.446669][ T41] rwsem_down_write_slowpath (arch/x86/include/asm/current.h:15 kernel/locking/rwsem.c:1184)
[ 991.452893][ T41] ? __down_timeout (kernel/locking/rwsem.c:1109)
[ 991.458181][ T41] ? filename_parentat (fs/namei.c:2545)
[ 991.463889][ T41] ? kmem_cache_alloc (mm/slab.h:727 mm/slub.c:3243 mm/slub.c:3251 mm/slub.c:3258 mm/slub.c:3268)
[ 991.469534][ T41] ? getname_flags (include/linux/audit.h:320 include/linux/audit.h:360 fs/namei.c:135)
[ 991.475402][ T41] ? _raw_spin_lock (arch/x86/include/asm/atomic.h:202 include/linux/atomic/atomic-instrumented.h:543 include/asm-generic/qspinlock.h:111 include/linux/spinlock.h:185 include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154)
[ 991.480778][ T41] down_write (kernel/locking/rwsem.c:1554)
[ 991.485677][ T41] ? down_write_killable (kernel/locking/rwsem.c:1550)
[ 991.491536][ T41] vfs_unlink (fs/namei.c:4219)
[ 991.496357][ T41] ? __lookup_hash (fs/namei.c:1586)
[ 991.501600][ T41] do_unlinkat (fs/namei.c:4297)
[ 991.506602][ T41] ? __x64_sys_rmdir (fs/namei.c:4258)
[ 991.512170][ T41] ? getname_flags (fs/namei.c:205)
[ 991.518059][ T41] __x64_sys_unlink (fs/namei.c:4343)
[ 991.523451][ T41] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
[ 991.528473][ T41] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120)
[ 991.535019][ T41] RIP: 0033:0x7faa221112e7
[ 991.540060][ T41] RSP: 002b:00007ffe1d3b38b8 EFLAGS: 00000286 ORIG_RAX: 0000000000000057
[ 991.549118][ T41] RAX: ffffffffffffffda RBX: 00007ffe1d3b3980 RCX: 00007faa221112e7
[ 991.557721][ T41] RDX: 0000000000000000 RSI: 00007ffe1d3b3980 RDI: 00007ffe1d3b3980
[ 991.566352][ T41] RBP: 00007ffe1d3b4a90 R08: 0000000000000000 R09: 00007faa221c04e0
[ 991.574978][ T41] R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000000
[ 991.583705][ T41] R13: 00007ffe1d3b4a90 R14: 000055d1d2dc6ee8 R15: 00007ffe1d3b3980
[ 991.592376][ T41]
If you fix the issue, kindly add following tag
Reported-by: kernel test robot
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