From: Rob T. <ro...@rt...> - 2023-12-27 11:57:38
|
I'm porting my code to Ubuntu 22.04LTS. Fresh install scst v3.7 from here: https://github.com/SCST-project/scst/releases/download/v3.7/scst-3.7.zip Host: Ubuntu 22.04 Linux ub22inst 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux Registering the first device results in a trap: [Wed Dec 27 12:08:33 2023] [834]: scst: Added device CTVTL_DRIVE11 to group iqn.2016-09.com.consolitape.ub22inst:vtl (LUN 0, flags 0x2) to target iqn.2016-09.com.consolitape.ub22inst:vtl [Wed Dec 27 12:08:33 2023] [834]: scst: Added device CTVTL_DRIVE11 to group local_target (LUN 0, flags 0x2) to target local_target [Wed Dec 27 12:08:33 2023] ================================================================================ [Wed Dec 27 12:08:33 2023] UBSAN: shift-out-of-bounds in /var/lib/dkms/scst/3.7.0/build/scst/src/scst_targ.c:3912:6 [Wed Dec 27 12:08:33 2023] shift exponent -1 is negative [Wed Dec 27 12:08:33 2023] CPU: 0 PID: 1062 Comm: ctdevice Tainted: G OE 5.15.0-91-generic #101-Ubuntu [Wed Dec 27 12:08:33 2023] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020 [Wed Dec 27 12:08:33 2023] Call Trace: [Wed Dec 27 12:08:33 2023] <TASK> [Wed Dec 27 12:08:33 2023] show_stack+0x52/0x5c [Wed Dec 27 12:08:33 2023] dump_stack_lvl+0x4a/0x63 [Wed Dec 27 12:08:33 2023] dump_stack+0x10/0x16 [Wed Dec 27 12:08:33 2023] ubsan_epilogue+0x9/0x36 [Wed Dec 27 12:08:33 2023] __ubsan_handle_shift_out_of_bounds.cold+0x61/0xef [Wed Dec 27 12:08:33 2023] ? ttwu_do_activate+0x82/0x100 [Wed Dec 27 12:08:33 2023] scst_process_active_cmd.cold+0xf/0x2d [scst] [Wed Dec 27 12:08:33 2023] ? sdev_evt_alloc+0xa0/0xa0 [Wed Dec 27 12:08:33 2023] ? wake_up_process+0x15/0x20 [Wed Dec 27 12:08:33 2023] ? sdev_evt_alloc+0xa0/0xa0 [Wed Dec 27 12:08:33 2023] scst_process_redirect_cmd+0xd4/0x2e0 [scst] [Wed Dec 27 12:08:33 2023] ? sdev_evt_alloc+0xa0/0xa0 [Wed Dec 27 12:08:33 2023] scst_tgt_cmd_done+0x48/0x70 [scst] [Wed Dec 27 12:08:33 2023] ? scsi_mq_done+0x27/0x70 [Wed Dec 27 12:08:33 2023] scst_local_targ_xmit_response+0x64/0x220 [scst_local] [Wed Dec 27 12:08:33 2023] scst_process_active_cmd+0x891/0x2140 [scst] [Wed Dec 27 12:08:33 2023] ? sgv_pool_alloc+0xab/0xa00 [scst] [Wed Dec 27 12:08:33 2023] scst_process_redirect_cmd+0xd4/0x2e0 [scst] [Wed Dec 27 12:08:33 2023] scst_cmd_done_local+0x80/0x110 [scst] [Wed Dec 27 12:08:33 2023] dev_user_process_reply+0x597/0x1160 [scst_user] [Wed Dec 27 12:08:33 2023] ? handle_pte_fault+0x20a/0x240 [Wed Dec 27 12:08:33 2023] dev_user_ioctl+0x145/0xb23 [scst_user] [Wed Dec 27 12:08:33 2023] __x64_sys_ioctl+0x95/0xd0 [Wed Dec 27 12:08:33 2023] ? __x64_sys_ioctl+0x95/0xd0 [Wed Dec 27 12:08:33 2023] do_syscall_64+0x5c/0xc0 [Wed Dec 27 12:08:33 2023] ? do_user_addr_fault+0x1e7/0x670 [Wed Dec 27 12:08:33 2023] ? exit_to_user_mode_prepare+0x37/0xb0 [Wed Dec 27 12:08:33 2023] ? irqentry_exit_to_user_mode+0x17/0x20 [Wed Dec 27 12:08:33 2023] ? irqentry_exit+0x1d/0x30 [Wed Dec 27 12:08:33 2023] ? exc_page_fault+0x89/0x170 [Wed Dec 27 12:08:33 2023] entry_SYSCALL_64_after_hwframe+0x62/0xcc [Wed Dec 27 12:08:33 2023] RIP: 0033:0x7f031494075f [Wed Dec 27 12:08:33 2023] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 77 1f 48 8b 44 24 18 64 48 2b 04 25 28 00 [Wed Dec 27 12:08:33 2023] RSP: 002b:00007f0314020d90 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [Wed Dec 27 12:08:33 2023] RAX: ffffffffffffffda RBX: 00007f0314021640 RCX: 00007f031494075f [Wed Dec 27 12:08:33 2023] RDX: 00005592aef75dc0 RSI: 0000000040387506 RDI: 0000000000000004 [Wed Dec 27 12:08:33 2023] RBP: 00007f0314020e10 R08: 00005592ad199dbb R09: 00005592ad199dbb [Wed Dec 27 12:08:33 2023] R10: 00005592ad199dbb R11: 0000000000000246 R12: 00007f0314021640 [Wed Dec 27 12:08:33 2023] R13: 0000000000000002 R14: 00007f03148ba7d0 R15: 00007fff070557c0 [Wed Dec 27 12:08:33 2023] </TASK> [Wed Dec 27 12:08:33 2023] ================================================================================ [Wed Dec 27 12:08:33 2023] scsi 33:0:0:0: Sequential-Access IBM 03592E07 3694 PQ: 0 ANSI: 6 [Wed Dec 27 12:08:33 2023] [317]: scst_local: Configuring queue depth 64 on sdev 000000007ddafb45 (tagged supported 0) [Wed Dec 27 12:08:33 2023] scsi 33:0:0:0: Attached scsi generic sg2 type 1 The device does register and works properly. Further device registrations do not trigger this trap. Rob |