[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200122070251.GC8767@xsang-OptiPlex-9020>
Date: Wed, 22 Jan 2020 15:02:51 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Matthew Wilcox <willy@...radead.org>
Cc: 0day robot <lkp@...el.com>, LKML <linux-kernel@...r.kernel.org>,
lkp@...ts.01.org
Subject: [mm] [confidence: ] c7be46a228: kernel_BUG_at_mm/filemap.c
FYI, we noticed the following commit (built with gcc-7):
commit: c7be46a2287b8d60b96a090f8eb554213ce1e1a6 ("mm: Unify all add_to_page_cache variants")
https://github.com/0day-ci/linux Matthew-Wilcox/Replacing-the-readpages-a_op/20200116-120705
in testcase: rcuperf
with following parameters:
runtime: 300s
perf_type: srcud
on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 8G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+------------------------------------------+------------+------------+
| | 8f8953aaa5 | c7be46a228 |
+------------------------------------------+------------+------------+
| boot_successes | 16 | 0 |
| boot_failures | 0 | 6 |
| kernel_BUG_at_mm/filemap.c | 0 | 6 |
| invalid_opcode:#[##] | 0 | 6 |
| EIP:add_to_page_cache | 0 | 6 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 6 |
+------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>
[ 1.698054] kernel BUG at mm/filemap.c:859!
[ 1.698550] invalid opcode: 0000 [#1] PREEMPT SMP
[ 1.698898] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.5.0-rc4-00018-gc7be46a2287b8 #1
[ 1.699479] EIP: add_to_page_cache+0x53/0x470
[ 1.699798] Code: 00 00 00 8d 42 ff c7 45 ec 00 00 00 00 c7 45 f0 00 00 00 00 75 02 89 f0 8b 00 a8 01 75 11 ba 14 1a c9 b2 89 f0 e8 9d 0f 03 00 <0f> 0b 8d 76 00 8b 56 04 89 f0 f6 c2 01 74 0e 8d 42 ff 8d b4 26 00
[ 1.701131] EAX: 00000000 EBX: ee919970 ECX: 00000000 EDX: 00000001
[ 1.701584] ESI: f5a18860 EDI: 00000000 EBP: ef497c88 ESP: ef497c5c
[ 1.701842] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010246
[ 1.701842] CR0: 80050033 CR2: ffffffff CR3: 032ce000 CR4: 000406d0
[ 1.701842] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 1.701842] DR6: fffe0ff0 DR7: 00000400
[ 1.701842] Call Trace:
[ 1.701842] ? find_get_pages_contig+0x430/0x430
[ 1.701842] ? ktime_get_coarse_real_ts64+0x65/0xe0
[ 1.701842] pagecache_get_page+0x286/0x320
[ 1.701842] grab_cache_page_write_begin+0x20/0x40
[ 1.701842] simple_write_begin+0x33/0x1f0
[ 1.701842] generic_perform_write+0xa3/0x180
[ 1.701842] ? generic_file_write_iter+0x24/0x220
[ 1.701842] __generic_file_write_iter+0x17a/0x1e0
[ 1.701842] ? generic_file_write_iter+0x24/0x220
[ 1.701842] generic_file_write_iter+0x16c/0x220
[ 1.701842] __vfs_write+0x168/0x1e0
[ 1.701842] vfs_write+0xb6/0x1b0
[ 1.701842] ? __kmalloc_track_caller+0x2b0/0x330
[ 1.701842] ksys_write+0x4c/0xb0
[ 1.701842] xwrite+0x1e/0x47
[ 1.701842] do_copy+0x24/0xb5
[ 1.701842] write_buffer+0x1f/0x2e
[ 1.701842] flush_buffer+0x5b/0x71
[ 1.701842] __gunzip+0x214/0x2a8
[ 1.701842] ? bunzip2+0x301/0x301
[ 1.701842] ? __gunzip+0x2a8/0x2a8
[ 1.701842] gunzip+0x16/0x18
[ 1.701842] ? write_buffer+0x2e/0x2e
[ 1.701842] ? md_run_setup+0xac/0xac
[ 1.701842] unpack_to_rootfs+0x145/0x256
[ 1.701842] ? write_buffer+0x2e/0x2e
[ 1.701842] ? md_run_setup+0xac/0xac
[ 1.701842] ? unpack_to_rootfs+0x256/0x256
[ 1.701842] populate_rootfs+0x47/0x93
[ 1.701842] do_one_initcall+0x105/0x2c0
[ 1.701842] ? parse_args+0x17e/0x350
[ 1.701842] ? rcu_lockdep_current_cpu_online+0x56/0x70
[ 1.701842] ? rcu_read_lock_sched_held+0x2f/0x60
[ 1.701842] ? trace_initcall_level+0x97/0xcf
[ 1.701842] ? kernel_init_freeable+0xe5/0x154
[ 1.701842] kernel_init_freeable+0xfd/0x154
[ 1.701842] ? rest_init+0x220/0x220
[ 1.701842] kernel_init+0xb/0x100
[ 1.701842] ? schedule_tail_wrapper+0x9/0xc
[ 1.701842] ret_from_fork+0x2e/0x38
[ 1.701842] Modules linked in:
[ 1.715745] ---[ end trace 590bc27ca0704de4 ]---
To reproduce:
# build kernel
cd linux
cp config-5.5.0-rc4-00018-gc7be46a2287b8 .config
make HOSTCC=gcc-7 CC=gcc-7 ARCH=i386 olddefconfig prepare modules_prepare bzImage
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email
Thanks,
Oliver Sang
View attachment "config-5.5.0-rc4-00018-gc7be46a2287b8" of type "text/plain" (151266 bytes)
View attachment "job-script" of type "text/plain" (4611 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (10280 bytes)
Powered by blists - more mailing lists