On 5/12/21 8:41 PM, Dan Carpenter wrote: > On Wed, May 12, 2021 at 08:13:59PM +0300, Dan Carpenter wrote: >> On Wed, May 12, 2021 at 05:15:06PM +0200, Norbert Manthey wrote: >>> Dear all, >>> >>> I would like to retrieve the information whether variables inside source >>> files can be influenced from user land, e.g. to identify variables that >>> store arguments to syscalls. Is there already a tool that offers this >>> feature? >>> >>> I understand that the 'smatch_data/db/smdb.py $func' tool can be used to >>> trace calls to a function $func. Furthermore, 'smatch_data/db/smdb.py >>> trace_param $func' allows to trace how function parameters are traced. >>> However, both commands do not present the information I am looking for. >>> I also did not find such labels in the tables of the created data base file. >> Yes. This is information is recorded in the DB. >> >> $ smdb esas2r_read_vda | grep USER >> drivers/scsi/esas2r/esas2r_ioctl.c | esas2r_ioctl_handler | esas2r_read_vda | USER_DATA | 3 | count | s32min-s32max Thanks for hinting at this. I will have a closer look whether I can use the existing information, or whether I need to add a little more color to it. Best, Norbert Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B Sitz: Berlin Ust-ID: DE 289 237 879