lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201021092450.GQ11647@shao2-debian>
Date:   Wed, 21 Oct 2020 17:24:50 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Kent Overstreet <kent.overstreet@...il.com>
Cc:     linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
        akpm@...ux-foundation.org, sfrench@...ba.org,
        linux-cifs@...r.kernel.org,
        Kent Overstreet <kent.overstreet@...il.com>,
        0day robot <lkp@...el.com>, lkp@...ts.01.org
Subject: [fs] 8e602a0a70: kernel_BUG_at_mm/filemap.c

Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: 8e602a0a7050258a8f41927f4a1ff55bd26905d7 ("[PATCH 2/2] fs: kill add_to_page_cache_locked()")
url: https://github.com/0day-ci/linux/commits/Kent-Overstreet/cifs-convert-to-add_to_page_cache/20201020-030041
base: git://git.samba.org/sfrench/cifs-2.6.git for-next

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


+----------------------------+------------+------------+
|                            | 089826771b | 8e602a0a70 |
+----------------------------+------------+------------+
| boot_successes             | 4          | 0          |
| boot_failures              | 0          | 4          |
| kernel_BUG_at_mm/filemap.c | 0          | 4          |
| invalid_opcode:#[##]       | 0          | 4          |
| RIP:__add_to_page_cache    | 0          | 4          |
| Kernel_panic-not_syncing   | 0          | 4          |
+----------------------------+------------+------------+


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <rong.a.chen@...el.com>


[    0.797302] kernel BUG at mm/filemap.c:840!
[    0.797985] invalid opcode: 0000 [#1] SMP PTI
[    0.798626] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.9.0-00020-g8e602a0a70502 #1
[    0.798626] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[    0.798626] RIP: 0010:__add_to_page_cache+0x7d/0x261
[    0.798626] Code: 24 20 00 00 00 00 48 c7 44 24 28 00 00 00 00 e8 e0 e2 ff ff 48 8b 00 a8 01 75 11 48 c7 c6 20 9a 2b 82 48 89 ef e8 dd 8e 02 00 <0f> 0b 48 89 ef e8 c0 e2 ff ff 48 8b 00 0f ba e0 13 73 11 48 c7 c6
[    0.798626] RSP: 0000:ffffc90000013a60 EFLAGS: 00010286
[    0.798626] RAX: 0000000000000000 RBX: ffff8882296c2d00 RCX: 0000000000000000
[    0.798626] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff82c8570c
[    0.798626] RBP: ffffea0008a77700 R08: 0000000000000000 R09: ffffffff82c8774f
[    0.798626] R10: 0000000000000000 R11: ffffc900000137cd R12: 0000000000000000
[    0.798626] R13: ffff8882296c2d00 R14: 0000000000100cc2 R15: ffffc90000013ad0
[    0.798626] FS:  0000000000000000(0000) GS:ffff88823fc00000(0000) knlGS:0000000000000000
[    0.798626] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.798626] CR2: 0000000000000000 CR3: 0000000002612000 CR4: 00000000000406f0
[    0.798626] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    0.798626] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    0.798626] Call Trace:
[    0.798626]  add_to_page_cache_lru+0x32/0x8a
[    0.798626]  pagecache_get_page+0x110/0x149
[    0.798626]  grab_cache_page_write_begin+0x1c/0x33
[    0.798626]  simple_write_begin+0x26/0x71
[    0.798626]  generic_perform_write+0xc0/0x1af
[    0.798626]  ? file_update_time+0x47/0xed
[    0.798626]  __generic_file_write_iter+0x112/0x153
[    0.798626]  generic_file_write_iter+0x48/0x8a
[    0.798626]  new_sync_write+0x7f/0xba
[    0.798626]  __kernel_write+0xa3/0xe9
[    0.798626]  kernel_write+0x4d/0x66
[    0.798626]  ? write_buffer+0x37/0x37
[    0.798626]  xwrite+0x31/0x62
[    0.798626]  do_copy+0xbd/0x103
[    0.798626]  ? do_name+0x123/0x273
[    0.798626]  write_buffer+0x27/0x37
[    0.798626]  flush_buffer+0x2b/0x83
[    0.798626]  ? initrd_load+0x3f/0x3f
[    0.798626]  __gunzip+0x264/0x306
[    0.798626]  ? decompress_method+0x5e/0x5e
[    0.798626]  gunzip+0xe/0x11
[    0.798626]  ? initrd_load+0x3f/0x3f
[    0.798626]  unpack_to_rootfs+0x156/0x287
[    0.798626]  ? initrd_load+0x3f/0x3f
[    0.798626]  ? unpack_to_rootfs+0x287/0x287
[    0.798626]  populate_rootfs+0x59/0x104
[    0.798626]  ? unpack_to_rootfs+0x287/0x287
[    0.798626]  do_one_initcall+0x9d/0x1bb
[    0.798626]  kernel_init_freeable+0x19c/0x1e1
[    0.798626]  ? rest_init+0xc6/0xc6
[    0.798626]  kernel_init+0xa/0x109
[    0.798626]  ret_from_fork+0x22/0x30
[    0.798626] Modules linked in:
[    0.834108] ---[ end trace 1f25043c0352edba ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.9.0-00020-g8e602a0a70502 .config
	make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 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,
Rong Chen


View attachment "config-5.9.0-00020-g8e602a0a70502" of type "text/plain" (117091 bytes)

View attachment "job-script" of type "text/plain" (4572 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (8832 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ