# git rev-parse -q --verify ad910e36da4ca3a1bd436989f632d062dda0c921^{commit} ad910e36da4ca3a1bd436989f632d062dda0c921 already have revision, skipping fetch # git checkout -q -f -B kisskb ad910e36da4ca3a1bd436989f632d062dda0c921 # git clean -qxdf # < git log -1 # commit ad910e36da4ca3a1bd436989f632d062dda0c921 # Author: Linus Torvalds # Date: Sat Dec 7 10:41:17 2019 -0800 # # pipe: fix poll/select race introduced by the pipe rework # # The kernel wait queues have a basic rule to them: you add yourself to # the wait-queue first, and then you check the things that you're going to # wait on. That avoids the races with the event you're waiting for. # # The same goes for poll/select logic: the "poll_wait()" goes first, and # then you check the things you're polling for. # # Of course, if you use locking, the ordering doesn't matter since the # lock will serialize with anything that changes the state you're looking # at. That's not the case here, though. # # So move the poll_wait() first in pipe_poll(), before you start looking # at the pipe state. # # Fixes: 8cefc107ca54 ("pipe: Use head and tail pointers for the ring, not cursor and length") # Cc: David Howells # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/gcc-4.6.3-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld --version # < git log --format=%s --max-count=1 ad910e36da4ca3a1bd436989f632d062dda0c921 # < make -s -j 48 ARCH=arm O=/kisskb/build/linus_colibri_pxa270_defconfig_arm CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi- colibri_pxa270_defconfig # make -s -j 48 ARCH=arm O=/kisskb/build/linus_colibri_pxa270_defconfig_arm CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi- /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:204:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2591:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1852:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:338:21: note: 'pdeo' was declared here /kisskb/src/fs/nfsd/nfs4xdr.c: In function 'nfsd4_encode_components_esc': /kisskb/src/fs/nfsd/nfs4xdr.c:2076:9: warning: 'str' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/crypto/sha512_generic.c: In function 'sha512_transform': /kisskb/src/crypto/sha512_generic.c:149:1: warning: the frame size of 1184 bytes is larger than 1024 bytes [-Wframe-larger-than=] /kisskb/src/drivers/usb/core/devio.c: In function 'async_completed': /kisskb/src/drivers/usb/core/devio.c:625:23: warning: 'errno' may be used uninitialized in this function [-Wuninitialized] Completed OK # rm -rf /kisskb/build/linus_colibri_pxa270_defconfig_arm # Build took: 0:01:02.748577