Powered by Linux
Re: [PATCH] smatch_kernel_host_data: enable additional debug — Semantic Matching Tool

Re: [PATCH] smatch_kernel_host_data: enable additional debug

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

 



Hey Elena,

I've pushed some changes to smatch_kernel_host_data.c and
smatch_points_to_host_data.c.  It hopefully just brings that code more
in line with the user_data code.

The main thing is that smatch_points_to_host_data.c didn't differentiate
between when the function gets host data from the user vs when it is
passed in.  That means if you have function:

int *frob(int *x)
{
	return x;
}

And one caller passes in host data then all of them get host data back.
So then now we're passing host data pointers to even more functions and
the problem gets worse and worse over time.

Which is maybe not a huge deal in terms of the warnings generated, but
it was taking 8GB of data in my database.

regards,
dan carpenter



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux