2023-10-10 13:32:29

by kernel test robot

[permalink] [raw]
Subject: [brauner-vfs:vfs.iov_iter] [iov_iter] 376fdc4552: last_state.OOM



Hello,

kernel test robot noticed "last_state.OOM" on:

commit: 376fdc4552f1ec23677fd7321ff5f7a208bd9eb9 ("iov_iter: Don't deal with iter->copy_mc in memcpy_from_iter_mc()")
https://git.kernel.org/cgit/linux/kernel/git/vfs/vfs.git vfs.iov_iter

[test failed on linux-next/master 33b64befb1a28bca3f5a9ed9807d2f87e976c63a]

in testcase: trinity
version: trinity-i386-abe9de86-1_20230429
with following parameters:

runtime: 300s
group: group-04
nr_groups: 5

test-description: Trinity is a linux system call fuzz tester.
test-url: http://codemonkey.org.uk/projects/trinity/


compiler: gcc-12
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

(please refer to attached dmesg/kmsg for entire log/backtrace)



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 <[email protected]>
| Closes: https://lore.kernel.org/oe-lkp/[email protected]



[ 218.519632][ T7791] trinity-c4 invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=500
[ 218.521337][ T7791] CPU: 0 PID: 7791 Comm: trinity-c4 Tainted: G W N 6.6.0-rc2-00008-g376fdc4552f1 #1 75cb4084668096873a4da81c5b2fd1231af43beb
[ 218.523040][ T7791] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 218.524361][ T7791] Call Trace:
[ 218.524861][ T7791] dump_stack_lvl+0x72/0x90
[ 218.525505][ T7791] dump_stack+0xd/0x10
[ 218.526097][ T7791] dump_header+0x42/0x460
[ 218.526729][ T7791] ? ___ratelimit+0x6b/0x110
[ 218.527418][ T7791] oom_kill_process+0x69/0xf0
[ 218.528091][ T7791] out_of_memory+0xb8/0x2c0
[ 218.528736][ T7791] __alloc_pages_slowpath+0x829/0xa20
[ 218.529607][ T7791] __alloc_pages+0x2b5/0x300
[ 218.530249][ T7791] __folio_alloc+0x15/0x20
[ 218.530882][ T7791] shmem_get_folio_gfp+0x351/0x640
[ 218.531750][ T7791] ? irqentry_exit+0x39/0xa0
[ 218.532419][ T7791] shmem_write_begin+0x4b/0xd0
[ 218.533075][ T7791] ? fault_in_readable+0x70/0xc0
[ 218.533772][ T7791] generic_perform_write+0xb5/0x200
[ 218.534492][ T7791] shmem_file_write_iter+0x78/0x80
[ 218.535199][ T7791] do_iter_readv_writev+0xee/0x130
[ 218.535892][ T7791] do_iter_write+0x75/0x150
[ 218.536524][ T7791] vfs_writev+0x82/0x250
[ 218.537139][ T7791] ? exit_to_user_mode_prepare+0xa2/0x1c0
[ 218.537918][ T7791] ? syscall_exit_to_user_mode+0x41/0x60
[ 218.538687][ T7791] ? do_int80_syscall_32+0x5d/0x80
[ 218.540140][ T7791] do_writev+0x67/0xf0
[ 218.540721][ T7791] __ia32_sys_writev+0x17/0x20
[ 218.541376][ T7791] do_int80_syscall_32+0x53/0x80
[ 218.542042][ T7791] ? __ia32_sys_alarm+0x58/0xa0
[ 218.542691][ T7791] ? __ia32_sys_alarm+0x58/0xa0
[ 218.543354][ T7791] ? exit_to_user_mode_prepare+0xa2/0x1c0
[ 218.544085][ T7791] ? syscall_exit_to_user_mode+0x41/0x60
[ 218.544822][ T7791] ? do_int80_syscall_32+0x5d/0x80
[ 218.545517][ T7791] ? do_int80_syscall_32+0x5d/0x80
[ 218.546220][ T7791] ? sysvec_call_function_single+0x26/0x30
[ 218.546996][ T7791] entry_INT80_32+0x108/0x108
[ 218.547664][ T7791] EIP: 0xb7f18092
[ 218.548207][ T7791] Code: 00 00 00 e9 90 ff ff ff ff a3 24 00 00 00 68 30 00 00 00 e9 80 ff ff ff ff a3 f8 ff ff ff 66 90 00 00 00 00 00 00 00 00 cd 80 <c3> 8d b4 26 00 00 00 00 8d b6 00 00 00 00 8b 1c 24 c3 8d b4 26 00
[ 218.550566][ T7791] EAX: ffffffda EBX: 00000117 ECX: 011227b0 EDX: 00000001
[ 218.551538][ T7791] ESI: 0000f000 EDI: 2493800c EBP: 000000e8 ESP: bfa72c68
[ 218.552406][ T7791] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b EFLAGS: 00000296
[ 218.553502][ T7791] Mem-Info:
[ 218.554011][ T7791] active_anon:773 inactive_anon:619045 isolated_anon:0
[ 218.554011][ T7791] active_file:10 inactive_file:382 isolated_file:64
[ 218.554011][ T7791] unevictable:87071 dirty:0 writeback:0
[ 218.554011][ T7791] slab_reclaimable:8235 slab_unreclaimable:12508
[ 218.554011][ T7791] mapped:11138 shmem:584383 pagetables:326
[ 218.554011][ T7791] sec_pagetables:0 bounce:0
[ 218.554011][ T7791] kernel_misc_reclaimable:0
[ 218.554011][ T7791] free:22215 free_pcp:122 free_cma:0
[ 218.559177][ T7791] Node 0 active_anon:3092kB inactive_anon:2476180kB active_file:40kB inactive_file:1728kB unevictable:348284kB isolated(anon):0kB isolated(file):0kB mapped:44552kB dirty:0kB writeback:0kB shmem:2337532kB writeback_tmp:0kB kernel_stack:1088kB pagetables:1304kB sec_pagetables:0kB all_unreclaimable? yes
[ 218.562603][ T7791] DMA free:11428kB boost:0kB min:80kB low:100kB high:120kB reserved_highatomic:0KB active_anon:0kB inactive_anon:3924kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15360kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[ 218.565709][ T7791] lowmem_reserve[]: 0 515 2843 2843
[ 218.566468][ T7791] Normal free:77240kB boost:0kB min:2864kB low:3580kB high:4296kB reserved_highatomic:0KB active_anon:0kB inactive_anon:444420kB active_file:40kB inactive_file:1668kB unevictable:8708kB writepending:0kB present:745464kB managed:622688kB mlocked:0kB bounce:0kB free_pcp:240kB local_pcp:240kB free_cma:0kB
[ 218.569877][ T7791] lowmem_reserve[]: 0 0 18623 18623
[ 218.570654][ T7791] HighMem free:192kB boost:0kB min:512kB low:3744kB high:6976kB reserved_highatomic:0KB active_anon:3092kB inactive_anon:2027732kB active_file:0kB inactive_file:0kB unevictable:339576kB writepending:0kB present:2383752kB managed:2383752kB mlocked:3216kB bounce:0kB free_pcp:248kB local_pcp:248kB free_cma:0kB
[ 218.574073][ T7791] lowmem_reserve[]: 0 0 0 0
[ 218.574727][ T7791] DMA: 1*4kB (M) 0*8kB 0*16kB 1*32kB (M) 0*64kB 1*128kB (M) 0*256kB 0*512kB 1*1024kB (U) 1*2048kB (U) 2*4096kB (M) = 11428kB
[ 218.576418][ T7791] Normal: 662*4kB (UME) 434*8kB (UME) 497*16kB (UME) 290*32kB (UME) 116*64kB (UE) 45*128kB (UME) 23*256kB (UME) 14*512kB (UME) 3*1024kB (ME) 2*2048kB (E) 5*4096kB (M) = 77240kB
[ 218.578665][ T7791] HighMem: 2*4kB (U) 3*8kB (UM) 2*16kB (UM) 2*32kB (U) 1*64kB (M) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 192kB
[ 218.580281][ T7791] 671109 total pagecache pages
[ 218.580943][ T7791] 786302 pages RAM
[ 218.581477][ T7791] 595938 pages HighMem/MovableOnly
[ 218.582192][ T7791] 30852 pages reserved
[ 218.582769][ T7791] 0 pages cma reserved
[ 218.583337][ T7791] Tasks state (memory values in pages):
[ 218.584065][ T7791] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
[ 218.585258][ T7791] [ 4192] 0 4192 9791 1711 45056 0 -250 systemd-journal
[ 218.586711][ T7791] [ 4205] 0 4205 4826 1184 20480 0 -1000 systemd-udevd
[ 218.587982][ T7791] [ 4241] 103 4241 1957 928 16384 0 0 rpcbind
[ 218.589205][ T7791] [ 4244] 0 4244 1433 672 16384 0 0 cron
[ 218.590439][ T7791] [ 4245] 105 4245 1960 1024 16384 0 -900 dbus-daemon
[ 218.591671][ T7791] [ 4255] 0 4255 6714 1210 28672 0 0 rsyslogd
[ 218.592856][ T7791] [ 4257] 0 4257 3379 1536 24576 0 0 systemd-logind
[ 218.594137][ T7791] [ 4294] 0 4294 635 384 12288 0 0 rc.local
[ 218.595340][ T7791] [ 4299] 0 4299 636 384 12288 0 0 lkp-bootstrap
[ 218.596555][ T7791] [ 4302] 0 4302 635 160 12288 0 0 lkp-bootstrap
[ 218.597798][ T7791] [ 4304] 0 4304 666 416 12288 0 -1000 lkp-setup-rootf
[ 218.599125][ T7791] [ 4307] 0 4307 1084 416 16384 0 0 sleep
[ 218.655851][ T7791] [ 4315] 0 4315 3326 1760 20480 0 -1000 sshd
[ 218.657036][ T7791] [ 4316] 0 4316 1096 416 16384 0 -1000 tail
[ 218.658257][ T7791] [ 4317] 0 4317 18758 17312 81920 0 -1000 sed
[ 218.659421][ T7791] [ 4318] 0 4318 1096 416 16384 0 -1000 tail
[ 218.660609][ T7791] [ 4319] 0 4319 17272 15904 77824 0 -1000 sed
[ 218.661767][ T7791] [ 4385] 0 4385 681 448 12288 0 -1000 run-lkp
[ 218.668218][ T7791] [ 4390] 0 4390 1096 448 16384 0 -1000 tail
[ 218.669418][ T7791] [ 4391] 0 4391 1096 416 16384 0 -1000 tail
[ 218.670649][ T7791] [ 4392] 0 4392 1096 448 16384 0 -1000 tail
[ 218.671830][ T7791] [ 4413] 0 4413 637 416 12288 0 1000 trinity-group-0
[ 218.673112][ T7791] [ 4426] 0 4426 1142 480 16384 0 0 dmesg
[ 218.678519][ T7791] [ 4428] 0 4428 1952 736 16384 0 0 vmstat
[ 218.679644][ T7791] [ 4433] 0 4433 642 384 12288 0 0 meminfo
[ 218.680824][ T7791] [ 4442] 0 4442 642 352 12288 0 -1000 oom-killer
[ 218.684283][ T7791] [ 4445] 0 4445 637 352 12288 0 0 watchdog
[ 218.688855][ T7791] [ 4455] 0 4455 222 128 8192 0 0 wait
[ 218.690069][ T7791] [ 4464] 0 4464 1120 416 16384 0 0 cat
[ 218.691224][ T7791] [ 4469] 0 4469 675 352 12288 0 0 gzip-meminfo
[ 218.692462][ T7791] [ 4471] 0 4471 222 32 8192 0 0 wakeup
[ 218.693640][ T7791] [ 4474] 0 4474 222 32 8192 0 0 wakeup
[ 218.699181][ T7791] [ 4481] 0 4481 1120 384 16384 0 0 cat
[ 218.700343][ T7791] [ 4498] 0 4498 609 288 12288 0 0 time
[ 218.701484][ T7791] [ 4502] 0 4502 1087 416 16384 0 0 tee
[ 218.702718][ T7791] [ 4505] 0 4505 637 384 12288 0 0 trinity
[ 218.703887][ T7791] [ 7569] 0 7569 637 225 12288 0 0 trinity
[ 218.705052][ T7791] [ 7570] 0 7570 1085 416 16384 0 0 sleep
[ 218.706238][ T7791] [ 7572] 65534 7572 9171 6560 57344 0 0 trinity-main
[ 218.707449][ T7791] [ 7787] 65534 7787 9168 5188 61440 0 500 trinity-c0
[ 218.708652][ T7791] [ 7789] 65534 7789 8856 5857 61440 0 500 trinity-c2
[ 218.709839][ T7791] [ 7790] 65534 7790 9087 5319 61440 0 500 trinity-c3
[ 218.719541][ T7791] [ 7791] 65534 7791 9612 5383 61440 0 500 trinity-c4
[ 218.720763][ T7791] [ 7792] 65534 7792 8208 5503 61440 0 500 trinity-c5
[ 218.722024][ T7791] [ 7794] 65534 7794 9780 5863 65536 0 500 trinity-c7
[ 218.725926][ T7791] [ 7809] 65534 7809 9390 6341 61440 0 500 trinity-c1
[ 218.727209][ T7791] [ 7855] 65534 7855 9605 6760 65536 0 500 trinity-c6
[ 218.728330][ T7791] [ 7921] 0 7921 222 128 8192 0 -1000 wait
[ 218.729374][ T7791] [ 7957] 0 7957 222 128 8192 0 0 wait
[ 218.730495][ T7791] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),task=trinity-group-0,pid=4413,uid=0
[ 218.732135][ T7791] Out of memory: Killed process 4413 (trinity-group-0) total-vm:2548kB, anon-rss:128kB, file-rss:1536kB, shmem-rss:0kB, UID:0 pgtables:12kB oom_score_adj:1000
[ 218.753318][ T4319] Killed
[ 218.753343][ T4319]



The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20231010/[email protected]



--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki