From a846c6b98d59b55f1e761ffc5aa75077f6944689 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sat, 24 Jul 2021 00:14:57 +0100 Subject: [PATCH] blockd: fix length of timeout int passed to ioctl AUTOFS_IOC_SETTIMEOUT expects a pointer to an 'unsigned long' which will result in out-of-bounds access when passing a pointer to an 'int'. Change type of timeout to 'unsigned long'. Signed-off-by: Daniel Golle --- blockd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockd.c b/blockd.c index edca896..bf15f10 100644 --- a/blockd.c +++ b/blockd.c @@ -574,7 +574,7 @@ struct uloop_timeout autofs_expire_timer = { static int autofs_mount(void) { - int autofs_timeout = AUTOFS_TIMEOUT; + unsigned long autofs_timeout = AUTOFS_TIMEOUT; int kproto_version; int pipefd[2]; char source[64]; -- 2.30.2