bisecting cause commit starting from afb37288faaa88577b2b4d3b484bdcc85f311ea5 building syzkaller on c7a4fb9986eefae356612610b595244c8e49bb2a testing commit afb37288faaa88577b2b4d3b484bdcc85f311ea5 with gcc (GCC) 8.1.0 all runs: crashed: WARNING: lock held when returning to user space in membarrier_private_expedited testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 with gcc (GCC) 8.1.0 all runs: OK # git bisect start afb37288faaa88577b2b4d3b484bdcc85f311ea5 v5.3 Bisecting: 6903 revisions left to test after this (roughly 13 steps) [81160dda9a7aad13c04e78bb2cfd3c4630e3afab] Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next testing commit 81160dda9a7aad13c04e78bb2cfd3c4630e3afab with gcc (GCC) 8.1.0 all runs: OK # git bisect good 81160dda9a7aad13c04e78bb2cfd3c4630e3afab Bisecting: 3477 revisions left to test after this (roughly 12 steps) [227c3e9eb5cf3552c2cc83225df6d14adb05f8e8] Merge tag 'compiler-attributes-for-linus-v5.4' of git://github.com/ojeda/linux testing commit 227c3e9eb5cf3552c2cc83225df6d14adb05f8e8 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 227c3e9eb5cf3552c2cc83225df6d14adb05f8e8 Bisecting: 1723 revisions left to test after this (roughly 11 steps) [972a2bf7dfe39ebf49dd47f68d27c416392e53b1] Merge tag 'nfs-for-5.4-1' of git://git.linux-nfs.org/projects/anna/linux-nfs testing commit 972a2bf7dfe39ebf49dd47f68d27c416392e53b1 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 972a2bf7dfe39ebf49dd47f68d27c416392e53b1 Bisecting: 872 revisions left to test after this (roughly 10 steps) [48788650ff07c7c18d44577bf87334da597d15e3] Merge remote-tracking branch 'actions/for-next' testing commit 48788650ff07c7c18d44577bf87334da597d15e3 with gcc (GCC) 8.1.0 all runs: crashed: WARNING: lock held when returning to user space in membarrier_private_expedited # git bisect bad 48788650ff07c7c18d44577bf87334da597d15e3 Bisecting: 426 revisions left to test after this (roughly 9 steps) [f1f2f614d535564992f32e720739cb53cf03489f] Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity testing commit f1f2f614d535564992f32e720739cb53cf03489f with gcc (GCC) 8.1.0 all runs: OK # git bisect good f1f2f614d535564992f32e720739cb53cf03489f Bisecting: 213 revisions left to test after this (roughly 8 steps) [55d554f5d14071f7c2c5dbd88d0a2eb695c97d16] tools: bpf: Use !building_out_of_srctree to determine srctree testing commit 55d554f5d14071f7c2c5dbd88d0a2eb695c97d16 with gcc (GCC) 8.1.0 run #0: crashed: WARNING: lock held when returning to user space in membarrier_private_expedited run #1: crashed: WARNING: lock held when returning to user space in membarrier_private_expedited run #2: crashed: WARNING: lock held when returning to user space in membarrier_private_expedited run #3: crashed: WARNING: lock held when returning to user space in membarrier_private_expedited run #4: crashed: WARNING: lock held when returning to user space in membarrier_private_expedited run #5: crashed: WARNING: lock held when returning to user space in membarrier_private_expedited run #6: crashed: BUG: sleeping function called from invalid context in corrupted run #7: crashed: WARNING: lock held when returning to user space in membarrier_private_expedited run #8: crashed: WARNING: lock held when returning to user space in membarrier_private_expedited run #9: crashed: BUG: sleeping function called from invalid context in corrupted # git bisect bad 55d554f5d14071f7c2c5dbd88d0a2eb695c97d16 Bisecting: 102 revisions left to test after this (roughly 7 steps) [3c30819dc68ab9498216421b6846123900c0a6d3] Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf testing commit 3c30819dc68ab9498216421b6846123900c0a6d3 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 3c30819dc68ab9498216421b6846123900c0a6d3 Bisecting: 51 revisions left to test after this (roughly 6 steps) [9c5efe9ae7df78600c0ee7bcce27516eb687fa6e] Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 9c5efe9ae7df78600c0ee7bcce27516eb687fa6e with gcc (GCC) 8.1.0 all runs: crashed: WARNING: lock held when returning to user space in membarrier_private_expedited # git bisect bad 9c5efe9ae7df78600c0ee7bcce27516eb687fa6e Bisecting: 25 revisions left to test after this (roughly 5 steps) [29d3c1c8dfe752c01b7115ecd5a3142b232a38e1] kexec: Allow kexec_file() with appropriate IMA policy when locked down testing commit 29d3c1c8dfe752c01b7115ecd5a3142b232a38e1 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 29d3c1c8dfe752c01b7115ecd5a3142b232a38e1 Bisecting: 12 revisions left to test after this (roughly 4 steps) [c172e0a3e8e65a4c6fffec5bc4d6de08d6f894f7] sched/membarrier: Return -ENOMEM to userspace on memory allocation failure testing commit c172e0a3e8e65a4c6fffec5bc4d6de08d6f894f7 with gcc (GCC) 8.1.0 run #0: crashed: BUG: sleeping function called from invalid context in put_timespec64 run #1: crashed: BUG: sleeping function called from invalid context in put_timespec64 run #2: crashed: BUG: sleeping function called from invalid context in put_timespec64 run #3: crashed: BUG: sleeping function called from invalid context in corrupted run #4: crashed: BUG: sleeping function called from invalid context in put_timespec64 run #5: crashed: BUG: sleeping function called from invalid context in put_timespec64 run #6: crashed: BUG: sleeping function called from invalid context in put_timespec64 run #7: crashed: BUG: sleeping function called from invalid context in put_timespec64 run #8: crashed: BUG: sleeping function called from invalid context in put_timespec64 run #9: crashed: BUG: sleeping function called from invalid context in put_timespec64 # git bisect bad c172e0a3e8e65a4c6fffec5bc4d6de08d6f894f7 Bisecting: 6 revisions left to test after this (roughly 3 steps) [5311a98fef7d0dc2e8040ae0e18f5568d6d1dd5a] tasks, sched/core: RCUify the assignment of rq->curr testing commit 5311a98fef7d0dc2e8040ae0e18f5568d6d1dd5a with gcc (GCC) 8.1.0 all runs: OK # git bisect good 5311a98fef7d0dc2e8040ae0e18f5568d6d1dd5a Bisecting: 3 revisions left to test after this (roughly 2 steps) [2840cf02fae627860156737e83326df354ee4ec6] sched/membarrier: Call sync_core only before usermode for same mm testing commit 2840cf02fae627860156737e83326df354ee4ec6 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 2840cf02fae627860156737e83326df354ee4ec6 Bisecting: 1 revision left to test after this (roughly 1 step) [19a4ff534bb09686f53800564cb977bad2177c00] selftests, sched/membarrier: Add multi-threaded test testing commit 19a4ff534bb09686f53800564cb977bad2177c00 with gcc (GCC) 8.1.0 ./include/linux/compiler.h:263:20: error: lvalue required as unary ‘&’ operand # git bisect skip 19a4ff534bb09686f53800564cb977bad2177c00 Bisecting: 1 revision left to test after this (roughly 1 step) [227a4aadc75ba22fcb6c4e1c078817b8cbaae4ce] sched/membarrier: Fix p->mm->membarrier_state racy load testing commit 227a4aadc75ba22fcb6c4e1c078817b8cbaae4ce with gcc (GCC) 8.1.0 ./include/linux/compiler.h:263:20: error: lvalue required as unary ‘&’ operand # git bisect skip 227a4aadc75ba22fcb6c4e1c078817b8cbaae4ce Bisecting: 1 revision left to test after this (roughly 1 step) [c6d68c1c4a4d6611fc0f8145d764226571d737ca] sched/membarrier: Skip IPIs when mm->mm_users == 1 testing commit c6d68c1c4a4d6611fc0f8145d764226571d737ca with gcc (GCC) 8.1.0 ./include/linux/compiler.h:263:20: error: lvalue required as unary ‘&’ operand # git bisect skip c6d68c1c4a4d6611fc0f8145d764226571d737ca There are only 'skip'ped commits left to test. The first bad commit could be any of: 19a4ff534bb09686f53800564cb977bad2177c00 227a4aadc75ba22fcb6c4e1c078817b8cbaae4ce c6d68c1c4a4d6611fc0f8145d764226571d737ca c172e0a3e8e65a4c6fffec5bc4d6de08d6f894f7 We cannot bisect more! revisions tested: 17, total time: 3h27m43.025612609s (build: 1h33m9.360608907s, test: 1h48m38.035287204s) bisection is inconclusive, the first bad commit could be any of: 19a4ff534bb09686f53800564cb977bad2177c00 227a4aadc75ba22fcb6c4e1c078817b8cbaae4ce c6d68c1c4a4d6611fc0f8145d764226571d737ca c172e0a3e8e65a4c6fffec5bc4d6de08d6f894f7