Custom Query (1561 matches)
Results (292 - 294 of 1561)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #1934 | fixed | Buffer overflow in scsi_decode_lu_dev_id | ||
| Description |
Hi, I encountered a buffer overflow in smartd: (gdb) bt #0 0x00007f70d94031d4 in __pthread_kill_implementation () from /lib64/libc.so.6 #1 0x00007f70d93b0b8e in raise () from /lib64/libc.so.6 #2 0x00007f70d9399378 in abort () from /lib64/libc.so.6 #3 0x00007f70d939a428 in __libc_message_impl.cold () from /lib64/libc.so.6 #4 0x00007f70d947a0a9 in __fortify_fail () from /lib64/libc.so.6 #5 0x00007f70d9479a54 in __chk_fail () from /lib64/libc.so.6 #6 0x00007f70d947b135 in __snprintf_chk () from /lib64/libc.so.6 #7 0x0000555d9d10ca59 in snprintf (__fmt=0x555d9d16b101 "%02x", __n=18446744073709551614, __s=0x7ffd540faa52 "") at /usr/include/bits/stdio2.h:68 #8 scsi_decode_lu_dev_id (slen=64, transport=0x0, s=0x7ffd540faa10 "0x600a098038313577792450384a4a62750x2450384a4a62750000a09838313", blen=<optimized out>, b=0x7ffd540fac94 "\002\001") at /usr/src/debug/smartmontools-7.4-4.xs9.x86_64/scsicmds.cpp:793 #9 SCSIDeviceScan (cfg=..., state=..., scsidev=<optimized out>, prev_cfgs=prev_cfgs@entry=0x7ffd54100800) at /usr/src/debug/smartmontools-7.4-4.xs9.x86_64/smartd.cpp:2462 #10 0x0000555d9d11420a in register_device (prev_cfgs=<optimized out>, dev=..., state=..., cfg=...) at /usr/src/debug/smartmontools-7.4-4.xs9.x86_64/smartd.cpp:5604 #11 register_devices (conf_entries=..., scanned_devs=..., configs=..., states=..., devices=...) at /usr/src/debug/smartmontools-7.4-4.xs9.x86_64/smartd.cpp:5694 #12 0x0000555d9d11d8a1 in main_worker (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/smartmontools-7.4-4.xs9.x86_64/smartd.cpp:5792 #13 0x0000555d9d105ac2 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/smartmontools-7.4-4.xs9.x86_64/smartd.cpp:5942 It is triggered by a device with the following VPD 0x83 page: $ sg_vpd -p 0x83 /dev/sdb
Device Identification VPD page:
Addressed logical unit:
designator type: T10 vendor identification, code set: ASCII
vendor id: NETAPP
vendor specific: LUN 815wy$P8JJbu
designator type: NAA, code set: Binary
0x600a098038313577792450384a4a6275
designator type: EUI-64 based, code set: Binary
0x2450384a4a62750000a0983831357779
Target port:
designator type: NAA, code set: Binary
0x600a098000000001200500a098f5f6d0
designator type: Relative target port, code set: Binary
Relative target port: 0x12
designator type: Target port group, code set: Binary
Target port group: 0x3e8
Target device that contains addressed lu:
designator type: SCSI name string, code set: UTF-8
SCSI name string:
naa.600A098038313577792450384A4A626E
$ sg_vpd --hex -p 0x83 /dev/sdb
Device Identification VPD page:
00 00 83 00 9c 02 01 00 20 4e 45 54 41 50 50 20 20 ....... NETAPP
10 20 4c 55 4e 20 38 31 35 77 79 24 50 38 4a 4a 62 LUN 815wy$P8JJb
20 75 20 20 20 20 20 20 20 01 03 00 10 60 0a 09 80 u ....`...
30 38 31 35 77 79 24 50 38 4a 4a 62 75 01 02 00 10 815wy$P8JJbu....
40 24 50 38 4a 4a 62 75 00 00 a0 98 38 31 35 77 79 $P8JJbu....815wy
50 01 13 00 10 60 0a 09 80 00 00 00 01 20 05 00 a0 ....`....... ...
60 98 f5 f6 d0 01 14 00 04 00 00 00 12 01 15 00 04 ................
70 00 00 03 e8 03 28 00 28 6e 61 61 2e 36 30 30 41 .....(.(naa.600A
80 30 39 38 30 33 38 33 31 33 35 37 37 37 39 32 34 0980383135777924
90 35 30 33 38 34 41 34 41 36 32 36 45 00 00 00 00 50384A4A626E....
I have attached a couple of patches to fix the issue. |
|||
| #1607 | wontfix | Bug with Seagate BarraCuda 3.5 (SMR) ST8000DM004-2U9188 on amd64 | ||
| Description |
Hello, I found bug with smartctl 7.3 2022-02-28 r5338 [x86_64-linux-5.17.0-1-amd64], it's wont detect Seagate BarraCuda 3.5 (SMR) ST8000DM004-2U9188 on amd64 correctly and doesn't read any smart data, but it does on same smartctl version at armv6l-linux-5.17.0-1-rpi. There is output from smartctl on amd64: ~# smartctl -a /dev/sdb smartctl 7.3 2022-02-28 r5338 [x86_64-linux-5.17.0-1-amd64] (local build) Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org Read Device Identity failed: scsi error unsupported field in scsi command If this is a USB connected device, look at the various --device=TYPE variants A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. If I'm adding --device=sat,auto: ~# smartctl -a /dev/sdb --device=sat,auto smartctl 7.3 2022-02-28 r5338 [x86_64-linux-5.17.0-1-amd64] (local build) Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Vendor: Seagate Product: Desktop Revision: 040B Compliance: SPC-4 User Capacity: 8,001,563,221,504 bytes [8.00 TB] Logical block size: 512 bytes Physical block size: 4096 bytes Logical Unit id: 0x5000000000000001 Serial number: NA7HT28P Device type: disk Local Time is: Mon May 2 15:59:53 2022 BST SMART support is: Available - device has SMART capability. SMART support is: Disabled Temperature Warning: Disabled or Not Supported === START OF READ SMART DATA SECTION === SMART Health Status: OK Current Drive Temperature: 0 C Drive Trip Temperature: 0 C Error Counter logging not supported Device does not support Self Test logging And correct behavior on arm by running smartctl -a /dev/sdb --json: {
"json_format_version": [
1,
0
],
"smartctl": {
"version": [
7,
3
],
"svn_revision": "5338",
"platform_info": "armv6l-linux-5.17.0-1-rpi",
"build_info": "(local build)",
"argv": [
"smartctl",
"--all",
"/dev/sda",
"--json"
],
"drive_database_version": {
"string": "7.3/5319"
},
"exit_status": 0
},
"local_time": {
"time_t": 1651346131,
"asctime": "Sat Apr 30 19:15:31 2022 UTC"
},
"device": {
"name": "/dev/sda",
"info_name": "/dev/sda [SAT]",
"type": "sat",
"protocol": "ATA"
},
"model_family": "Seagate BarraCuda 3.5 (SMR)",
"model_name": "ST8000DM004-2U9188",
"serial_number": "WSC127TX",
"wwn": {
"naa": 5,
"oui": 3152,
"id": 3766737109
},
"firmware_version": "0001",
"user_capacity": {
"blocks": 15628053168,
"bytes": 8001563222016
},
"logical_block_size": 512,
"physical_block_size": 4096,
"rotation_rate": 5400,
"form_factor": {
"ata_value": 2,
"name": "3.5 inches"
},
"trim": {
"supported": false
},
"in_smartctl_database": true,
"ata_version": {
"string": "ACS-3 T13/2161-D revision 5",
"major_value": 2016,
"minor_value": 109
},
"sata_version": {
"string": "SATA 3.1",
"value": 127
},
"interface_speed": {
"max": {
"sata_value": 14,
"string": "6.0 Gb/s",
"units_per_second": 60,
"bits_per_unit": 100000000
},
"current": {
"sata_value": 2,
"string": "3.0 Gb/s",
"units_per_second": 30,
"bits_per_unit": 100000000
}
},
"smart_support": {
"available": true,
"enabled": true
},
"smart_status": {
"passed": true
},
"ata_smart_data": {
"offline_data_collection": {
"status": {
"value": 0,
"string": "was never started"
},
"completion_seconds": 0
},
"self_test": {
"status": {
"value": 0,
"string": "completed without error",
"passed": true
},
"polling_minutes": {
"short": 1,
"extended": 963,
"conveyance": 2
}
},
"capabilities": {
"values": [
115,
3
],
"exec_offline_immediate_supported": true,
"offline_is_aborted_upon_new_cmd": false,
"offline_surface_scan_supported": false,
"self_tests_supported": true,
"conveyance_self_test_supported": true,
"selective_self_test_supported": true,
"attribute_autosave_enabled": true,
"error_logging_supported": true,
"gp_logging_supported": true
}
},
"ata_sct_capabilities": {
"value": 12453,
"error_recovery_control_supported": false,
"feature_control_supported": false,
"data_table_supported": true
},
"ata_smart_attributes": {
"revision": 10,
"table": [
{
"id": 1,
"name": "Raw_Read_Error_Rate",
"value": 69,
"worst": 65,
"thresh": 6,
"when_failed": "",
"flags": {
"value": 15,
"string": "POSR-- ",
"prefailure": true,
"updated_online": true,
"performance": true,
"error_rate": true,
"event_count": false,
"auto_keep": false
},
"raw": {
"value": 7241282,
"string": "7241282"
}
},
{
"id": 3,
"name": "Spin_Up_Time",
"value": 92,
"worst": 92,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 3,
"string": "PO---- ",
"prefailure": true,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": false,
"auto_keep": false
},
"raw": {
"value": 0,
"string": "0"
}
},
{
"id": 4,
"name": "Start_Stop_Count",
"value": 100,
"worst": 100,
"thresh": 20,
"when_failed": "",
"flags": {
"value": 50,
"string": "-O--CK ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": true,
"auto_keep": true
},
"raw": {
"value": 8,
"string": "8"
}
},
{
"id": 5,
"name": "Reallocated_Sector_Ct",
"value": 100,
"worst": 100,
"thresh": 10,
"when_failed": "",
"flags": {
"value": 51,
"string": "PO--CK ",
"prefailure": true,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": true,
"auto_keep": true
},
"raw": {
"value": 0,
"string": "0"
}
},
{
"id": 7,
"name": "Seek_Error_Rate",
"value": 100,
"worst": 253,
"thresh": 45,
"when_failed": "",
"flags": {
"value": 15,
"string": "POSR-- ",
"prefailure": true,
"updated_online": true,
"performance": true,
"error_rate": true,
"event_count": false,
"auto_keep": false
},
"raw": {
"value": 161127,
"string": "161127"
}
},
{
"id": 9,
"name": "Power_On_Hours",
"value": 100,
"worst": 100,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 50,
"string": "-O--CK ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": true,
"auto_keep": true
},
"raw": {
"value": 2651360621232150,
"string": "22h+10m+17.318s"
}
},
{
"id": 10,
"name": "Spin_Retry_Count",
"value": 100,
"worst": 100,
"thresh": 97,
"when_failed": "",
"flags": {
"value": 19,
"string": "PO--C- ",
"prefailure": true,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": true,
"auto_keep": false
},
"raw": {
"value": 0,
"string": "0"
}
},
{
"id": 12,
"name": "Power_Cycle_Count",
"value": 100,
"worst": 100,
"thresh": 20,
"when_failed": "",
"flags": {
"value": 50,
"string": "-O--CK ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": true,
"auto_keep": true
},
"raw": {
"value": 7,
"string": "7"
}
},
{
"id": 183,
"name": "Runtime_Bad_Block",
"value": 100,
"worst": 100,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 50,
"string": "-O--CK ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": true,
"auto_keep": true
},
"raw": {
"value": 0,
"string": "0"
}
},
{
"id": 184,
"name": "End-to-End_Error",
"value": 100,
"worst": 100,
"thresh": 99,
"when_failed": "",
"flags": {
"value": 50,
"string": "-O--CK ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": true,
"auto_keep": true
},
"raw": {
"value": 0,
"string": "0"
}
},
{
"id": 187,
"name": "Reported_Uncorrect",
"value": 100,
"worst": 100,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 50,
"string": "-O--CK ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": true,
"auto_keep": true
},
"raw": {
"value": 0,
"string": "0"
}
},
{
"id": 188,
"name": "Command_Timeout",
"value": 100,
"worst": 100,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 50,
"string": "-O--CK ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": true,
"auto_keep": true
},
"raw": {
"value": 0,
"string": "0 0 0"
}
},
{
"id": 189,
"name": "High_Fly_Writes",
"value": 100,
"worst": 100,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 58,
"string": "-O-RCK ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": true,
"event_count": true,
"auto_keep": true
},
"raw": {
"value": 0,
"string": "0"
}
},
{
"id": 190,
"name": "Airflow_Temperature_Cel",
"value": 54,
"worst": 53,
"thresh": 40,
"when_failed": "",
"flags": {
"value": 34,
"string": "-O---K ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": false,
"auto_keep": true
},
"raw": {
"value": 790233134,
"string": "46 (Min/Max 26/47)"
}
},
{
"id": 191,
"name": "G-Sense_Error_Rate",
"value": 100,
"worst": 100,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 50,
"string": "-O--CK ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": true,
"auto_keep": true
},
"raw": {
"value": 0,
"string": "0"
}
},
{
"id": 192,
"name": "Power-Off_Retract_Count",
"value": 100,
"worst": 100,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 50,
"string": "-O--CK ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": true,
"auto_keep": true
},
"raw": {
"value": 4,
"string": "4"
}
},
{
"id": 193,
"name": "Load_Cycle_Count",
"value": 100,
"worst": 100,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 50,
"string": "-O--CK ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": true,
"auto_keep": true
},
"raw": {
"value": 24,
"string": "24"
}
},
{
"id": 194,
"name": "Temperature_Celsius",
"value": 46,
"worst": 47,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 34,
"string": "-O---K ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": false,
"auto_keep": true
},
"raw": {
"value": 90194313262,
"string": "46 (0 21 0 0 0)"
}
},
{
"id": 195,
"name": "Hardware_ECC_Recovered",
"value": 69,
"worst": 65,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 26,
"string": "-O-RC- ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": true,
"event_count": true,
"auto_keep": false
},
"raw": {
"value": 7241282,
"string": "7241282"
}
},
{
"id": 197,
"name": "Current_Pending_Sector",
"value": 100,
"worst": 100,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 18,
"string": "-O--C- ",
"prefailure": false,
"updated_online": true,
"performance": false,
"error_rate": false,
"event_count": true,
"auto_keep": false
},
"raw": {
"value": 0,
"string": "0"
}
},
{
"id": 198,
"name": "Offline_Uncorrectable",
"value": 100,
"worst": 100,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 16,
"string": "----C- ",
"prefailure": false,
"updated_online": false,
"performance": false,
"error_rate": false,
"event_count": true,
"auto_keep": false
},
"raw": {
"value": 0,
"string": "0"
}
},
{
"id": 199,
"name": "UDMA_CRC_Error_Count",
"value": 200,
"worst": 200,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 62,
"string": "-OSRCK ",
"prefailure": false,
"updated_online": true,
"performance": true,
"error_rate": true,
"event_count": true,
"auto_keep": true
},
"raw": {
"value": 0,
"string": "0"
}
},
{
"id": 240,
"name": "Head_Flying_Hours",
"value": 100,
"worst": 253,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 0,
"string": "------ ",
"prefailure": false,
"updated_online": false,
"performance": false,
"error_rate": false,
"event_count": false,
"auto_keep": false
},
"raw": {
"value": 4972120429821957,
"string": "5h+19m+17.662s"
}
},
{
"id": 241,
"name": "Total_LBAs_Written",
"value": 100,
"worst": 253,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 0,
"string": "------ ",
"prefailure": false,
"updated_online": false,
"performance": false,
"error_rate": false,
"event_count": false,
"auto_keep": false
},
"raw": {
"value": 4919495,
"string": "4919495"
}
},
{
"id": 242,
"name": "Total_LBAs_Read",
"value": 100,
"worst": 253,
"thresh": 0,
"when_failed": "",
"flags": {
"value": 0,
"string": "------ ",
"prefailure": false,
"updated_online": false,
"performance": false,
"error_rate": false,
"event_count": false,
"auto_keep": false
},
"raw": {
"value": 2321787,
"string": "2321787"
}
}
]
},
"power_on_time": {
"hours": 22,
"minutes": 10
},
"power_cycle_count": 7,
"temperature": {
"current": 46
},
"ata_smart_error_log": {
"summary": {
"revision": 1,
"count": 0
}
},
"ata_smart_self_test_log": {
"standard": {
"revision": 1,
"count": 0
}
},
"ata_smart_selective_self_test_log": {
"revision": 1,
"table": [
{
"lba_min": 0,
"lba_max": 0,
"status": {
"value": 0,
"string": "Not_testing"
}
},
{
"lba_min": 0,
"lba_max": 0,
"status": {
"value": 0,
"string": "Not_testing"
}
},
{
"lba_min": 0,
"lba_max": 0,
"status": {
"value": 0,
"string": "Not_testing"
}
},
{
"lba_min": 0,
"lba_max": 0,
"status": {
"value": 0,
"string": "Not_testing"
}
},
{
"lba_min": 0,
"lba_max": 0,
"status": {
"value": 0,
"string": "Not_testing"
}
}
],
"flags": {
"value": 0,
"remainder_scan_enabled": false
},
"power_up_scan_resume_minutes": 0
}
}
|
|||
| #918 | invalid | Bugtracker doesn't show my tickets | ||
| Description |
When I select "My tickets" entry on "View tickets" page no tickets are shown (see screenshot) |
|||
