Project

General

Profile

Actions

Bug #7954

closed

Gendisk is not properly initialized for block_device_operations->release

Added by Vadim Mutilin about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Environment models
Target version:
-
Start date:
02/06/2017
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

Gendisk ldv_1_block_gendisk which is passed as first parameter to block_device_operations->release is not properly initialized.
It should have the same value as

ldv_1_disk_gendisk = data->arg1;

passed to block_device_operations->open.

See ldv_block_scenario_1 function
and call

    ldv_block_scenario_release_1_2(ldv_1_ops_block_device_operations->release, ldv_1_block_gendisk,
                                   ldv_1_ldv_param_2_1_default);

Detected on

drivers/mmc/card/mmc_block.ko     linux:block:queue

http://ldvstore:8998/reports/unsafe/77288/

Actions #1

Updated by Ilja Zakharov about 7 years ago

  • Status changed from New to Closed

EMG generated two variables according to block device operations specification for gendisk. I have fixed the specification and EMG now get gendisk within a registration signal and passes it to release callback.

Implemented and available in master since f6e6ad09.

Actions

Also available in: Atom PDF