Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[disk changes] CVS commit: src/sys/dev/dkwedge



> Module Name:    src
> Committed By:   jdolecek
> Date:           Sat Apr 11 16:00:34 UTC 2020
>
> Modified Files:
>         src/sys/dev/dkwedge: dkwedge_apple.c dkwedge_bsdlabel.c dkwedge_gpt.c
>             dkwedge_mbr.c dkwedge_rdb.c

It appears that since your recent changes, there is a systematic
use-after-free:

	panic: ASan: Unauthorized Access in 0x...: Addr 0x... [2 bytes, read, PoolUseAfterFree]
	wdc_ata_bio()
	wdstart1()
	wd_diskstart()
	dk_start()
	bdev_strategy()
	spec_strategy()
	VOP_STRATEGY()
	genfs_getpages()
	VOP_GETPAGES()
	ubc_fault()
	uvm_fault_internal()
	trap()
	--- trap (number 6) ---
	copyout()
	uiomove()
	ubc_uiomove()
	ffs_read()
	VOP_READ()
	vn_read()
	dofileread()
	sys_read()
	syscall()

This is reliably reproductible by just booting KASAN on amd64.

Can you give a look?

Thanks,
Maxime


Home | Main Index | Thread Index | Old Index