[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200802060252.GU23458@shao2-debian>
Date: Sun, 2 Aug 2020 14:02:52 +0800
From: kernel test robot <rong.a.chen@...el.com>
To: Jaegeuk Kim <jaegeuk@...nel.org>
Cc: Daeho Jeong <daehojeong@...gle.com>,
LKML <linux-kernel@...r.kernel.org>,
linux-f2fs-devel@...ts.sourceforge.net, lkp@...ts.01.org
Subject: [f2fs] 4b16d8af3f: WARNING:at_kernel/sched/core.c:#__might_sleep
Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: 4b16d8af3f317da8baadbe80b60cca831c917e21 ("f2fs: fix deadlock between quota writes and checkpoint")
https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs.git dev
in testcase: xfstests
with following parameters:
disk: 4HDD
fs: f2fs
test: generic-group16
test-description: xfstests is a regression test suite for xfs and other files ystems.
test-url: git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git
on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+-----------------------------------------------+------------+------------+
| | d77d98df18 | 4b16d8af3f |
+-----------------------------------------------+------------+------------+
| boot_successes | 4 | 0 |
| boot_failures | 0 | 4 |
| WARNING:at_kernel/sched/core.c:#__might_sleep | 0 | 4 |
| RIP:__might_sleep | 0 | 4 |
+-----------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <rong.a.chen@...el.com>
[ 28.030035] WARNING: CPU: 0 PID: 865 at kernel/sched/core.c:6822 __might_sleep+0x73/0x80
[ 28.030949] Modules linked in: dm_mod f2fs bochs_drm drm_vram_helper sr_mod drm_ttm_helper cdrom ttm sg drm_kms_helper ata_generic syscopyarea intel_rapl_msr sysfillrect intel_rapl_common sysimgblt fb_sys_fops crct10dif_pclmul crc32_pclmul ppdev crc32c_intel drm ghash_clmulni_intel ata_piix joydev serio_raw i2c_piix4 libata parport_pc ipmi_devintf ipmi_msghandler parport ip_tables
[ 28.034580] CPU: 0 PID: 865 Comm: umount Not tainted 5.7.0-14074-g4b16d8af3f317d #1
[ 28.035396] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[ 28.036285] RIP: 0010:__might_sleep+0x73/0x80
[ 28.036772] Code: 5d 41 5e 5d e9 2e ff ff ff 48 8b 90 28 22 00 00 48 8b 70 10 48 c7 c7 f0 5b f5 a9 c6 05 6e 3a 71 01 01 48 89 d1 e8 0f f3 fc ff <0f> 0b eb c6 66 0f 1f 84 00 00 00 00 00 66 66 66 66 90 9c 58 f6 c4
[ 28.038806] RSP: 0018:ffffbe5980f7fbc0 EFLAGS: 00010282
[ 28.039387] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 28.040181] RDX: ffff9ddc7fc29260 RSI: ffff9ddc7fc18f20 RDI: ffff9ddc7fc18f20
[ 28.040969] RBP: ffffbe5980f7fbd8 R08: 00000000000002c9 R09: 0000000000000000
[ 28.041765] R10: 0000000000000001 R11: ffffffffc01b0060 R12: ffffffffa9f57d32
[ 28.042561] R13: 00000000000005fa R14: 0000000000000000 R15: 0000000000000000
[ 28.043311] FS: 00007fbceaaf1080(0000) GS:ffff9ddc7fc00000(0000) knlGS:0000000000000000
[ 28.044157] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 28.044773] CR2: 00007ffdd9123ff0 CR3: 00000003b1bee000 CR4: 00000000000406f0
[ 28.045537] Call Trace:
[ 28.045851] down_write+0x1c/0x50
[ 28.046255] __submit_merged_write_cond+0x110/0x180 [f2fs]
[ 28.046888] f2fs_wait_on_all_pages+0xf1/0x100 [f2fs]
[ 28.047450] ? finish_wait+0x90/0x90
[ 28.047881] do_checkpoint+0x5da/0xdd0 [f2fs]
[ 28.048371] ? _cond_resched+0x19/0x30
[ 28.048780] ? down_write+0x21/0x50
[ 28.049187] ? __submit_merged_write_cond+0x153/0x180 [f2fs]
[ 28.049819] f2fs_write_checkpoint+0x165/0x3f0 [f2fs]
[ 28.050426] f2fs_sync_fs+0x9a/0x130 [f2fs]
[ 28.050907] sync_filesystem+0x74/0x90
[ 28.053036] generic_shutdown_super+0x22/0x110
[ 28.055023] kill_block_super+0x21/0x50
[ 28.056989] kill_f2fs_super+0x71/0xd0 [f2fs]
[ 28.058990] deactivate_locked_super+0x36/0x70
[ 28.060955] cleanup_mnt+0x104/0x160
[ 28.062636] task_work_run+0x69/0xb0
[ 28.064379] exit_to_usermode_loop+0xd0/0xe0
[ 28.066132] do_syscall_64+0x198/0x1b0
[ 28.067973] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 28.069896] RIP: 0033:0x7fbceaf17507
[ 28.071636] Code: Bad RIP value.
[ 28.074477] RSP: 002b:00007ffdd91251c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
[ 28.078847] RAX: 0000000000000000 RBX: 0000559cd7225970 RCX: 00007fbceaf17507
[ 28.082487] RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000559cd7225b80
[ 28.086289] RBP: 0000000000000000 R08: 0000559cd7226930 R09: 00007fbceaf98e80
[ 28.089759] R10: 0000000000000000 R11: 0000000000000246 R12: 0000559cd7225b80
[ 28.093233] R13: 00007fbceb03d1c4 R14: 0000559cd7225a68 R15: 0000000000000000
[ 28.097136] ---[ end trace 7d87b645933ebed6 ]---
To reproduce:
# build kernel
cd linux
cp config-5.7.0-14074-g4b16d8af3f317d .config
make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
cd <mod-install-dir>
find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email
Thanks,
Rong Chen
View attachment "config-5.7.0-14074-g4b16d8af3f317d" of type "text/plain" (158452 bytes)
View attachment "job-script" of type "text/plain" (5545 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (20712 bytes)
View attachment "xfstests" of type "text/plain" (2540 bytes)
Powered by blists - more mailing lists