Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support kernel 6.11 #1549

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robertbaldyga
Copy link
Member

No description provided.

@robertbaldyga robertbaldyga marked this pull request as ready for review October 8, 2024 12:50
@robertbaldyga robertbaldyga force-pushed the kernel-6.11 branch 2 times, most recently from 1e7ab56 to c136957 Compare November 5, 2024 12:20
Signed-off-by: Robert Baldyga <[email protected]>
@boxerab
Copy link

boxerab commented Nov 15, 2024

I hope this gets merged soon - just installed Fedora 41 but can't install opencas from master

@katlapinka
Copy link
Contributor

There is kernel bug while adding core device:

[ 124.451842] cache1: Successfully attached
[ 124.451887] [Open-CAS] Adding device /dev/disk/by-id/virtio-cache1-part1 as cache cache1
[ 124.451964] [Open-CAS] [Classifier] Initialized IO classifier
[ 137.464775] cache1: Inserting core core1
[ 137.464822] cache1.core1: Seqential cutoff init
[ 137.494009] cache1.core1: Successfully added
[ 137.494616] Invalid logical block size (-13421105)
[ 137.494638] BUG: kernel NULL pointer dereference, address: 000000000000003a
[ 137.494639] #PF: supervisor read access in kernel mode
[ 137.494641] #PF: error_code(0x0000) - not-present page
[ 137.494643] PGD 8986de067 P4D 0
[ 137.494646] Oops: 0000 [#1] PREEMPT SMP NOPTI
[ 137.494649] CPU: 7 PID: 1695 Comm: casadm Kdump: loaded Tainted: G OE ------- --- 5.14.0-533.el9.x86_64 #1
[ 137.494651] Hardware name: Red Hat KVM/RHEL-AV, BIOS 1.16.0-4.module_el8+603+e0ca2c01 04/01/2014
[ 137.494652] RIP: 0010:cas_exp_obj_create+0x26d/0x8e0 [cas_cache]
[ 137.494694] Code: 00 00 31 d2 4c 89 ee 48 c7 c1 80 ac 0f c1 4c 89 f7 44 89 1c 24 e8 23 1a b4 d3 44 8b 1c 24 48 85 c0 49 89 c5 0f 84 31 06 00 00 <48> 8b 40 50 4d 89 2f 48 89 df 44 89 5c 24 08 48 89 04 24 48 8b 43
[ 137.494696] RSP: 0018:ff3a8a7ec78bb838 EFLAGS: 00010282
[ 137.494698] RAX: ffffffffffffffea RBX: ff3335c7c9358c30 RCX: 0000000000004007
[ 137.494699] RDX: 0000000000002007 RSI: 000000000003c6b0 RDI: 08ce6eb3cf3533ff
[ 137.494700] RBP: ffffffffc10fa640 R08: 000000000000007f R09: 0000000000000000
[ 137.494701] R10: ff3a8a7ec78bb4c8 R11: 0000000000000000 R12: ff3a8a7ec7a8e480
[ 137.494702] R13: ffffffffffffffea R14: ff3335cf466c1e60 R15: ff3335cf466c1e00
[ 137.494703] FS: 00007fdb553f1740(0000) GS:ff3335d71fa40000(0000) knlGS:0000000000000000
[ 137.494705] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 137.494706] CR2: 000000000000003a CR3: 0000000888000004 CR4: 0000000000771ef0
[ 137.494709] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 137.494710] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 137.494711] PKRU: 55555554
[ 137.494712] Call Trace:
[ 137.494715]
[ 137.494718] ? show_trace_log_lvl+0x1c4/0x2df
[ 137.494743] ? show_trace_log_lvl+0x1c4/0x2df
[ 137.494746] ? kcas_core_create_exported_object+0xc9/0x110 [cas_cache]
[ 137.494775] ? __die_body.cold+0x8/0xd
[ 137.494778] ? page_fault_oops+0x134/0x170
[ 137.494789] ? exc_page_fault+0x62/0x150
[ 137.494812] ? asm_exc_page_fault+0x22/0x30
[ 137.494820] ? cas_exp_obj_create+0x26d/0x8e0 [cas_cache]
[ 137.494836] ? cas_exp_obj_create+0x25d/0x8e0 [cas_cache]
[ 137.494851] ? kvm_sched_clock_read+0xd/0x20
[ 137.494853] ? sched_clock+0xc/0x30
[ 137.494861] ? sched_clock_cpu+0xb/0x190
[ 137.494872] ? __smp_call_single_queue+0xae/0x120
[ 137.494883] ? _raw_spin_unlock_irq+0xa/0x30
[ 137.494886] ? __wait_for_common+0x19a/0x1d0
[ 137.494889] ? __pfx_schedule_timeout+0x10/0x10
[ 137.494892] ? available_idle_cpu+0x45/0x60
[ 137.494898] ? select_idle_sibling+0xc0/0x4b0
[ 137.494903] ? _raw_spin_unlock+0xb/0x30
[ 137.494904] ? select_task_rq_fair+0x193/0x360
[ 137.494907] ? kvm_sched_clock_read+0xd/0x20
[ 137.494908] ? sched_clock+0xc/0x30
[ 137.494909] ? sched_clock_cpu+0xb/0x190
[ 137.494911] ? __smp_call_single_queue+0xae/0x120
[ 137.494913] ? ttwu_queue_wakelist+0xf2/0x110
[ 137.494918] ? _raw_spin_unlock_irqrestore+0xa/0x30
[ 137.494921] ? try_to_wake_up+0x1ca/0x530
[ 137.494923] ? do_set_cpus_allowed+0x36/0x70
[ 137.494926] ? alloc_workqueue+0x332/0x490
[ 137.494930] ? snprintf+0x49/0x70
[ 137.494944] kcas_core_create_exported_object+0xc9/0x110 [cas_cache]
[ 137.494960] cache_mngt_add_core_to_cache+0x13c/0x370 [cas_cache]
[ 137.494979] ? cache_mngt_prepare_core_cfg+0x200/0x320 [cas_cache]
[ 137.494997] cas_service_ioctl_ctrl+0x1ea9/0x22f0 [cas_cache]
[ 137.495014] __x64_sys_ioctl+0x87/0xc0
[ 137.495023] do_syscall_64+0x5c/0xf0
[ 137.495030] ? __check_object_size.part.0+0x47/0xd0
[ 137.495033] ? kmem_cache_free+0x1e/0x380
[ 137.495039] ? mntput_no_expire+0x4a/0x250
[ 137.495044] ? do_readlinkat+0x117/0x130
[ 137.495046] ? syscall_exit_work+0x103/0x130
[ 137.495051] ? syscall_exit_to_user_mode+0x19/0x40
[ 137.495052] ? do_syscall_64+0x6b/0xf0
[ 137.495054] ? __count_memcg_events+0x4f/0xb0
[ 137.495063] ? mm_account_fault+0x6c/0x100
[ 137.495070] ? handle_mm_fault+0x141/0x270
[ 137.495075] ? do_user_addr_fault+0x362/0x620
[ 137.495077] ? clear_bhb_loop+0x25/0x80
[ 137.495079] ? clear_bhb_loop+0x25/0x80
[ 137.495080] ? clear_bhb_loop+0x25/0x80
[ 137.495081] ? clear_bhb_loop+0x25/0x80
[ 137.495082] ? clear_bhb_loop+0x25/0x80
[ 137.495083] entry_SYSCALL_64_after_hwframe+0x78/0x80
[ 137.495087] RIP: 0033:0x7fdb5510357b
[ 137.495118] Code: ff ff ff 85 c0 79 9b 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 75 68 0f 00 f7 d8 64 89 01 48
[ 137.495119] RSP: 002b:00007ffcd673c1b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 137.495120] RAX: ffffffffffffffda RBX: 0000000000001000 RCX: 00007fdb5510357b
[ 137.495121] RDX: 00007ffcd673c270 RSI: 00000000d00cba16 RDI: 0000000000000005
[ 137.495122] RBP: 000055cbc90aa400 R08: 0000000000000005 R09: ffffffffffffffff
[ 137.495123] R10: 0000000000000100 R11: 0000000000000246 R12: 0000000000000001
[ 137.495124] R13: 00007ffcd6742550 R14: 0000000000000000 R15: 0000000000000000
[ 137.495125]
[ 137.495126] Modules linked in: rfkill vfat fat intel_rapl_msr intel_rapl_common intel_uncore_frequency_common nfit libnvdimm kvm_intel cas_cache(OE) iTCO_wdt iTCO_vendor_support ppdev kvm virtio_gpu virtio_dma_buf rapl virtio_balloon drm_shmem_helper drm_kms_helper parport_pc lpc_ich i2c_i801 parport i2c_smbus pcspkr joydev drm fuse xfs libcrc32c ahci libahci libata crct10dif_pclmul crc32_pclmul crc32c_intel virtio_net ghash_clmulni_intel net_failover failover virtio_blk serio_raw sunrpc dm_mirror dm_region_hash dm_log dm_mod
[ 137.495194] CR2: 000000000000003a
~ ~ ~

@katlapinka
Copy link
Contributor

katlapinka commented Dec 4, 2024

I am attaching gdb log:
(gdb) list *(kcas_core_create_exported_object+0xc9)
0x6df9 is in kcas_core_create_exported_object (/root/open-cas-linux/modules/cas_cache/volume/vol_block_dev_top.c:580).
575 if (!bvol->expobj_wq) {
576 result = -ENOMEM;
577 goto end;
578 }
579
580 result = cas_exp_obj_create(bvol->dsk, name,
581 THIS_MODULE, ops, priv);
582 if (result) {
583 destroy_workqueue(bvol->expobj_wq);
584 goto end;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants