Re: [git pull] vfs.git misc stuff

2021-02-27 Thread Al Viro
On Sat, Feb 27, 2021 at 08:21:55AM -0800, Linus Torvalds wrote: > On Fri, Feb 26, 2021 at 10:00 PM Al Viro wrote: > > > > Al Viro (3): > > 9p: fix misuse of sscanf() in v9fs_stat2inode() > > Hmm. Technically this changes some of the rules. It used to check that > i tall fit in 32 bytes. Now

Re: [git pull] vfs.git misc stuff

2021-02-27 Thread pr-tracker-bot
The pull request you sent on Sat, 27 Feb 2021 06:00:29 +: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.misc has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5ceabb6078b80a8544ba86d6ee523ad755ae6d5e Thank you! -- Deet-doot-dot, I am a bot. http

Re: [git pull] vfs.git misc stuff

2021-02-27 Thread Linus Torvalds
On Fri, Feb 26, 2021 at 10:00 PM Al Viro wrote: > > Al Viro (3): > 9p: fix misuse of sscanf() in v9fs_stat2inode() Hmm. Technically this changes some of the rules. It used to check that i tall fit in 32 bytes. Now there could be arbitrary spaces in there that pushes it over the limit. I do

Re: [git pull] vfs.git fixes

2021-01-17 Thread pr-tracker-bot
The pull request you sent on Sun, 17 Jan 2021 03:21:15 +: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a527a2b32d20a2bd8070f49e98cb1a89b0c98bb3 Thank you! -- Deet-doot-dot, I am a bot. https://

Re: [git pull] vfs.git misc stuff

2020-12-25 Thread pr-tracker-bot
The pull request you sent on Thu, 24 Dec 2020 23:35:07 +: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.misc has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/7bb5226c8a4bbf26a9ededc90532b0ad539d2017 Thank you! -- Deet-doot-dot, I am a bot. http

Re: [git pull] vfs.git set_fs pile

2020-10-22 Thread pr-tracker-bot
The pull request you sent on Thu, 22 Oct 2020 07:01:28 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.set_fs has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/f56e65dff6ad52395ef45738799b4fb70ff43376 Thank you! -- Deet-doot-dot, I am a bot. ht

Re: [git pull] vfs.git iov_iter series

2020-10-12 Thread pr-tracker-bot
The pull request you sent on Mon, 12 Oct 2020 04:17:22 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.iov_iter has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/85ed13e78dbedf9433115a62c85429922bc5035c Thank you! -- Deet-doot-dot, I am a bot.

Re: [git pull] vfs.git quota compat series

2020-10-12 Thread pr-tracker-bot
The pull request you sent on Mon, 12 Oct 2020 04:19:53 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.quota-compat has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e18afa5bfa4a2f0e07b0864370485df701dacbc1 Thank you! -- Deet-doot-dot, I am a b

Re: [git pull] vfs.git mount compat series

2020-10-12 Thread pr-tracker-bot
The pull request you sent on Mon, 12 Oct 2020 04:27:48 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git compat.mount has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/22230cd2c55bd27ee2c3a3def97c0d5577a75b82 Thank you! -- Deet-doot-dot, I am a bot. h

Re: [git pull] vfs.git csum_and_copy stuff

2020-10-12 Thread pr-tracker-bot
The pull request you sent on Mon, 12 Oct 2020 04:14:55 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.csum_and_copy has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c90578360c92c71189308ebc71087197080e94c3 Thank you! -- Deet-doot-dot, I am a

Re: [git pull] vfs.git fixes

2020-10-11 Thread pr-tracker-bot
The pull request you sent on Sun, 11 Oct 2020 19:06:09 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5b697f86f9f136d200c9827d6eca0437b7eb96cf Thank you! -- Deet-doot-dot, I am a bot. https://

Re: [git pull] vfs.git work.splice

2020-06-03 Thread pr-tracker-bot
The pull request you sent on Wed, 3 Jun 2020 20:26:15 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.splice has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ae03c53d005ef8a1e0253ad67b7b62103ea1fae6 Thank you! -- Deet-doot-dot, I am a bot. htt

Re: [git pull] vfs.git fixes

2020-04-28 Thread pr-tracker-bot
The pull request you sent on Tue, 28 Apr 2020 22:18:55 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/96c9a7802af7d500a582d89a8b864584fe878c1b Thank you! -- Deet-doot-dot, I am a bot. https://

Re: [git pull] vfs.git #work.namei

2019-09-18 Thread Linus Torvalds
On Mon, Sep 16, 2019 at 6:35 PM Al Viro wrote: > > pathwalk-related stuff That could have done with a few more words of explanation. I added "Audit-related cleanups, misc simplifications, and easier to follow nd->root refcounts" Linus

Re: [git pull] vfs.git mount_capable() fix

2019-07-31 Thread pr-tracker-bot
The pull request you sent on Wed, 31 Jul 2019 19:53:27 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5c6207539aea8b22490f9569db5aa72ddfd0d486 Thank you! -- Deet-doot-dot, I am a bot. https://

Re: [git pull] vfs.git - dcache and mountpoint stuff

2019-07-20 Thread pr-tracker-bot
The pull request you sent on Sat, 20 Jul 2019 04:02:18 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.dcache2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/18253e034d2aeee140f82fc9fe89c4bce5c81799 Thank you! -- Deet-doot-dot, I am a bot. h

Re: [git pull] vfs.git work.mount0

2019-07-19 Thread pr-tracker-bot
The pull request you sent on Fri, 19 Jul 2019 04:44:19 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.mount0 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/933a90bf4f3505f8ec83bda21a3c7d70d7c2b426 Thank you! -- Deet-doot-dot, I am a bot. ht

Re: [git pull] vfs.git adfs patches

2019-07-19 Thread pr-tracker-bot
The pull request you sent on Fri, 19 Jul 2019 04:45:15 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.adfs has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d2fbf4b6d585e40f2369675148777abce3abd0e7 Thank you! -- Deet-doot-dot, I am a bot. http

Re: [git pull] vfs.git misc

2019-07-19 Thread pr-tracker-bot
The pull request you sent on Fri, 19 Jul 2019 04:46:04 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.misc has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4f5ed1318c0108369a76f4a56242fbeea537abe9 Thank you! -- Deet-doot-dot, I am a bot. http

Re: [git pull] vfs.git mount followups

2019-05-17 Thread pr-tracker-bot
The pull request you sent on Fri, 17 May 2019 04:11:26 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/bf8a9a4755737f6630756f0d87bea9b38f0ed369 Thank you! -- Deet-doot-dot, I am a bot. https://

Re: [git pull] vfs.git braino fix

2019-05-09 Thread pr-tracker-bot
The pull request you sent on Fri, 10 May 2019 03:33:33 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8ea5b2abd07e2280a332bd9c1a7f4dd15b9b6c13 Thank you! -- Deet-doot-dot, I am a bot. https://

Re: [git pull] vfs.git next bits of mount ABI stuff (syscalls, this time)

2019-05-07 Thread pr-tracker-bot
The pull request you sent on Tue, 7 May 2019 21:49:21 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.mount-syscalls has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/400913252d09f9cfb8cce33daee43167921fc343 Thank you! -- Deet-doot-dot, I am a

Re: [git pull] vfs.git misc pieces

2019-05-07 Thread pr-tracker-bot
The pull request you sent on Tue, 7 May 2019 21:53:19 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.misc has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/149e703cb8bfcbdae46140b108bb6f7d2407df8f Thank you! -- Deet-doot-dot, I am a bot. https

Re: [git pull] vfs.git several struct file-related pieces

2019-05-07 Thread pr-tracker-bot
The pull request you sent on Tue, 7 May 2019 21:52:09 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.file has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d897166d8598e362a31d79dfd9a1e2eedb9ac85c Thank you! -- Deet-doot-dot, I am a bot. https

Re: [git pull] vfs.git misc dcache-related stuff

2019-05-07 Thread pr-tracker-bot
The pull request you sent on Tue, 7 May 2019 21:33:55 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.dcache has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d27fb65bc2389621040e5107baedb94b4cccf641 Thank you! -- Deet-doot-dot, I am a bot. htt

Re: [git pull] vfs.git pile 1: ->free_inode() series

2019-05-07 Thread pr-tracker-bot
The pull request you sent on Tue, 7 May 2019 01:50:37 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.icache has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/168e153d5ebbdd6a3fa85db1cc4879ed4b7030e0 Thank you! -- Deet-doot-dot, I am a bot. htt

Re: [git pull] vfs.git pile 2: several fixes to backport

2019-05-07 Thread pr-tracker-bot
The pull request you sent on Tue, 7 May 2019 01:58:42 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git stable-fodder has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/78438ce18f26dbcaa8993bb45d20ffb0cec3bc3e Thank you! -- Deet-doot-dot, I am a bot. h

Re: [git pull] vfs.git fixes

2019-05-05 Thread pr-tracker-bot
The pull request you sent on Sun, 5 May 2019 03:18:46 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/51987affd626b8e4ce9f4c65e1950cb9159f0f58 Thank you! -- Deet-doot-dot, I am a bot. https://k

Re: [git pull] vfs.git fixes

2019-03-04 Thread pr-tracker-bot
The pull request you sent on Sun, 3 Mar 2019 03:42:53 +: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4f9020ffde71ddb92bc2f65ce0b00232bc88c590 Thank you! -- Deet-doot-dot, I am a bot. https://k

Re: [git pull] vfs.git fixes

2019-03-03 Thread Linus Torvalds
On Sat, Mar 2, 2019 at 7:43 PM Al Viro wrote: > > Assorted fixes that sat in -next for a while, all over the > place. Is this for the merge window or _very_ late fixes for 5.0? One of the commits doesn't look appropriate for this (very late) stage of the rc series: "cgroup: saner refcoun

Re: [git pull] vfs.git mount.part1

2019-01-05 Thread pr-tracker-bot
The pull request you sent on Fri, 4 Jan 2019 19:26:48 +: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git mount.part1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/505b050fdf42097883b2d37b8e796e1f11dbef50 Thank you! -- Deet-doot-dot, I am a bot. htt

Re: [git pull] vfs.git mount.part1

2019-01-05 Thread Al Viro
On Sat, Jan 05, 2019 at 01:31:21PM -0600, Eric W. Biederman wrote: > Not having had a chance to review this code I can't really comment on > the quality of this code. What I do know from a glance is that > you have not removed FS_BINARY_MOUNTDATA. Which is the root cause > of some of the crazy s

Re: [git pull] vfs.git mount.part1

2019-01-05 Thread Eric W. Biederman
Al Viro writes: > mount API prereqs. Mostly that's LSM mount options cleanups. > One trivial conflict in security/selinux/hooks.c, resolved by taking > the variant from this branch - the method has been split, leaving > only the part that used to be conditional upon "it's not an internal >

Re: [git pull] vfs.git fixes

2018-11-30 Thread pr-tracker-bot
The pull request you sent on Fri, 30 Nov 2018 05:15:22 +: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5f1ca5c619c2af5e03114b0276642cdc15d11a94 Thank you! -- Deet-doot-dot, I am a bot. https://

Re: [git pull] vfs.git: poll annotations

2018-02-01 Thread Al Viro
On Wed, Jan 31, 2018 at 04:46:20AM +, Al Viro wrote: > On Tue, Jan 30, 2018 at 07:19:19PM -0800, Linus Torvalds wrote: > > On Tue, Jan 30, 2018 at 7:13 PM, Al Viro wrote: > > > > > > As for the place for mangle/demangle... where would you prefer them? > > > > If we can make gcc generate ok co

Re: [git pull] vfs.git: poll annotations

2018-01-31 Thread Al Viro
On Wed, Jan 31, 2018 at 04:46:20AM +, Al Viro wrote: > MSG and REMOVE are never triggered, so it's all down to {WR{NORM,BAND},RDHUP}. Actually, POLLREMOVE is an amusing story (FSVO amusing): it's a part of UnixWare /dev/poll ABI. It had _not_ lasted in Linux - epoll_ctl() EPOLL_CTL_DEL is us

Re: [git pull] vfs.git: poll annotations

2018-01-30 Thread Al Viro
On Tue, Jan 30, 2018 at 07:19:19PM -0800, Linus Torvalds wrote: > On Tue, Jan 30, 2018 at 7:13 PM, Al Viro wrote: > > > > As for the place for mangle/demangle... where would you prefer them? > > If we can make gcc generate ok code for the generic case and not need > any arch-specific ones, why no

Re: [git pull] vfs.git: poll annotations

2018-01-30 Thread Linus Torvalds
On Tue, Jan 30, 2018 at 7:13 PM, Al Viro wrote: > > As for the place for mangle/demangle... where would you prefer them? If we can make gcc generate ok code for the generic case and not need any arch-specific ones, why not just do in ? (And I guess POLLIN/OUT/ERR are standard, so it's only a cou

Re: [git pull] vfs.git: poll annotations

2018-01-30 Thread Al Viro
On Tue, Jan 30, 2018 at 06:21:37PM -0800, Linus Torvalds wrote: > On Tue, Jan 30, 2018 at 10:39 AM, Al Viro wrote: > > Introduces a __bitwise type for POLL... bitmap, propagates > > the annotations through the tree. > > Ok, I'm not entirely happy with this. > > I don't think the mangle/d

Re: [git pull] vfs.git: poll annotations

2018-01-30 Thread Linus Torvalds
On Tue, Jan 30, 2018 at 10:39 AM, Al Viro wrote: > Introduces a __bitwise type for POLL... bitmap, propagates > the annotations through the tree. Ok, I'm not entirely happy with this. I don't think the mangle/demangle_poll() stuff should be in the uapi headers, and it really worries me t

Re: [git pull] vfs.git get_user_pages_fast() conversion

2017-11-21 Thread Andrea Arcangeli
On Sat, Nov 18, 2017 at 09:45:31PM +, Al Viro wrote: > in __get_user_pages_locked(), or am I missing something subtle there? Andrea? You're not missing anything as far as the logic is concerned. However see the __always_inline, I added "notify_drop" purely to optimize away such branch at bui

mthca misuse of get_user_pages() (was Re: [git pull] vfs.git get_user_pages_fast() conversion)

2017-11-19 Thread Al Viro
On Fri, Nov 17, 2017 at 09:32:15PM +, Al Viro wrote: [snip] > drivers/infiniband/hw/mthca/mthca_memfree.c:475:ret = > get_user_pages(uaddr & PAGE_MASK, 1, FOLL_WRITE, pages, NULL); [snip] > Itanic > one is almost certainly buggered - we are not holding ->mmap_sem there. So's the mth

Re: [git pull] vfs.git get_user_pages_fast() conversion

2017-11-18 Thread Dan Williams
On Fri, Nov 17, 2017 at 1:32 PM, Al Viro wrote: > On Fri, Nov 17, 2017 at 12:50:47PM -0800, Linus Torvalds wrote: > >> Not because the conversion was wrong, but because the original code is >> so broken. >> >> In particular, that "1" that is unchanged in the arguments is correct >> in the conversi

Re: [git pull] vfs.git get_user_pages_fast() conversion

2017-11-18 Thread Al Viro
On Fri, Nov 17, 2017 at 09:32:15PM +, Al Viro wrote: > And for get_user_pages() itself it's even more ridiculous - vmalist (the last > argument) is non-NULL in only one caller. Which uses it only to check if all > of the VMAs happen to be hugetlb ones, apparently. > > FWIW, I wanted to trim

Re: [git pull] vfs.git get_user_pages_fast() conversion

2017-11-17 Thread Al Viro
On Fri, Nov 17, 2017 at 12:50:47PM -0800, Linus Torvalds wrote: > Not because the conversion was wrong, but because the original code is > so broken. > > In particular, that "1" that is unchanged in the arguments is correct > in the conversion, but it was completely wrong in the original, even >

Re: [git pull] vfs.git get_user_pages_fast() conversion

2017-11-17 Thread Linus Torvalds
On Thu, Nov 16, 2017 at 7:02 PM, Al Viro wrote: > A bunch of places switched to get_user_pages_fast(). I really would have liked a bit of a commentary. Looking at the individual patches, I notice this, for example: - down_read(¤t->mm->mmap_sem); - page_nr = g

Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat

2017-10-16 Thread Linus Torvalds
On Sun, Oct 15, 2017 at 2:58 AM, Pavel Machek wrote: > > up is quite short and not-specific for global symbol. Rename to mutex_up? Well, it is quite the traditional name in the OS community and in Linux it goes back to before the 1.0 release. We've got about 450 each of the up() and the down() (

Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat

2017-10-15 Thread Pavel Machek
On Tue 2017-09-26 02:00:36, Al Viro wrote: > On Mon, Sep 25, 2017 at 03:18:29PM -0700, Kyle Huey wrote: > > Beginning with 553f770ef71b, the following program fails when compiled > > for 32 bit and executed on a 64 bit kernel and succeeds when compiled > > for and executed on a 64 bit. It continue

Re: [git pull] vfs.git fixes

2017-10-11 Thread Vitaly Mayatskikh
On Wed, 11 Oct 2017 00:54:57 -0400, Al Viro wrote: > > Fairly old DIO bug caught by Andreas (3.10+) and several slightly > younger blk_rq_map_user_iov() bugs, both on map and copy codepaths (Vitaly > and me). I ran work.iov_iter changeset through our smoke test few days ago - no apparent s

Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat

2017-10-11 Thread Linus Torvalds
On Wed, Oct 11, 2017 at 10:03 AM, Al Viro wrote: > > Can I assume your normal S-o-b on that? Just noticed that thing sitting > in misc queue with mismatched Author: and Signed-off-by:... Yup, just add my sign-off. Thanks, Linus

Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat

2017-10-11 Thread Al Viro
On Wed, Oct 11, 2017 at 06:03:35PM +0100, Al Viro wrote: > On Mon, Sep 25, 2017 at 07:02:16PM -0700, Linus Torvalds wrote: > > On Mon, Sep 25, 2017 at 6:46 PM, Al Viro wrote: > > > > > > Which tree do you prefer it to go through? Direct to mainline, or vfs.git > > > #for-next? > > > > for-next,

Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat

2017-10-11 Thread Al Viro
On Mon, Sep 25, 2017 at 07:02:16PM -0700, Linus Torvalds wrote: > On Mon, Sep 25, 2017 at 6:46 PM, Al Viro wrote: > > > > Which tree do you prefer it to go through? Direct to mainline, or vfs.git > > #for-next? > > for-next, it's not like it's in any way urgent. Can I assume your normal S-o-b o

Script to do smart sparse diffs (was Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat)

2017-09-27 Thread Michael Ellerman
Christoph Hellwig writes: > On Mon, Sep 25, 2017 at 06:37:28PM -0700, Linus Torvalds wrote: >> Pulled and pushed out, but I'd like to note that sparse would have >> caught this. Except we are so far away from being sparse-clean that >> nobody runs it. > > I tend to run sparse over the nvme code b

Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat

2017-09-26 Thread Luc Van Oostenryck
On Mon, Sep 25, 2017 at 07:07:01PM -0700, Linus Torvalds wrote: > On Mon, Sep 25, 2017 at 7:03 PM, Linus Torvalds > wrote: > > > > I agree. It might be better to just remove the address space logic, > > because afaik it never worked for them. > > .. and sadly, we should probably disable the locki

Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat

2017-09-25 Thread Christoph Hellwig
On Mon, Sep 25, 2017 at 06:37:28PM -0700, Linus Torvalds wrote: > Pulled and pushed out, but I'd like to note that sparse would have > caught this. Except we are so far away from being sparse-clean that > nobody runs it. I tend to run sparse over the nvme code before sending pull request every tim

Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat

2017-09-25 Thread Al Viro
On Mon, Sep 25, 2017 at 07:07:01PM -0700, Linus Torvalds wrote: > On Mon, Sep 25, 2017 at 7:03 PM, Linus Torvalds > wrote: > > > > I agree. It might be better to just remove the address space logic, > > because afaik it never worked for them. > > .. and sadly, we should probably disable the locki

Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat

2017-09-25 Thread Linus Torvalds
On Mon, Sep 25, 2017 at 7:03 PM, Linus Torvalds wrote: > > I agree. It might be better to just remove the address space logic, > because afaik it never worked for them. .. and sadly, we should probably disable the locking ones by default too, because while they *work*, sparse only handles static

Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat

2017-09-25 Thread Linus Torvalds
On Mon, Sep 25, 2017 at 7:00 PM, Al Viro wrote: > > FWIW, __percpu and __rcu annotations are messy as hell. Never got around > to sorting down the infrastructure annotations for that bunch, and I'm > not entirely sure that they (especially __rcu) are a good match for > __address_space__(()). I a

Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat

2017-09-25 Thread Linus Torvalds
On Mon, Sep 25, 2017 at 6:46 PM, Al Viro wrote: > > Which tree do you prefer it to go through? Direct to mainline, or vfs.git > #for-next? for-next, it's not like it's in any way urgent. Linus

Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat

2017-09-25 Thread Al Viro
On Tue, Sep 26, 2017 at 02:46:56AM +0100, Al Viro wrote: > On Mon, Sep 25, 2017 at 06:37:28PM -0700, Linus Torvalds wrote: > > > And I think your recent compat cleanup work actually made it worse, > > showing new warnings (including the one that was a real bug) > > Actually, they are not new - tr

Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat

2017-09-25 Thread Al Viro
On Mon, Sep 25, 2017 at 06:37:28PM -0700, Linus Torvalds wrote: > And I think your recent compat cleanup work actually made it worse, > showing new warnings (including the one that was a real bug) Actually, they are not new - try make C=2 ipc/compat.o on v4.13 and you'll see their previous locati

Re: [git pull] vfs.git regression fix Re: Regression related to ipc shmctl compat

2017-09-25 Thread Linus Torvalds
On Mon, Sep 25, 2017 at 6:00 PM, Al Viro wrote: > > I really wish gcc warned about conversions from pointer to function into > void *... Pulled and pushed out, but I'd like to note that sparse would have caught this. Except we are so far away from being sparse-clean that nobody runs it. And I th

Re: [git pull][vfs.git] a couple of fixes

2017-09-21 Thread Al Viro
On Thu, Sep 21, 2017 at 05:59:57AM -1000, Linus Torvalds wrote: > On Wed, Sep 20, 2017 at 6:13 PM, Al Viro wrote: > > A couple of regression fixes, one for this merge window, one for > > the previous cycle. > > That older fix for 4.13 doesn't seem to be marked for stable. > > Can you mak

Re: [git pull][vfs.git] a couple of fixes

2017-09-21 Thread Linus Torvalds
On Wed, Sep 20, 2017 at 6:13 PM, Al Viro wrote: > A couple of regression fixes, one for this merge window, one for > the previous cycle. That older fix for 4.13 doesn't seem to be marked for stable. Can you make sure it gets to Greg? Linus

Re: [git pull] vfs.git part 3

2017-07-08 Thread Al Viro
On Fri, Jul 07, 2017 at 04:00:02PM +0200, Christoph Hellwig wrote: > On Fri, Jul 07, 2017 at 12:27:49AM +0100, Al Viro wrote: > > On Thu, Jul 06, 2017 at 11:44:49PM +0200, Christoph Hellwig wrote: > > > > Which sparse version are you using and what's your .config? > > > > > > sparse is v0.5.0-62-g

Re: [git pull] vfs.git pile 13 - killing __copy_in_user()

2017-07-08 Thread Al Viro
On Fri, Jul 07, 2017 at 10:27:38PM -0700, Linus Torvalds wrote: > On Fri, Jul 7, 2017 at 5:29 PM, Al Viro wrote: > > There used to be 6 places in the entire tree calling > > __copy_in_user(), > > all of them bogus. Four got killed off in work.drm branch, this takes care > > of > > the r

Re: [git pull] vfs.git pile 15 - more non-uaccess bits

2017-07-07 Thread Amir Goldstein
On Sat, Jul 8, 2017 at 3:30 AM, Al Viro wrote: > Assorted normal VFS / filesystems stuff... > > [this is not all; there are several branches left, but that's for tomorrow] > > The following changes since commit 41f1830f5a7af77cf5c86359aba3cbd706687e52: > > Linux 4.12-rc6 (2017-06-19 22:1

Re: [git pull] vfs.git pile 13 - killing __copy_in_user()

2017-07-07 Thread Linus Torvalds
On Fri, Jul 7, 2017 at 5:29 PM, Al Viro wrote: > There used to be 6 places in the entire tree calling __copy_in_user(), > all of them bogus. Four got killed off in work.drm branch, this takes care of > the remaining ones and kills the definition of that sucker. This branch is garbage. Y

Re: [git pull] vfs.git pile 11 - iov_iter/hardening

2017-07-07 Thread Linus Torvalds
On Fri, Jul 7, 2017 at 5:29 PM, Al Viro wrote: > > Trivial conflicts with libnvdimm; this stuff will get some > followups, but again, that's for another series. Gaah. Yeah, I guess I could have done the trivial ugly merge that just took the new copy_from_iter_flushcache() as-is, and didn'

Re: [git pull] vfs.git part 1

2017-07-07 Thread Michael Ellerman
Linus Torvalds writes: > On Fri, Jul 7, 2017 at 8:59 AM, Linus Torvalds > wrote: >> >>> Patch coming. >> >> I'm not seeing a patch, so I did my own. But it's _entirely_ untested. >> Does the attached fix things for you? > > Oh, I see you sent a patch to the list but didn't cc me like in this thr

Re: [git pull] vfs.git part 1

2017-07-07 Thread Michael Ellerman
Linus Torvalds writes: > On Fri, Jul 7, 2017 at 8:59 AM, Linus Torvalds > wrote: >> >> The copy_flock_fields() macro has the arguments in order , >> but all the users seem to do it the other way around. > > Looking more at it, I think I'd also like copy_flock_fields() to take > pointer arguments

Re: [git pull] vfs.git part 3

2017-07-07 Thread Christopher Li
On Fri, Jul 7, 2017 at 8:48 AM, Linus Torvalds wrote: > The releases are done way too seldom to be useful, but that may be > improving. There is one fairly imminent, and it's probably a good idea > to just test the current git tree. Yes guilty of too few releases. We are cutting one release prett

Re: [git pull] vfs.git part 1

2017-07-07 Thread Al Viro
On Fri, Jul 07, 2017 at 10:35:41AM -0700, Linus Torvalds wrote: > Comments? Michael, does this work for your case? Looks sane... > +++ b/fs/fcntl.c > @@ -520,50 +520,50 @@ SYSCALL_DEFINE3(fcntl64, unsigned int, fd, unsigned > int, cmd, > > #ifdef CONFIG_COMPAT > /* careful - don't use anywh

Re: [git pull] vfs.git part 1

2017-07-07 Thread Linus Torvalds
On Fri, Jul 7, 2017 at 8:59 AM, Linus Torvalds wrote: > > The copy_flock_fields() macro has the arguments in order , > but all the users seem to do it the other way around. Looking more at it, I think I'd also like copy_flock_fields() to take pointer arguments, to match all the code around it (bo

Re: [git pull] vfs.git part 1

2017-07-07 Thread Linus Torvalds
On Fri, Jul 7, 2017 at 8:59 AM, Linus Torvalds wrote: > >> Patch coming. > > I'm not seeing a patch, so I did my own. But it's _entirely_ untested. > Does the attached fix things for you? Oh, I see you sent a patch to the list but didn't cc me like in this thread. Hmm. Al - I'd like to add the "

Re: [git pull] vfs.git part 1

2017-07-07 Thread Linus Torvalds
On Fri, Jul 7, 2017 at 5:46 AM, Michael Ellerman wrote: > Al Viro writes: > >> >> Switch flock copyin/copyout primitives to copy_{from,to}_user() >> (2017-06-26 23:52:44 -0400) > > This commit seems to have broken networking on a bunch of my PPC > machines (64-bit kernel, 32-bit userspace). B

Re: [git pull] vfs.git part 3

2017-07-07 Thread Linus Torvalds
On Fri, Jul 7, 2017 at 7:00 AM, Christoph Hellwig wrote: > > So what's the current story on sparse versions to use and releases? The releases are done way too seldom to be useful, but that may be improving. There is one fairly imminent, and it's probably a good idea to just test the current git t

Re: [git pull] vfs.git part 3

2017-07-07 Thread Christoph Hellwig
On Fri, Jul 07, 2017 at 12:27:49AM +0100, Al Viro wrote: > On Thu, Jul 06, 2017 at 11:44:49PM +0200, Christoph Hellwig wrote: > > > Which sparse version are you using and what's your .config? > > > > sparse is v0.5.0-62-gce18a90, .config is attached. > > Arrgh... OK, I see what's going on. spar

Re: [git pull] vfs.git pile 10

2017-07-06 Thread Linus Torvalds
On Thu, Jul 6, 2017 at 2:11 AM, Al Viro wrote: > uaccess str...() dead code removals. Side note: you left a couple of references to strlen_user() still in the tree. None of them *matter* (two comments and one declaration for the function that no longer exists), but it just strikes me as

Re: [git pull] vfs.git pile 11

2017-07-06 Thread Linus Torvalds
On Thu, Jul 6, 2017 at 2:20 PM, Al Viro wrote: > > Linus, could you hold that one back until tomorrow? I want to tweak the > last commit in there a bit, but I want to give it a local beating first... Ok, dropping this one. All your other branches are merged now. Linus

Re: [git pull] vfs.git pile 6

2017-07-06 Thread Linus Torvalds
On Thu, Jul 6, 2017 at 2:11 AM, Al Viro wrote: > [6 more piles tonight with several more left for tomorrow] Tiny side note (since I'm starting to look at this pile soon): it would be nice if your subject line had the very short "this is what it's about" thing to it too. I don't mind the numberin

Re: [git pull] vfs.git part 3

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 11:44:49PM +0200, Christoph Hellwig wrote: > > Which sparse version are you using and what's your .config? > > sparse is v0.5.0-62-gce18a90, .config is attached. Arrgh... OK, I see what's going on. sparse commit affecting that is "Allow casting to a restricted type if !r

Re: [git pull] vfs.git part 3

2017-07-06 Thread Christoph Hellwig
> Which sparse version are you using and what's your .config? sparse is v0.5.0-62-gce18a90, .config is attached. .config Description: application/config

Re: [git pull] vfs.git pile 11

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 09:29:27PM +0100, Al Viro wrote: > On Thu, Jul 06, 2017 at 09:18:26PM +0100, Al Viro wrote: > > On Thu, Jul 06, 2017 at 12:45:36PM -0700, Kees Cook wrote: > > > > > > + if (unlikely(!check_copy_size(addr, bytes, false))) > > > + return false; > > > + else > > > +

Re: [git pull] vfs.git pile 11

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 09:18:26PM +0100, Al Viro wrote: > On Thu, Jul 06, 2017 at 12:45:36PM -0700, Kees Cook wrote: > > > > + if (unlikely(!check_copy_size(addr, bytes, false))) > > + return false; > > + else > > + return _copy_from_iter_full(addr, bytes, i); > > > > Can these b

Re: [git pull] vfs.git pile 11

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 12:45:36PM -0700, Kees Cook wrote: > > + if (unlikely(!check_copy_size(addr, bytes, false))) > + return false; > + else > + return _copy_from_iter_full(addr, bytes, i); > > Can these be rewritten to avoid the double-negative? Matter of taste - I've no stro

Re: [git pull] vfs.git pile 11

2017-07-06 Thread Kees Cook
On Thu, Jul 6, 2017 at 2:12 AM, Al Viro wrote: > iov_iter/uaccess/hardening pile. For one thing, it trims the > inline part of copy_to_user/copy_from_user to the minimum that *does* > need to be inlined - object size checks, basically. For another, > it sanitizes the checks for iov_iter

Re: [git pull] vfs.git part 3

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 06:58:37PM +0200, Christoph Hellwig wrote: > On Thu, Jul 06, 2017 at 04:51:13PM +0100, Al Viro wrote: > > On Thu, Jul 06, 2017 at 04:46:02PM +0100, Al Viro wrote: > > > > > That - on #work.read_write, as in vfs.git at the moment... > > > > ... and for COMPAT_SYSCALL you ne

Re: [git pull] vfs.git part 3

2017-07-06 Thread Christoph Hellwig
On Thu, Jul 06, 2017 at 04:51:13PM +0100, Al Viro wrote: > On Thu, Jul 06, 2017 at 04:46:02PM +0100, Al Viro wrote: > > > That - on #work.read_write, as in vfs.git at the moment... > > ... and for COMPAT_SYSCALL you need > #define __SC_DELOUSE(t,v) ((__force t)(unsigned long)(v)) > in linux/compa

Re: [git pull] vfs.git part 3

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 04:46:02PM +0100, Al Viro wrote: > That - on #work.read_write, as in vfs.git at the moment... ... and for COMPAT_SYSCALL you need #define __SC_DELOUSE(t,v) ((__force t)(unsigned long)(v)) in linux/compat.h

Re: [git pull] vfs.git part 3

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 05:10:33PM +0200, Christoph Hellwig wrote: > On Thu, Jul 06, 2017 at 04:03:30PM +0100, Al Viro wrote: > > On Thu, Jul 06, 2017 at 04:48:40PM +0200, Christoph Hellwig wrote: > > > > > Just did the whole batch (patch below), but it seems like using a > > > __bitwise type in S

Re: [git pull] vfs.git part 3

2017-07-06 Thread Christoph Hellwig
On Thu, Jul 06, 2017 at 04:03:30PM +0100, Al Viro wrote: > On Thu, Jul 06, 2017 at 04:48:40PM +0200, Christoph Hellwig wrote: > > > Just did the whole batch (patch below), but it seems like using a > > __bitwise type in SYSCALL_DEFINE* will always give warnings like: > > > > fs/read_write.c:1095:

Re: [git pull] vfs.git part 3

2017-07-06 Thread Christoph Hellwig
On Thu, Jul 06, 2017 at 04:03:30PM +0100, Al Viro wrote: > #define __SC_CAST(t, a) (__force t) a > > in syscalls.h Hmm. > > > index a2d4a8ac94ca..a04adbc70ddf 100644 > > --- a/include/uapi/linux/aio_abi.h > > +++ b/include/uapi/linux/aio_abi.h > > @@ -28,6 +28,7 @@ > > #define __LINUX__AIO_ABI

Re: [git pull] vfs.git part 3

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 04:48:40PM +0200, Christoph Hellwig wrote: > Just did the whole batch (patch below), but it seems like using a > __bitwise type in SYSCALL_DEFINE* will always give warnings like: > > fs/read_write.c:1095:1: warning: cast to restricted __kernel_rwf_t > > which I'm not sure

Re: [git pull] vfs.git part 3

2017-07-06 Thread Christoph Hellwig
On Thu, Jul 06, 2017 at 12:29:12AM +0100, Al Viro wrote: > On Thu, Jul 06, 2017 at 12:52:35AM +0200, Christoph Hellwig wrote: > > On Wed, Jul 05, 2017 at 11:38:21PM +0100, Al Viro wrote: > > > Sure, makes sense - especially since it's not too widely spread yet. > > > > Do you want to do that yours

Re: [git pull] vfs.git part 3

2017-07-05 Thread Al Viro
On Thu, Jul 06, 2017 at 12:52:35AM +0200, Christoph Hellwig wrote: > On Wed, Jul 05, 2017 at 11:38:21PM +0100, Al Viro wrote: > > Sure, makes sense - especially since it's not too widely spread yet. > > Do you want to do that yourself, or do you want me to look into it? I'll do it tomorrow, unles

Re: [git pull] vfs.git part 3

2017-07-05 Thread Christoph Hellwig
On Wed, Jul 05, 2017 at 11:38:21PM +0100, Al Viro wrote: > Sure, makes sense - especially since it's not too widely spread yet. Do you want to do that yourself, or do you want me to look into it?

Re: [git pull] vfs.git part 3

2017-07-05 Thread Al Viro
On Wed, Jul 05, 2017 at 02:51:43PM -0700, Linus Torvalds wrote: > On Wed, Jul 5, 2017 at 12:14 AM, Al Viro wrote: > > > > Christoph's fs/read_write.c series - consolidation and cleanups. > > Side note - when looking through this, it struck me how confusing that > "int flags" argument was. > > We

Re: [git pull] vfs.git part 3

2017-07-05 Thread Linus Torvalds
On Wed, Jul 5, 2017 at 12:14 AM, Al Viro wrote: > > Christoph's fs/read_write.c series - consolidation and cleanups. Side note - when looking through this, it struck me how confusing that "int flags" argument was. We have a ton of "flags" in the filesystem layer, and how all the read/write helpe

Re: [git pull] vfs.git part 5

2017-07-05 Thread Al Viro
On Wed, Jul 05, 2017 at 01:33:52PM -0700, Linus Torvalds wrote: > On Wed, Jul 5, 2017 at 12:15 AM, Al Viro wrote: > > > > That's probably it for today; again, I apologize for the amount of > > pull requests, but the tree topologydd is really nasty t

  1   2   >