{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenChannelSSD/linux/issues/52","repository_url":"https://api.github.com/repos/OpenChannelSSD/linux","labels_url":"https://api.github.com/repos/OpenChannelSSD/linux/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/OpenChannelSSD/linux/issues/52/comments","events_url":"https://api.github.com/repos/OpenChannelSSD/linux/issues/52/events","html_url":"https://github.com/OpenChannelSSD/linux/issues/52","id":352172243,"node_id":"MDU6SXNzdWUzNTIxNzIyNDM=","number":52,"title":"mkfs failed when using pblk formed dm-cache device","user":{"login":"brucewanght","id":29733330,"node_id":"MDQ6VXNlcjI5NzMzMzMw","avatar_url":"https://avatars2.githubusercontent.com/u/29733330?v=4","gravatar_id":"","url":"https://api.github.com/users/brucewanght","html_url":"https://github.com/brucewanght","followers_url":"https://api.github.com/users/brucewanght/followers","following_url":"https://api.github.com/users/brucewanght/following{/other_user}","gists_url":"https://api.github.com/users/brucewanght/gists{/gist_id}","starred_url":"https://api.github.com/users/brucewanght/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brucewanght/subscriptions","organizations_url":"https://api.github.com/users/brucewanght/orgs","repos_url":"https://api.github.com/users/brucewanght/repos","events_url":"https://api.github.com/users/brucewanght/events{/privacy}","received_events_url":"https://api.github.com/users/brucewanght/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-20T14:55:04Z","updated_at":"2018-08-20T14:55:04Z","closed_at":null,"author_association":"NONE","body":"Hi, guys,\r\n\r\n    I formed a dm-cache device using pblk target as a cache device, and when I mkfs.ext4 on this dm-cache device, it failed and triggered a kernel crash.  But when I used another nvme SSD device as cache device, it worked well. Is there anyone who saw this kind of problem before? I was wondering if this is a kernel bug?\r\n    My kernel is for-4.20/core, and the nvme list commad shows:\r\nNode             SN                   Model            Namespace Usage                      Format           FW Rev\r\n---------------- -------------------- ---------------------------------------- --------- -------------------------- -\r\n/dev/nvme0n1     CVCQ6443002V1P2BGN   INTEL SSDPEDMW012T4         1           1.20  TB /   1.20  TB    512   B +  0 B   8EV10171\r\n/dev/nvme1n1     CX8800ES             CNEX-8800 LightNVM SDK                   1           2.29  TB /   4.40  TB      4 KiB +  0 B   R1.2\r\n\r\nBelow are the steps leading to the issue:\r\n1.sudo nvme lnvm cereate -d nvme1n1 -n cachedev0 -t pblk -b 0 -e 7 -f\r\n2.sudo losetup /dev/loop1 /tmp/meta0.img\r\n3.sudo dmsetup create my_cache0 --table '0 1953525168 cache /dev/loop1 /dev/cachedev0 /dev/sdb 64 1 writeback default 0'\r\n4.sudo mkfs.ext4 /dev/mapper/my_cache0\r\nmke2fs 1.44.2 (14-May-2018)\r\n(here the command blocked)\r\n5. the dmesg shows:\r\n[ 2777.125361] BUG: unable to handle kernel paging request at 0000000057ac6e9c\r\n[ 2777.125416] PGD 0 P4D 0\r\n[ 2777.125441] Oops: 0000 [#1] PREEMPT SMP PTI\r\n[ 2777.125475] CPU: 24 PID: 405 Comm: kworker/24:1H Not tainted 4.18.0-rc4-lightnvm #15\r\n[ 2777.125526] Hardware name: Dell Inc. PowerEdge T630/0NT78X, BIOS 2.3.4 11/09/2016\r\n[ 2777.125582] Workqueue: kblockd cfq_kick_queue\r\n[ 2777.125619] RIP: 0010:blk_rq_map_sg+0x1a1/0x5b0\r\n[ 2777.125650] Code: 4c 89 44 24 08 44 89 4c 24 10 48 89 54 24 18 e8 75 0a 04 00 8b 74 24 3c 48 8b 54 24 18 48 89 c3 48 8b 44 24 30 44 8b 4c 24 10 <48> 8b 3b 4c 8b 44 24 08 48 8b 0c 24 83 e7 03 a8 03 0f 85 26 01 00\r\n[ 2777.125819] RSP: 0018:ffffb106876f7c78 EFLAGS: 00010002\r\n[ 2777.125856] RAX: ffffe829dd69a880 RBX: 0000000057ac6e9c RCX: 0000000057ac6e9c\r\n[ 2777.125904] RDX: ffff9a9346267b10 RSI: 0000000000000000 RDI: ffff9a93d825bfe0\r\n[ 2777.125952] RBP: ffffb106876f7cf8 R08: ffff9a9bd73a8c00 R09: 0000000000000010\r\n[ 2777.126000] R10: 000000075a6a4000 R11: 0000000000000000 R12: 0000000000002000\r\n[ 2777.126047] R13: 0000000000001000 R14: 0000000000000000 R15: 0000000000000010\r\n[ 2777.126096] FS:  0000000000000000(0000) GS:ffff9a93dfd00000(0000) knlGS:0000000000000000\r\n[ 2777.126150] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033\r\n[ 2777.126189] CR2: 0000000057ac6e9c CR3: 0000000e8500a002 CR4: 00000000003606e0\r\n[ 2777.126237] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000\r\n[ 2777.126285] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400\r\n[ 2777.126332] Call Trace:\r\n[ 2777.126367]  scsi_init_sgtable+0x42/0x80 [scsi_mod]\r\n[ 2777.126409]  scsi_init_io+0x48/0x1b0 [scsi_mod]\r\n[ 2777.126445]  sd_init_command+0x107/0xc00 [sd_mod]\r\n[ 2777.126485]  ? scsi_init_command+0xd4/0x130 [scsi_mod]\r\n[ 2777.126527]  scsi_prep_fn+0x58/0x140 [scsi_mod]\r\n[ 2777.126563]  blk_peek_request+0xc7/0x2c0\r\n[ 2777.126598]  scsi_request_fn+0x31/0x510 [scsi_mod]\r\n[ 2777.126635]  __blk_run_queue+0x3f/0x60\r\n[ 2777.126666]  cfq_kick_queue+0x29/0x40\r\n[ 2777.126698]  process_one_work+0x1fd/0x3e0\r\n[ 2777.126730]  worker_thread+0x2d/0x3d0\r\n[ 2777.126761]  ? rescuer_thread+0x340/0x340\r\n[ 2777.126791]  kthread+0x112/0x130\r\n[ 2777.126818]  ? kthread_create_worker_on_cpu+0x70/0x70\r\n[ 2777.126857]  ret_from_fork+0x35/0x40\r\n[ 2777.126886] Modules linked in: ipt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter xt_conntrack nf_nat nf_conntrack br_netfilter bridge stp llc overlay cfg80211 rfkill 8021q mrp intel_rapl sb_edac x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel input_leds pcbc mgag200 aesni_intel led_class ipmi_ssif mousedev aes_x86_64 iTCO_wdt crypto_simd ttm evdev iTCO_vendor_support mxm_wmi mac_hid cryptd dcdbas glue_helper drm_kms_helper intel_cstate intel_rapl_perf pcspkr drm igb syscopyarea sysfillrect sysimgblt fb_sys_fops ptp pps_core dca i2c_algo_bit mei_me lpc_ich mei ipmi_si ipmi_devintf ipmi_msghandler wmi acpi_power_meter button sch_fq_codel\r\n[ 2777.127375]  loop dm_cache_smq dm_cache dm_persistent_data dm_bio_prison dm_bufio dm_mod libcrc32c ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 fscrypto hid_logitech_hidpp hid_logitech_dj hid_generic usbhid hid sd_mod ahci libahci ehci_pci crc32c_intel ehci_hcd libata usbcore scsi_mod usb_common\r\n[ 2777.127569] CR2: 0000000057ac6e9c\r\n[ 2777.127596] ---[ end trace 2fbd8a4f12749175 ]---\r\n[ 2777.133671] RIP: 0010:blk_rq_map_sg+0x1a1/0x5b0\r\n[ 2777.133706] Code: 4c 89 44 24 08 44 89 4c 24 10 48 89 54 24 18 e8 75 0a 04 00 8b 74 24 3c 48 8b 54 24 18 48 89 c3 48 8b 44 24 30 44 8b 4c 24 10 <48> 8b 3b 4c 8b 44 24 08 48 8b 0c 24 83 e7 03 a8 03 0f 85 26 01 00\r\n[ 2777.133875] RSP: 0018:ffffb106876f7c78 EFLAGS: 00010002\r\n[ 2777.133913] RAX: ffffe829dd69a880 RBX: 0000000057ac6e9c RCX: 0000000057ac6e9c\r\n[ 2777.133961] RDX: ffff9a9346267b10 RSI: 0000000000000000 RDI: ffff9a93d825bfe0\r\n[ 2777.134008] RBP: ffffb106876f7cf8 R08: ffff9a9bd73a8c00 R09: 0000000000000010\r\n[ 2777.134057] R10: 000000075a6a4000 R11: 0000000000000000 R12: 0000000000002000\r\n[ 2777.134104] R13: 0000000000001000 R14: 0000000000000000 R15: 0000000000000010\r\n[ 2777.134153] FS:  0000000000000000(0000) GS:ffff9a93dfd00000(0000) knlGS:0000000000000000\r\n[ 2777.134206] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033\r\n[ 2777.134246] CR2: 0000000057ac6e9c CR3: 0000000e8500a002 CR4: 00000000003606e0\r\n[ 2777.134293] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000\r\n[ 2777.134340] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400\r\n[ 2777.134409] note: kworker/24:1H[405] exited with preempt_count 1\r\n\r\nThanks,\r\nBruce"}}
{"actor":{"display_login":"brucewanght"}}