Re: [PATCH] scsi:libsas: fix oops caused by assigning a freed task to ->lldd_task

2016-07-06 Thread Wei Fang
Hi, Hannes, > This is most definitely wrong. > Sure you mean > > qc->lldd_task = NULL; > > in that line? My mistake. Thanks for pointing me out. Will resend soon. Please ignore this patch. Thanks, Wei -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a me

Re: [PATCH] scsi:libsas: fix oops caused by assigning a freed task to ->lldd_task

2016-07-06 Thread Hannes Reinecke
On 07/06/2016 10:28 AM, Wei Fang wrote: > A freed task has been assigned to ->lldd_task when lldd_execute_task() > failed in sas_ata_qc_issue(), and access of ->lldd_task will cause > an oops: > > Call trace: > [] sas_ata_post_internal+0x6c/0x150 > [] ata_exec_internal_sg+0x32c/0x588 > [] ata_exec

[PATCH] scsi:libsas: fix oops caused by assigning a freed task to ->lldd_task

2016-07-06 Thread Wei Fang
A freed task has been assigned to ->lldd_task when lldd_execute_task() failed in sas_ata_qc_issue(), and access of ->lldd_task will cause an oops: Call trace: [] sas_ata_post_internal+0x6c/0x150 [] ata_exec_internal_sg+0x32c/0x588 [] ata_exec_internal+0x88/0xe8 [] ata_dev_read_id+0x204/0x5e0 [] at