lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 06 May 2019 17:20:31 +0000
From:   Kirill Smelkov <kirr@...edi.com>
To:     Linus Torvalds <torvalds@...ux-foundation.org>
Cc:     Al Viro <viro@...iv.linux.org.uk>, Arnd Bergmann <arnd@...db.de>,
        Christoph Hellwig <hch@....de>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Pavel Machek <pavel@...x.de>,
        Rasmus Villemoes <linux@...musvillemoes.dk>,
        Miklos Szeredi <miklos@...redi.hu>,
        <linux-fsdevel@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        Kirill Smelkov <kirr@...edi.com>
Subject: [PATCH 0/3] stream_open bits for Linux 5.2

Linus,

Please consider applying the following stream_open related patches:

- The first one removes unnecessary double nonseekable_open from
  drivers/char/dtlk.c as noticed by Pavel Machek while reviewing
  nonseekable_open -> stream_open mass conversion.

- The second one is the mass conversion patch promised in 10dce8af3422 ("fs:
  stream_open - opener for stream-like files so that read and write can run
  simultaneously without deadlock") and is automatically generated by running

	$ make coccicheck MODE=patch COCCI=scripts/coccinelle/api/stream_open.cocci

  I've verified each generated change manually - that it is correct to convert -
  and each other nonseekable_open instance left - that it is either not correct
  to convert there, or that it is not converted due to current stream_open.cocci
  limitations. More details on this in the patch.

- The third patch changes VFS to pass ppos=NULL into .read/.write for files
  that declare themselves streams. It was suggested by Rasmus Villemoes and makes
  sure that if ppos starts to be erroneously used in a stream file, such bug
  won't go unnoticed and will produce an oops instead of creating illusion of
  position change being taken into account.

  Note: this patch does not conflict with "fuse: Add FOPEN_STREAM to use
  stream_open()" that will be hopefully coming via FUSE tree, because fs/fuse/
  uses new-style .read_iter/.write_iter, and for these accessors position is
  still passed as non-pointer kiocb.ki_pos .

I was hoping for the patches to be picked up into VFS tree, but since that did
not happenned for some reason I'm sending them to you directly.

Maybe it will help: the patches can be also pulled from here:

	git pull https://lab.nexedi.com/kirr/linux.git y/stream_open-5.2


Thanks beforehand,
Kirill

Kirill Smelkov (3):
  dtlk: remove double call to nonseekable_open
  *: convert stream-like files from nonseekable_open -> stream_open
  vfs: pass ppos=NULL to .read()/.write() of FMODE_STREAM files

 arch/powerpc/platforms/52xx/mpc52xx_gpt.c |   2 +-
 arch/powerpc/platforms/cell/spufs/file.c  |   2 +-
 arch/um/drivers/harddog_kern.c            |   2 +-
 arch/x86/kernel/cpu/microcode/core.c      |   2 +-
 drivers/char/ds1620.c                     |   2 +-
 drivers/char/dtlk.c                       |   3 +-
 drivers/char/ipmi/ipmi_watchdog.c         |   2 +-
 drivers/char/pcmcia/cm4000_cs.c           |   2 +-
 drivers/char/pcmcia/scr24x_cs.c           |   2 +-
 drivers/char/tb0219.c                     |   2 +-
 drivers/firewire/nosy.c                   |   2 +-
 drivers/gnss/core.c                       |   2 +-
 drivers/hid/uhid.c                        |   2 +-
 drivers/hwmon/fschmd.c                    |   2 +-
 drivers/hwmon/w83793.c                    |   2 +-
 drivers/infiniband/core/ucm.c             |   2 +-
 drivers/infiniband/core/ucma.c            |   2 +-
 drivers/infiniband/core/user_mad.c        |   2 +-
 drivers/infiniband/core/uverbs_main.c     |   2 +-
 drivers/input/evdev.c                     |   2 +-
 drivers/input/joydev.c                    |   2 +-
 drivers/input/misc/uinput.c               |   2 +-
 drivers/isdn/capi/capi.c                  |   2 +-
 drivers/leds/uleds.c                      |   2 +-
 drivers/media/rc/lirc_dev.c               |   2 +-
 drivers/pci/switch/switchtec.c            |   2 +-
 drivers/platform/chrome/cros_ec_debugfs.c |   2 +-
 drivers/rtc/rtc-ds1374.c                  |   2 +-
 drivers/rtc/rtc-m41t80.c                  |   2 +-
 drivers/s390/char/fs3270.c                |   2 +-
 drivers/s390/char/tape_char.c             |   2 +-
 drivers/s390/char/zcore.c                 |   2 +-
 drivers/s390/crypto/zcrypt_api.c          |   2 +-
 drivers/spi/spidev.c                      |   2 +-
 drivers/staging/pi433/pi433_if.c          |   2 +-
 drivers/usb/misc/ldusb.c                  |   2 +-
 drivers/watchdog/acquirewdt.c             |   2 +-
 drivers/watchdog/advantechwdt.c           |   2 +-
 drivers/watchdog/alim1535_wdt.c           |   2 +-
 drivers/watchdog/alim7101_wdt.c           |   2 +-
 drivers/watchdog/ar7_wdt.c                |   2 +-
 drivers/watchdog/at91rm9200_wdt.c         |   2 +-
 drivers/watchdog/ath79_wdt.c              |   2 +-
 drivers/watchdog/bcm63xx_wdt.c            |   2 +-
 drivers/watchdog/cpu5wdt.c                |   2 +-
 drivers/watchdog/cpwd.c                   |   2 +-
 drivers/watchdog/eurotechwdt.c            |   2 +-
 drivers/watchdog/f71808e_wdt.c            |   2 +-
 drivers/watchdog/gef_wdt.c                |   2 +-
 drivers/watchdog/geodewdt.c               |   2 +-
 drivers/watchdog/ib700wdt.c               |   2 +-
 drivers/watchdog/ibmasr.c                 |   2 +-
 drivers/watchdog/indydog.c                |   2 +-
 drivers/watchdog/intel_scu_watchdog.c     |   2 +-
 drivers/watchdog/iop_wdt.c                |   2 +-
 drivers/watchdog/it8712f_wdt.c            |   2 +-
 drivers/watchdog/ixp4xx_wdt.c             |   2 +-
 drivers/watchdog/ks8695_wdt.c             |   2 +-
 drivers/watchdog/m54xx_wdt.c              |   2 +-
 drivers/watchdog/machzwd.c                |   2 +-
 drivers/watchdog/mixcomwd.c               |   2 +-
 drivers/watchdog/mtx-1_wdt.c              |   2 +-
 drivers/watchdog/mv64x60_wdt.c            |   2 +-
 drivers/watchdog/nuc900_wdt.c             |   2 +-
 drivers/watchdog/nv_tco.c                 |   2 +-
 drivers/watchdog/pc87413_wdt.c            |   2 +-
 drivers/watchdog/pcwd.c                   |   4 +-
 drivers/watchdog/pcwd_pci.c               |   4 +-
 drivers/watchdog/pcwd_usb.c               |   4 +-
 drivers/watchdog/pika_wdt.c               |   2 +-
 drivers/watchdog/pnx833x_wdt.c            |   2 +-
 drivers/watchdog/rc32434_wdt.c            |   2 +-
 drivers/watchdog/rdc321x_wdt.c            |   2 +-
 drivers/watchdog/riowd.c                  |   2 +-
 drivers/watchdog/sa1100_wdt.c             |   2 +-
 drivers/watchdog/sb_wdog.c                |   2 +-
 drivers/watchdog/sbc60xxwdt.c             |   2 +-
 drivers/watchdog/sbc7240_wdt.c            |   2 +-
 drivers/watchdog/sbc8360.c                |   2 +-
 drivers/watchdog/sbc_epx_c3.c             |   2 +-
 drivers/watchdog/sbc_fitpc2_wdt.c         |   2 +-
 drivers/watchdog/sc1200wdt.c              |   2 +-
 drivers/watchdog/sc520_wdt.c              |   2 +-
 drivers/watchdog/sch311x_wdt.c            |   2 +-
 drivers/watchdog/scx200_wdt.c             |   2 +-
 drivers/watchdog/smsc37b787_wdt.c         |   2 +-
 drivers/watchdog/w83877f_wdt.c            |   2 +-
 drivers/watchdog/w83977f_wdt.c            |   2 +-
 drivers/watchdog/wafer5823wdt.c           |   2 +-
 drivers/watchdog/watchdog_dev.c           |   2 +-
 drivers/watchdog/wdrtas.c                 |   4 +-
 drivers/watchdog/wdt.c                    |   4 +-
 drivers/watchdog/wdt285.c                 |   2 +-
 drivers/watchdog/wdt977.c                 |   2 +-
 drivers/watchdog/wdt_pci.c                |   4 +-
 drivers/xen/evtchn.c                      |   2 +-
 fs/open.c                                 |   5 +-
 fs/read_write.c                           | 113 +++++++++++++---------
 net/batman-adv/icmp_socket.c              |   2 +-
 net/batman-adv/log.c                      |   2 +-
 net/rfkill/core.c                         |   2 +-
 sound/core/control.c                      |   2 +-
 sound/core/rawmidi.c                      |   2 +-
 sound/core/seq/seq_clientmgr.c            |   2 +-
 sound/core/timer.c                        |   2 +-
 105 files changed, 179 insertions(+), 158 deletions(-)

-- 
2.20.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ