Hello,
syzbot tried to test the proposed patch but build/boot failed:
^~~~~~~~
In file included from kernel/compat.c:15:
In file included from ./include/linux/compat.h:12:
In file included from ./include/linux/stat.h:19:
In file included from ./include/linux/time.h:6:
In file included from ./include/linux/seqlock.h:36:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:32:23: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
CC kernel/trace/trace_nop.o
In file included from lib/checksum.c:36:
In file included from ./include/net/checksum.h:25:
In file included from ./include/linux/uaccess.h:5:
In file included from ./include/linux/sched.h:14:
In file included from ./include/linux/pid.h:5:
In file included from ./include/linux/rculist.h:11:
In file included from ./include/linux/rcupdate.h:41:
./include/linux/bottom_half.h:19:24: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_disable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from lib/checksum.c:36:
In file included from ./include/net/checksum.h:25:
In file included from ./include/linux/uaccess.h:5:
In file included from ./include/linux/sched.h:14:
In file included from ./include/linux/pid.h:5:
In file included from ./include/linux/rculist.h:11:
In file included from ./include/linux/rcupdate.h:41:
./include/linux/bottom_half.h:32:23: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
CC drivers/edac/wq.o
CC kernel/sched/wait_bit.o
In file included from 2 warnings generated.
kernel/utsname.c:14:
In file included from ./include/linux/utsname.h:6:
In file included from ./include/linux/sched.h:14:
In file included from ./include/linux/pid.h:5:
In file included from ./include/linux/rculist.h:11:
In file included from ./include/linux/rcupdate.h:41:
./include/linux/bottom_half.h:19:24: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_disable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from kernel/utsname.c:14:
In file included from ./include/linux/utsname.h:6:
In file included from ./include/linux/sched.h:14:
In file included from ./include/linux/pid.h:5:
In file included from ./include/linux/rculist.h:11:
In file included from ./include/linux/rcupdate.h:41:
./include/linux/bottom_half.h:32:23: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from lib/cpu_rmap.c:10:
In file included from ./include/linux/cpu_rmap.h:14:
In file included from ./include/linux/gfp.h:6:
In file included from ./include/linux/mmzone.h:8:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:19:24: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_disable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from lib/cpu_rmap.c:10:
In file included from ./include/linux/cpu_rmap.h:14:
In file included from ./include/linux/gfp.h:6:
In file included from ./include/linux/mmzone.h:8:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:32:23: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
2 warnings generated.
In file included from lib/nlattr.c:12:
In file included from ./include/linux/jiffies.h:9:
In file included from ./include/linux/time.h:6:
In file included from ./include/linux/seqlock.h:36:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:19:24: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_disable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from lib/nlattr.c:12:
In file included from ./include/linux/jiffies.h:9:
In file included from ./include/linux/time.h:6:
In file included from ./include/linux/seqlock.h:36:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:32:23: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
2 warnings generated.
2 warnings generated.
In file included from lib/syscall.c:2:
In file included from ./include/linux/ptrace.h:6:
In file included from ./include/linux/sched.h:14:
In file included from ./include/linux/pid.h:5:
In file included from ./include/linux/rculist.h:11:
In file included from ./include/linux/rcupdate.h:41:
./include/linux/bottom_half.h:19:24: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_disable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from lib/syscall.c:2:
In file included from ./include/linux/ptrace.h:6:
In file included from ./include/linux/sched.h:14:
In file included from ./include/linux/pid.h:5:
In file included from ./include/linux/rculist.h:11:
In file included from ./include/linux/rcupdate.h:41:
./include/linux/bottom_half.h:32:23: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from drivers/i2c/algos/i2c-algo-bit.c:21:
In file included from ./include/linux/module.h:10:
In file included from ./include/linux/stat.h:19:
In file included from ./include/linux/time.h:6:
In file included from ./include/linux/seqlock.h:36:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:19:24: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_disable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from drivers/i2c/algos/i2c-algo-bit.c:21:
In file included from ./include/linux/module.h:10:
In file included from ./include/linux/stat.h:19:
In file included from ./include/linux/time.h:6:
In file included from ./include/linux/seqlock.h:36:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:32:23: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from drivers/firmware/efi/memmap.c:10:
In file included from ./include/linux/efi.h:17:
In file included from ./include/linux/time.h:6:
In file included from ./include/linux/seqlock.h:36:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:19:24: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_disable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET); CC
kernel/trace/blktrace.o
CC kernel/sched/swait.o
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from drivers/firmware/efi/memmap.c:10:
In file included from ./include/linux/efi.h:17:
In file included from ./include/linux/time.h:6:
In file included from ./include/linux/seqlock.h:36:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:32:23: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from CC kernel/pid_namespace.o
2 warnings generated.
net/bridge/netfilter/nf_log_bridge.c:9:
In file included from ./include/linux/module.h:10:
In file included from ./include/linux/stat.h:19:
In file included from ./include/linux/time.h:6:
In file included from ./include/linux/seqlock.h:36:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:19:24: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_disable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from net/bridge/netfilter/nf_log_bridge.c:9:
In file included from ./include/linux/module.h:10:
In file included from ./include/linux/stat.h:19:
In file included from ./include/linux/time.h:6:
In file included from ./include/linux/seqlock.h:36:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:32:23: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
2 warnings generated.
2 warnings generated.
2 warnings generated.
In file included from drivers/edac/wq.c:1:
In file included from drivers/edac/edac_module.h:14:
In file included from drivers/edac/edac_mc.h:27:
In file included from ./include/linux/module.h:10:
In file included from ./include/linux/stat.h:19:
In file included from ./include/linux/time.h:6:
In file included from ./include/linux/seqlock.h:36:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:19:24: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_disable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from drivers/edac/wq.c:1:
In file included from drivers/edac/edac_module.h:14:
In file included from drivers/edac/edac_mc.h:27:
In file included from ./include/linux/module.h:10:
In file included from ./include/linux/stat.h:19:
In file included from ./include/linux/time.h:6:
In file included from ./include/linux/seqlock.h:36:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:32:23: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from kernel/trace/trace_nop.c:9:
In file included from ./include/linux/module.h:10:
In file included from ./include/linux/stat.h:19:
In file included from ./include/linux/time.h:6:
In file included from ./include/linux/seqlock.h:36:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:19:24: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_disable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~2 warnings generated.
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from kernel/trace/trace_nop.c:9:
In file included from ./include/linux/module.h:10:
In file included from ./include/linux/stat.h:19:
In file included from ./include/linux/time.h:6:
In file included from ./include/linux/seqlock.h:36:
In file included from ./include/linux/spinlock.h:58:
./include/linux/bottom_half.h:32:23: warning: returning address of label,
which is local [-Wreturn-stack-address]
__local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
^~~~~~~~~
./include/linux/kernel.h:204:64: note: expanded from macro '_THIS_IP_'
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
^~~~~~~~
In file included from kernel/sched/wait_bit.c:4:
In file included from kernel/sched/sched.h:5:
In file included from ./include/linux/sched.h:14:
In file included from ./include/linux/pid.h:5:
In file included from ./include/linux/rculist.h:11:
In file included from ./include/linux/rcupdate.h:41:
./include/linux/bottom_half.h:19:24: warning: returning address of label,
which is local [-Wreturn-stack-address]
_
Error text is too large and was truncated, full error text is at:
https://syzkaller.appspot.com/x/error.txt?x=159d8c81400000
Tested on:
commit: 99e79f6a8963 kmsan: disable assembly implementations of cr..
git tree:
https://github.com/google/kmsan.git/master
compiler: clang version 8.0.0 (trunk 339414)
patch:
https://syzkaller.appspot.com/x/patch.diff?x=1244639e400000