Hello, kernel test robot noticed "segfault_at_ip_sp_error" on: commit: 611088cbf6bda5c9218c735809215f2b6f6ca8a9 ("fs/proc: convert to read/write iterators") https://git.kernel.org/cgit/linux/kernel/git/axboe/linux-block.git rw_iter in testcase: boot compiler: gcc-13 test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G (please refer to attached dmesg/kmsg for entire log/backtrace) +--------------------------------------------------------------+------------+------------+ | | 255806aeec | 611088cbf6 | +--------------------------------------------------------------+------------+------------+ | segfault_at_ip_sp_error | 0 | 20 | +--------------------------------------------------------------+------------+------------+ If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <oliver.sang@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-lkp/202404221436.c921df08-oliver.sang@xxxxxxxxx [ 809.068720][ T602] vmstat[602]: segfault at 50b000 ip b7f2f6ec sp bfef7790 error 6 in libprocps.so.7.1.0[b7f2f000+a000] likely on CPU 0 (core 0, socket 0) [ 809.071867][ T602] Code: 84 91 00 00 00 89 74 24 0c 89 ee 89 cd 90 57 6a 01 6a 08 55 e8 e5 fb ff ff 8b 83 f0 09 00 00 8b 54 24 24 8b 4c 24 28 83 c4 10 <89> 14 30 89 4c 30 04 8b 44 24 14 83 c6 08 85 c0 75 d2 8b 74 24 0c All code ======== 0: 84 91 00 00 00 89 test %dl,-0x77000000(%rcx) 6: 74 24 je 0x2c 8: 0c 89 or $0x89,%al a: ee out %al,(%dx) b: 89 cd mov %ecx,%ebp d: 90 nop e: 57 push %rdi f: 6a 01 pushq $0x1 11: 6a 08 pushq $0x8 13: 55 push %rbp 14: e8 e5 fb ff ff callq 0xfffffffffffffbfe 19: 8b 83 f0 09 00 00 mov 0x9f0(%rbx),%eax 1f: 8b 54 24 24 mov 0x24(%rsp),%edx 23: 8b 4c 24 28 mov 0x28(%rsp),%ecx 27: 83 c4 10 add $0x10,%esp 2a:* 89 14 30 mov %edx,(%rax,%rsi,1) <-- trapping instruction 2d: 89 4c 30 04 mov %ecx,0x4(%rax,%rsi,1) 31: 8b 44 24 14 mov 0x14(%rsp),%eax 35: 83 c6 08 add $0x8,%esi 38: 85 c0 test %eax,%eax 3a: 75 d2 jne 0xe 3c: 8b 74 24 0c mov 0xc(%rsp),%esi Code starting with the faulting instruction =========================================== 0: 89 14 30 mov %edx,(%rax,%rsi,1) 3: 89 4c 30 04 mov %ecx,0x4(%rax,%rsi,1) 7: 8b 44 24 14 mov 0x14(%rsp),%eax b: 83 c6 08 add $0x8,%esi e: 85 c0 test %eax,%eax 10: 75 d2 jne 0xffffffffffffffe4 12: 8b 74 24 0c mov 0xc(%rsp),%esi [ 809.127897][ T543] vmstat[543]: segfault at 4df000 ip b7f926ec sp bfe31560 error 6 in libprocps.so.7.1.0[b7f92000+a000] likely on CPU 0 (core 0, socket 0) [ 809.131027][ T543] Code: 84 91 00 00 00 89 74 24 0c 89 ee 89 cd 90 57 6a 01 6a 08 55 e8 e5 fb ff ff 8b 83 f0 09 00 00 8b 54 24 24 8b 4c 24 28 83 c4 10 <89> 14 30 89 4c 30 04 8b 44 24 14 83 c6 08 85 c0 75 d2 8b 74 24 0c All code ======== 0: 84 91 00 00 00 89 test %dl,-0x77000000(%rcx) 6: 74 24 je 0x2c 8: 0c 89 or $0x89,%al a: ee out %al,(%dx) b: 89 cd mov %ecx,%ebp d: 90 nop e: 57 push %rdi f: 6a 01 pushq $0x1 11: 6a 08 pushq $0x8 13: 55 push %rbp 14: e8 e5 fb ff ff callq 0xfffffffffffffbfe 19: 8b 83 f0 09 00 00 mov 0x9f0(%rbx),%eax 1f: 8b 54 24 24 mov 0x24(%rsp),%edx 23: 8b 4c 24 28 mov 0x28(%rsp),%ecx 27: 83 c4 10 add $0x10,%esp 2a:* 89 14 30 mov %edx,(%rax,%rsi,1) <-- trapping instruction 2d: 89 4c 30 04 mov %ecx,0x4(%rax,%rsi,1) 31: 8b 44 24 14 mov 0x14(%rsp),%eax 35: 83 c6 08 add $0x8,%esi 38: 85 c0 test %eax,%eax 3a: 75 d2 jne 0xe 3c: 8b 74 24 0c mov 0xc(%rsp),%esi Code starting with the faulting instruction =========================================== 0: 89 14 30 mov %edx,(%rax,%rsi,1) 3: 89 4c 30 04 mov %ecx,0x4(%rax,%rsi,1) 7: 8b 44 24 14 mov 0x14(%rsp),%eax b: 83 c6 08 add $0x8,%esi e: 85 c0 test %eax,%eax 10: 75 d2 jne 0xffffffffffffffe4 12: 8b 74 24 0c mov 0xc(%rsp),%esi The kernel config and materials to reproduce are available at: https://download.01.org/0day-ci/archive/20240422/202404221436.c921df08-oliver.sang@xxxxxxxxx -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki